1 2016-12-11 Uros Bizjak <ubizjak@gmail.com>
4 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p)
5 <case ASHIFT, case LSHIFTRT>: Consider all constant shifts.
7 (dimode_scalar_chain::compute_convert_gain): Reduce gain for
8 constant shifts larger or equal than 32.
10 2016-12-11 Roger Pau Monné <roger.pau@citrix.com>
12 * config/i386/x86-64.h: Append --32 to the assembler options when
13 -m16 is used on non-glibc systems as well.
15 2016-12-10 Allan Sandfeld Jensen <allan.jensen@qt.io>
18 * config/i386/mmintrin.h (__m64_u): New type
19 * config/i386/emmintrin.h (_mm_loadl_epi64, _mm_storel_epi64):
20 Make the allowed unaligned memory access explicit.
22 2016-12-10 Krister Walfridsson <krister.walfridsson@gmail.com>
24 * config.gcc (i386-*-netbsd*): Make i486 the default arch on NetBSD.
25 Generally use cpu generic.
27 2016-12-10 Jakub Jelinek <jakub@redhat.com>
28 Marc Glisse <marc.glisse@inria.fr>
30 PR tree-optimization/78720
31 * match.pd (A < 0 ? C : 0): Only optimize for signed A. If shift
32 is negative, sign extend to @1's type and than AND with C.
34 2016-12-10 Jakub Jelinek <jakub@redhat.com>
37 * tree-object-size.c (compute_object_offset) <case ARRAY_REF>: Handle
38 non-zero low bound or non-standard element sizes.
41 * lto-streamer-in.c (input_function): In addition to debug stmts
42 without -g, remove IFN_*SAN_* calls if corresponding flag_sanitize
45 2016-12-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
47 * config/rs6000/rs6000-passes.def: New file.
48 * config/rs6000/rs6000-protos.h: Declare make_pass_analyze_swaps.
49 * config/rs6000/rs6000.c (rs6000_option_override): Remove
50 registration of machine-specific passes.
51 (pass_analyze_swaps::clone): New function.
52 * config/rs6000/t-rs6000: Define PASSES_EXTRA.
54 2016-12-09 Kugan Vivekanandarajah <kuganv@linaro.org>
57 * ipa-cp.c (propagate_vr_accross_jump_function): Call
58 drop_tree_overflow after fold_convert.
60 2016-12-09 Jakub Jelinek <jakub@redhat.com>
63 * config/rs6000/rs6000.md (*and<mode>3_imm_mask_dot,
64 *and<mode>3_imm_mask_dot2): Add rs6000_is_valid_and_mask to insn
67 2016-12-09 Segher Boessenkool <segher@kernel.crashing.org>
70 * config/rs6000/rs6000.h (CLZ_DEFINED_VALUE_AT_ZERO): Use
71 GET_MODE_BITSIZE. Return 2.
72 (CTZ_DEFINED_VALUE_AT_ZERO): Use GET_MODE_BITSIZE. Return 2. Handle
73 TARGET_POPCNTD the same as TARGET_CTZ.
74 * config/rs6000/rs6000.md (ctz<mode>2): Reimplement.
75 (ffs<mode>2): Reimplement.
77 2016-12-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
79 PR rtl-optimization/78255
80 * gcc/postreload.c (reload_cse_simplify): Do not CSE a function if
81 NO_FUNCTION_CSE is true.
83 2016-12-09 Cesar Philippidis <cesar@codesourcery.com>
86 * ipa-icf.c (sem_function::parse): Don't process functions with
87 oacc decl attributes, as they may be OpenACC routines.
89 2016-12-09 David Malcolm <dmalcolm@redhat.com>
91 * rtl.h (get_mem_attrs): Add "const" qualifier to returned
94 2016-12-09 Nathan Sidwell <nathan@acm.org>
97 * convert.c (convert_to_integer_1): Maybe fold conversions to
98 integral types with fewer bits than its mode.
100 2016-12-09 Martin Liska <mliska@suse.cz>
102 * tree-pretty-print.c (pretty_print_string): Escape non-printable
105 2016-12-09 Jakub Jelinek <jakub@redhat.com>
107 PR tree-optimization/78726
108 * tree-ssa-reassoc.c (make_new_ssa_for_def): Add OPCODE and OP
109 argument. For lhs uses in debug stmts, don't replace lhs with
110 new_lhs, but with a debug temp set to new_lhs opcode op.
111 (make_new_ssa_for_all_defs): Add OPCODE argument, pass OPCODE and
112 OP down to make_new_ssa_for_def.
113 (zero_one_operation): Call make_new_ssa_for_all_defs even when
114 stmts_to_fix is empty, if *def has not changed yet. Pass
115 OPCODE to make_new_ssa_for_all_defs.
117 2016-12-08 Martin Sebor <msebor@redhat.com>
120 * builtin-attrs.def (ATTR_ALLOC_SIZE, ATTR_RETURNS_NONNULL): New
121 identifier tree nodes.
122 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): New attribute list.
123 (ATTR_MALLOC_SIZE_1_NOTHROW_LIST): Same.
124 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Same.
125 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Same.
126 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Same.
127 * builtins.c (expand_builtin_alloca): Call
128 maybe_warn_alloc_args_overflow.
129 * builtins.def (aligned_alloc, calloc, malloc, realloc):
130 Add attribute alloc_size.
131 (alloca): Add attribute alloc_size and returns_nonnull.
132 * calls.h (maybe_warn_alloc_args_overflow): Declare.
133 * calls.c (alloc_max_size, operand_signed_p): New functions.
134 (maybe_warn_alloc_args_overflow): Define.
135 (initialize_argument_information): Diagnose overflow in functions
136 declared with attaribute alloc_size.
137 * doc/invoke.texi (Warning Options): Document -Walloc-zero and
138 -Walloc-size-larger-than.
140 2016-12-08 Vladimir Makarov <vmakarov@redhat.com>
142 PR rtl-optimization/78671
143 * lra-assign.c (find_hard_regno_for_1): Check prohibited regs for an
146 2016-12-08 Uros Bizjak <ubizjak@gmail.com>
148 * config/i386/i386.h (HARD_REGNO_NREGS): Use GENERAL_REGNO_P.
149 (HARD_REGNO_NREGS_HAS_PADDING): Ditto. Simplify macro.
151 2015-12-08 Wilco Dijkstra <wdijkstr@arm.com>
154 * config/aarch64/aarch64.c (aarch64_classify_address):
155 Set load_store_pair_p for TImode and TFmode.
157 2016-12-08 David Malcolm <dmalcolm@redhat.com>
159 * emit-rtl.c (gen_reg_rtx): Move regno_pointer_align and
160 regno_reg_rtx resizing logic to...
161 (emit_status::ensure_regno_capacity): ...this new method,
162 and ensure that the buffers are large enough.
163 (init_emit): Allocate regno_reg_rtx using ggc_cleared_vec_alloc
164 rather than ggc_vec_alloc.
165 * function.h (emit_status::ensure_regno_capacity): New method.
167 2016-12-08 Dmitry Vyukov <dvyukov@google.com>
169 * opts.c (finish_options): Enable -fsanitize-address-use-after-scope
170 only if -fsanitize=address is enabled (not -fsanitize=kernel-address).
171 * doc/invoke.texi (-fsanitize=kernel-address):
172 Don't say that it enables -fsanitize-address-use-after-scope.
174 2016-12-08 Bin Cheng <bin.cheng@arm.com>
177 * tree-vect-loop-manip.c (create_intersect_range_checks_index): Check
178 sign bit for index step of data reference.
180 2016-12-08 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
182 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
183 Handle SYMBOL_SMALL_TLSGD for ILP32.
184 * config/aarch64/aarch64.md : tlsgd_small modified into
185 tlsgd_small_<mode> to support SImode and DImode.
186 *tlsgd_small modified into *tlsgd_small_<mode> to support SImode and
189 2016-12-08 Andrew Pinski <apinski@cavium.com>
191 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
192 Access the lower part of RTX appropriately.
194 2016-12-07 David Malcolm <dmalcolm@redhat.com>
196 * genpreds.c (write_tm_constrs_h): Update for renaming of
197 rtx_reader_ptr to md_reader_ptr.
198 (write_tm_preds_h): Likewise.
199 (write_insn_preds_c): Likewise.
200 * read-md.c (rtx_reader_ptr): Rename to...
201 (md_reader_ptr): ...this, and convert from an
202 rtx_reader * to a md_reader *.
203 (rtx_reader::set_md_ptr_loc): Rename to...
204 (md_reader::set_md_ptr_loc): ...this.
205 (rtx_reader::get_md_ptr_loc): Rename to...
206 (md_reader::get_md_ptr_loc): ...this.
207 (rtx_reader::copy_md_ptr_loc): Rename to...
208 (md_reader::copy_md_ptr_loc): ...this.
209 (rtx_reader::fprint_md_ptr_loc): Rename to...
210 (md_reader::fprint_md_ptr_loc): ...this.
211 (rtx_reader::print_md_ptr_loc): Rename to...
212 (md_reader::print_md_ptr_loc): ...this.
213 (rtx_reader::join_c_conditions): Rename to...
214 (md_reader::join_c_conditions): ...this.
215 (rtx_reader::fprint_c_condition): ...this.
216 (rtx_reader::print_c_condition): Rename to...
217 (md_reader::print_c_condition): ...this.
218 (fatal_with_file_and_line): Update for renaming of
219 rtx_reader_ptr to md_reader_ptr.
220 (rtx_reader::require_char): Rename to...
221 (md_reader::require_char): ...this.
222 (rtx_reader::require_char_ws): Rename to...
223 (md_reader::require_char_ws): ...this.
224 (rtx_reader::require_word_ws): Rename to...
225 (md_reader::require_word_ws): ...this.
226 (rtx_reader::read_char): Rename to...
227 (md_reader::read_char): ...this.
228 (rtx_reader::unread_char): Rename to...
229 (md_reader::unread_char): ...this.
230 (rtx_reader::peek_char): Rename to...
231 (md_reader::peek_char): ...this.
232 (rtx_reader::read_name): Rename to...
233 (md_reader::read_name): ...this.
234 (rtx_reader::read_escape): Rename to...
235 (md_reader::read_escape): ...this.
236 (rtx_reader::read_quoted_string): Rename to...
237 (md_reader::read_quoted_string): ...this.
238 (rtx_reader::read_braced_string): Rename to...
239 (md_reader::read_braced_string): ...this.
240 (rtx_reader::read_string): Rename to...
241 (md_reader::read_string): ...this.
242 (rtx_reader::read_skip_construct): Rename to...
243 (md_reader::read_skip_construct): ...this.
244 (rtx_reader::handle_constants): Rename to...
245 (md_reader::handle_constants): ...this.
246 (rtx_reader::traverse_md_constants): Rename to...
247 (md_reader::traverse_md_constants): ...this.
248 (rtx_reader::handle_enum): Rename to...
249 (md_reader::handle_enum): ...this.
250 (rtx_reader::lookup_enum_type): Rename to...
251 (md_reader::lookup_enum_type): ...this.
252 (rtx_reader::traverse_enum_types): Rename to...
253 (md_reader::traverse_enum_types): ...this.
254 (rtx_reader::rtx_reader): Rename to...
255 (md_reader::md_reader): ...this, and update for renaming of
256 rtx_reader_ptr to md_reader_ptr.
257 (rtx_reader::~rtx_reader): Rename to...
258 (md_reader::~md_reader): ...this, and update for renaming of
259 rtx_reader_ptr to md_reader_ptr.
260 (rtx_reader::handle_include): Rename to...
261 (md_reader::handle_include): ...this.
262 (rtx_reader::handle_file): Rename to...
263 (md_reader::handle_file): ...this.
264 (rtx_reader::handle_toplevel_file): Rename to...
265 (md_reader::handle_toplevel_file): ...this.
266 (rtx_reader::get_current_location): Rename to...
267 (md_reader::get_current_location): ...this.
268 (rtx_reader::add_include_path): Rename to...
269 (md_reader::add_include_path): ...this.
270 (rtx_reader::read_md_files): Rename to...
271 (md_reader::read_md_files): ...this.
272 * read-md.h (class rtx_reader): Split into...
273 (class md_reader): ...new class.
274 (rtx_reader_ptr): Rename to...
275 (md_reader_ptr): ...this, and convert to a md_reader *.
276 (class noop_reader): Update base class to be md_reader.
277 (class rtx_reader): Reintroduce as a subclass of md_reader.
278 (rtx_reader_ptr): Reintroduce as a rtx_reader *.
279 (read_char): Update for renaming of rtx_reader_ptr to
281 (unread_char): Likewise.
282 * read-rtl.c (rtx_reader_ptr): New global.
283 (rtx_reader::apply_iterator_to_string): Rename to...
284 (md_reader::apply_iterator_to_string): ...this.
285 (rtx_reader::copy_rtx_for_iterators): Rename to...
286 (md_reader::copy_rtx_for_iterators): ...this.
287 (rtx_reader::read_conditions): Rename to...
288 (md_reader::read_conditions): ...this.
289 (rtx_reader::record_potential_iterator_use): Rename to...
290 (md_reader::record_potential_iterator_use): ...this.
291 (rtx_reader::read_mapping): Rename to...
292 (md_reader::read_mapping): ...this.
293 (rtx_reader::read_rtx): Use rtx_reader_ptr when calling
295 (rtx_reader::read_rtx_operand): Use get_string_obstack rather
296 than directly accessing m_string_obstack.
297 (rtx_reader::rtx_reader): New ctor.
298 (rtx_reader::~rtx_reader): New dtor.
300 2016-12-07 Martin Sebor <msebor@redhat.com>
306 * builtins.c (expand_builtin_strcat, expand_builtin_strncat): New
308 (compute_dest_size, get_size_range, check_sizes, check_strncat_sizes)
309 (check_memop_sizes): Same.
310 (expand_builtin_memcpy): Call check memop_sizes.
311 (expand_builtin_mempcpy): Same.
312 (expand_builtin_memset): Same,
313 (expand_builtin_bzero): Same.
314 (expand_builtin_memory_chk): Call check_sizes.
315 (expand_builtin_strcpy): Same.
316 (expand_builtin_strncpy): Same.
317 (maybe_emit_sprintf_chk_warning): Same.
318 (expand_builtin): Handle strcat and strncat.
319 (fini_object_sizes): Reset pointers.
320 (compute_object_size): New function.
321 * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call):
322 Avoid issuing warnings also issued during built-in expansion.
323 * doc/invoke.texi (Warning Options): Document -Wstringop-overflow.
325 2016-12-07 Michael Meissner <meissner@linux.vnet.ibm.com>
328 * config/rs6000/rs6000.c (rs6000_expand_vector_init): If the
329 V2DImode elements are SUBREG's convert the result into DImode
330 rather than failing in emit_move_insn.
332 2016-12-07 Jakub Jelinek <jakub@redhat.com>
334 * builtins.c (fold_builtin_strstr): Removed.
335 (fold_builtin_2): Don't call fold_builtin_strstr.
336 * gimple-fold.c (gimple_fold_builtin_strchr): Check is_strrchr
337 earlier in the strrchr (x, 0) -> strchr (x, 0) optimization.
338 (gimple_fold_builtin_strstr): New function.
339 (gimple_fold_builtin): Call it.
340 * fold-const-call.c (fold_const_call): Handle CFN_BUILT_IN_STRSTR.
343 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Set lhs
344 var to lhs of new_stmt right before noreturn handling rather than to
345 lhs of e->call_stmt early.
347 2016-12-07 David Malcolm <dmalcolm@redhat.com>
349 * read-md.c (rtx_reader::require_char): New method.
350 (require_char_ws): Convert from function to...
351 (rtx_reader::require_char_ws): ...method.
352 (rtx_reader::require_word_ws): New method.
353 * read-md.h (rtx_reader::require_char): New method decl.
354 (require_char_ws): Remove global decl in favor of...
355 (rtx_reader::require_char_ws): ...new method decl.
356 (rtx_reader::require_word_ws): New method decl.
357 (rtx_reader::peek_char): New method decl.
359 2016-12-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
361 PR rtl-optimization/78617
362 * lra-remat.c (do_remat): Initialize live_hard_regs from live in
363 registers, also setting hard registers mapped to pseudo registers.
365 2016-12-07 David Malcolm <dmalcolm@redhat.com>
367 * cfgexpand.c (pass_expand::execute): Move stack initializations
368 to rtl_data::init_stack_alignment and call it.
369 * emit-rtl.c (rtl_data::init_stack_alignment): New method.
370 * emit-rtl.h (rtl_data::init_stack_alignment): New method.
372 2016-12-07 Wilco Dijkstra <wdijkstr@arm.com>
374 * gcc/ira.c (ira_setup_eliminable_regset): Initialize crtl->is_leaf.
375 (ira): Move initialization of crtl->is_leaf earlier.
377 2016-12-07 Wilco Dijkstra <wdijkstr@arm.com>
379 * config/aarch64/aarch64.md (movti_aarch64): Change Ump to m.
380 (movtf_aarch64): Likewise.
381 * config/aarch64/aarch64.c (aarch64_classify_address):
382 Use correct intersection of offsets.
383 (aarch64_legitimize_address_displacement): Use 9-bit signed offsets.
384 (aarch64_legitimize_address): Use 9-bit signed offsets for TI/TF mode.
385 Use 7-bit signed scaled mode for modes > 16 bytes.
387 2016-12-07 James Greenhalgh <james.greenhalgh@arm.com>
389 PR rtl-optimization/78561
390 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p) Use
391 constant_pool_empty_p in place of get_pool_size_upper_bound.
392 (rs6000_stack_info): Likewise.
393 (rs6000_emit_prologue): Likewise.
394 (rs6000_elf_declare_function_name): Likewise.
395 (rs6000_set_up_by_prologue): Likewise.
396 (rs6000_can_eliminate): Likewise.
397 * output.h (get_pool_size_upper_bound): Delete.
398 (constant_pool_empty_p): New.
399 * varasm.c (get_pool_size_upper_bound): Delete
400 (constant_pool_empty_p): New.
402 2016-12-07 Bin Cheng <bin.cheng@arm.com>
404 PR tree-optimization/78691
405 * match.pd ((convert1 (minmax ((convert2 (x) c)))) -> minmax (x c)):
406 Require integral type for the outer expression.
408 2016-12-07 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
410 * config/aarch64/aarch64.c
411 (aarch64_builtin_support_vector_misalignment): New.
412 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT): Define.
414 2016-12-06 David Malcolm <dmalcolm@redhat.com>
417 * config/i386/i386.c (ix86_test_dumping_memory_blockage):
418 Conditionalize the string comparison on Pmode == DImode.
420 2016-12-06 Tom de Vries <tom@codesourcery.com>
422 PR tree-optimization/67955
423 * tree-ssa-alias.c (same_addr_size_stores_p): New function.
424 (stmt_kills_ref_p): Use it.
426 2016-12-06 Eric Botcazou <ebotcazou@adacore.com>
429 * calls.c (expand_call): Move back call to prepare_call_address.
431 2016-12-06 Michael Meissner <meissner@linux.vnet.ibm.com>
434 * config/rs6000/rs6000.md (zero_extendqi<mode>2): Use ^ instead of
435 ?* constraints for the ISA 3.0 patterns, so the register allocator
436 is more likely to allocate QImode/HImode to vector registers for
437 conversion to floating point unless a reload is needed.
438 (zero_extendhi<mode>2): Likewise.
439 (float<QHI:mode><FP_ISA3:mode>2_internal): Properly deal with the
440 first alternative which is converting QImode/HImode to floating
441 point and the QImode/HImode value is in a vector register, and
442 does not allocate the second pseudo register. Remove zero
443 extending into traditional floating point registers, since the
444 instruction used only works on traditional altivec registers.
445 (floatuns<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
447 2016-12-06 David Malcolm <dmalcolm@redhat.com>
449 * config/i386/i386.c: Include print-rtl.h.
450 (selftest::ix86_test_dumping_memory_blockage): New function.
451 (selftest::ix86_run_selftests): Call it.
452 * print-rtl-function.c (print_rtx_function): Create an
453 rtx_reuse_manager and use it.
454 * print-rtl.c: Include "rtl-iter.h".
455 (rtx_writer::rtx_writer): Add reuse_manager param.
456 (rtx_reuse_manager::rtx_reuse_manager): New ctor.
457 (uses_rtx_reuse_p): New function.
458 (rtx_reuse_manager::preprocess): New function.
459 (rtx_reuse_manager::has_reuse_id): New function.
460 (rtx_reuse_manager::seen_def_p): New function.
461 (rtx_reuse_manager::set_seen_def): New function.
462 (rtx_writer::print_rtx): If "in_rtx" has a reuse ID, print it as a
463 prefix the first time in_rtx is seen, and print reuse_rtx
465 (print_inline_rtx): Supply NULL for new reuse_manager param.
466 (debug_rtx): Likewise.
467 (print_rtl): Likewise.
468 (print_rtl_single): Likewise.
469 (rtx_writer::print_rtl_single_with_indent): Likewise.
470 * print-rtl.h: Include bitmap.h when building for host.
471 (rtx_writer::rtx_writer): Add reuse_manager param.
472 (rtx_writer::m_rtx_reuse_manager): New field.
473 (class rtx_reuse_manager): New class.
474 * rtl-tests.c (selftest::assert_rtl_dump_eq): Add reuse_manager
475 param and use it when constructing rtx_writer.
476 (selftest::test_dumping_rtx_reuse): New function.
477 (selftest::rtl_tests_c_tests): Call it.
478 * selftest-rtl.h (class rtx_reuse_manager): New forward decl.
479 (selftest::assert_rtl_dump_eq): Add reuse_manager param.
480 (ASSERT_RTL_DUMP_EQ): Supply NULL for reuse_manager param.
481 (ASSERT_RTL_DUMP_EQ_WITH_REUSE): New macro.
483 2016-12-06 Vladimir Makarov <vmakarov@redhat.com>
486 * lra-lives.c (process_bb_lives): Update biggest mode for
487 implicitly used hard reg.
489 2016-12-06 Uros Bizjak <ubizjak@gmail.com>
491 * config/i386/predicates.md (general_gr_operand): New predicate.
492 * config/i386/i386.md (TImode and DImode push_operand splitter):
493 Use general_gr_operand. Macroize using DWI mode macro.
494 (TImode and DImode nonimmediate_operand splitter): Use
495 nonimmediate_gr_operand and general_gr_operand. Macroize using
497 (TF/XF/DFmode push_operand splitter): Use general_gr_operand.
498 (TFmode nonimmediate_operand splitter): Use nonimmediate_gr_operand
499 and general_gr_operand.
500 (XFmode nonimmediate_operand splitter): Ditto.
501 (DFmode nonimmediate_operand splitter): Ditto.
502 * config/i386/mmx.md (MMXMODE nonimmediate_operand splitter): Ditto.
504 2016-12-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
506 * config/arm/arm-cores.def (cortex-m23, cortex-m33): Move into
507 alphabetical order with respect to other ARMv8 processors.
508 * config/arm/arm-tables.opt: Regenerate.
509 * config/arm/arm-tune.md: Likewise.
511 2016-12-06 Robert Suchanek <robert.suchanek@imgtec.com>
513 * config/mips/mips.c (mips_expand_builtin_insn): Check input
514 ranges of literal integer arguments.
516 2016-12-06 Aldy Hernandez <aldyh@redhat.com>
519 * tree-ssa-uninit.c (simplify_preds_4): Call release() instead of
520 destroy_predicate_vecs.
521 (uninit_uses_cannot_happen): Make uninit_preds a scalar.
523 2016-12-06 Aldy Hernandez <aldyh@redhat.com>
526 * tree-ssa-uninit.c (can_one_predicate_be_invalidated_p): Change
527 argument type to a pred_chain.
528 (can_chain_union_be_invalidated_p): Use pred_chain instead of a
530 (flatten_out_predicate_chains): Remove.
531 (uninit_uses_cannot_happen): Rename from
532 uninit_ops_invalidate_phi_use.
533 Change logic so that we are checking that the PHI use will
534 invalidate _ALL_ possibly uninitialized operands.
535 (is_use_properly_guarded): Rename call to
536 uninit_ops_invalidate_phi_use into uninit_uses_cannot_happen.
538 2016-12-06 Tamar Christina <tamar.christina@arm.com>
540 * gcc/config/aarch64/arm_neon.h
541 (vreinterpretq_p8_p128, vreinterpretq_p16_p128): Added.
542 (vreinterpret_p64_p16, vreinterpretq_p64_p128): Likewise.
543 (vreinterpretq_p64_p16, vreinterpretq_p128_p8): Likewise.
544 (vreinterpretq_p128_p16, vreinterpretq_p128_f16): Likewise.
545 (vreinterpretq_p128_f32, vreinterpretq_p128_p64): Likewise.
546 (vreinterpretq_p128_s64, vreinterpretq_p128_u64): Likewise.
547 (vreinterpretq_p128_s8, vreinterpretq_p128_s16): Likewise.
548 (vreinterpretq_p128_s32, vreinterpretq_p128_u8): Likewise.
549 (vreinterpretq_p128_u16, vreinterpretq_p128_u32): Likewise.
550 (vreinterpretq_f16_p128, vreinterpretq_f32_p128): Likewise.
551 (vreinterpretq_s64_p128, vreinterpretq_u64_p128): Likewise.
552 (vreinterpretq_s8_p128, vreinterpretq_s16_p128): Likewise.
553 (vreinterpretq_s32_p128, vreinterpretq_u8_p128): Likewise.
554 (vreinterpretq_u16_p128, vreinterpretq_u32_p128): Likewise.
556 2016-12-06 Jakub Jelinek <jakub@redhat.com>
559 * fold-const.c (fold_comparison): Assume CONSTANT_CLASS_P (base0)
560 plus offset is non-zero. For maybe_nonzero_address decl base0,
561 require indirect_base0.
564 * fold-const-call.c (fold_const_call_1): Remove memchr handling here.
565 (fold_const_call) <case CFN_BUILT_IN_STRNCMP,
566 case CFN_BUILT_IN_STRNCASECMP>: Formatting improvements.
567 (fold_const_call) <case CFN_BUILT_IN_MEMCMP>: Likewise. If s2 is 0
568 and arguments have no side-effects, return 0.
569 (fold_const_call): Handle CFN_BUILT_IN_MEMCHR.
572 * fold-const-call.c (fold_const_call): Handle
573 CFN_BUILT_IN_{INDEX,STRCHR,RINDEX,STRRCHR}.
575 PR tree-optimization/78675
576 * tree-vect-loop.c (vectorizable_live_operation): For
577 VECTOR_BOOLEAN_TYPE_P vectype use integral type with bitsize precision
578 instead of TREE_TYPE (vectype) for the BIT_FIELD_REF.
580 2016-12-06 Eric Botcazou <ebotcazou@adacore.com>
583 * emit-rtl.c (verify_rtx_sharing) <CLOBBER>: Relax condition.
584 (copy_rtx_if_shared_1) <CLOBBER>: Likewise.
585 (copy_insn_1) <CLOBBER>: Likewise.
587 2016-12-05 Michael Meissner <meissner@linux.vnet.ibm.com>
590 * config/rs6000/rs6000.h (FUNCTION_VALUE_REGNO_P): Use IN_RANGE
591 instead of ((N) >= (X) && (N) <= (Y-X)) to silence warnings about
592 comparing signed to unsigned values.
593 (FUNCTION_ARG_REGNO_P): Likewise.
595 2016-12-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
596 Stefan Freudenberger <stefan@reservoir.com>
598 PR tree-optimization/78646
599 * gimple-ssa-strength-reduction.c (replace_ref): The pointer
600 addition used for the memory base expression should have the type
603 2016-12-05 Waldemar Brodkorb <wbx@openadk.org>
606 * config.gcc (*-*-uclinux*): Enable posix threads.
608 2016-12-05 Andrew Senkevich <andrew.senkevich@intel.com>
610 * config/i386/avx512bwintrin.h: Add new k-mask intrinsics.
611 * config/i386/avx512dqintrin.h: Ditto.
612 * config/i386/avx512fintrin.h: Ditto.
613 * config/i386/i386-builtin-types.def (UCHAR_FTYPE_UQI_UQI_PUCHAR,
614 UCHAR_FTYPE_UHI_UHI_PUCHAR, UCHAR_FTYPE_USI_USI_PUCHAR,
615 UCHAR_FTYPE_UDI_UDI_PUCHAR, UCHAR_FTYPE_UQI_UQI, UCHAR_FTYPE_UHI_UHI,
616 UCHAR_FTYPE_USI_USI, UCHAR_FTYPE_UDI_UDI, UQI_FTYPE_UQI_INT,
617 UHI_FTYPE_UHI_INT, USI_FTYPE_USI_INT, UDI_FTYPE_UDI_INT,
618 UQI_FTYPE_UQI, USI_FTYPE_USI, UDI_FTYPE_UDI, UQI_FTYPE_UQI_UQI): New
620 * config/i386/i386-builtin.def (__builtin_ia32_knotqi,
621 __builtin_ia32_knotsi, __builtin_ia32_knotdi,
622 __builtin_ia32_korqi, __builtin_ia32_korsi, __builtin_ia32_kordi,
623 __builtin_ia32_kxnorqi, __builtin_ia32_kxnorsi,
624 __builtin_ia32_kxnordi, __builtin_ia32_kxorqi, __builtin_ia32_kxorsi,
625 __builtin_ia32_kxordi, __builtin_ia32_kandqi,
626 __builtin_ia32_kandsi, __builtin_ia32_kanddi, __builtin_ia32_kandnqi,
627 __builtin_ia32_kandnsi, __builtin_ia32_kandndi): New.
628 * config/i386/i386.c (ix86_expand_args_builtin): Handle new types.
630 2016-12-05 Segher Boessenkool <segher@kernel.crashing.org>
632 * combine.c: Revert r243162.
634 2016-12-05 Paolo Bonzini <bonzini@gnu.org>
636 * match.pd: Simplify X ? C : 0 where C is a power of 2 and
637 X tests a single bit.
639 2016-12-05 Nathan Sidwell <nathan@acm.org>
641 * diagnostic.c (diagnostic_check_max_errors): New, broken out of ...
642 (diagnostic_action_after_output): ... here.
643 (diagnostic_report_diagnostic): Call it for non-notes.
644 * diagnostic.h (struct diagnostic_context): Make max_errors signed int.
645 (diagnostic_check_max_errors): Declare.
647 2016-12-05 Cupertino Miranda <cmiranda@synopsys.com>
649 * config/arc/arc.h (STARTFILE_SPEC): Use default linux specs.
650 (ENDFILE_SPEC): Likewise.
652 2016-12-05 Claudiu Zissulescu <claziss@synopsys.com>
654 * config/arc/arc-protos.h (insn_is_tls_gd_dispatch): Remove.
655 * config/arc/arc.c (arc_unspec_offset): New function.
656 (arc_finalize_pic): Change.
657 (arc_emit_call_tls_get_addr): Likewise.
658 (arc_legitimize_tls_address): Likewise.
659 (arc_legitimize_pic_address): Likewise.
660 (insn_is_tls_gd_dispatch): Remove.
661 * config/arc/arc.h (INSN_REFERENCES_ARE_DELAYED): Change.
662 * config/arc/arc.md (ls_gd_load): Remove unused pattern.
663 (tls_gd_dispatch): Likewise.
665 2016-12-05 Andre Vieira <andre.simoesdiasvieira@arm.com>
667 * config/arm/arm.c (TARGET_ASM_INIT_SECTIONS): Fix wrong undef
670 2016-12-05 Eric Botcazou <ebotcazou@adacore.com>
672 * config/sparc/sparc-protos.h (sparc_splitdi_legitimate): Rename to...
673 (sparc_split_reg_mem_legitimate): ...this.
674 (sparc_split_reg_mem): Declare.
675 (sparc_split_mem_reg): Likewise.
676 (sparc_split_regreg_legitimate): Rename to...
677 (sparc_split_reg_reg_legitimate): ...this.
678 * config/sparc/sparc.c (sparc_splitdi_legitimate): Rename to...
679 (sparc_split_reg_mem_legitimate): ...this.
680 (sparc_split_reg_mem): New function.
681 (sparc_split_mem_reg): Likewise.
682 (sparc_split_regreg_legitimate): Rename to...
683 (sparc_split_reg_reg_legitimate): ...this.
684 (sparc_split_reg_reg): New function.
685 * config/sparc/sparc.md (lra): Remove "none" value.
686 (enabled): Adjust to above change.
687 (*movdi_insn_sp32): Remove new (r,T) alternative and reorder others.
688 (DImode splitters): Adjust to above renamings and use new functions.
689 (*movdf_insn_sp32): Remove new (r,T) alternative and reorder others.
690 (DFmode splitters): Adjust to above renamings and use new functions.
691 (*mov<VM64:mode>_insn_sp64): Replace C with Z constraint and use W
692 constraint in conjunction with e.
693 (*mov<VM64:mode>_insn_sp32): Remove new (r,T) alternative, add (o,Y)
694 alternative and reorder others.
695 (VM64:mode splitters): Adjust to above renamings and use new functions.
697 2016-12-04 Martin Sebor <msebor@redhat.com>
700 * builtin-attrs.def (ATTR_ALLOC_SIZE, ATTR_RETURNS_NONNULL): New
701 identifier tree nodes.
702 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): New attribute list.
703 (ATTR_MALLOC_SIZE_1_NOTHROW_LIST): Same.
704 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Same.
705 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Same.
706 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Same.
707 * builtins.def (aligned_alloc, calloc, malloc, realloc):
708 Add attribute alloc_size.
709 (alloca): Add attribute alloc_size and returns_nonnull.
711 2016-12-04 Uros Bizjak <ubizjak@gmail.com>
714 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Handle NEG.
715 (dimode_scalar_chain::compute_convert_gain): Ditto.
716 (dimode_scalar_chain::convert_insn): Ditto.
718 2016-12-03 Eric Botcazou <ebotcazou@adacore.com>
720 * lra-constraints.c (emit_spill_move): Use gen_lowpart_SUBREG in all
721 cases to build a lowpart SUBREG.
723 2016-12-03 Eric Botcazou <ebotcazou@adacore.com>
724 David S. Miller <davem@davemloft.net>
726 * config/sparc/constraints.md (U): Adjust comment.
727 * config/sparc/sparc.md (lra): New attribute.
728 (enabled): For base instructions, if the lra attribute is set,
729 return 1 if it is in keeping with TARGET_LRA.
730 (*movdi_insn_sp32): Add lra attribute for alternatives mentioning U
731 constraint and duplicate them with U replaced by r.
732 (*movdf_insn_sp32): Likewise.
733 (*mov<VM64:mode>_insn_sp32): Likewise.
734 (*movtf_insn_sp32): Remove alternatives mentioning U constraint.
736 2016-12-02 Jeff Law <law@redhat.com>
738 * config/arm/arm.c (arm_handle_cmse_nonsecure_call): Remove unused
739 variable main_variant.
741 2016-12-02 Michael Meissner <meissner@linux.vnet.ibm.com>
743 * config.gcc (powerpc*-*-linux*): Set gnu-indirect-function by
744 default on PowerPC linux systems.
746 2016-12-02 Segher Boessenkool <segher@kernel.crashing.org>
748 PR rtl-optimization/78638
749 * simplify-rtx.c (simplify_truncation): M2 is not mode, it is
750 GET_MODE (op). Fix this.
752 2016-12-02 David Malcolm <dmalcolm@redhat.com>
755 * selftest.c (selftest::assert_strndup_eq): Rename to...
756 (selftest::assert_xstrndup_eq): ...this, and remove call to
758 (selftest::test_strndup): Rename to...
759 (selftest::test_xstrndup): ...this, updating for above renaming.
760 (selftest::test_libiberty): Update for renaming.
762 2016-12-02 Michael Meissner <meissner@linux.vnet.ibm.com>
765 * config/rs6000/rs6000.md (movdi_internal64): Fix typo in
766 subversion id 242679 that causes the wrong store instruction to be
767 generated if a DImode is in an Altivec register using REG+REG
770 2016-12-02 Uros Bizjak <ubizjak@gmail.com>
773 * config/i386/i386.md (*andndi3_doubleword): Add non-BMI alternative
774 and corresponding post-reload splitter.
776 2016-12-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
778 * config/aarch64/aarch64.h (machine_function): Add
779 reg_is_wrapped_separately field.
780 * config/aarch64/aarch64.md (LAST_SAVED_REGNUM): Define new constant.
781 * config/aarch64/aarch64.c (emit_set_insn): Change return type to
783 (aarch64_save_callee_saves): Don't save registers that are wrapped
785 (aarch64_restore_callee_saves): Don't restore registers that are
787 (offset_9bit_signed_unscaled_p, offset_12bit_unsigned_scaled_p,
788 aarch64_offset_7bit_signed_scaled_p): Move earlier in the file.
789 (aarch64_get_separate_components): New function.
790 (aarch64_get_next_set_bit): Likewise.
791 (aarch64_components_for_bb): Likewise.
792 (aarch64_disqualify_components): Likewise.
793 (aarch64_emit_prologue_components): Likewise.
794 (aarch64_emit_epilogue_components): Likewise.
795 (aarch64_set_handled_components): Likewise.
796 (aarch64_process_components): Likewise.
797 (TARGET_SHRINK_WRAP_GET_SEPARATE_COMPONENTS,
798 TARGET_SHRINK_WRAP_COMPONENTS_FOR_BB,
799 TARGET_SHRINK_WRAP_DISQUALIFY_COMPONENTS,
800 TARGET_SHRINK_WRAP_EMIT_PROLOGUE_COMPONENTS,
801 TARGET_SHRINK_WRAP_EMIT_EPILOGUE_COMPONENTS,
802 TARGET_SHRINK_WRAP_SET_HANDLED_COMPONENTS): Define.
804 2016-12-02 Martin Jambor <mjambor@suse.cz>
806 * passes.def: Move pass_rebuild_cgraph_edges to the end of
807 pass_build_ssa_passes.
809 2016-12-02 Uros Bizjak <ubizjak@gmail.com>
811 * config/alpha/alpha.md (exception_receiver): Copy
812 alpha_gp_ave_rtx return value.
814 2016-12-02 Tadek Kijkowski <tkijkowski@gmail.com>
816 * Makefile.in (PREPROCESSOR_DEFINES): Add a level of indirection
817 for several include directories that may be relative to sysroot.
818 * config/i386/x-mingw32 (gplus_includedir): Define.
819 (gplus_tool_includedir, gplus_backward_include_dir): Likewise.
820 (native_system_includedir): Likewise.
821 * config/i386/mingw32.h (STANDARD_STARTFILE_PREFIX_1): Do not
822 override if TARGET_SYSTEM_ROOT is defined.
823 (NATIVE_SYSTEM_HEADER_DIR): Likewise.
825 2016-12-02 Jakub Jelinek <jakub@redhat.com>
828 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Handle NOT.
829 (dimode_scalar_chain::compute_convert_gain): Likewise.
830 (dimode_scalar_chain::convert_insn): Likewise.
831 * config/i386/i386.md (*one_cmpldi2_doubleword): New
832 define_insn_and_split.
833 (one_cmpl<mode>2): Use SWIM1248x iterator instead of SWIM.
836 * rtl.c (copy_rtx): Don't clear used flag here.
837 (shallow_copy_rtx_stat): Clear used flag here unless code the rtx
839 * simplify-rtx.c (simplify_replace_fn_rtx): When copying rtx with
840 'E' in format, copy all vectors.
841 * emit-rtl.c (copy_insn_1): Don't clear used flag here.
842 * valtrack.c (cleanup_auto_inc_dec): Likewise.
843 * config/rs6000/rs6000.c (rs6000_frame_related): Likewise.
845 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
846 Thomas Preud'homme <thomas.preudhomme@arm.com>
848 * config/arm/arm-builtins.c (arm_builtins): Define
849 ARM_BUILTIN_CMSE_NONSECURE_CALLER.
850 (bdesc_2arg): Add line for cmse_nonsecure_caller.
851 (arm_init_builtins): Handle cmse_nonsecure_caller.
852 (arm_expand_builtin): Likewise.
853 * config/arm/arm_cmse.h (cmse_nonsecure_caller): New.
855 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
856 Thomas Preud'homme <thomas.preudhomme@arm.com>
858 * config/arm/arm.c (detect_cmse_nonsecure_call): New.
859 (cmse_nonsecure_call_clear_caller_saved): New.
860 (arm_reorg): Use cmse_nonsecure_call_clear_caller_saved.
861 (arm_function_ok_for_sibcall): Disable sibcalls for
863 * config/arm/arm-protos.h (detect_cmse_nonsecure_call): New.
864 * config/arm/arm.md (call): Handle cmse_nonsecure_entry.
865 (call_value): Likewise.
866 (nonsecure_call_internal): New.
867 (nonsecure_call_value_internal): New.
868 * config/arm/thumb1.md (*nonsecure_call_reg_thumb1_v5): New.
869 (*nonsecure_call_value_reg_thumb1_v5): New.
870 * config/arm/thumb2.md (*nonsecure_call_reg_thumb2): New.
871 (*nonsecure_call_value_reg_thumb2): New.
872 * config/arm/unspecs.md (UNSPEC_NONSECURE_MEM): New.
874 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
875 Thomas Preud'homme <thomas.preudhomme@arm.com>
877 * config/arm/arm.c (gimplify.h): New include.
878 (arm_handle_cmse_nonsecure_call): New.
879 (arm_attribute_table): Added cmse_nonsecure_call.
880 (arm_comp_type_attributes): Deny compatibility of function types
881 with without the cmse_nonsecure_call attribute.
882 * doc/extend.texi (ARM ARMv8-M Security Extensions): New attribute.
884 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
885 Thomas Preud'homme <thomas.preudhomme@arm.com>
887 * config/arm/arm.c (output_return_instruction): Clear
889 (thumb2_expand_return): Likewise.
890 (thumb1_expand_epilogue): Likewise.
891 (thumb_exit): Likewise.
892 (arm_expand_epilogue): Likewise.
893 (cmse_nonsecure_entry_clear_before_return): New.
894 (comp_not_to_clear_mask_str_un): New.
895 (compute_not_to_clear_mask): New.
896 * config/arm/thumb1.md (*epilogue_insns): Change length attribute.
897 * config/arm/thumb2.md (*thumb2_return): Disable for
898 cmse_nonsecure_entry functions.
899 (*thumb2_cmse_entry_return): Duplicate thumb2_return pattern for
900 cmse_nonsecure_entry functions.
902 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
903 Thomas Preud'homme <thomas.preudhomme@arm.com>
905 * config/arm/arm.c (use_return_insn): Change to return with bxns
906 when cmse_nonsecure_entry.
907 (output_return_instruction): Likewise.
908 (arm_output_function_prologue): Likewise.
909 (thumb_pop): Likewise.
910 (thumb_exit): Likewise.
911 (thumb2_expand_return): Assert that entry functions always have simple
913 (arm_expand_epilogue): Handle entry functions.
914 (arm_function_ok_for_sibcall): Disable sibcall for entry functions.
915 (arm_asm_declare_function_name): New.
916 * config/arm/arm-protos.h (arm_asm_declare_function_name): New.
917 * config/arm/elf.h (ASM_DECLARE_FUNCTION_NAME): Redefine to
918 use arm_asm_declare_function_name.
920 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
921 Thomas Preud'homme <thomas.preudhomme@arm.com>
923 * config/arm/arm.c (arm_handle_cmse_nonsecure_entry): New.
924 (arm_attribute_table): Added cmse_nonsecure_entry
925 (arm_compute_func_type): Handle cmse_nonsecure_entry.
926 (cmse_func_args_or_return_in_stack): New.
927 (arm_handle_cmse_nonsecure_entry): New.
928 * config/arm/arm.h (ARM_FT_CMSE_ENTRY): New macro define.
929 (IS_CMSE_ENTRY): Likewise.
930 * doc/extend.texi (ARM ARMv8-M Security Extensions): New attribute.
932 2016-12-02 Andre Vieira <andre.simoesdiasvieira@arm.com>
933 Thomas Preud'homme <thomas.preudhomme@arm.com>
935 * config.gcc (extra_headers): Added arm_cmse.h.
936 * config/arm/arm-arches.def (ARM_ARCH):
937 (armv8-m): Add FL2_CMSE.
938 (armv8-m.main): Likewise.
939 (armv8-m.main+dsp): Likewise.
941 (arm_cpu_builtins): Added __ARM_FEATURE_CMSE macro.
942 * config/arm/arm-flags.h: Define FL2_CMSE.
943 * config/arm.c (arm_arch_cmse): New.
944 (arm_option_override): New error for unsupported cmse target.
945 * config/arm/arm.h (arm_arch_cmse): New.
946 * config/arm/arm.opt (mcmse): New.
947 * config/arm/arm_cmse.h: New file.
948 * doc/invoke.texi (ARM Options): Add -mcmse.
949 * doc/sourcebuild.texi (arm_cmse_ok): Add new effective target.
950 * doc/extend.texi: Add ARMv8-M Security Extensions entry.
952 2016-12-02 Georg-Johann Lay <avr@gjlay.de>
954 * config/avr/avr.c: Fix coding rule glitches.
956 2016-12-02 Martin Jambor <mjambor@suse.cz>
958 * hsa.c (hsa_callable_function_p): Return false for artificial
961 2016-12-02 James Greenhalgh <james.greenhalgh@arm.com>
963 PR rtl-optimization/78561
964 * varasm.c (recompute_pool_offsets): New.
965 (output_constant_pool): Call it.
967 2016-12-02 James Greenhalgh <james.greenhalgh@arm.com>
969 PR rtl-optimization/78561
970 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p) Rename
971 get_pool_size to get_pool_size_upper_bound.
972 (rs6000_stack_info): Likewise.
973 (rs6000_emit_prologue): Likewise.
974 (rs6000_elf_declare_function_name): Likewise.
975 (rs6000_set_up_by_prologue): Likewise.
976 (rs6000_can_eliminate): Likewise, reformat spaces to tabs.
977 * output.h (get_pool_size): Rename to...
978 (get_pool_size_upper_bound): ...This.
979 * varasm.c (get_pool_size): Rename to...
980 (get_pool_size_upper_bound): ...This.
982 2016-12-02 Bin Cheng <bin.cheng@arm.com>
984 * match.pd: Add new pattern:
985 (cond (cmp (convert? x) c1) (op x c2) c3) -> (op (minmax x c1) c2).
987 2016-12-02 Nathan Sidwell <nathan@acm.org>
989 * diagnostic.c (diagnostic_report_diagnostic): Remove extraneous
992 2016-12-02 Aldy Hernandez <aldyh@redhat.com>
995 * gimple-ssa-warn-alloca.c (alloca_call_type): Handle
998 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1000 * config/s390/s390.c (s390_save_gprs_to_fprs): Fix RTL sharing
1003 2016-12-02 Georg-Johann Lay <avr@gjlay.de>
1005 * config/avr/avr-arch.h (avr_mcu_t) [n_flash]: Remove field.
1006 * config/avr/avr-devices.c (AVR_MCU): Remove N_FLASH macro argument.
1007 * config/avr/avr-mcus.def (AVR_MCU): Remove initializer for n_flash.
1008 * config/avr/avr.c (avr_set_core_architecture) [avr_n_flash]: Use
1009 avr_mcu_types.flash_size to compute default value.
1010 * config/avr/gen-avr-mmcu-specs.c (print_mcu) [cc1_n_flash]: Use
1011 mcu->flash_size to compute value for spec.
1013 2016-12-02 Georg-Johann Lay <avr@gjlay.de>
1015 * doc/invoke.texi (AVR Options) [-mabsdata]: Point to absdata.
1016 * doc/extend.texi (AVR Variable Attributes) [progmem]: Hint
1017 about linker description to avoid progmem altogether.
1018 [absdata]: Point to -mabsdata option.
1020 2016-12-02 Jakub Jelinek <jakub@redhat.com>
1022 PR rtl-optimization/78547
1023 * emit-rtl.c (unshare_all_rtl): Make sure DECL_RTL and
1024 DECL_INCOMING_RTL is not shared.
1025 * config/i386/i386.c (convert_scalars_to_vectors): If any
1026 insns have been converted, adjust all parameter's DEC_RTL and
1027 DECL_INCOMING_RTL back from V1TImode to TImode if the parameters have
1030 PR rtl-optimization/78575
1031 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses): Use
1032 DF infrastructure to wrap all V1TImode reg uses into TImode subreg
1033 if not already wrapped in a subreg. Make sure df_insn_rescan does not
1034 affect further iterations.
1036 2016-12-02 Martin Liska <mliska@suse.cz>
1039 * sreal.c (sreal::to_int): Make absolute value before shifting.
1040 (sreal::operator/): Likewise.
1041 (sreal_verify_negative_division): New test.
1042 (void sreal_c_tests): Call the new test.
1043 * sreal.h (sreal::normalize_up): Use new SREAL_ABS and
1045 (sreal::normalize_down): Likewise.
1047 2016-12-02 Dominik Vogt <vogt@linux.vnet.ibm.com>
1049 * combine.c (combine_simplify_rtx): Suppress replacement of
1050 "(and (reg) (const_int bit))" with "if_then_else".
1052 2016-12-02 Dominik Vogt <vogt@linux.vnet.ibm.com>
1055 * config/s390/s390.md ("extzv")
1056 ("*extzv<mode><clobbercc_or_nocc>")
1057 ("*extzvdi<clobbercc_or_nocc>_lshiftrt")
1058 ("*<risbg_n>_ior_and_sr_ze")
1059 ("*extract1bitdi<clobbercc_or_nocc>")
1060 ("*insv<mode><clobbercc_or_nocc>", "*insv_rnsbg_noshift")
1061 ("*insv_rnsbg_srl", "*insv<mode>_mem_reg")
1062 ("*insvdi_mem_reghigh", "*insvdi_reg_imm"): Use EXTRACT_ARGS_IN_RANGE
1063 to validate the arguments of zero_extract and sign_extract.
1065 2016-12-02 Dominik Vogt <vogt@linux.vnet.ibm.com>
1068 * rtl.h (EXTRACT_ARGS_IN_RANGE): New.
1070 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1072 * gcc/config/s390/s390.c (s390_builtin_vectorization_cost): New
1074 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Define target
1077 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1079 * config/s390/vector.md (vec_halfhalf): New mode iterator.
1080 ("vec_pack_trunc_<mode>", "vec_pack_ssat_<mode>")
1081 ("vec_pack_usat_<mode>", "vec_unpacks_hi_v16qi")
1082 ("vec_unpacks_low_v16qi", "vec_unpacku_hi_v16qi")
1083 ("vec_unpacku_low_v16qi", "vec_unpacks_hi_v8hi")
1084 ("vec_unpacks_lo_v8hi", "vec_unpacku_hi_v8hi")
1085 ("vec_unpacku_lo_v8hi", "vec_unpacks_hi_v4si")
1086 ("vec_unpacks_lo_v4si", "vec_unpacku_hi_v4si")
1087 ("vec_unpacku_lo_v4si"): New pattern definitions.
1088 * config/s390/vx-builtins.md: Move VI_HW_HSD mode iterator to
1091 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1093 * config/s390/s390-protos.h (s390_reverse_condition): New
1095 * config/s390/s390.c (s390_canonicalize_comparison): Fold compares
1097 (s390_reverse_condition): New function.
1098 * config/s390/s390.h (REVERSE_CC_MODE, REVERSE_CONDITION): Define
1101 2016-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1103 * config/s390/s390-modes.def (CCVEQANY, CCVH, CCVHANY, CCVHU)
1104 (CCVHUANY): Remove modes.
1105 (CCVIH, CCVIHU, CCVIALL, CCVIANY, CCVFALL, CCVFANY): Add modes and
1107 * config/s390/s390.c (s390_match_ccmode_set): Rename cc modes.
1108 (s390_expand_vec_compare_scalar): Pick one of the cc consumer
1110 (s390_branch_condition_mask): Adjust to use the new cc consumer
1111 modes. The new modes allow for proper reversal in the middle-end.
1112 (s390_expand_vec_compare_cc): Determine the proper cc producer and
1113 consumer modes for a comparison.
1114 * config/s390/s390.md: Rename CCVH to CCVIH and CCVHU to CCVIHU
1115 throughout the file.
1116 * config/s390/vx-builtins.md: Likewise.
1118 2016-12-02 Maxim Ostapenko <m.ostapenko@samsung.com>
1120 * asan.c (asan_global_struct): Refactor.
1121 (create_odr_indicator): New function.
1122 (asan_needs_odr_indicator_p): Likewise.
1123 (is_odr_indicator): Likewise.
1124 (asan_add_global): Introduce odr_indicator_ptr. Pass it into global's
1126 (asan_protect_global): Do not protect odr indicators.
1128 2016-12-01 Jeff Law <law@redhat.com>
1130 * tree-ssa-threadedge.c
1131 (record_temporary_equivalences_from_stmts_at_dest): Avoid temporary
1132 propagation of operands if there are no operands.
1134 2016-12-02 Jakub Jelinek <jakub@redhat.com>
1136 PR tree-optimization/78586
1137 * gimple-ssa-sprintf.c (format_integer): Don't handle NOP_EXPR,
1138 CONVERT_EXPR or COMPONENT_REF here. Formatting fix. For
1139 SSA_NAME_DEF_STMT with NOP_EXPR only change argtype if the rhs1's
1140 type is INTEGER_TYPE or POINTER_TYPE.
1142 2016-12-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
1145 * config/rs6000/vsx.md (vextuhlx): Revise mode of operand 2.
1146 (vextuhrx): Likewise.
1147 (vextuwlx): Likewise.
1148 (vextuwrx): Likewise.
1150 2016-12-01 David Malcolm <dmalcolm@redhat.com>
1152 * dwarf2out.c (dwarf2out_c_finalize): Reset early_dwarf and
1153 early_dwarf_finished.
1155 2016-12-01 Eric Botcazou <ebotcazou@adacore.com>
1156 David S. Miller <davem@davemloft.net>
1158 * config/sparc/sparc.opt (mlra): New target option.
1159 * config/sparc/sparc.c (TARGET_LRA_P): Define to...
1160 (sparc_lra_p): ...this. New function.
1161 (D_MODES, DF_MODES): Add missing cast.
1162 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
1163 provide these insns when flag_pic.
1164 (sethi_di_medlow, losum_di_medlow, seth44, setm44, setl44, sethh,
1165 setlm, sethm, setlo, embmedany_sethi, embmedany_losum,
1166 embmedany_brsum, embmedany_textuhi, embmedany_texthi,
1167 embmedany_textulo, embmedany_textlo): Likewise.
1168 (sethi_di_medlow_embmedany_pic): Provide it only with flag_pic.
1170 2016-12-01 David Edelsohn <dje.gcc@gmail.com>
1174 * dbxout.c (dbxout_type_fields): Skip TEMPLATE_DECLs.
1176 2016-12-01 Richard Biener <rguenther@suse.de>
1177 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1179 * vec.h (vec<T, A, vl_embed>::quick_grow_cleared): Guard call to
1180 memset if len-oldlen != 0.
1181 (vec<T, va_heap, vl_ptr>::safe_grow_cleared): Likewise.
1183 2016-12-01 Uros Bizjak <ubizjak@gmail.com>
1185 * config/i386/i386.md (*andndi3_doubleword): Depend on TARGET_SSE2.
1187 2016-12-01 Georg-Johann Lay <avr@gjlay.de>
1189 * config/avr/avr.c: Fix coding rule glitches.
1191 2016-12-01 Markus Trippelsdorf <markus@trippelsdorf.de>
1193 PR tree-optimization/78598
1194 * tree-ssa-loop-prefetch.c (ddown): Cast to signed to avoid
1197 2016-12-01 Markus Trippelsdorf <markus@trippelsdorf.de>
1199 PR rtl-optimization/78596
1200 * combine.c (simplify_comparison): Cast to unsigned to avoid
1201 left shifting of negative value.
1203 2016-12-01 Matthias Klose <doko@ubuntu.com>
1205 * doc/install.texi: Don't use pkg-config to check for bdw-gc.
1207 2016-12-01 Richard Biener <rguenther@suse.de>
1209 * tree-ssa-alias.c (indirect_refs_may_alias_p): Do not
1210 treat arrays with same type as objects that cannot overlap.
1212 2016-12-01 Georg-Johann Lay <avr@gjlay.de>
1214 * config/avr/avr.c (avr_print_operand): Use SYMBOL_REF_P if possible.
1215 (avr_handle_addr_attribute, avr_asm_output_aligned_decl_common)
1216 (avr_asm_asm_output_aligned_bss, avr_addr_space_convert): Dito.
1218 2016-12-01 Jakub Jelinek <jakub@redhat.com>
1221 * dwarf2out.c (loc_descr_plus_const): For negative offset use
1222 uint_loc_descriptor instead of int_loc_descriptor and perform negation
1223 in unsigned HOST_WIDE_INT type.
1224 (scompare_loc_descriptor): Shift UINTVAL left instead of INTVAL.
1227 * config/rs6000/rs6000.c (rs6000_frame_related): Call
1228 set_used_flags (pat) before any simplifications. Clear used flag on
1229 PARALLEL copy. Don't guard add_reg_note call. Call
1230 copy_rtx_if_shared on pat before storing it into
1231 REG_FRAME_RELATED_EXPR.
1233 2016-12-01 Alan Modra <amodra@gmail.com>
1235 * gcc/config/rs6000/rs6000.c (insn_is_swappable_p): Properly
1236 look inside UNSPEC_VSX_XXSPLTW vec.
1238 2016-12-01 Segher Boessenkool <segher@kernel.crashing.org>
1240 PR rtl-optimization/78607
1241 * combine.c (try_combine): Emit a barrier after a unconditional trap.
1243 2016-11-30 Michael Meissner <meissner@linux.vnet.ibm.com>
1246 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): If the
1247 element is not a constant or in a register, force it to a
1251 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Force value
1252 that will be set to a vector element to be in a register.
1253 * config/rs6000/vsx.md (vsx_set_<mode>_p9): Fix thinko that used
1254 the wrong multiplier to convert the element number to a byte
1257 2016-11-30 Vladimir Makarov <vmakarov@redhat.com>
1259 PR tree-optimization/77856
1260 * lra-constraints.c (inherit_in_ebb): Check original regno for
1261 invalid invariant regs too. Set only clobbered hard regs for the
1262 invalid invariant regs.
1264 2016-11-30 Pitchumani Sivanupandi <pitchumani.sivanupandi@microchip.com>
1266 Commit files forgotten in r242966.
1268 * config/avr/avr-arch.h (avr_mcu_t) [flash_size]: New member.
1269 * config/avr/avr-devices.c (avr_mcu_types): Add flash size info.
1270 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Remove hard-coded
1271 prefix check to find wrap-around value, instead use MCU flash size.
1272 For 8k flash devices, update link_pmem_wrap spec string to
1273 add --pmem-wrap-around=8k.
1274 * config/avr/specs.h (LINK_RELAX_SPEC): Move link_pmem_wrap from
1276 (LINK_SPEC): ...to here.
1278 2016-11-30 David Malcolm <dmalcolm@redhat.com>
1281 * selftest.c (selftest::assert_strndup_eq): New function.
1282 (selftest::test_strndup): New function.
1283 (selftest::test_libiberty): New function.
1284 (selftest::selftest_c_tests): Call test_libiberty.
1286 2016-11-30 Segher Boessenkool <segher@kernel.crashing.org>
1288 PR rtl-optimization/78610
1289 * ira.c (combine_and_move_insns): Don't substitute into TRAP_IF
1292 2016-11-30 Bin Cheng <bin.cheng@arm.com>
1294 PR tree-optimization/78574
1295 * tree-ssa-loop-ivopts.c (find_deriving_biv_for_expr): Skip loop
1296 header PHI that doesn't define biv.
1298 2016-11-30 Jakub Jelinek <jakub@redhat.com>
1300 * emit-rtl.c (verify_insn_sharing): Call verify_rtx_sharing instead of
1303 * config/i386/i386.c (dimode_scalar_chain::convert_op): Avoid
1304 sharing the SUBREG rtx between move and following insn.
1306 * ira.c (ira_update_equiv_info_by_shuffle_insn): Use copy_rtx
1307 for REG_EQUIV argument.
1309 2016-11-30 Thomas Preud'homme <thomas.preudhomme@arm.com>
1311 * config/arm/t-rmprofile: Add mappings for Cortex-M23 and Cortex-M33.
1313 2016-11-30 Markus Trippelsdorf <markus@trippelsdorf.de>
1316 * real.c (real_hash): Add cast to avoid left
1317 shifting of negative values.
1319 2016-11-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1322 * config/aarch64/aarch64.md (add<mode>3): Extract inner expression
1323 from a subreg in operands[1] and don't call REGNO on a non-reg
1324 expression when deciding to force operands[2] into a reg.
1326 2016-11-30 Claudiu Zissulescu <claziss@synopsys.com>
1327 Andrew Burgess <andrew.burgess@embecosm.com>
1329 * config/arc/arc-protos.h (arc_store_addr_hazard_p): Declare.
1330 * config/arc/arc.c (arc_store_addr_hazard_p): New function.
1331 (workaround_arc_anomaly): Call arc_store_addr_hazard_p for ARC700.
1332 * config/arc/arc700.md: Add define_bypass for store/load.
1334 2016-11-30 Martin Liska <mliska@suse.cz>
1336 * cgraph.c (symbol_table::initialize): Initialize
1337 ipa_clones_dump_file.
1338 (cgraph_node::remove): Report to ipa_clones_dump_file.
1339 * cgraph.h: Add new argument (suffix) to cloning methods.
1340 * cgraphclones.c (dump_callgraph_transformation): New function.
1341 (cgraph_node::create_clone): New argument.
1342 (cgraph_node::create_virtual_clone): Likewise.
1343 (cgraph_node::create_version_clone): Likewise.
1344 * dumpfile.c: Add .ipa-clones dump file.
1345 * dumpfile.h (enum tree_dump_index): Add TDI_clones
1346 * ipa-inline-transform.c (clone_inlined_nodes): Report operation
1347 to dump_callgraph_transformation.
1349 2016-11-30 Martin Liska <mliska@suse.cz>
1352 * asan.c (asan_expand_mark_ifn): Properly
1353 select a VAR_DECL from FRAME.* component reference.
1355 2016-11-30 Segher Boessenkool <segher@kernel.crashing.org>
1357 PR rtl-optimization/78583
1358 * simplify-rtx.c (simplify_truncation): Add check missing from the
1361 2016-11-30 Segher Boessenkool <segher@kernel.crashing.org>
1363 PR rtl-optimization/78590
1364 * combine.c (change_zero_ext): Transform zero_extend of subregs only
1365 if the subreg_reg is a scalar integer mode.
1367 2016-11-30 Jakub Jelinek <jakub@redhat.com>
1369 PR tree-optimization/78586
1370 * gimple-ssa-sprintf.c (format_integer): Use TYPE_MAX_VALUE or
1371 TYPE_MIN_VALUE or build_all_ones_cst instead of folding LSHIFT_EXPR.
1372 Don't build_int_cst min/max twice. Formatting fix.
1374 2016-11-30 Markus Trippelsdorf <markus@trippelsdorf.de>
1376 PR rtl-optimization/78588
1377 * combine.c (if_then_else_cond): Also guard against BLKmode.
1378 * rtlanal.c (num_sign_bit_copies1): Add assert.
1380 2016-11-29 Jeff Law <law@redhat.com>
1382 * common/config/arc/arc-common.c (arc_handle_option): Remove unused
1385 * lra-constraints.c (check_and_process_move): Constrain the
1386 range of DCLASS and SCLASS to avoid false positive out of bounds
1387 array index warning.
1389 2016-11-29 David Malcolm <dmalcolm@redhat.com>
1391 * doc/install.texi (--with-target-bdw-gc): Remove stray '@'.
1393 2016-11-29 David Malcolm <dmalcolm@redhat.com>
1395 PR preprocessor/78569
1396 * input.c (get_substring_ranges_for_loc): Fail gracefully if
1397 line directives were present.
1399 2016-11-30 Matthias Klose <doko@ubuntu.com>
1401 * doc/install.texi: Document configure options --enable-objc-gc
1402 and --with-target-bdw-gc.
1404 2016-11-29 Michael Meissner <meissner@linux.vnet.ibm.com>
1407 * config/rs6000/rs6000.md (mov<mode>_internal, QHI iterator): Add
1408 'x' to stxsi<wd>x print pattern, so that QImode and HImode values
1409 residing in traditional altivec registers can be stored
1412 2016-11-29 Max Filippov <jcmvbkbc@gmail.com>
1415 * config/xtensa/xtensa.c (hwloop_optimize): Don't emit zero
1416 overhead loop start between a call and its CALL_ARG_LOCATION
1419 2016-11-29 Waldemar Brodkorb <wbx@openadk.org>
1421 * config/bfin/linux.h (CPP_SPEC): Define.
1423 2016-11-29 Martin Sebor <msebor@redhat.com>
1425 PR tree-optimization/78512
1426 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Remove.
1427 * config/rs6000/linux.h: Same.
1428 * config/rs6000/linux64.h: Same.
1429 * config/sol2.h: Same.
1430 * config/sol2.c (solaris_printf_pointer_format): Remove.
1431 * doc/tm.texi.in (TARGET_PRINTF_POINTER_FORMAT): Remove.
1432 * doc/tm.texi: Regenerate.
1433 * gimple-ssa-sprintf.c (format_pointer): Rempove.
1434 (pass_sprintf_length::compute_format_length): Return bool.
1435 (pass_sprintf_length::handle_gimple_call): Adjust.
1436 * target.def (printf_pointer_format): Remove.
1437 * targhooks.c (default_printf_pointer_format): Remove.
1438 (linux_printf_pointer_format): Same.
1439 * targhooks.h (default_printf_pointer_format): Remove.
1440 (linux_printf_pointer_format, solaris_printf_pointer_format): Same.
1442 2016-11-29 Uros Bizjak <ubizjak@gmail.com>
1444 * config/i386/sse.md (UNSPEC_MASKOP): Move from i386.md.
1446 (SWI1248_AVX512BWDQ): Ditto.
1447 (SWI1248_AVX512BW): Ditto.
1448 (k<any_logic:code><mode>): Ditto.
1449 (kandn<mode>): Ditto.
1450 (kxnor<mode>): Ditto.
1451 (knot<mode>): Ditto.
1452 (*k<any_lshift:code><mode>): Ditto.
1453 (kortestzhi, kortestchi): Ditto.
1454 (kunpckhi, kunpcksi, kunpckdi): Ditto.
1456 2016-11-29 Andrew Pinski <apinski@cavium.com>
1458 * tree-vrp.c (simplify_stmt_using_ranges): Use boolean_type_node
1461 2016-11-29 Chen Gang <gang.chen.5i5j@gmail.com>
1464 * config/tilegx/tilegx.c (tilegx_function_profiler): Save r10
1465 to stack before call mcount.
1466 (tilegx_can_use_return_insn_p): Clean up code.
1468 2016-11-29 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
1470 * config/avr/avr-mcu.def: (avr_mcu_types): Add flash size info.
1472 2016-11-29 David Malcolm <dmalcolm@redhat.com>
1478 * spellcheck.c (selftest::test_find_closest_string): Verify that
1479 we don't offer the goal string as a suggestion.
1480 * spellcheck.h (best_match::get_best_meaningful_candidate): Don't
1481 offer the goal string as a suggestion.
1484 2016-11-29 Claudiu Zissulescu <claziss@synopsys.com>
1486 * config/arc/arc.c (arc_override_options): Avoid selection of
1487 compact casesi for ARCv2.
1489 2016-11-29 Richard Biener <rguenther@suse.de>
1491 * tree-cfg.c (lower_phi_internal_fn): Do not look for further
1492 PHIs after a regular stmt.
1493 (stmt_starts_bb_p): PHIs not preceeded by a PHI or a label
1496 2016-11-29 Martin Liska <mliska@suse.cz>
1498 PR gcov-profile/78582
1499 * tree-profile.c (gimple_gen_time_profiler): Make one extra BB
1500 to prevent PHI argument clash.
1502 2016-11-29 Claudiu Zissulescu <claziss@synopsys.com>
1504 * config/arc/arc.opt (marclinux): Fix typo.
1505 (marclinux_prof): Likewise.
1507 2016-11-29 Jiong Wang <jiong.wang@arm.com>
1509 * target.def (stack_protect_runtime_enabled_p): New.
1510 * function.c (expand_function_end): Guard stack_protect_epilogue with
1511 targetm.stack_protect_runtime_enabled_p.
1512 * cfgexpand.c (pass_expand::execute): Likewise.
1513 * calls.c (expand_call): Likewise.
1514 * doc/tm.texi.in (TARGET_STACK_PROTECT_RUNTIME_ENABLED_P): Add it.
1515 * doc/tm.texi: Regenerate.
1517 2016-11-29 Richard Biener <rguenther@suse.de>
1520 * match.pd: Add CST1 - (CST2 - A) -> CST3 + A missing case.
1522 2016-11-29 Janus Weil <janus@gcc.gnu.org>
1524 * doc/contrib.texi: Add a few missing gfortran contributors.
1526 2016-11-29 Segher Boessenkool <segher@kernel.crashing.org>
1528 * combine.c (change_zero_ext): Also handle extends from a subreg
1529 to a mode bigger than that of the operand of the subreg.
1531 2016-11-29 Segher Boessenkool <segher@kernel.crashing.org>
1534 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Emit the
1535 stack_restore_tie insn instead of stack_tie, for the SVR4 and
1537 * config/rs6000/rs6000.md (stack_restore_tie): New define_insn.
1539 2016-11-28 Segher Boessenkool <segher@kernel.crashing.org>
1541 * shrink-wrap.c (init_separate_shrink_wrap): Do not clear
1542 head_components and tail_components.
1543 (spread_components): New algorithm.
1544 (emit_common_tails_for_components): Clear head_components and
1546 (insert_prologue_epilogue_for_components): Write extra output to the
1547 dump file for sibcalls and abnormal exits.
1549 2016-11-28 Segher Boessenkool <segher@kernel.crashing.org>
1551 PR rtl-optimization/78342
1552 * combine.c: Include "cfghooks.h".
1553 (try_combine): If we create an unconditional trap, break the basic
1554 block in two just after it, and remove the edge between; also, set
1555 the *new_direct_jump_p flag so that cleanup_cfg is run.
1557 2016-11-28 Segher Boessenkool <segher@kernel.crashing.org>
1559 * simplify-rtx.c (simplify_truncation): Handle truncate of zero_extract
1562 2016-11-28 Uros Bizjak <ubizjak@gmail.com>
1564 * config/i386/i386.md (*and<mode>_1): Merge insn pattern from
1565 *andsi_1 and *andhi_1 using SWI24 mode iterator. Use multi-line
1566 output template string.
1567 (*anddi_1): Use multi-line output template string.
1570 2016-11-28 Jakub Jelinek <jakub@redhat.com>
1573 * rtl.h (remove_reg_equal_equiv_notes): Return bool instead of void.
1574 * rtlanal.c (remove_reg_equal_equiv_notes): Return true if any
1575 note has been removed.
1576 * postreload.c (reload_combine_recognize_pattern): If
1577 remove_reg_equal_equiv_notes returns true, call df_notes_rescan.
1579 2016-11-28 Martin Sebor <msebor@redhat.com>
1582 * gimple-ssa-sprintf.c (target_max_value): Remove.
1583 (target_int_max, target_size_max): Use TYPE_MAX_VALUE.
1584 (get_width_and_precision): New function.
1585 (format_integer, format_floating, get_string_length, format_string):
1586 Correct handling of width and precision with unknown value.
1587 (format_directive): Add warning.
1588 (pass_sprintf_length::compute_format_length): Allow for precision
1589 to consist of a sole period with no asterisk or digits after it.
1591 2016-11-28 Jakub Jelinek <jakub@redhat.com>
1593 PR rtl-optimization/78546
1594 * simplify-rtx.c (neg_const_int): When negating most negative
1595 number in mode wider than HOST_BITS_PER_WIDE_INT, use
1596 simplify_const_unary_operation to produce CONST_DOUBLE or
1598 (simplify_plus_minus): Handle the case where neg_const_int
1599 doesn't return a CONST_INT.
1601 2016-11-28 Markus Trippelsdorf <markus@trippelsdorf.de>
1604 * config/rs6000/rs6000.c (vspltis_constant): Add casts to avoid
1605 left shifting of negative values.
1607 2016-11-28 Jakub Jelinek <jakub@redhat.com>
1610 * tree-nested.c (convert_local_reference_stmt): After adding
1611 shared (FRAME.NN) clause to omp parallel, task or target,
1612 add it also to all outer omp parallel, task or target constructs.
1614 2016-11-28 Uros Bizjak <ubizjak@gmail.com>
1616 * config/i386/i386.md (UNSPEC_KMASKOP): New.
1617 (UNSPEC_KMOV): Remove.
1618 (kmovw): Expand to plain HImode move.
1619 (k<any_logic:code><mode>): Rename from *k<logic><mode>. Use
1620 register_operand predicates. Tag pattern with UNSPEC_KMASKOP.
1621 Remove corresponding clobber-removing splitter.
1622 (*anddi_1): Remove mask register alternatives.
1626 (*<any_or:code><mode>_1): Ditto.
1627 (*<any_or:code>qi_1): Ditto.
1628 (kandn<mode>): Use SWI1248_AVX512BW mode iterator. Remove
1629 general register alternatives. Tag pattern with UNSPEC_KMASKOP.
1630 Remove corresponding splitter to operation with general registers.
1631 (*andn<SWI38:mode>): Rename from *bmi_andn_<mode>.
1632 (*andn<SWI12:mode>): New pattern.
1633 (*kxnor<mode>): Remove general register alternatives. Tag pattern
1634 with UNSPEC_KMASKOP. Remove corresponding splitter to operation
1635 with general registers.
1636 (knot<mode>): New insn pattern.
1637 (*one_cmpl<mode>2_1): Remove mask register alternatives.
1638 (one_cmplqi2_1): Ditto.
1639 (*k<any_lshift:code><mode>): Rename from *k<mshift><mode>3.
1640 Tag pattern with UNSPEC_KMASKOP. Add mode attribute.
1641 * config/i386/predicates.md (mask_reg_operand): Remove predicate.
1642 * config/i386/sse.md (vec_unpacks_hi_hi): Update pattern
1643 to generate kmaskop shift.
1644 (vec_unpacks_hi_<mode>): Ditto.
1645 * config/i386/i386-builtin.def (__builtin_ia32_kandhi):
1646 Use CODE_FOR_kandhi.
1647 (__builtin_ia32_knothi): Use CODE_FOR_knothi.
1648 (__builtin_ia32_korhi): Use CODE_FOR_kiorhi.
1649 (__builtin_ia32_kxorhi): Use CODE_FOR_kxorhi.
1651 2016-11-28 Richard Biener <rguenther@suse.de>
1653 * tree-vrp.c (vrp_visit_assignment_or_call): Handle simplifications
1654 to SSA names via extract_range_from_ssa_name if allowed.
1656 2016-11-28 Richard Biener <rguenther@suse.de>
1658 PR tree-optimization/78542
1659 * tree-ssa-ccp.c (evaluate_stmt): Only valueize simplification
1662 2016-11-28 Paolo Bonzini <bonzini@gnu.org>
1664 * combine.c (simplify_if_then_else): Simplify IF_THEN_ELSE that
1665 isolates a single bit, even if the condition involves subregs.
1667 2016-11-28 Tamar Christina <tamar.christina@arm.com>
1669 * config/aarch64/aarch64-simd-builtins.def
1670 (BSL_P): Added di and v2di mode.
1671 * config/aarch64/arm_neon.h
1672 (vsriq_n_p64, vsri_n_p64): Added poly type.
1673 (vextq_p64, vext_p64): Likewise.
1674 (vceq_p64, vbslq_p64, vbsl_p64): Likewise.
1676 2016-11-28 Tamar Christina <tamar.christina@arm.com>
1678 * config/aarch64/aarch64-builtins.c (TYPES_SETREGP): Added poly type.
1679 (TYPES_GETREGP): Likewise.
1680 (TYPES_SHIFTINSERTP): Likewise.
1681 (TYPES_COMBINEP): Likewise.
1682 (TYPES_STORE1P): Likewise.
1683 * config/aarch64/aarch64-simd-builtins.def
1684 (combine): Added poly generator.
1685 (get_dregoi): Likewise.
1686 (get_dregci): Likewise.
1687 (get_dregxi): Likewise.
1691 * config/aarch64/arm_neon.h
1692 (poly64x1x2_t, poly64x1x3_t): New.
1693 (poly64x1x4_t, poly64x2x2_t): Likewise.
1694 (poly64x2x3_t, poly64x2x4_t): Likewise.
1695 (poly64x1_t): Likewise.
1696 (vcreate_p64, vcombine_p64): Likewise.
1697 (vdup_n_p64, vdupq_n_p64): Likewise.
1698 (vld2_p64, vld2q_p64): Likewise.
1699 (vld3_p64, vld3q_p64): Likewise.
1700 (vld4_p64, vld4q_p64): Likewise.
1701 (vld2_dup_p64, vld3_dup_p64): Likewise.
1702 (vld4_dup_p64, vsli_n_p64): Likewise.
1703 (vsliq_n_p64, vst1_p64): Likewise.
1704 (vst1q_p64, vst2_p64): Likewise.
1705 (vst3_p64, vst4_p64): Likewise.
1706 (__aarch64_vdup_lane_p64, __aarch64_vdup_laneq_p64): Likewise.
1707 (__aarch64_vdupq_lane_p64, __aarch64_vdupq_laneq_p64): Likewise.
1708 (vget_lane_p64, vgetq_lane_p64): Likewise.
1709 (vreinterpret_p8_p64, vreinterpretq_p8_p64): Likewise.
1710 (vreinterpret_p16_p64, vreinterpretq_p16_p64): Likewise.
1711 (vreinterpret_p64_f16, vreinterpret_p64_f64): Likewise.
1712 (vreinterpret_p64_s8, vreinterpret_p64_s16): Likewise.
1713 (vreinterpret_p64_s32, vreinterpret_p64_s64): Likewise.
1714 (vreinterpret_p64_f32, vreinterpret_p64_u8): Likewise.
1715 (vreinterpret_p64_u16, vreinterpret_p64_u32): Likewise.
1716 (vreinterpret_p64_u64, vreinterpret_p64_p8): Likewise.
1717 (vreinterpretq_p64_f64, vreinterpretq_p64_s8): Likewise.
1718 (vreinterpretq_p64_s16, vreinterpretq_p64_s32): Likewise.
1719 (vreinterpretq_p64_s64, vreinterpretq_p64_f16): Likewise.
1720 (vreinterpretq_p64_f32, vreinterpretq_p64_u8): Likewise.
1721 (vreinterpretq_p64_u16, vreinterpretq_p64_u32): Likewise.
1722 (vreinterpretq_p64_u64, vreinterpretq_p64_p8): Likewise.
1723 (vreinterpret_f16_p64, vreinterpretq_f16_p64): Likewise.
1724 (vreinterpret_f32_p64, vreinterpretq_f32_p64): Likewise.
1725 (vreinterpret_f64_p64, vreinterpretq_f64_p64): Likewise.
1726 (vreinterpret_s64_p64, vreinterpretq_s64_p64): Likewise.
1727 (vreinterpret_u64_p64, vreinterpretq_u64_p64): Likewise.
1728 (vreinterpret_s8_p64, vreinterpretq_s8_p64): Likewise.
1729 (vreinterpret_s16_p64, vreinterpret_s32_p64): Likewise.
1730 (vreinterpretq_s32_p64, vreinterpret_u8_p64): Likewise.
1731 (vreinterpret_u16_p64, vreinterpretq_u16_p64): Likewise.
1732 (vreinterpret_u32_p64, vreinterpretq_u32_p64): Likewise.
1733 (vset_lane_p64, vsetq_lane_p64): Likewise.
1734 (vget_low_p64, vget_high_p64): Likewise.
1735 (vcombine_p64, vst2_lane_p64): Likewise.
1736 (vst3_lane_p64, vst4_lane_p64): Likewise.
1737 (vst2q_lane_p64, vst3q_lane_p64): Likewise.
1738 (vst4q_lane_p64, vget_lane_p64): Likewise.
1739 (vget_laneq_p64, vset_lane_p64): Likewise.
1740 (vset_laneq_p64, vcopy_lane_p64): Likewise.
1741 (vcopy_laneq_p64, vdup_n_p64): Likewise.
1742 (vdupq_n_p64, vdup_lane_p64): Likewise.
1743 (vdup_laneq_p64, vld1_p64): Likewise.
1744 (vld1q_p64, vld1_dup_p64): Likewise.
1745 (vld1q_dup_p64, vld1q_dup_p64): Likewise.
1746 (vmov_n_p64, vmovq_n_p64): Likewise.
1747 (vst3q_p64, vst4q_p64): Likewise.
1748 (vld1_lane_p64, vld1q_lane_p64): Likewise.
1749 (vst1_lane_p64, vst1q_lane_p64): Likewise.
1750 (vcopy_laneq_p64, vcopyq_laneq_p64): Likewise.
1751 (vdupq_laneq_p64): Likewise.
1753 2016-11-28 Tamar Christina <tamar.christina@arm.com>
1755 * config/arm/arm_neon.h (vget_lane_p64): New.
1757 2016-11-28 Iain Sandoe <iain@codesourcery.com>
1760 * configure.ac (with_ld64): Use portable method to extract the
1761 major part of the version number.
1762 * configure: Regenerated.
1764 2016-11-28 Jakub Jelinek <jakub@redhat.com>
1766 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Look at
1767 UINTMAX_TYPE rather than SIZE_TYPE. Add gcc_unreachable if
1768 intmax_t couldn't be determined.
1769 (format_integer): Make {,u}intmax_type_node no longer static,
1770 initialize them only when needed. For z and t use
1771 signed_or_unsigned_type_for instead of assuming size_t and
1772 ptrdiff_t have the same precision.
1775 * ipa-icf.h (sem_item_optimizer): Add m_classes_vec member.
1776 * ipa-icf.c (sem_item_optimizer::sem_item_optimizer): Initialize it.
1777 (sem_item_optimizer::~sem_item_optimizer): Traverse m_classes_vec
1778 vector instead of traversing m_classes hash table. Release
1780 (sem_item_optimizer::read_section, sem_item_optimizer::add_class):
1782 (sem_item_optimizer::get_group_by_hash): When inserting a new group,
1783 add it also to m_classes_vec vector.
1784 (sem_item_optimizer::remove_symtab_node,
1785 sem_item_optimizer::build_hash_based_classes,
1786 sem_item_optimizer::parse_nonsingleton_classes): Formatting fixes.
1787 (sem_item_optimizer::subdivide_classes_by_equality,
1788 sem_item_optimizer::subdivide_classes_by_sensitive_refs,
1789 sem_item_optimizer::verify_classes): Traverse m_classes_vec vector
1790 instead of traversing m_classes hash table. Formatting fixes.
1791 (sem_item_optimizer::traverse_congruence_split,
1792 sem_item_optimizer::do_congruence_step_for_index,
1793 sem_item_optimizer::do_congruence_step): Formatting fixes.
1794 (sem_item_optimizer::process_cong_reduction): Traverse m_classes_vec
1795 vector instead of traversing m_classes hash table.
1796 (sem_item_optimizer::dump_cong_classes): Likewise. Formatting fixes.
1797 (sem_item_optimizer::merge_classes): Traverse m_classes_vec vector
1798 instead of traversing m_classes hash table.
1800 2016-11-28 Georg-Johann Lay <avr@gjlay.de>
1802 * config/avr/avr.c (out_movhi_r_mr) [REG_X + PLUS]: Only SBIW if
1803 X is not unused after.
1805 2016-11-28 Bernd Schmidt <bschmidt@redhat.com>
1807 PR rtl-optimization/78120
1808 * rtlanal.c (insn_rtx_cost): Revert previous change.
1810 2016-11-28 Georg-Johann Lay <avr@gjlay.de>
1813 * config/avr/avr.md (SPLIT34): New mode iterator.
1814 (bitop): New code iterator.
1815 (*iorhi3.ashift8-*). New insn-and-split patterns.
1816 (*movhi): Post-reload split reg = 0.
1817 [!MOVW]: Post-reload split reg = reg.
1818 (*mov<mode>) [SI,SF,PSI,SQ,USQ,SA,USA]: Post-reload split reg = reg.
1819 (andhi3, andpsi3, andsi3): Post-reload split reg-reg operations.
1820 (iorhi3, iorpsi3, iorsi3): Same.
1821 (xorhi3, xorpsi3, xorsi3): Same.
1822 * config/avr/avr.c (avr_rtx_costs_1) [IOR && HImode]: Adjust rtx
1823 costs to *iorhi3.ashift8-* patterns.
1825 2016-11-27 Iain Sandoe <iain@codesourcery.com>
1826 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1829 * config.in: Regenerate
1830 * config/darwin-driver.c (darwin_driver_init): Emit a version string
1832 * config/darwin.h(ASM_MMACOSX_VERSION_MIN_SPEC): New, new tests.
1833 * config/darwin.opt(asm_macosx_version_min): New.
1834 * config/i386/darwin.h: Handle ASM_MMACOSX_VERSION_MIN_SPEC.
1835 * configure: Regenerate
1836 * configure.ac: Check for mmacosx-version-min handling.
1838 2016-11-27 Iain Sandoe <iain@codesourcery.com>
1841 * config/i386/i386.c (ix86_code_end): Note that we emitted code
1842 where the function might otherwise appear empty for picbase thunks.
1843 (ix86_output_function_epilogue): If we find a zero-sized function
1844 assume that reaching it is UB and trap. If we find a trailing label
1846 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): If we
1847 find a zero-sized function assume that reaching it is UB and trap.
1848 If we find a trailing label, append a nop.
1850 2016-11-27 Iain Sandoe <iain@codesourcery.com>
1853 * config/darwin-sections.def (picbase_thunk_section): New.
1854 * config/darwin.c (darwin_init_sections): Set up picbase thunk
1855 section. (darwin_rodata_section, darwin_objc2_section,
1856 machopic_select_section, darwin_asm_declare_constant_name,
1857 darwin_emit_weak_or_comdat, darwin_function_section): Don’t use
1858 coalesced with newer linkers.
1859 (darwin_override_options): Decide on usage of coalesed sections
1860 on the basis of the target linker version.
1861 * config/darwin.h (MIN_LD64_NO_COAL_SECTS): New.
1862 * config/darwin.opt (mtarget-linker): New.
1863 * config/i386/i386.c (ix86_code_end): Do not force the thunks into
1864 a coalesced section, instead use a thunks section.
1866 2016-11-27 Iain Sandoe <iain@codesourcery.com>
1869 * configure.ac (with-ld64): New var, set for Darwin, set on
1870 detection of ld64, gcc_cv_ld64_export_dynamic: New, New test.
1871 * config/darwin.h: Use LD64_HAS_DYNAMIC export. DEF_LD64: New, define.
1872 * config/darwin10.h(DEF_LD64): Update for this target version.
1873 * config/darwin12.h(LINK_GCC_C_SEQUENCE_SPEC): Remove rdynamic test.
1874 (DEF_LD64): Update for this target version.
1875 * configure: Regenerated.
1876 * config.in: Regenerated.
1878 2016-11-27 Iain Sandoe <iain@codesourcery.com>
1881 * config/darwin.c (imachopic_indirection_name): Make data
1882 section indirections linker-visible.
1883 * config/darwin.h (ASM_GENERATE_INTERNAL_LABEL): Make local
1884 constant labels linker-visible.
1886 2016-11-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1888 * tree.c (build_common_tree_nodes): Initialize ptrdiff_type_node.
1889 (free_lang_data): Remove assignment to ptrdiff_type_node.
1891 2016-11-25 Jakub Jelinek <jakub@redhat.com>
1893 PR rtl-optimization/78526
1894 * simplify-rtx.c (simplify_immed_subreg): Don't use wi::extract_uhwi
1895 beyond val's precision.
1897 PR rtl-optimization/78527
1898 * combine.c (make_compound_operation_int): Ignore LSHIFTRT with
1899 out of bounds shift count.
1901 2016-11-25 Martin Liska <mliska@suse.cz>
1904 * doc/invoke.texi (-fprofile-use): Fix reference to a section
1905 where -fprofile-generate is documented.
1907 2016-11-25 Martin Liska <mliska@suse.cz>
1909 PR gcov-profile/78086
1910 * coverage.c (build_init_ctor): Don't use priority {cd}tors if
1911 not supported by a target. Set priority to 100 if possible.
1912 (build_gcov_exit_decl): Likewise.
1914 2016-11-25 Richard Biener <rguenther@suse.de>
1917 * ipa-prop.c (compute_complex_assign_jump_func): Properly identify
1918 unary, binary and single RHSs.
1919 * tree.def (BIT_INSERT_EXPR): Adjust tree code name.
1921 2016-11-25 Bin Cheng <bin.cheng@arm.com>
1926 * match.pd ((cond (cmp (convert1? @1) @3) (convert2? @1) @2)): Use
1927 cmp directly, rather than cmp_code. Initialize code to ERROR_MARK
1928 and set it to result code if transformation is valid. Use code EQ
1929 directly in last simplification case.
1931 2016-11-25 Richard Biener <rguenther@suse.de>
1933 * gimple-fold.c (fold_stmt_1): Check may_propagate_copy
1934 before valueizing return stmts.
1936 2016-11-24 Richard Biener <rguenther@suse.de>
1938 PR tree-optimization/78343
1939 * passes.def: Add CD-DCE pass after loop splitting.
1940 * tree-ssa-dce.c (find_obviously_necessary_stmts): Move
1941 SCEV init/finalize ...
1942 (perform_tree_ssa_dce): ... here. Deal with being
1943 executed inside the loop pipeline in aggressive mode.
1945 2016-11-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
1947 * tree-ssa-math-opts.c (struct symbolic_number): Improve comment.
1949 2016-11-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
1951 PR tree-optimization/77673
1952 * tree-ssa-math-opts.c (struct symbolic_number): Add new src field.
1953 (init_symbolic_number): Initialize src field from src parameter.
1954 (perform_symbolic_merge): Select most dominated statement as the
1955 source statement. Set src field of resulting n structure from the
1956 input src with the lowest address.
1957 (find_bswap_or_nop): Rename source_stmt into ins_stmt.
1958 (bswap_replace): Rename src_stmt into ins_stmt. Initially get source
1959 of load from src field rather than insertion statement. Cancel
1960 optimization if statement analyzed is not dominated by the insertion
1962 (pass_optimize_bswap::execute): Rename src_stmt to ins_stmt. Compute
1963 dominance information.
1965 2016-11-25 Eric Botcazou <ebotcazou@adacore.com>
1968 * config/mips/mips.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
1970 2016-11-25 Martin Jambor <mjambor@suse.cz>
1972 PR tree-optimization/70965
1973 * passes.def (pass_build_ssa_passes): Add pass_rebuild_cgraph_edges.
1975 2016-11-24 James Greenahlgh <james.greenhalgh@arm.com>
1978 * config/i386/i386.c (i386_excess_precision): Do not return
1979 FLT_EVAL_METHOD_UNPREDICTABLE when "type" is
1980 EXCESS_PRECISION_TYPE_STANDARD.
1981 * target.def (excess_precision): Document that targets should
1982 not return FLT_EVAL_METHOD_UNPREDICTABLE when "type" is
1983 EXCESS_PRECISION_TYPE_STANDARD or EXCESS_PRECISION_TYPE_FAST.
1984 Fix typo in first sentence.
1985 * doc/tm.texi: Regenerate.
1987 2016-11-25 Richard Biener <rguenther@suse.de>
1989 PR tree-optimization/78396
1990 * tree-vectorizer.c (vectorize_loops): When the if-converted
1991 body contains masked loads or stores do not attempt to
1992 basic-block-vectorize it.
1994 2016-11-25 Richard Sandiford <richard.sandiford@arm.com>
1995 Alan Hayward <alan.hayward@arm.com>
1996 David Sherwood <david.sherwood@arm.com>
1998 * function.h (spill_slot_alignment): Declare.
1999 * function.c (spill_slot_alignment): New function.
2000 * lra-spills.c (slot): Add align and size fields.
2001 (assign_mem_slot): Use them in the call to assign_stack_local.
2002 (add_pseudo_to_slot): Update the fields.
2003 (assign_stack_slot_num_and_sort_pseudos): Initialise the fields.
2005 2016-11-25 Richard Sandiford <richard.sandiford@arm.com>
2006 Alan Hayward <alan.hayward@arm.com>
2007 David Sherwood <david.sherwood@arm.com>
2009 * stor-layout.c (layout_type): Allow the caller to set the mode of
2010 a float type. Only choose one here if the mode is still VOIDmode.
2011 * tree.c (build_common_tree_nodes): Set the type mode of decimal
2012 floats before calling layout_type.
2013 * config/rs6000/rs6000.c (rs6000_init_builtins): Likewise.
2015 2016-11-25 Richard Sandiford <richard.sandiford@arm.com>
2017 * tree-tailcall.c (find_tail_calls): Allow calls to reference
2018 local variables if all references are known to be direct.
2020 2016-11-25 Jakub Jelinek <jakub@redhat.com>
2021 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2024 * tree-vrp.c (extract_range_basic): Check for ptrdiff_type_node to be
2025 non null and it's precision matches precision of lhs's type.
2027 2016-11-24 Martin Sebor <msebor@redhat.com>
2029 PR tree-optimization/78476
2030 * gimple-ssa-sprintf.c (struct pass_sprintf_length::call_info):
2032 (handle_gimple_call): Adjust signature.
2033 (try_substitute_return_value): Remove calls to bounded functions
2034 with zero buffer size whose result is known.
2035 (pass_sprintf_length::execute): Adjust call to handle_gimple_call.
2037 2016-11-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2039 * varasm.c (assemble_start_function): Wrap align_log definition in
2040 ASM_OUTPUT_MAX_SKIP_ALIGN.
2042 2016-11-24 Uros Bizjak <ubizjak@gmail.com>
2044 * config/i386/i386.md (wide AND insn to QImode splitter): Use
2045 explicit mode macros.
2046 (wide OR insn to QImode splitter): Ditto.
2048 2016-11-24 Vladimir Makarov <vmakarov@redhat.com>
2050 PR rtl-optimization/77541
2051 * lra-constraints.c (struct input_reload): Add field match_p.
2052 (get_reload_reg): Check modes of input reloads to generate unique
2053 value reload pseudo.
2054 (match_reload): Add input reload pseudo for the current insn.
2056 2016-11-24 James Greenhalgh <james.greenhalgh@arm.com>
2058 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Update
2059 __FLT_EVAL_METHOD__ and __FLT_EVAL_METHOD_C99__ when we switch
2060 architecture levels.
2061 * config/aarch64/aarch64.c (aarch64_promoted_type): Only promote
2062 the aarch64_fp16_type_node, not all HFmode types.
2063 (aarch64_libgcc_floating_mode_supported_p): Support HFmode.
2064 (aarch64_scalar_mode_supported_p): Likewise.
2065 (aarch64_excess_precision): New.
2066 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
2067 (TARGET_SCALAR_MODE_SUPPORTED_P): Likewise.
2068 (TARGET_C_EXCESS_PRECISION): Likewise.
2070 2016-11-24 James Greenhalgh <james.greenhalgh@arm.com>
2072 * config/aarch64/aarch64-c.c (aarch64_scalar_mode_supported_p): New.
2073 (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
2075 2016-11-24 James Greenhalgh <james.greenhalgh@arm.com>
2077 * config/aarch64/aarch64.md (<optab>sihf2): Convert to expand.
2078 (<optab>dihf2): Likewise.
2079 (aarch64_fp16_<optab><mode>hf2): New.
2081 2016-11-24 Alexander Monakov <amonakov@ispras.ru>
2084 * config/nvptx/mkoffload.c (main): Allow -fopenmp.
2086 2016-11-24 Eric Botcazou <ebotcazou@adacore.com>
2088 * common/config/sparc/sparc-common.c (sparc_option_optimization_table):
2089 Enable REE at -O2 and higher.
2090 * config/sparc/sparc.c (sparc_option_override): Disable it by default
2093 2016-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2097 * tree-ssa-ter.c (temp_expr_table): Add reg_vars_cnt field.
2098 (new_temp_expr_table): Initialise reg_vars_cnt.
2099 (free_temp_expr_table): Release reg_vars_cnt.
2100 (process_replaceable): Add reg_vars_cnt argument, set reg_vars_cnt
2102 (find_replaceable_in_bb): Use the above to record register variable
2103 write occurrences and cancel replacement across them.
2105 2016-11-24 Eric Botcazou <ebotcazou@adacore.com>
2107 PR rtl-optimization/78437
2108 * ree.c (get_uses): New function.
2109 (combine_reaching_defs): When a copy is needed, return false if any
2110 reaching use of the source register reads it in a mode larger than
2111 the mode it is set in and WORD_REGISTER_OPERATIONS is true.
2113 2016-11-24 Martin Liska <mliska@suse.cz>
2115 * gimple-pretty-print.c (dump_edge_probability): New function.
2116 (dump_gimple_switch): Dump label edge probabilities.
2117 (dump_gimple_cond): Likewise.
2118 (dump_gimple_label): Dump
2119 (dump_gimple_bb_header): Dump basic block frequency.
2120 (pp_cfg_jump): Replace e->dest argument with e.
2121 (dump_implicit_edges): Likewise.
2122 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at):
2123 Use gimple_bb (at) instead of at->bb.
2125 2016-11-24 Bernd Schmidt <bschmidt@redhat.com>
2127 * common.opt (flimit-function-alignment): New.
2128 * doc/invoke.texi (-flimit-function-alignment): Document.
2129 * emit-rtl.h (struct rtl_data): Add max_insn_address field.
2130 * final.c (shorten_branches): Set it.
2131 * varasm.c (assemble_start_function): Limit alignment if
2134 2016-11-24 Richard Biener <rguenther@suse.de>
2136 PR tree-optimization/71595
2137 * cfgloopmanip.h (remove_path): Add irred_invalidated and
2138 loop_closed_ssa_invalidated parameters, defaulted to NULL.
2139 * cfgloopmanip.c (remove_path): Likewise, pass them along to
2140 called functions. Only fix irred flags if the caller didn't
2142 * tree-ssa-loop-ivcanon.c (unloop_loops): Use add_bb_to_loop.
2143 (unloop_loops): Pass irred_invalidated and loop_closed_ssa_invalidated
2146 2016-11-24 Bernd Schmidt <bschmidt@redhat.com>
2148 PR rtl-optimization/78120
2149 * ifcvt.c (noce_conversion_profitable_p): Check original cost in all
2150 cases, and additionally test against max_seq_cost for speed
2152 (noce_process_if_block): Compute an estimate for the original cost when
2153 optimizing for speed, using the minimum of then and else block costs.
2155 PR rtl-optimization/78120
2156 * rtlanal.c (insn_rtx_cost): Use set_rtx_cost.
2158 PR rtl-optimization/78120
2159 * config/i386/i386.c (ix86_rtx_costs): Fully handle SETs.
2161 2016-11-24 Bin Cheng <bin.cheng@arm.com>
2163 * match.pd: Refine type conversion in result expr for below pattern:
2164 (cond (cmp (convert1? x) c1) (convert2? x) c2) -> (minmax (x c)).
2166 2016-11-24 Eric Botcazou <ebotcazou@adacore.com>
2169 * tree.h (wi::fits_to_boolean_p): New predicate.
2170 (wi::fits_to_tree_p): Use it for boolean types.
2171 * tree.c (int_fits_type_p): Likewise.
2173 2016-11-24 Martin Liska <mliska@suse.cz>
2175 * print-tree.c (struct bucket): Remove.
2176 (print_node): Add new argument which drives whether a tree node
2177 is printed briefly or not.
2178 (debug_tree): Replace a custom hash table with hash_set<T>.
2179 * print-tree.h (print_node): Add the argument.
2181 2016-11-24 Chung-Lin Tang <cltang@codesourcery.com>
2183 * config/nios2/nios2.c (nios2_init_libfuncs): Add ATTRIBUTE_UNUSED.
2185 2016-11-23 Peter Bergner <bergner@vnet.ibm.com>
2188 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Return MODE
2189 if it is at least NREGS wide.
2191 2016-11-23 Joseph Myers <joseph@codesourcery.com>
2193 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p): For
2194 TARGET_E500_DOUBLE. handle TDmode, TImode and PTImode the same as
2195 TFmode, IFmode and KFmode.
2197 2016-11-23 Joseph Myers <joseph@codesourcery.com>
2199 * config/rs6000/spe.md (*frob_<SPE64:mode>_ti_8): New insn
2202 2016-11-23 Segher Boessenkool <segher@kernel.crashing.org>
2204 * combine.c (change_zero_ext): Only change the mode of a hard register
2205 destination if can_change_dest_mode holds for that.
2207 2016-11-23 Jeff Law <law@redhat.com>
2209 * varasm.c (assemble_name): Increase buffer size for name.
2211 * config/spu/spu.md (floatunsdidf2): Remove unused local variable.
2213 2016-11-23 Jakub Kicinski <jakub.kicinski@netronome.com>
2215 * doc/extend.texi: Constify first argument to __builtin_object_size.
2217 2016-11-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
2219 * opth-gen.awk: Use unsigned shifts for bit masks. Allow all bits
2220 to be used. Add brackets around macro argument.
2222 2016-11-23 Uros Bizjak <ubizjak@gmail.com>
2224 * config/i386/i386.md (*<any_or:code>hi_1): Fix operand 2 constraints.
2226 2016-11-23 Jakub Jelinek <jakub@redhat.com>
2229 * opts.c (parse_sanitizer_options): For -fsanitize=undefined,
2230 restore enabling also SANITIZE_UNREACHABLE and SANITIZE_RETURN.
2232 2016-11-23 Jakub Jelinek <jakub@redhat.com>
2235 * omp-low.c (build_outer_var_ref): Change lastprivate argument
2236 to code, pass it recursively, adjust uses. For OMP_CLAUSE_PRIVATE
2237 on worksharing constructs, treat it like clauses on simd construct.
2239 (lower_rec_input_clauses): For OMP_CLAUSE_PRIVATE_OUTER_REF pass
2240 OMP_CLAUSE_PRIVATE as last argument to build_outer_var_ref.
2241 (lower_lastprivate_clauses): Pass OMP_CLAUSE_LASTPRIVATE instead
2242 of true as last argument to build_outer_var_ref.
2244 2016-11-23 Uros Bizjak <ubizjak@gmail.com>
2246 * config/i386/i386.md (*movqi_internal): Calculate mode
2247 attribute of alternatives 7,8,9 depending on TARGET_AVX512DQ.
2248 <TYPE_MSKMOV>: Emit kmovw for MODE_HI insn mode attribute.
2249 (*k<logic><mode>): Calculate mode attribute depending on
2250 TARGET_AVX512DQ. Emit k<logic>w for MODE_HI insn mode attribute.
2251 (*andqi_1): Calculate mode attribute of alternative 3 depending
2252 on TARGET_AVX512DQ. Emit kandw for MODE_HI insn mode attribute.
2253 (kandn<mode>): Calculate mode attribute of alternative 2 depending
2254 on TARGET_AVX512DQ. Emit kandnw for MODE_HI insn mode attribute.
2255 (kxnor<mode>): Merge insn patterns using SWI1248_AVX512BW mode
2256 iterator. Calculate mode attribute of alternative 1 depending
2257 on TARGET_AVX512DQ. Emit kxnorw for MODE_HI insn mode attribute.
2258 (*one_cmplqi2_1): Calculate mode attribute of alternative 2 depending
2259 on TARGET_AVX512DQ. Emit knotw for MODE_HI insn mode attribute.
2261 2016-11-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2264 * gimple-fold.c (fold_stmt_1): Handle case for GIMPLE_RETURN.
2265 * tree-vrp.c (extract_range_basic): Handle case for
2266 CFN_BUILT_IN_STRLEN.
2268 2016-11-23 Jeff Law <law@redhat.com>
2270 * config/mcore/mcore.c (emit_new_cond_insn): Fix prototype.
2272 * config/iq2000/iq2000.c (iq2000_rtx_costs): Avoid multiplication
2273 in boolean context warning.
2275 * config/ia64/ia64.c (ia64_emit_insn_before): Fix prototype.
2277 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
2280 * config/arm/arm-builtins.c (arm_simd_floatHF_type_node): Rename to...
2281 (arm_fp16_type_node): ...This, make visibile.
2282 (arm_simd_builtin_std_type): Rename arm_simd_floatHF_type_node to
2284 (arm_init_simd_builtin_types): Likewise.
2285 (arm_init_fp16_builtins): Likewise.
2286 * config/arm/arm.c (arm_excess_precision): New.
2287 (arm_floatn_mode): Likewise.
2288 (TARGET_C_EXCESS_PRECISION): Likewise.
2289 (TARGET_FLOATN_MODE): Likewise.
2290 (arm_promoted_type): Only promote arm_fp16_type_node.
2291 * config/arm/arm.h (arm_fp16_type_node): Declare.
2293 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
2295 * config/arm/arm.c (arm_convert_to_type): Delete.
2296 (TARGET_CONVERT_TO_TYPE): Delete.
2297 (arm_init_libfuncs): Enable trunc_optab from DFmode to HFmode.
2298 (arm_libcall_uses_aapcs_base): Add trunc_optab from DF- to HFmode.
2299 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): New.
2300 * config/arm/arm.md (truncdfhf2): Only convert through SFmode if we
2301 are in fast math mode, and have no single step hardware instruction.
2302 (extendhfdf2): Only expand through SFmode if we don't have a
2303 single-step hardware instruction.
2304 * config/arm/vfp.md (*truncdfhf2): New.
2305 (extendhfdf2): Likewise.
2307 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
2309 * targhooks.c (default_floatn_mode): Enable _Float16 if a target
2312 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
2314 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Delete.
2315 * config/m68k/m68k.h (TARGET_FLT_EVAL_METHOD): Delete.
2316 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Delete.
2317 * defaults.h (TARGET_FLT_EVAL_METHOD): Delete.
2318 * doc/tm.texi.in (TARGET_FLT_EVAL_METHOD): Delete.
2319 * doc/tm.texi: Regenerate.
2320 * system.h (TARGET_FLT_EVAL_METHOD): Poison.
2322 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
2324 * toplev.c (init_excess_precision): Delete most logic.
2325 * tree.c (excess_precision_type): Rewrite to use
2326 TARGET_EXCESS_PRECISION.
2327 * doc/invoke.texi (-fexcess-precision): Document behaviour in a
2328 more generic fashion.
2329 * ginclude/float.h: Wrap definition of FLT_EVAL_METHOD in
2330 __STDC_WANT_IEC_60559_TYPES_EXT__.
2332 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
2334 * common.opt (fpermitted-flt-eval-methods): New.
2335 * doc/invoke.texi (-fpermitted-flt-eval-methods): Document it.
2336 * flag_types.h (permitted_flt_eval_methods): New.
2338 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
2340 * config/m68k/m68k.c (m68k_excess_precision): New.
2341 (TARGET_C_EXCESS_PRECISION): Define.
2343 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
2345 * config/s390/s390.c (s390_excess_precision): New.
2346 (TARGET_C_EXCESS_PRECISION): Define.
2348 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
2350 * config/i386/i386.c (ix86_excess_precision): New.
2351 (TARGET_C_EXCESS_PRECISION): Define.
2353 2016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
2355 * target.def (excess_precision): New hook.
2356 * target.h (flt_eval_method): New.
2357 (excess_precision_type): Likewise.
2358 * targhooks.c (default_excess_precision): New.
2359 * targhooks.h (default_excess_precision): New.
2360 * doc/tm.texi.in (TARGET_C_EXCESS_PRECISION): New.
2361 * doc/tm.texi: Regenerate.
2363 2016-11-23 Martin Sebor <msebor@redhat.com>
2366 * gimple-ssa-sprintf.c (format_string): Correct the maxima and
2367 set the minimum number of bytes for an unknown string to zero.
2369 2016-11-23 Martin Jambor <mjambor@suse.cz>
2370 Martin Liska <mliska@suse.cz>
2372 * hsa-builtins.def: New file.
2373 * Makefile.in (BUILTINS_DEF): Add hsa-builtins.def dependency.
2374 * builtins.def: Include hsa-builtins.def.
2375 (DEF_HSA_BUILTIN): New macro.
2376 * dumpfile.h (OPTGROUP_OPENMP): Define.
2377 * dumpfile.c (optgroup_options): Added OPTGROUP_OPENMP.
2378 * gimple.h (gf_mask): Added elements GF_OMP_FOR_GRID_INTRA_GROUP and
2379 GF_OMP_FOR_GRID_GROUP_ITER.
2380 (gimple_omp_for_grid_phony): Added checking assert.
2381 (gimple_omp_for_set_grid_phony): Likewise.
2382 (gimple_omp_for_grid_intra_group): New function.
2383 (gimple_omp_for_set_grid_intra_group): Likewise.
2384 (gimple_omp_for_grid_group_iter): Likewise.
2385 (gimple_omp_for_set_grid_group_iter): Likewise.
2386 * omp-low.c (check_omp_nesting_restrictions): Allow GRID loop where
2387 previosuly only distribute loop was permitted.
2388 (lower_lastprivate_clauses): Allow non tcc_comparison predicates.
2389 (grid_get_kernel_launch_attributes): Support multiple HSA grid
2391 (grid_expand_omp_for_loop): Likewise and also support standalone
2392 distribute constructs. New parameter INTRA_GROUP, updated both users.
2393 (grid_expand_target_grid_body): Support standalone distribute
2395 (pass_data_expand_omp): Changed optinfo_flags to OPTGROUP_OPENMP.
2396 (pass_data_expand_omp_ssa): Likewise.
2397 (pass_data_omp_device_lower): Likewsie.
2398 (pass_data_lower_omp): Likewise.
2399 (pass_data_diagnose_omp_blocks): Likewise.
2400 (pass_data_oacc_device_lower): Likewise.
2401 (pass_data_omp_target_link): Likewise.
2402 (grid_lastprivate_predicate): New function.
2403 (lower_omp_for_lastprivate): Call grid_lastprivate_predicate for
2405 (lower_omp_for): Support standalone distribute constructs.
2406 (grid_prop): New type.
2407 (grid_safe_assignment_p): Check for assignments to group_sizes, new
2409 (grid_seq_only_contains_local_assignments): New parameter GRID, pass
2411 (grid_find_single_omp_among_assignments_1): Likewise, improve missed
2412 optimization info messages.
2413 (grid_find_single_omp_among_assignments): Likewise.
2414 (grid_find_ungridifiable_statement): Do not bail out for SIMDs.
2415 (grid_parallel_clauses_gridifiable): New function.
2416 (grid_inner_loop_gridifiable_p): Likewise.
2417 (grid_dist_follows_simple_pattern): Likewise.
2418 (grid_gfor_follows_tiling_pattern): Likewise.
2419 (grid_call_permissible_in_distribute_p): Likewise.
2420 (grid_handle_call_in_distribute): Likewise.
2421 (grid_dist_follows_tiling_pattern): Likewise.
2422 (grid_target_follows_gridifiable_pattern): Support standalone
2423 distribute constructs.
2424 (grid_var_segment): New enum.
2425 (grid_mark_variable_segment): New function.
2426 (grid_copy_leading_local_assignments): Call grid_mark_variable_segment
2427 if a new argument says so.
2428 (grid_process_grid_body): New function.
2429 (grid_eliminate_combined_simd_part): Likewise.
2430 (grid_mark_tiling_loops): Likewise.
2431 (grid_mark_tiling_parallels_and_loops): Likewise.
2432 (grid_process_kernel_body_copy): Support standalone distribute
2434 (grid_attempt_target_gridification): New grid variable holding overall
2435 gridification state. Support standalone distribute constructs and
2437 * doc/optinfo.texi (Optimization groups): Document OPTGROUP_OPENMP.
2438 * hsa.h (hsa_bb): Add method method append_phi.
2439 (hsa_insn_br): Renamed to hsa_insn_cbr, renamed all
2440 occurences in all files too.
2441 (hsa_insn_br): New class, now the ancestor of hsa_incn_cbr.
2442 (is_a_helper <hsa_insn_br *>::test): New function.
2443 (is_a_helper <hsa_insn_cbr *>::test): Adjust to only cover conditional
2444 branch instructions.
2445 (hsa_insn_signal): Make a direct descendant of
2446 hsa_insn_basic. Add memorder constructor parameter and
2447 m_memory_order and m_signalop member variables.
2448 (hsa_insn_queue): Changed constructor parameters to common form.
2449 Added m_segment and m_memory_order member variables.
2450 (hsa_summary_t): Add private member function
2451 process_gpu_implementation_attributes.
2452 (hsa_function_summary): Rename m_binded_function to
2454 (hsa_insn_basic_p): Remove typedef.
2455 (hsa_op_with_type): Change hsa_insn_basic_p into plain pointers.
2456 (hsa_op_reg_p): Remove typedef.
2457 (hsa_function_representation): Change hsa_op_reg_p into plain
2459 (hsa_insn_phi): Removed new and delete operators.
2460 (hsa_insn_br): Likewise.
2461 (hsa_insn_cbr): Likewise.
2462 (hsa_insn_sbr): Likewise.
2463 (hsa_insn_cmp): Likewise.
2464 (hsa_insn_mem): Likewise.
2465 (hsa_insn_atomic): Likewise.
2466 (hsa_insn_signal): Likewise.
2467 (hsa_insn_seg): Likewise.
2468 (hsa_insn_call): Likewise.
2469 (hsa_insn_arg_block): Likewise.
2470 (hsa_insn_comment): Likewise.
2471 (hsa_insn_srctype): Likewise.
2472 (hsa_insn_packed): Likewise.
2473 (hsa_insn_cvt): Likewise.
2474 (hsa_insn_alloca): Likewise.
2475 * hsa.c (hsa_destroy_insn): Also handle instances of hsa_insn_br.
2476 (process_gpu_implementation_attributes): New function.
2477 (link_functions): Move some functionality into it. Adjust after
2478 renaming m_binded_functions to m_bound_functions.
2479 (hsa_insn_basic::op_output_p): Add BRIG_OPCODE_DEBUGTRAP
2480 to the list of instructions with no output registers.
2481 (get_in_type): Return this if it is a register of
2483 (hsa_get_declaration_name): Moved to...
2484 * hsa-gen.c (hsa_get_declaration_name): ...here. Allocate
2485 temporary string on an obstack instead from ggc.
2486 (query_hsa_grid): Renamed to query_hsa_grid_dim, reimplemented, cut
2487 down to two overloads.
2488 (hsa_allocp_operand_address): Removed.
2489 (hsa_allocp_operand_immed): Likewise.
2490 (hsa_allocp_operand_reg): Likewise.
2491 (hsa_allocp_operand_code_list): Likewise.
2492 (hsa_allocp_operand_operand_list): Likewise.
2493 (hsa_allocp_inst_basic): Likewise.
2494 (hsa_allocp_inst_phi): Likewise.
2495 (hsa_allocp_inst_mem): Likewise.
2496 (hsa_allocp_inst_atomic): Likewise.
2497 (hsa_allocp_inst_signal): Likewise.
2498 (hsa_allocp_inst_seg): Likewise.
2499 (hsa_allocp_inst_cmp): Likewise.
2500 (hsa_allocp_inst_br): Likewise.
2501 (hsa_allocp_inst_sbr): Likewise.
2502 (hsa_allocp_inst_call): Likewise.
2503 (hsa_allocp_inst_arg_block): Likewise.
2504 (hsa_allocp_inst_comment): Likewise.
2505 (hsa_allocp_inst_queue): Likewise.
2506 (hsa_allocp_inst_srctype): Likewise.
2507 (hsa_allocp_inst_packed): Likewise.
2508 (hsa_allocp_inst_cvt): Likewise.
2509 (hsa_allocp_inst_alloca): Likewise.
2510 (hsa_allocp_bb): Likewise.
2512 (hsa_init_data_for_cfun): Initialize obstack.
2513 (hsa_deinit_data_for_cfun): Release memory of the obstack.
2514 (hsa_op_immed::operator new): Use obstack instead of object_allocator.
2515 (hsa_op_reg::operator new): Likewise.
2516 (hsa_op_address::operator new): Likewise.
2517 (hsa_op_code_list::operator new): Likewise.
2518 (hsa_op_operand_list::operator new): Likewise.
2519 (hsa_insn_basic::operator new): Likewise.
2520 (hsa_insn_phi::operator new): Likewise.
2521 (hsa_insn_br::operator new): Likewise.
2522 (hsa_insn_sbr::operator new): Likewise.
2523 (hsa_insn_cmp::operator new): Likewise.
2524 (hsa_insn_mem::operator new): Likewise.
2525 (hsa_insn_atomic::operator new): Likewise.
2526 (hsa_insn_signal::operator new): Likewise.
2527 (hsa_insn_seg::operator new): Likewise.
2528 (hsa_insn_call::operator new): Likewise.
2529 (hsa_insn_arg_block::operator new): Likewise.
2530 (hsa_insn_comment::operator new): Likewise.
2531 (hsa_insn_srctype::operator new): Likewise.
2532 (hsa_insn_packed::operator new): Likewise.
2533 (hsa_insn_cvt::operator new): Likewise.
2534 (hsa_insn_alloca::operator new): Likewise.
2535 (hsa_init_new_bb): Likewise.
2536 (hsa_bb::append_phi): New function.
2537 (gen_hsa_phi_from_gimple_phi): Use it.
2538 (get_symbol_for_decl): Fix dinstinguishing between
2539 global and local functions. Put local variables into a segment
2540 according to their attribute or static flag, if there is one.
2541 (hsa_insn_br::hsa_insn_br): New.
2542 (hsa_insn_br::operator new): Likewise.
2543 (hsa_insn_cbr::hsa_insn_cbr): Set width via ancestor constructor.
2544 (query_hsa_grid_nodim): New function.
2545 (multiply_grid_dim_characteristics): Likewise.
2546 (gen_get_num_threads): Likewise.
2547 (gen_get_num_teams): Reimplemented.
2548 (gen_get_team_num): Likewise.
2549 (gen_hsa_insns_for_known_library_call): Updated calls to the above
2551 (get_memory_order_name): Removed.
2552 (get_memory_order): Likewise.
2553 (hsa_memorder_from_tree): New function.
2554 (gen_hsa_ternary_atomic_for_builtin): Renamed to
2555 gen_hsa_atomic_for_builtin, can also create signals.
2556 (gen_hsa_insns_for_call): Handle many new builtins. Adjust to use
2557 hsa_memory_order_from_tree and gen_hsa_atomic_for_builtin.
2558 (hsa_insn_atomic): Fix function comment.
2559 (hsa_insn_signal::hsa_insn_signal): Fix comment. Update call to
2560 ancestor constructor and initialization of new member variables.
2561 (hsa_insn_queue::hsa_insn_queue): Added initialization of new
2563 (hsa_get_host_function): Handle functions with no bound CPU
2564 implementation. Fix binded to bound.
2565 (get_brig_function_name): Likewise.
2566 (HSA_SORRY_ATV): Remove semicolon after macro.
2567 (HSA_SORRY_AT): Likewise.
2568 (omp_simple_builtin::generate): Add missing semicolons.
2569 (hsa_insn_phi::operator new): Removed.
2570 (hsa_insn_br::operator new): Likewise.
2571 (hsa_insn_cbr::operator new): Likewise.
2572 (hsa_insn_sbr::operator new): Likewise.
2573 (hsa_insn_cmp::operator new): Likewise.
2574 (hsa_insn_mem::operator new): Likewise.
2575 (hsa_insn_atomic::operator new): Likewise.
2576 (hsa_insn_signal::operator new): Likewise.
2577 (hsa_insn_seg::operator new): Likewise.
2578 (hsa_insn_call::operator new): Likewise.
2579 (hsa_insn_arg_block::operator new): Likewise.
2580 (hsa_insn_comment::operator new): Likewise.
2581 (hsa_insn_srctype::operator new): Likewise.
2582 (hsa_insn_packed::operator new): Likewise.
2583 (hsa_insn_cvt::operator new): Likewise.
2584 (hsa_insn_alloca::operator new): Likewise.
2585 (get_symbol_for_decl): Accept CONST_DECLs, put them to
2587 (gen_hsa_addr): Also process CONST_DECLs.
2588 (gen_hsa_addr_insns): Process CONST_DECLs by creating private
2590 (gen_hsa_unary_operation): Make sure the function does
2591 not use bittype source type for firstbit and lastbit operations.
2592 (gen_hsa_popcount_to_dest): Make sure the function uses a bittype
2594 * hsa-brig.c (emit_insn_operands): Cope with zero operands in an
2596 (emit_branch_insn): Renamed to emit_cond_branch_insn.
2597 Emit the width stored in the class.
2598 (emit_generic_branch_insn): New function.
2599 (emit_insn): Call emit_generic_branch_insn.
2600 (emit_signal_insn): Remove obsolete comment. Update
2601 member variable name, pick a type according to profile.
2602 (emit_alloca_insn): Remove obsolete comment.
2603 (emit_atomic_insn): Likewise.
2604 (emit_queue_insn): Get segment and memory order from the IR object.
2605 (hsa_brig_section): Make allocate_new_chunk, chunks
2606 and cur_chunk provate, add a default NULL parameter to add method.
2607 (hsa_brig_section::add): Added a new parameter, store pointer to
2608 output data there if it is non-NULL.
2609 (emit_function_directives): Use this new parameter instead of
2610 calculating the pointer itself, fix function comment.
2611 (hsa_brig_emit_function): Add forgotten endian conversion.
2612 (hsa_output_kernels): Remove unnecessary building of
2613 kernel_dependencies_vector_type.
2614 (emit_immediate_operand): Declare.
2615 (emit_directive_variable): Also emit initializers of CONST_DECLs.
2616 (gen_hsa_insn_for_internal_fn_call): Also handle IFN_RSQRT.
2617 (verify_function_arguments): Properly detect variadic
2619 * hsa-dump.c (hsa_width_specifier_name): New function.
2620 (dump_hsa_insn_1): Dump generic branch instructions, update signal
2621 member variable name. Special dumping for queue objects.
2622 * ipa-hsa.c (process_hsa_functions): Adjust after renaming
2623 m_binded_functions to m_bound_functions. Copy externally visible flag
2625 (ipa_hsa_write_summary): Likewise.
2626 (ipa_hsa_read_section): Likewise.
2628 2016-11-23 Richard Biener <rguenther@suse.de>
2630 PR tree-optimization/78396
2631 * tree-vectorizer.c (vectorize_loops): If an innermost loop didn't
2632 vectorize try vectorizing an if-converted body using BB vectorization.
2634 2016-11-23 Richard Sandiford <richard.sandiford@arm.com>
2635 Alan Hayward <alan.hayward@arm.com>
2636 David Sherwood <david.sherwood@arm.com>
2638 * rtlanal.c (subreg_get_info): Use more local variables.
2639 Remark that for HARD_REGNO_NREGS_HAS_PADDING, each scalar unit
2640 occupies at least one register. Assume that full hard registers
2641 have consistent endianness. Share previously-duplicated if block.
2642 Rework the main handling so that it operates on independently-
2643 addressable YMODE-sized blocks. Use subreg_size_lowpart_offset
2644 to check lowpart offsets, without trying to find an equivalent
2645 integer mode first. Handle WORDS_BIG_ENDIAN != REG_WORDS_BIG_ENDIAN
2646 as a final register-endianness correction.
2648 2016-11-23 Segher Boessenkool <segher@kernel.crashing.org>
2654 * combine.c (make_compound_operation_int): Do not convert a subreg of
2655 a non-constant logical shift right to a zero_extract. Handle the case
2656 where some zero bits have been shifted into the range covered by that
2659 2016-11-23 Richard Sandiford <richard.sandiford@arm.com>
2660 Alan Hayward <alan.hayward@arm.com>
2661 David Sherwood <david.sherwood@arm.com>
2663 * rtl.h (subreg_size_offset_from_lsb): Declare.
2664 (subreg_offset_from_lsb): New function.
2665 (subreg_size_lowpart_offset): Declare.
2666 (subreg_lowpart_offset): Turn into an inline function.
2667 (subreg_size_highpart_offset): Declare.
2668 (subreg_highpart_offset): Turn into an inline function.
2669 * emit-rtl.c (subreg_size_lowpart_offset): New function.
2670 (subreg_size_highpart_offset): Likewise
2671 * rtlanal.c (subreg_size_offset_from_lsb): Likewise.
2673 2016-11-23 Richard Biener <rguenther@suse.de>
2675 PR tree-optimization/78482
2676 * tree-cfgcleanup.c: Include tree-ssa-loop-niter.h.
2677 (remove_forwarder_block_with_phi): When merging with a loop
2678 header creates a new latch reset number of iteration information
2681 2016-11-23 Eric Botcazou <ebotcazou@adacore.com>
2683 * config/sparc/sparc.md (*ashrsi3_extend): Rename to...
2684 (*ashrsi3_extend0): ...this. Accept constant integers.
2685 (*ashrsi3_extend2): Rename to...
2686 (*ashrsi3_extend1): ...this.
2687 (*ashrsi3_extend2): New pattern.
2688 (*lshrsi3_extend1): Accept constant integers.
2689 (*lshrsi3_extend2): Fix condition on operand 2.
2691 2016-11-23 Martin Liska <mliska@suse.cz>
2693 * config/i386/i386.c: Initialize function pointer to NULL.
2695 2016-11-23 Bin Cheng <bin.cheng@arm.com>
2697 * fold-const.c (fold_cond_expr_with_comparison): Move simplification
2698 for A == C1 ? A : C2 to below.
2699 * match.pd: Move from above to here:
2700 (cond (eq (convert1? x) c1) (convert2? x) c2)
2701 -> (cond (eq x c1) c1 c2).
2703 2016-11-23 Bin Cheng <bin.cheng@arm.com>
2705 * fold-const.c (fold_cond_expr_with_comparison): Move simplification
2706 for A cmp C1 ? A : C2 to below, also simplify remaining code.
2707 * match.pd: Move and extend simplification from above to here:
2708 (cond (cmp (convert1? x) c1) (convert2? x) c2) -> (minmax (x c)).
2709 * tree-if-conv.c (ifcvt_follow_ssa_use_edges): New func.
2710 (predicate_scalar_phi): Call fold_stmt using the new valueize func.
2712 2016-11-23 Martin Liska <mliska@suse.cz>
2713 Martin Jambor <mjambor@suse.cz>
2715 * doc/install.texi: Remove entry about --with-hsa-kmt-lib.
2717 2016-11-23 Aldy Hernandez <aldyh@redhat.com>
2720 * opts.c (finish_options): Set -fsyntax-only if running self tests.
2722 2016-11-23 Richard Biener <rguenther@suse.de>
2725 * match.pd ((~X & Y) -> X < Y, (X & ~Y) -> Y < X,
2726 (~X | Y) -> X <= Y, (X | ~Y) -> Y <= X): Remove.
2728 2016-11-23 Richard Biener <rguenther@suse.de>
2731 * tree.c (gimple_canonical_types_compatible_p): Ignore zero-sized
2734 2016-11-23 Richard Biener <rguenther@suse.de>
2735 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.rog>
2737 PR tree-optimization/78154
2738 * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Return true if function
2739 returns it's argument and the argument is nonnull.
2740 * builtin-attrs.def: Define ATTR_RETURNS_NONNULL,
2741 ATT_RETNONNULL_NOTHROW_LEAF.
2742 * builtins.def (BUILT_IN_MEMPCPY): Change attribute to
2743 ATTR_RETNONNULL_NOTHROW_LEAF.
2744 (BUILT_IN_STPCPY): Likewise.
2745 (BUILT_IN_STPNCPY): Likewise.
2746 (BUILT_IN_MEMPCPY_CHK): Likewise.
2747 (BUILT_IN_STPCPY_CHK): Likewise.
2748 (BUILT_IN_STPNCPY_CHK): Likewise.
2749 (BUILT_IN_STRCAT): Change attribute to ATTR_RET1_NOTHROW_NONNULL_LEAF.
2750 (BUILT_IN_STRNCAT): Likewise.
2751 (BUILT_IN_STRNCPY): Likewise.
2752 (BUILT_IN_MEMSET_CHK): Likewise.
2753 (BUILT_IN_STRCAT_CHK): Likewise.
2754 (BUILT_IN_STRCPY_CHK): Likewise.
2755 (BUILT_IN_STRNCAT_CHK): Likewise.
2756 (BUILT_IN_STRNCPY_CHK): Likewise.
2758 2016-11-23 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2760 * fold-const.c (tree_expr_nonzero_p) : Make non-static.
2761 * fold-const.h (tree_expr_nonzero_p) : Declare.
2762 * match.pd (cmp (mult:c @0 @1) (mult:c @2 @1) : New Pattern.
2764 2016-11-23 Paolo Bonzini <bonzini@gnu.org>
2766 * system.h (HAVE_DESIGNATED_INITIALIZERS,
2767 HAVE_DESIGNATED_UNION_INITIALIZERS): Do not use
2768 "defined" in macros.
2769 * doc/cpp.texi (Defined): Mention -Wexpansion-to-defined.
2770 * doc/cppopts.texi (Invocation): Document -Wexpansion-to-defined.
2771 * doc/invoke.texi (Warning Options): Document -Wexpansion-to-defined.
2773 2016-11-23 Georg-Johann Lay <avr@gjlay.de>
2776 * config/avr/constraints.md (Csp): Widen range to [-11..6].
2777 * config/avr/avr.c (avr_prologue_setup_frame): Limit number
2778 of RCALLs in prologue to 3.
2780 2016-11-22 Michael Collison <michael.collison@arm.com>
2782 * config/aarch64/aarch64-protos.h
2783 (aarch64_and_split_imm1, aarch64_and_split_imm2)
2784 (aarch64_and_bitmask_imm): New prototypes
2785 * config/aarch64/aarch64.c (aarch64_and_split_imm1):
2786 New overloaded function to create bit mask covering the
2787 lowest to highest bits set.
2788 (aarch64_and_split_imm2): New overloaded functions to create bit
2789 mask of zeros between first and last bit set.
2790 (aarch64_and_bitmask_imm): New function to determine if a integer
2791 is a valid two instruction "and" operation.
2792 * config/aarch64/aarch64.md:(and<mode>3): New define_insn and _split
2793 allowing wider range of constants with "and" operations.
2794 * (ior<mode>3, xor<mode>3): Use new LOGICAL2 iterator to prevent
2795 "and" operator from matching restricted constant range used for
2796 ior and xor operators.
2797 * config/aarch64/constraints.md (UsO constraint): New SImode constraint
2798 for constants in "and" operantions.
2799 (UsP constraint): New DImode constraint for constants
2800 in "and" operations.
2801 * config/aarch64/iterators.md (lconst2): New mode iterator.
2802 (LOGICAL2): New code iterator.
2803 * config/aarch64/predicates.md (aarch64_logical_and_immediate): New
2805 (aarch64_logical_and_operand): New predicate allowing extended
2806 constants for "and" operations.
2808 2016-11-22 Walter Lee <walt@tilera.com>
2810 * config/tilegx/tilegx.md (trap): New pattern.
2811 * config/tilepro/tilepro.md (trap): Likewise.
2813 2016-11-22 Walter Lee <walt@tilera.com>
2815 * config/tilegx/tilegx.md (*zero_extract): Use
2816 define_insn_and_split instead of define_insn; Handle pos + size >
2818 (*sign_extract): Likewise.
2820 2016-11-22 Marek Polacek <polacek@redhat.com>
2822 PR tree-optimization/78455
2823 * tree-ssa-uninit.c (can_chain_union_be_invalidated_p): Fix typo.
2825 2016-11-22 Ian Lance Taylor <iant@golang.org>
2829 * godump.c (go_format_type): Always pass alignment as 1 when
2830 calling go_append_padding at end of struct/union.
2832 2016-11-22 Jakub Jelinek <jakub@redhat.com>
2835 * config/i386/avx512bwintrin.h (_mm512_setzero_qi,
2836 _mm512_setzero_hi): Removed.
2837 (_mm512_maskz_mov_epi16, _mm512_maskz_loadu_epi16,
2838 _mm512_maskz_mov_epi8, _mm512_maskz_loadu_epi8,
2839 _mm512_maskz_broadcastb_epi8, _mm512_maskz_set1_epi8,
2840 _mm512_maskz_broadcastw_epi16, _mm512_maskz_set1_epi16,
2841 _mm512_mulhrs_epi16, _mm512_maskz_mulhrs_epi16, _mm512_mulhi_epi16,
2842 _mm512_maskz_mulhi_epi16, _mm512_mulhi_epu16,
2843 _mm512_maskz_mulhi_epu16, _mm512_maskz_mullo_epi16,
2844 _mm512_cvtepi8_epi16, _mm512_maskz_cvtepi8_epi16, _mm512_cvtepu8_epi16,
2845 _mm512_maskz_cvtepu8_epi16, _mm512_permutexvar_epi16,
2846 _mm512_maskz_permutexvar_epi16, _mm512_avg_epu8, _mm512_maskz_avg_epu8,
2847 _mm512_maskz_add_epi8, _mm512_maskz_sub_epi8, _mm512_avg_epu16,
2848 _mm512_maskz_avg_epu16, _mm512_subs_epi8, _mm512_maskz_subs_epi8,
2849 _mm512_subs_epu8, _mm512_maskz_subs_epu8, _mm512_adds_epi8,
2850 _mm512_maskz_adds_epi8, _mm512_adds_epu8, _mm512_maskz_adds_epu8,
2851 _mm512_maskz_sub_epi16, _mm512_subs_epi16, _mm512_maskz_subs_epi16,
2852 _mm512_subs_epu16, _mm512_maskz_subs_epu16, _mm512_maskz_add_epi16,
2853 _mm512_adds_epi16, _mm512_maskz_adds_epi16, _mm512_adds_epu16,
2854 _mm512_maskz_adds_epu16, _mm512_srl_epi16, _mm512_maskz_srl_epi16,
2855 _mm512_packs_epi16, _mm512_sll_epi16, _mm512_maskz_sll_epi16,
2856 _mm512_maddubs_epi16, _mm512_maskz_maddubs_epi16, _mm512_unpackhi_epi8,
2857 _mm512_maskz_unpackhi_epi8, _mm512_unpackhi_epi16,
2858 _mm512_maskz_unpackhi_epi16, _mm512_unpacklo_epi8,
2859 _mm512_maskz_unpacklo_epi8, _mm512_unpacklo_epi16,
2860 _mm512_maskz_unpacklo_epi16, _mm512_shuffle_epi8,
2861 _mm512_maskz_shuffle_epi8, _mm512_min_epu16, _mm512_maskz_min_epu16,
2862 _mm512_min_epi16, _mm512_maskz_min_epi16, _mm512_max_epu8,
2863 _mm512_maskz_max_epu8, _mm512_max_epi8, _mm512_maskz_max_epi8,
2864 _mm512_min_epu8, _mm512_maskz_min_epu8, _mm512_min_epi8,
2865 _mm512_maskz_min_epi8, _mm512_max_epi16, _mm512_maskz_max_epi16,
2866 _mm512_max_epu16, _mm512_maskz_max_epu16, _mm512_sra_epi16,
2867 _mm512_maskz_sra_epi16, _mm512_srav_epi16, _mm512_maskz_srav_epi16,
2868 _mm512_srlv_epi16, _mm512_maskz_srlv_epi16, _mm512_sllv_epi16,
2869 _mm512_maskz_sllv_epi16, _mm512_maskz_packs_epi16, _mm512_packus_epi16,
2870 _mm512_maskz_packus_epi16, _mm512_abs_epi8, _mm512_maskz_abs_epi8,
2871 _mm512_abs_epi16, _mm512_maskz_abs_epi16, _mm512_dbsad_epu8,
2872 _mm512_maskz_dbsad_epu8, _mm512_srli_epi16, _mm512_maskz_srli_epi16,
2873 _mm512_slli_epi16, _mm512_maskz_slli_epi16, _mm512_shufflehi_epi16,
2874 _mm512_maskz_shufflehi_epi16, _mm512_shufflelo_epi16,
2875 _mm512_maskz_shufflelo_epi16, _mm512_srai_epi16,
2876 _mm512_maskz_srai_epi16, _mm512_packs_epi32,
2877 _mm512_maskz_packs_epi32, _mm512_packus_epi32,
2878 _mm512_maskz_packus_epi32): Use _mm512_setzero_si512 instead of
2879 _mm512_setzero_qi or _mm512_setzero_hi.
2880 (_mm512_maskz_alignr_epi8, _mm512_dbsad_epu8,
2881 _mm512_maskz_dbsad_epu8): Formatting fixes.
2882 (_mm512_srli_epi16, _mm512_maskz_srli_epi16, _mm512_slli_epi16,
2883 _mm512_maskz_slli_epi16, _mm512_shufflehi_epi16,
2884 _mm512_maskz_shufflehi_epi16, _mm512_shufflelo_epi16,
2885 _mm512_maskz_shufflelo_epi16, _mm512_srai_epi16,
2886 _mm512_maskz_srai_epi16): Use _mm512_setzero_si512 instead of
2887 _mm512_setzero_qi or _mm512_setzero_hi.
2889 2016-11-22 Nathan Sidwell <nathan@acm.org>
2891 * gcc-ar.c (main): Fix indentation.
2892 * gcov-io.c (gcov_write_summary): Remove extraneous {...}
2893 * ggc-page.c (move_ptes_to_front): Fix formatting.
2894 * hsa-dump.c (dump_has_cfun): Fix indentation.
2895 * sel-sched-ir.h: Remove trailing blank lines.
2897 2016-11-22 Jakub Jelinek <jakub@redhat.com>
2898 Alexander Monakov <amonakov@ispras.ru>
2900 * internal-fn.c (expand_GOMP_USE_SIMT): New function.
2901 * tree.c (omp_clause_num_ops): OMP_CLAUSE__SIMT_ has 0 operands.
2902 (omp_clause_code_name): Add _simt_ name.
2903 (walk_tree_1): Handle OMP_CLAUSE__SIMT_.
2904 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SIMT_.
2905 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__SIMT_.
2906 (scan_omp_simd): New function.
2907 (scan_omp_1_stmt): Use it in target regions if needed.
2908 (omp_max_vf): Don't max with omp_max_simt_vf.
2909 (lower_rec_simd_input_clauses): Use omp_max_simt_vf if
2910 OMP_CLAUSE__SIMT_ is present.
2911 (lower_rec_input_clauses): Compute maybe_simt from presence of
2913 (lower_lastprivate_clauses): Likewise.
2914 (expand_omp_simd): Likewise. Remove explicit offloaded region check.
2915 (execute_omp_device_lower): Lower IFN_GOMP_USE_SIMT.
2916 * internal-fn.def (GOMP_USE_SIMT): New internal function.
2917 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__SIMT_.
2919 2016-11-22 Alexander Monakov <amonakov@ispras.ru>
2921 * internal-fn.c (expand_GOMP_SIMT_LANE): New.
2922 (expand_GOMP_SIMT_VF): New.
2923 (expand_GOMP_SIMT_LAST_LANE): New.
2924 (expand_GOMP_SIMT_ORDERED_PRED): New.
2925 (expand_GOMP_SIMT_VOTE_ANY): New.
2926 (expand_GOMP_SIMT_XCHG_BFLY): New.
2927 (expand_GOMP_SIMT_XCHG_IDX): New.
2928 * internal-fn.def (GOMP_SIMT_LANE): New.
2929 (GOMP_SIMT_VF): New.
2930 (GOMP_SIMT_LAST_LANE): New.
2931 (GOMP_SIMT_ORDERED_PRED): New.
2932 (GOMP_SIMT_VOTE_ANY): New.
2933 (GOMP_SIMT_XCHG_BFLY): New.
2934 (GOMP_SIMT_XCHG_IDX): New.
2935 * omp-low.c (omp_maybe_offloaded_ctx): New, outlined from...
2936 (create_omp_child_function): ...here. Set "omp target entrypoint"
2937 or "omp declare target" attribute based on is_gimple_omp_offloaded.
2938 (omp_max_simt_vf): New. Use it...
2939 (omp_max_vf): ...here.
2940 (lower_rec_input_clauses): Add reduction lowering for SIMT execution.
2941 (lower_lastprivate_clauses): Likewise, for "lastprivate" lowering.
2942 (lower_omp_ordered): Likewise, for "ordered" lowering.
2943 (expand_omp_simd): Add SIMT transforms.
2944 (pass_data_lower_omp): Add PROP_gimple_lomp_dev.
2945 (execute_omp_device_lower): New.
2946 (pass_data_omp_device_lower): New.
2947 (pass_omp_device_lower): New pass.
2948 (make_pass_omp_device_lower): New.
2949 * passes.def (pass_omp_device_lower): Position new pass.
2950 * tree-pass.h (PROP_gimple_lomp_dev): Define.
2951 (make_pass_omp_device_lower): Declare.
2953 2016-11-22 Jakub Jelinek <jakub@redhat.com>
2956 * config/i386/avx512vlintrin.h (_mm_setzero_di): Removed.
2957 (_mm_maskz_mov_epi64): Use _mm_setzero_si128 instead of
2959 (_mm_maskz_load_epi64): Likewise.
2960 (_mm_setzero_hi): Removed.
2961 (_mm_maskz_loadu_epi64): Use _mm_setzero_si128 instead of
2963 (_mm_abs_epi64, _mm_maskz_abs_epi64, _mm_maskz_srl_epi64,
2964 _mm_maskz_unpackhi_epi64, _mm_maskz_unpacklo_epi64,
2965 _mm_maskz_compress_epi64, _mm_srav_epi64, _mm_maskz_srav_epi64,
2966 _mm_maskz_sllv_epi64, _mm_maskz_srlv_epi64, _mm_rolv_epi64,
2967 _mm_maskz_rolv_epi64, _mm_rorv_epi64, _mm_maskz_rorv_epi64,
2968 _mm_min_epi64, _mm_max_epi64, _mm_max_epu64, _mm_min_epu64,
2969 _mm_lzcnt_epi64, _mm_maskz_lzcnt_epi64, _mm_conflict_epi64,
2970 _mm_maskz_conflict_epi64, _mm_sra_epi64, _mm_maskz_sra_epi64,
2971 _mm_maskz_sll_epi64, _mm_rol_epi64, _mm_maskz_rol_epi64,
2972 _mm_ror_epi64, _mm_maskz_ror_epi64, _mm_alignr_epi64,
2973 _mm_maskz_alignr_epi64, _mm_srai_epi64, _mm_maskz_slli_epi64):
2975 (_mm_cvtepi32_epi8, _mm256_cvtepi32_epi8, _mm_cvtsepi32_epi8,
2976 _mm256_cvtsepi32_epi8, _mm_cvtusepi32_epi8, _mm256_cvtusepi32_epi8,
2977 _mm_cvtepi32_epi16, _mm256_cvtepi32_epi16, _mm_cvtsepi32_epi16,
2978 _mm256_cvtsepi32_epi16, _mm_cvtusepi32_epi16, _mm256_cvtusepi32_epi16,
2979 _mm_cvtepi64_epi8, _mm256_cvtepi64_epi8, _mm_cvtsepi64_epi8,
2980 _mm256_cvtsepi64_epi8, _mm_cvtusepi64_epi8, _mm256_cvtusepi64_epi8,
2981 _mm_cvtepi64_epi16, _mm256_cvtepi64_epi16, _mm_cvtsepi64_epi16,
2982 _mm256_cvtsepi64_epi16, _mm_cvtusepi64_epi16, _mm256_cvtusepi64_epi16,
2983 _mm_cvtepi64_epi32, _mm256_cvtepi64_epi32, _mm_cvtsepi64_epi32,
2984 _mm256_cvtsepi64_epi32, _mm_cvtusepi64_epi32, _mm256_cvtusepi64_epi32,
2985 _mm_maskz_set1_epi32, _mm_maskz_set1_epi64): Formatting fixes.
2986 (_mm_maskz_cvtps_ph, _mm256_maskz_cvtps_ph): Use _mm_setzero_si128
2987 instead of _mm_setzero_hi.
2988 (_mm256_permutex_pd, _mm256_maskz_permutex_epi64, _mm256_insertf32x4,
2989 _mm256_maskz_insertf32x4, _mm256_inserti32x4, _mm256_maskz_inserti32x4,
2990 _mm256_extractf32x4_ps, _mm256_maskz_extractf32x4_ps,
2991 _mm256_shuffle_i32x4, _mm256_maskz_shuffle_i32x4, _mm256_shuffle_f64x2,
2992 _mm256_maskz_shuffle_f64x2, _mm256_shuffle_f32x4,
2993 _mm256_maskz_shuffle_f32x4, _mm256_maskz_shuffle_pd,
2994 _mm_maskz_shuffle_pd, _mm256_maskz_shuffle_ps, _mm_maskz_shuffle_ps,
2995 _mm256_maskz_srli_epi32, _mm_maskz_srli_epi32, _mm_maskz_srli_epi64,
2996 _mm256_mask_slli_epi32, _mm256_maskz_slli_epi32, _mm256_mask_slli_epi64,
2997 _mm256_maskz_slli_epi64, _mm256_roundscale_ps,
2998 _mm256_maskz_roundscale_ps, _mm256_roundscale_pd,
2999 _mm256_maskz_roundscale_pd, _mm_roundscale_ps, _mm_maskz_roundscale_ps,
3000 _mm_roundscale_pd, _mm_maskz_roundscale_pd, _mm256_getmant_ps,
3001 _mm256_maskz_getmant_ps, _mm_getmant_ps, _mm_maskz_getmant_ps,
3002 _mm256_getmant_pd, _mm256_maskz_getmant_pd, _mm_getmant_pd,
3003 _mm_maskz_getmant_pd, _mm256_maskz_shuffle_epi32,
3004 _mm_maskz_shuffle_epi32, _mm256_rol_epi32, _mm256_maskz_rol_epi32,
3005 _mm_rol_epi32, _mm_maskz_rol_epi32, _mm256_ror_epi32,
3006 _mm256_maskz_ror_epi32, _mm_ror_epi32, _mm_maskz_ror_epi32,
3007 _mm_maskz_alignr_epi32, _mm_maskz_alignr_epi64,
3008 _mm256_maskz_srai_epi32, _mm_maskz_srai_epi32, _mm_srai_epi64,
3009 _mm_maskz_srai_epi64, _mm256_maskz_permutex_pd,
3010 _mm256_maskz_permute_pd, _mm256_maskz_permute_ps, _mm_maskz_permute_pd,
3011 _mm_maskz_permute_ps, _mm256_permutexvar_ps): Formatting fixes.
3012 (_mm_maskz_slli_epi64, _mm_rol_epi64, _mm_maskz_rol_epi64,
3013 _mm_ror_epi64, _mm_maskz_ror_epi64): Use _mm_setzero_si128 instead of
3015 (_mm_maskz_cvtps_ph, _mm256_maskz_cvtps_ph): Use _mm_setzero_si128
3016 instead of _mm_setzero_hi.
3017 * config/i386/avx512dqintrin.h (_mm512_broadcast_f64x2,
3018 _mm512_broadcast_i64x2, _mm512_broadcast_f32x2, _mm512_broadcast_i32x2,
3019 _mm512_broadcast_f32x8, _mm512_broadcast_i32x8): Formatting fixes.
3020 (_mm512_extracti64x2_epi64, _mm512_maskz_extracti64x2_epi64): Use
3021 _mm_setzero_si128 instead of _mm_setzero_di.
3022 (_mm512_cvtt_roundpd_epi64, _mm512_mask_cvtt_roundpd_epi64,
3023 _mm512_maskz_cvtt_roundpd_epi64, _mm512_cvtt_roundpd_epu64,
3024 _mm512_mask_cvtt_roundpd_epu64, _mm512_maskz_cvtt_roundpd_epu64,
3025 _mm512_cvtt_roundps_epi64, _mm512_mask_cvtt_roundps_epi64,
3026 _mm512_maskz_cvtt_roundps_epi64, _mm512_cvtt_roundps_epu64,
3027 _mm512_mask_cvtt_roundps_epu64, _mm512_maskz_cvtt_roundps_epu64,
3028 _mm512_cvt_roundpd_epi64, _mm512_mask_cvt_roundpd_epi64,
3029 _mm512_maskz_cvt_roundpd_epi64, _mm512_cvt_roundpd_epu64,
3030 _mm512_mask_cvt_roundpd_epu64, _mm512_maskz_cvt_roundpd_epu64,
3031 _mm512_cvt_roundps_epi64, _mm512_mask_cvt_roundps_epi64,
3032 _mm512_maskz_cvt_roundps_epi64, _mm512_cvt_roundps_epu64,
3033 _mm512_mask_cvt_roundps_epu64, _mm512_maskz_cvt_roundps_epu64,
3034 _mm512_cvt_roundepi64_ps, _mm512_mask_cvt_roundepi64_ps,
3035 _mm512_maskz_cvt_roundepi64_ps, _mm512_cvt_roundepu64_ps,
3036 _mm512_mask_cvt_roundepu64_ps, _mm512_maskz_cvt_roundepu64_ps,
3037 _mm512_cvt_roundepi64_pd, _mm512_mask_cvt_roundepi64_pd,
3038 _mm512_maskz_cvt_roundepi64_pd, _mm512_cvt_roundepu64_pd,
3039 _mm512_mask_cvt_roundepu64_pd, _mm512_maskz_cvt_roundepu64_pd,
3040 _mm512_reduce_pd, _mm512_maskz_reduce_pd, _mm512_reduce_ps,
3041 _mm512_maskz_reduce_ps, _mm512_extractf32x8_ps,
3042 _mm512_maskz_extractf32x8_ps, _mm512_extractf64x2_pd,
3043 _mm512_maskz_extractf64x2_pd, _mm512_extracti32x8_epi32,
3044 _mm512_maskz_extracti32x8_epi32, _mm512_range_pd,
3045 _mm512_maskz_range_pd, _mm512_range_ps, _mm512_maskz_range_ps,
3046 _mm512_range_round_pd, _mm512_maskz_range_round_pd,
3047 _mm512_range_round_ps, _mm512_maskz_range_round_ps,
3048 _mm512_maskz_insertf64x2, _mm512_insertf32x8,
3049 _mm512_maskz_insertf32x8): Formatting fixes.
3050 (_mm512_extracti64x2_epi64, _mm512_maskz_extracti64x2_epi64): Use
3051 _mm_setzero_si128 instead of _mm_setzero_di.
3052 * config/i386/avx512vldqintrin.h (_mm_cvttpd_epi64,
3053 _mm_cvttpd_epu64, _mm_cvtpd_epi64, _mm_cvtpd_epu64,
3054 _mm_cvttps_epi64, _mm_maskz_cvttps_epi64, _mm_cvttps_epu64,
3055 _mm_maskz_cvttps_epu64, _mm_maskz_mullo_epi64, _mm_cvtps_epi64,
3056 _mm_maskz_cvtps_epi64, _mm_cvtps_epu64, _mm_maskz_cvtps_epu64,
3057 _mm256_extracti64x2_epi64, _mm256_maskz_extracti64x2_epi64): Use
3058 _mm_setzero_si128 instead of _mm_setzero_di.
3059 (_mm256_extracti64x2_epi64, _mm256_maskz_extracti64x2_epi64):
3061 * config/i386/avx512vlbwintrin.h (_mm_maskz_mov_epi8,
3062 _mm_maskz_loadu_epi16, _mm_maskz_mov_epi16, _mm_maskz_loadu_epi8,
3063 _mm_permutexvar_epi16, _mm_maskz_maddubs_epi16): Use
3064 _mm_setzero_si128 instead of _mm_setzero_hi.
3065 (_mm_maskz_min_epu16, _mm_maskz_max_epu8, _mm_maskz_max_epi8,
3066 _mm_maskz_min_epu8, _mm_maskz_min_epi8, _mm_maskz_max_epi16,
3067 _mm_maskz_max_epu16, _mm_maskz_min_epi16): Use _mm_setzero_si128
3068 instead of _mm_setzero_di.
3069 (_mm_dbsad_epu8, _mm_maskz_shufflehi_epi16,
3070 _mm_maskz_shufflelo_epi16): Use _mm_setzero_si128 instead of
3072 (_mm_maskz_shufflehi_epi16, _mm_maskz_shufflelo_epi16,
3073 _mm_maskz_slli_epi16): Use _mm_setzero_si128 instead of
3075 (_mm_maskz_alignr_epi8): Use _mm_setzero_si128 instead of
3077 (_mm_maskz_mulhi_epi16, _mm_maskz_mulhi_epu16, _mm_maskz_mulhrs_epi16,
3078 _mm_maskz_mullo_epi16, _mm_srav_epi16, _mm_srlv_epi16,
3079 _mm_sllv_epi16): Use _mm_setzero_si128 instead of _mm_setzero_hi.
3081 2016-11-22 Carl Love <cel@us.ibm.com>
3083 * config/rs6000/rs6000-c.c: Add built-in support for vector compare
3084 equal and vector compare not equal. The vector compares take two
3085 arguments of type vector bool char, vector bool short, vector bool int,
3086 vector bool long long with the same return type.
3087 * doc/extend.texi: Update built-in documentation file for the new
3090 2016-11-22 Uros Bizjak <ubizjak@gmail.com>
3092 * Makefile.in ($(lang_checks_parallelized)): Fix detection
3095 2016-11-22 Thomas Preud'homme <thomas.preudhomme@arm.com>
3097 * config.gcc: Allow new rmprofile value for configure option
3098 --with-multilib-list.
3099 * config/arm/t-rmprofile: New file.
3100 * doc/install.texi (--with-multilib-list): Document new rmprofile value
3103 2016-11-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3106 * config/arm/vfp.md (*movdi_vfp_cortexa8): Use 'q' constraints for the
3107 register operand in alternatives 4,5,6.
3109 2016-11-22 Thomas Preud'homme <thomas.preudhomme@arm.com>
3112 * config/arm/arm.c (thumb1_compute_save_reg_mask): Mark frame pointer
3113 in save register mask if it is needed.
3115 2016-11-22 Jakub Jelinek <jakub@redhat.com>
3117 PR tree-optimization/78436
3118 * gimple-ssa-store-merging.c (zero_char_buf): Removed.
3119 (shift_bytes_in_array, shift_bytes_in_array_right,
3120 merged_store_group::apply_stores): Formatting fixes.
3121 (clear_bit_region): Likewise. Use memset.
3122 (encode_tree_to_bitpos): Formatting fixes. Fix comment typos - EPXR
3123 instead of EXPR and inerted instead of inserted. Use memset instead
3124 of zero_char_buf. For !BYTES_BIG_ENDIAN decrease byte_size by 1
3128 * expmed.c (expand_divmod): Use wide_int for computation of
3129 op1_is_pow2. Don't set it if op1 is 0. Formatting fixes.
3130 Use size <= HOST_BITS_PER_WIDE_INT instead of
3131 HOST_BITS_PER_WIDE_INT >= size.
3133 PR tree-optimization/78445
3134 * tree-if-conv.c (tree_if_conversion): If any_pred_load_store or
3135 any_complicated_phi, version loop even if flag_tree_loop_if_convert
3136 is 1. Formatting fix.
3138 2016-11-22 Martin Liska <mliska@suse.cz>
3141 * ipa-icf.c (void sem_item::set_hash): Update m_hash_set.
3142 (sem_function::get_hash): Use the new field.
3143 (sem_function::parse): Remove an argument from ctor.
3144 (sem_variable::parse): Likewise.
3145 (sem_variable::get_hash): Use the new field.
3146 (sem_item_optimizer::read_section): Use new ctor and set hash.
3147 * ipa-icf.h: _hash is removed from sem_item::sem_item,
3148 sem_variable::sem_variable, sem_function::sem_function.
3150 2016-11-21 Jeff Law <law@redhat.com>
3153 * config/cris/cris.md: Don't call copy_to_mode_reg unless
3154 can_create_pseudo_p is true.
3156 2016-11-21 Segher Boessenkool <segher@kernel.crashing.org>
3159 * config/rs6000/rs6000.md (*rotlsi3_insert_5, *rotldi3_insert_6,
3160 *rotldi3_insert_7): New define_insns.
3162 2016-11-21 Michael Meissner <meissner@linux.vnet.ibm.com>
3164 * config/rs6000/rs6000.md (movdi_internal32): Change constraints
3165 so that DImode can be allocated to FP/vector registers in more
3166 cases, and we can avoid direct move operations. If the register
3167 needs reloading, prefer GPRs over FP/vector registers. In the
3168 case of FPR vs. Altivec registers, prefer FPR registers unless we
3169 have the ISA 3.0 reg+offset scalar instructions.
3170 (movdi_internal64): Likewise.
3172 2016-11-21 Jakub Jelinek <jakub@redhat.com>
3175 * omp-simd-clone.c (simd_clone_adjust_argument_types): Use NULL prefix
3176 for tmp simd array if DECL_NAME (parm) is NULL.
3178 2016-11-20 Jeff Law <law@redhat.com>
3181 * config/m68k/predicates.md (swap_peephole_relational_operator): New
3183 * config/m68k/m68k.md (relational tests against 65535/65536): New
3186 2016-11-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3188 * tree-ssa-loop-prefetch.c: Delete FIXME after the includes.
3190 2016-11-21 Martin Sebor <msebor@redhat.com>
3192 * doc/invoke.texi (-fprintf-return-value): Document that option
3193 is enabled by default.
3195 2016-11-21 Georg-Johann Lay <avr@gjlay.de>
3197 * config/avr/avr-c.c (avr_register_target_pragmas): Use C++
3198 for-loop declaration of loop variable.
3199 (avr_register_target_pragmas, avr_cpu_cpp_builtins): Same.
3200 * config/avr/avr.c (avr_popcount_each_byte)
3201 (avr_init_expanders, avr_regs_to_save, sequent_regs_live)
3202 (get_sequence_length, avr_prologue_setup_frame, avr_map_metric)
3203 (avr_expand_epilogue, avr_function_arg_advance)
3204 (avr_out_compare, avr_out_plus_1, avr_out_bitop, avr_out_fract)
3205 (avr_rotate_bytes, _reg_unused_after, avr_assemble_integer)
3206 (avr_adjust_reg_alloc_order, output_reload_in_const)
3207 (avr_conditional_register_usage, avr_find_unused_d_reg)
3208 (avr_map_decompose, avr_fold_builtin): Same.
3210 2016-11-21 Georg-Johann Lay <avr@gjlay.de>
3212 * config/avr/avr.c (avr_popcount): Remove static function.
3213 (avr_popcount_each_byte, avr_out_bitop): Use popcount_hwi instead.
3215 2016-11-21 Richard Earnshaw <rearnsha@arm.com>
3217 * arm.opt (mapcs-float): Delete option.
3218 * arm.c (arm_option_override): Remove hunk relating to
3220 * doc/invoke.texi (arm options): Remove documentation for -mapcs-float.
3222 2016-11-21 Richard Sandiford <richard.sandiford@arm.com>
3224 * tree-tailcall.c (process_assignment): Simplify the check for
3225 a valid copy, allowing the source to be a local variable as
3226 well as an SSA name.
3227 (find_tail_calls): Allow copies between local variables to follow
3228 the call. Allow the result to be stored in any local variable,
3229 even if it's an aggregate.
3230 (eliminate_tail_call): Check whether the result is an SSA name
3231 before updating its SSA_NAME_DEF_STMT.
3233 2016-11-21 David Malcolm <dmalcolm@redhat.com>
3235 PR preprocessor/78324
3236 * input.c (get_substring_ranges_for_loc): Fail gracefully if
3237 -ftrack-macro-expansion has a value other than 2.
3239 2016-11-21 Segher Boessenkool <segher@kernel.crashing.org>
3241 PR rtl-optimization/78400
3242 * shrink-wrap.c (try_shrink_wrapping_separate): Call
3243 df_update_entry_exit_and_calls instead of df_update_entry_block_defs
3244 and df_update_exit_block_uses.
3246 2016-11-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
3249 * doc/invoke.texi (-Wno-builtin-declaration-mismatch): Document the
3250 new default-enabled warning..
3251 * builtin-types.def (BT_CONST_TM_PTR): New primitive type.
3252 (BT_PTR_CONST_STRING): Updated.
3253 (BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_PTR): Removed.
3254 (BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_TM_PTR): New function type.
3255 * builtins.def (DEF_TM_BUILTIN): Disable BOTH_P for TM builtins.
3256 (strftime): Update builtin function.
3257 * tree-core.h (TI_CONST_TM_PTR_TYPE): New enum value.
3258 * tree.h (const_tm_ptr_type_node): New type node.
3259 * tree.c (free_lang_data, build_common_tree_nodes): Initialize
3260 const_tm_ptr_type_node.
3262 2016-11-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3264 PR tree-optimization/78413
3265 * tree-if-conv.c (versionable_outer_loop_p): Require that both
3266 inner and outer loop latches have single predecessors.
3268 2016-11-21 Georg-Johann Lay <avr@gjlay.de>
3271 * config/avr/avr.c (avr_decl_maybe_lds_p): New static function.
3272 (avr_encode_section_info) [TARGET_ABSDATA && AVR_TINY]: Use it.
3274 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3276 * rtl.h: Adjust prototype.
3277 * rtlanal.c (dead_or_set_p): Change argument type to rtx_insn *.
3278 (dead_or_set_regno_p): Likewise.
3280 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3282 * rtl.h: Adjust prototype.
3283 * rtlanal.c (add_int_reg_note): Change argument type to rtx_insn *.
3285 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3287 * function.c (contains): Change argument type to rtx_insn *.
3288 (prologue_contains): Likewise.
3289 (epilogue_contains): Likewise.
3290 (prologue_epilogue_contains): Likewise.
3291 * function.h: Adjust prototype.
3293 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3295 * optabs.c (emit_libcall_block): Change argument type to
3297 * optabs.h: Adjust prototype.
3299 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3301 * cfgrtl.c (delete_insn): Change argument type to rtx_insn *.
3302 (fixup_reorder_chain): Adjust.
3303 * cfgrtl.h: Adjust prototype.
3305 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3307 * rtl.h: Adjust prototype.
3308 * rtlanal.c (replace_label_in_insn): Change argument type to
3311 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3313 * config/v850/v850.c (expand_prologue): Adjust.
3314 (expand_epilogue): Likewise.
3315 * expr.c (init_expr_target): Likewise.
3316 * genrecog.c (print_subroutine): Always make the argument type
3318 * recog.h: Adjust prototype.
3320 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3322 * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): split
3323 up variables to make some rtx_insn *.
3324 * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
3325 * config/arc/arc.c: Likewise.
3326 * config/arm/arm.c: Likewise.
3327 * config/mn10300/mn10300.c (mn10300_legitimize_pic_address): Likewise.
3328 * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue):
3330 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
3332 2016-11-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3334 * config/arm/arm.c (legitimize_pic_address): Change to use
3335 rtx_insn * as the type of variables.
3336 (arm_pic_static_addr): Likewise.
3337 (arm_emit_movpair): Likewise.
3338 * config/c6x/c6x.c (reorg_split_calls): Likewise.
3339 * config/darwin.c (machopic_legitimize_pic_address): Likewise.
3340 * config/frv/frv.c (frv_optimize_membar_local): Likewise.
3341 * config/frv/frv.md: Likewise.
3342 * config/i386/i386-protos.h: Likewise.
3343 * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
3344 (ix86_split_fp_branch): Likewise.
3345 (predict_jump): Likewise.
3346 * config/ia64/ia64.c: Likewise.
3347 * config/mcore/mcore.c: Likewise.
3348 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
3349 * config/s390/s390.c: Likewise.
3350 * config/s390/s390.md: Likewise.
3351 * config/spu/spu.md: Likewise.
3352 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise.
3353 * lower-subreg.c (resolve_simple_move): Likewise.
3355 2016-11-20 Jeff Law <law@redhat.com>
3358 * reload.h (struct target_reload): Make x_double_reg_address_ok
3360 * reload.c (find_reloads_address): Check if double_reg_address_ok
3361 is true for the mode of the memory reference.
3362 * reload1.c (init_reload): Initialize double_reg_address_ok for
3365 2016-11-20 Aldy Hernandez <aldyh@redhat.com>
3368 * tree-ssa-uninit.c: Define new global max_phi_args.
3369 (compute_uninit_opnds_pos): Use max_phi_args.
3370 (prune_uninit_phi_opnds): Same.
3371 (use_pred_not_overlap_with_undef_path_pred): Remove reference to
3372 missing NUM_PREDS in function comment.
3373 (can_one_predicate_be_invalidated_p): New.
3374 (can_chain_union_be_invalidated_p): New.
3375 (flatten_out_predicate_chains): New.
3376 (uninit_ops_invalidate_phi_use): New.
3377 (is_use_properly_guarded): Call uninit_ops_invalidate_phi_use.
3379 2016-11-20 Marc Glisse <marc.glisse@inria.fr>
3381 * fold-const.c (fold_comparison): Ignore EXACT_DIV_EXPR.
3382 * match.pd (A /[ex] B CMP C): New simplifications.
3384 2016-11-20 Marc Glisse <marc.glisse@inria.fr>
3386 * match.pd (0 / X, X / X, X % X): New simplifications.
3388 2016-11-19 Jakub Jelinek <jakub@redhat.com>
3390 * config/i386/i386.c (ix86_can_inline_p): Use || instead of &
3391 when checking if callee's isa flags are subset of caller's isa flags.
3392 Fix comment wording.
3394 * config/i386/i386.c (ix86_valid_target_attribute_tree): Don't
3395 clear opts->x_ix86_isa_flags, clear opts->x_ix86_isa_flags2
3396 instead and using = 0 instead of &= 0.
3398 * config/i386/i386.c (def_builtin, def_builtin2, def_builtin_const2,
3399 ix86_add_new_builtins): Formatting fixes.
3400 (ix86_expand_builtin): Use || instead of && for isa vs. isa2.
3401 (ix86_get_builtin): Likewise.
3403 * config/i386/i386.c (ix86_expand_builtin): Remove msk_mov variable,
3404 don't initialize it, don't use it for the case where it isn't
3405 provable %{z} nor using the same argument, instead move merge
3406 argument into a new pseudo and use that as target. Formatting fixes.
3408 2016-11-19 Jeff Law <law@redhat.com>
3411 * config/m68k/m68k.md (bsetdreg): New pattern.
3412 (bchgdreg, bclrdreg): Likewise.
3414 2016-11-19 Kaz Kojima <kkojima@gcc.gnu.org>
3417 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Use copy_to_mode_reg
3418 instead of force_reg.
3419 (sh_expand_setmem): Likewise.
3421 2016-11-19 Krister Walfridsson <krister.walfridsson@gmail.com>
3423 * config.gcc (*-*-netbsd): Set use_gcc_stdint=wrap.
3425 2016-11-18 Walter Lee <walt@tilera.com>
3427 * config/tilegx/tilegx.c (tilegx_gen_bundles): Preserve
3428 end-of-bundle marker for consecutive barriers.
3430 2016-11-18 Walter Lee <walt@tilera.com>
3432 * config/tilegx/tilegx.md (clzsi2): Fix for big-endian.
3434 2016-11-18 Jakub Jelinek <jakub@redhat.com>
3437 * multiple_target.c (get_attr_len): Start with argnum and increment
3438 argnum on every arg. Use strchr in a loop instead of counting commas
3440 (get_attr_str): Increment argnum for every comma in the string.
3441 (separate_attrs): Use for instead of while loop, simplify.
3442 (expand_target_clones): Rename defenition argument to definition.
3443 Free attrs and attr_str even when diagnosing errors. Temporarily
3444 change input_location around targetm.target_option.valid_attribute_p
3445 calls. Don't emit warning or errors if that function fails.
3447 * dwarf2out.c (size_of_discr_list): Fix typo in function comment.
3450 * dwarf2out.c (abbrev_opt_base_type_end): New variable.
3451 (die_abbrev_cmp): Sort dies with die_abbrev smaller than
3452 abbrev_opt_base_type_end only by increasing die_abbrev, before
3454 (optimize_abbrev_table): Don't change abbrev numbers of
3455 base types and CU or optimize implicit consts in them if
3456 calc_base_type_die_sizes has been called during build_abbrev_table.
3457 (calc_base_type_die_sizes): If abbrev_opt_start, set
3458 abbrev_opt_base_type_end to one plus largest base type's die_abbrev.
3460 2016-11-18 Jeff Law <law@redhat.com>
3463 * config/m68k/m68k.c (moveq feeding equality comparison): New
3465 * config/m68k/predicates.md (addq_subq_operand): New predicate.
3466 (equality_comparison_operator): Likewise.
3468 2016-11-18 Richard Sandiford <richard.sandiford@arm.com>
3470 * rtlanal.c (load_extend_op): Move to...
3471 * rtl.h: ...here and make inline.
3473 2016-11-18 Terry Guo <terry.guo@arm.com>
3474 Thomas Preud'homme <thomas.preudhomme@arm.com>
3476 * common/config/arm/arm-common.c (arm_target_thumb_only): New function.
3477 * config/arm/arm-opts.h: Include arm-flags.h.
3478 (struct arm_arch_core_flag): Define.
3479 (arm_arch_core_flags): Define.
3480 * config/arm/arm-protos.h: Include arm-flags.h
3481 (FL_NONE, FL_ANY, FL_CO_PROC, FL_ARCH3M, FL_MODE26, FL_MODE32,
3482 FL_ARCH4, FL_ARCH5, FL_THUMB, FL_LDSCHED, FL_STRONG, FL_ARCH5E,
3483 FL_XSCALE, FL_ARCH6, FL_VFPV2, FL_WBUF, FL_ARCH6K, FL_THUMB2, FL_NOTM,
3484 FL_THUMB_DIV, FL_VFPV3, FL_NEON, FL_ARCH7EM, FL_ARCH7, FL_ARM_DIV,
3485 FL_ARCH8, FL_CRC32, FL_SMALLMUL, FL_NO_VOLATILE_CE, FL_IWMMXT,
3486 FL_IWMMXT2, FL_ARCH6KZ, FL2_ARCH8_1, FL2_ARCH8_2, FL2_FP16INST,
3487 FL_TUNE, FL_FOR_ARCH2, FL_FOR_ARCH3, FL_FOR_ARCH3M, FL_FOR_ARCH4,
3488 FL_FOR_ARCH4T, FL_FOR_ARCH5, FL_FOR_ARCH5T, FL_FOR_ARCH5E,
3489 FL_FOR_ARCH5TE, FL_FOR_ARCH5TEJ, FL_FOR_ARCH6, FL_FOR_ARCH6J,
3490 FL_FOR_ARCH6K, FL_FOR_ARCH6Z, FL_FOR_ARCH6ZK, FL_FOR_ARCH6KZ,
3491 FL_FOR_ARCH6T2, FL_FOR_ARCH6M, FL_FOR_ARCH7, FL_FOR_ARCH7A,
3492 FL_FOR_ARCH7VE, FL_FOR_ARCH7R, FL_FOR_ARCH7M, FL_FOR_ARCH7EM,
3493 FL_FOR_ARCH8A, FL2_FOR_ARCH8_1A, FL2_FOR_ARCH8_2A, FL_FOR_ARCH8M_BASE,
3494 FL_FOR_ARCH8M_MAIN, arm_feature_set, ARM_FSET_MAKE,
3495 ARM_FSET_MAKE_CPU1, ARM_FSET_MAKE_CPU2, ARM_FSET_CPU1, ARM_FSET_CPU2,
3496 ARM_FSET_EMPTY, ARM_FSET_ANY, ARM_FSET_HAS_CPU1, ARM_FSET_HAS_CPU2,
3497 ARM_FSET_HAS_CPU, ARM_FSET_ADD_CPU1, ARM_FSET_ADD_CPU2,
3498 ARM_FSET_DEL_CPU1, ARM_FSET_DEL_CPU2, ARM_FSET_UNION, ARM_FSET_INTER,
3499 ARM_FSET_XOR, ARM_FSET_EXCLUDE, ARM_FSET_IS_EMPTY,
3500 ARM_FSET_CPU_SUBSET): Move to ...
3501 * config/arm/arm-flags.h: This new file.
3502 * config/arm/arm.h (TARGET_MODE_SPEC_FUNCTIONS): Define.
3503 (EXTRA_SPEC_FUNCTIONS): Add TARGET_MODE_SPEC_FUNCTIONS to its value.
3504 (TARGET_MODE_SPECS): Define.
3505 (DRIVER_SELF_SPECS): Add TARGET_MODE_SPECS to its value.
3507 2016-11-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
3509 * config/arm/arm-protos.h (FL_NONE, FL_ANY, FL_CO_PROC, FL_ARCH3M,
3510 FL_MODE26, FL_MODE32, FL_ARCH4, FL_ARCH5, FL_THUMB, FL_LDSCHED,
3511 FL_STRONG, FL_ARCH5E, FL_XSCALE, FL_ARCH6, FL_VFPV2, FL_WBUF,
3512 FL_ARCH6K, FL_THUMB2, FL_NOTM, FL_THUMB_DIV, FL_VFPV3, FL_NEON,
3513 FL_ARCH7EM, FL_ARCH7, FL_ARM_DIV, FL_ARCH8, FL_CRC32, FL_SMALLMUL,
3514 FL_NO_VOLATILE_CE, FL_IWMMXT, FL_IWMMXT2, FL_ARCH6KZ, FL2_ARCH8_1,
3515 FL2_ARCH8_2, FL2_FP16INST): Reindent comment, add final dot when
3516 missing and make value unsigned.
3517 (arm_feature_set): Use unsigned entries instead of unsigned long.
3519 2016-11-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
3521 Re-apply after PR bootstrap/77359 is fixed:
3522 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
3524 * explow.c (get_dynamic_stack_size): Take known alignment of stack
3525 pointer + STACK_DYNAMIC_OFFSET into account when calculating the
3528 2016-11-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
3531 * config/rs6000/rs6000.c (rs6000_stack_info): Properly align local
3532 variables in functions calling alloca. Also update the ASCII
3534 * config/rs6000/rs6000.h (STARTING_FRAME_OFFSET)
3535 (STACK_DYNAMIC_OFFSET): Likewise.
3536 * config/rs6000/aix.h (STARTING_FRAME_OFFSET)
3537 (STACK_DYNAMIC_OFFSET): Copy AIX specific versions of the rs6000.h
3540 2016-11-18 Richard Sandiford <richard.sandiford@arm.com>
3541 Alan Hayward <alan.hayward@arm.com>
3542 David Sherwood <david.sherwood@arm.com>
3544 * combine.c (try_combine): Use rtx_mode_t instead of std::make_pair.
3545 * dwarf2out.c (mem_loc_descriptor, loc_descriptor): Likewise.
3546 (add_const_value_attribute): Likewise.
3547 * explow.c (plus_constant): Likewise.
3548 * expmed.c (expand_mult, make_tree): Likewise.
3549 * expr.c (convert_modes): Likewise.
3550 * loop-doloop.c (doloop_optimize): Likewise.
3551 * postreload.c (reload_cse_simplify_set): Likewise.
3552 * simplify-rtx.c (simplify_const_unary_operation): Likewise
3553 (simplify_binary_operation_1, simplify_const_binary_operation):
3555 (simplify_const_relational_operation, simplify_immed_subreg): Likewise.
3556 * wide-int.h: Update documentation to recommend rtx_mode_t
3557 instead of std::make_pair.
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 * tree.h (SET_DECL_MODE): New macro.
3564 * cfgexpand.c (avoid_deep_ter_for_debug): Use SET_DECL_MODE.
3565 (expand_gimple_basic_block): Likewise.
3566 * function.c (split_complex_args): Likeise.
3567 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
3568 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Likewise.
3569 * stor-layout.c (layout_decl, relayout_decl): Likewise.
3570 (finish_bitfield_representative): Likewise.
3571 * tree.c (make_node_stat): Likewise.
3572 * tree-inline.c (remap_ssa_name): Likewise.
3573 (tree_function_versioning): Likewise.
3574 * tree-into-ssa.c (rewrite_debug_stmt_uses): Likewise.
3575 * tree-sra.c (sra_ipa_reset_debug_stmts): Likewise.
3576 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
3577 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Likewise.
3578 * tree-ssa.c (insert_debug_temp_for_var_def): Likewise.
3579 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
3580 * varasm.c (make_debug_expr_from_rtl): Likewise.
3582 2016-11-18 Segher Boessenkool <segher@kernel.crashing.org>
3584 PR rtl-optimization/71785
3585 * bb-reorder.c (maybe_duplicate_computed_goto): New function.
3586 (duplicate_computed_gotos): New function.
3587 (pass_duplicate_computed_gotos::execute): Rewrite.
3589 2016-11-17 Jeff Law <law@redhat.com>
3592 * config/m68k/m68k.c (m68k_expand_epilogue): Emit a scheduling
3593 barrier prior to deallocating the stack.
3595 2016-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
3597 * config/arc/arc.md (cmem bit/sign-extend peephole2): New peephole
3598 to make better use of cmem loads in the case where a single bit is
3600 * config/arc/predicates.md (ge_lt_comparison_operator): New predicate.
3602 2016-11-17 Andrew Senkevich <andrew.senkevich@intel.com>
3604 * config/i386/i386.c (processor_features): Add F_AVX5124VNNIW,
3606 (isa_names_table): Handle new features.
3608 2016-11-17 Kirill Yukhin <kirill.yukhin@gmail.com>
3609 Andrew Senkevich <andrew.senkevich@intel.com>
3611 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX5124FMAPS_SET,
3612 OPTION_MASK_ISA_AVX5124FMAPS_UNSET, OPTION_MASK_ISA_AVX5124VNNIW_SET,
3613 OPTION_MASK_ISA_AVX5124VNNIW_UNSET): New.
3614 (ix86_handle_option): Handle OPT_mavx5124fmaps, OPT_mavx5124vnniw.
3615 * config.gcc: Add avx5124fmapsintrin.h, avx5124vnniwintrin.h.
3616 * config/i386/avx5124fmapsintrin.h: New file.
3617 * config/i386/avx5124vnniwintrin.h: Ditto.
3618 * config/i386/constraints.md (h): New constraint.
3619 * config/i386/cpuid.h (bit_AVX5124VNNIW, bit_AVX5124FMAPS): New.
3620 * config/i386/driver-i386.c (host_detect_local_cpu):
3621 Detect avx5124fmaps, avx5124vnniw.
3622 * config/i386/i386-builtin-types.def: Add types
3623 V16SF_FTYPE_V16SF_V16SF_V16SF_V16SF_V16SF_PCV4SF_V16SF_UHI,
3624 V16SF_FTYPE_V16SF_V16SF_V16SF_V16SF_V16SF_PCV4SF,
3625 V4SF_FTYPE_V4SF_V4SF_V4SF_V4SF_V4SF_PCV4SF,
3626 V4SF_FTYPE_V4SF_V4SF_V4SF_V4SF_V4SF_PCV4SF_V4SF_UQI,
3627 V16SI_FTYPE_V16SI_V16SI_V16SI_V16SI_V16SI_PCV4SI,
3628 V16SI_FTYPE_V16SI_V16SI_V16SI_V16SI_V16SI_PCV4SI_V16SI_UHI.
3629 * config/i386/i386-builtin.def (__builtin_ia32_4fmaddps_mask,
3630 __builtin_ia32_4fmaddps, __builtin_ia32_4fmaddss,
3631 __builtin_ia32_4fmaddss_mask, __builtin_ia32_4fnmaddps_mask,
3632 __builtin_ia32_4fnmaddps, __builtin_ia32_4fnmaddss,
3633 __builtin_ia32_4fnmaddss_mask, __builtin_ia32_vp4dpwssd,
3634 __builtin_ia32_vp4dpwssd_mask, __builtin_ia32_vp4dpwssds,
3635 __builtin_ia32_vp4dpwssds_mask): New.
3636 * config/i386/i386-c.c (ix86_target_macros_internal):
3637 Define __AVX5124FMAPS__, __AVX5124VNNIW__.
3638 * config/i386/i386-modes.def: Fixed comment typos, added new
3639 modes (VECTOR_MODES (FLOAT, 256), VECTOR_MODE (INT, SI, 64)).
3640 * config/i386/i386.c (ix86_target_string): Add -mavx5124fmaps,
3642 (PTA_AVX5124FMAPS, PTA_AVX5124VNNIW): Define.
3643 (ix86_option_override_internal): Handle new options.
3644 (ix86_valid_target_attribute_inner_p): Add avx5124fmaps,
3646 (ix86_expand_builtin): Handle new builtins.
3647 (ix86_additional_allocno_class_p): New.
3648 * config/i386/i386.h (TARGET_AVX5124FMAPS, TARGET_AVX5124FMAPS_P,
3649 TARGET_AVX5124VNNIW, TARGET_AVX5124VNNIW_P): Define.
3650 (reg_class): Add MOD4_SSE_REGS.
3651 (MOD4_SSE_REG_P, MOD4_SSE_REGNO_P): New.
3652 * config/i386/i386.opt: Add mavx5124fmaps, mavx5124vnniw.
3653 * config/i386/immintrin.h: Include avx5124fmapsintrin.h,
3654 avx5124vnniwintrin.h.
3655 * config/i386/sse.md (unspec): Add UNSPEC_VP4FMADD, UNSPEC_VP4FNMADD,
3656 UNSPEC_VP4DPWSSD, UNSPEC_VP4DPWSSDS.
3657 (define_mode_iterator IMOD4): New.
3658 (define_mode_attr imod4_narrow): Ditto.
3659 (define_insn "mov<mode>"): Ditto.
3660 (define_insn "avx5124fmaddps_4fmaddps"): Ditto.
3661 (define_insn "avx5124fmaddps_4fmaddps_mask"): Ditto.
3662 (define_insn "avx5124fmaddps_4fmaddps_maskz"): Ditto.
3663 (define_insn "avx5124fmaddps_4fmaddss"): Ditto.
3664 (define_insn "avx5124fmaddps_4fmaddss_mask"): Ditto.
3665 (define_insn "avx5124fmaddps_4fmaddss_maskz"): Ditto.
3666 (define_insn "avx5124fmaddps_4fnmaddps"): Ditto.
3667 (define_insn "avx5124fmaddps_4fnmaddps_mask"): Ditto.
3668 (define_insn "avx5124fmaddps_4fnmaddps_maskz"): Ditto.
3669 (define_insn "avx5124fmaddps_4fnmaddss"): Ditto.
3670 (define_insn "avx5124fmaddps_4fnmaddss_mask"): Ditto.
3671 (define_insn "avx5124fmaddps_4fnmaddss_maskz"): Ditto.
3672 (define_insn "avx5124vnniw_vp4dpwssd"): Ditto.
3673 (define_insn "avx5124vnniw_vp4dpwssd_mask"): Ditto.
3674 (define_insn "avx5124vnniw_vp4dpwssd_maskz"): Ditto.
3675 (define_insn "avx5124vnniw_vp4dpwssds"): Ditto.
3676 (define_insn "avx5124vnniw_vp4dpwssds_mask"): Ditto.
3677 (define_insn "avx5124vnniw_vp4dpwssds_maskz"): Ditto.
3678 * init-regs.c (initialize_uninitialized_regs): Add emit_clobber call.
3679 * genmodes.c (mode_size_inline): Extend return type.
3680 * machmode.h (mode_size, mode_base_align): Extend type.
3682 2016-11-17 Michael Meissner <meissner@linux.vnet.ibm.com>
3685 * config/rs6000/predicates.md (fusion_addis_mem_combo_load): Add
3686 the appropriate checks for SFmode/DFmode load/stores in GPR
3688 (fusion_addis_mem_combo_store): Likewise.
3689 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Rename
3690 fusion_fpr_* to fusion_vsx_* and add in support for ISA 3.0 scalar
3691 d-form instructions for traditional Altivec registers.
3692 (emit_fusion_p9_load): Likewise.
3693 (emit_fusion_p9_store): Likewise.
3694 * config/rs6000/rs6000.md (p9 fusion store peephole2): Remove
3695 early clobber from scratch register. Do not match if the register
3696 being stored is the scratch register.
3697 (fusion_vsx_<P:mode>_<FPR_FUSION:mode>_load): Rename fusion_fpr_*
3698 to fusion_vsx_* and add in support for ISA 3.0 scalar d-form
3699 instructions for traditional Altivec registers.
3700 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
3701 (fusion_vsx_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
3702 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
3704 2016-11-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
3707 * config/arm/arm.c (thumb1_expand_prologue): Distinguish between lr
3708 being live in the function and lr needing to be saved. Distinguish
3709 between already saved pushable registers and registers to push.
3710 Check for LR being an available pushable register.
3712 2016-11-17 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
3714 * config/i386/i386.md (cmpstrnsi): New test to bail out if neither
3715 string input is a string constant.
3716 * builtins.c (expand_builtin_strncmp): Attempt expansion of strncmp
3717 via cmpstrnsi even if neither string is constant.
3719 2016-11-17 Jakub Jelinek <jakub@redhat.com>
3722 * varasm.c (default_use_anchors_for_symbol_p): Fix a comment typo.
3723 Don't test decl != NULL. Don't look at DECL_SIZE, but DECL_SIZE_UNIT
3724 instead, return false if it is NULL, or doesn't fit into uhwi, or
3725 is larger or equal to targetm.max_anchor_offset.
3727 2016-11-17 Pip Cet <pipcet@gmail.com>
3728 Eric Botcazou <ebotcazou@adacore.com>
3730 PR rtl-optimization/78355
3731 * doc/tm.texi.in (SLOW_UNALIGNED_ACCESS): Document that the macro only
3732 needs to deal with unaligned accesses.
3733 * doc/tm.texi: Regenerate.
3734 * lra-constraints.c (simplify_operand_subreg): Only invoke
3735 SLOW_UNALIGNED_ACCESS on innermode if the MEM is not aligned enough.
3737 2016-11-17 David Malcolm <dmalcolm@redhat.com>
3739 * input.c (selftest::test_lexer_string_locations_long_line): New
3741 (selftest::test_lexer_string_locations_raw_string_multiline): New
3743 (selftest::input_c_tests): Call the new functions, via
3744 for_each_line_table_case.
3746 2016-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3748 * config/aarch64/aarch64.md (mov<mode>): Call
3749 aarch64_split_dimode_const_store on DImode constant stores.
3750 * config/aarch64/aarch64-protos.h (aarch64_split_dimode_const_store):
3752 * config/aarch64/aarch64.c (aarch64_split_dimode_const_store): New
3755 2016-11-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3756 Richard Biener <rguenther@suse.de>
3758 PR tree-optimization/77848
3759 * tree-if-conv.c (tree_if_conversion): Always version loops unless
3760 the user specified -ftree-loop-if-convert.
3762 2016-11-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
3765 * config/arm/arm.md (*thumb2_ldrd, *thumb2_ldrd_base,
3766 *thumb2_ldrd_base_neg, *thumb2_strd, *thumb2_strd_base,
3767 *thumb2_strd_base_neg): Recognize insn regardless of
3768 current_tune->prefer_ldrd_strd.
3769 * config/arm/ldrdstrd.md: Enable all ldrd/strd peephole rules
3772 2016-11-17 Claudiu Zissulescu <claziss@synopsys.com>
3774 * config/arc/arc.c (arc_ccfsm_post_advance): Handle return
3777 2016-11-17 Claudiu Zissulescu <claziss@synopsys.com>
3779 * config/arc/arc-arches.def: Add FPX quarkse instruction as valid
3781 * config/arc/arc-c.def (__ARC_FPX_QUARK__): Define.
3782 * config/arc/arc-cpus.def (quarkse_em): Add.
3783 * config/arc/arc-options.def (FL_FPX_QUARK, FL_QUARK): Likewise.
3784 * config/arc/arc-opts.h (FPX_QK): Define.
3785 * config/arc/arc-tables.opt: Regenerate.
3786 * config/arc/arc.c (gen_compare_reg): Change.
3787 (arc_register_move_cost): Avoid Dy,Dx moves.
3788 * config/arc/arc.h (TARGET_HARD_FLOAT): Change.
3789 (TARGET_FPX_QUARK, TARGET_FP_ASSIST): Define.
3790 * config/arc/arc.md (divsf3, sqrtsf2, fix_truncsfsi2, floatsisf2):
3792 * config/arc/fpu.md (divsf3_fpu, sqrtsf2_fpu, floatsisf2_fpu)
3793 (fix_truncsfsi2_fpu): Rename.
3794 * config/arc/fpx.md (cmp_quark, cmpsf_quark_, cmpsf_quark_ord)
3795 (cmpsf_quark_uneq, cmpsf_quark_eq, divsf3_quark, sqrtsf2_quark)
3796 (fix_truncsfsi2_quark, floatsisf2_quark): New patterns.
3797 * config/arc/t-multilib: Regenerate.
3799 2016-11-17 Georg-Johann Lay <avr@gjlay.de>
3801 * config/avr/avr.c (avr_print_operand_address): Use CONST_INT_P if
3803 (ashlqi3_out, ashlsi3_out, ashrqi3_out, ashrhi3_out): Same.
3804 (ashrsi3_out, lshrqi3_out, lshrhi3_out, lshrsi3_out): Same.
3805 (avr_rtx_costs_1, extra_constraint_Q): Same.
3806 (avr_address_cost): Use SUBREG_P if possible.
3808 2016-11-17 Richard Biener <rguenther@suse.de>
3811 * tree-cfgcleanup.c (cleanup_control_flow_bb): Do not turn
3812 non-local goto into CFG.
3814 2016-11-17 Richard Biener <rguenther@suse.de>
3816 * common.opt (ftree-loop-if-convert-stores): Mark as preserved for
3817 backward compatibility.
3818 * doc/invoke.texi (ftree-loop-if-convert-stores): Remove.
3819 * tree-if-conv.c (pass_if_conversion::gate): Do not test
3820 flag_tree_loop_if_convert_stores.
3821 (pass_if_conversion::execute): Likewise.
3823 2016-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3825 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): Check for
3826 const_double code before calling aarch64_float_const_zero_rtx_p.
3828 2016-11-17 Richard Biener <rguenther@suse.de>
3830 PR tree-optimization/78306
3831 * ipa-inline-analysis.c (initialize_inline_failed): Do not
3832 inhibit inlining if function calls cilk_spawn.
3833 (can_inline_edge_p): Likewise.
3835 2016-11-17 Richard Biener <rguenther@suse.de>
3838 * fold-const.c (negate_expr_p): Fix multiplication case.
3840 2016-11-17 Chung-Lin Tang <cltang@codesourcery.com>
3843 * config/nios2/nios2.c (nios2_init_libfuncs): Remove TARGET_LINUX_ABI
3845 (TARGET_INIT_LIBFUNCS): Delete definition and...
3846 * config/nios2/linux.h (TARGET_INIT_LIBFUNCS): ...move to here, add
3849 2016-11-17 Krister Walfridsson <krister.walfridsson@gmail.com>
3851 * config/netbsd-stdint.h: New.
3852 * config.gcc (i[34567]86-*-netbsd): Add netbsd-stdint.h to tm_file.
3853 (x86_64-*-netbsd*): Likewise.
3855 2016-11-16 Andrew PInski <apinski@cavium.com>
3857 * config/aarch64/aarch64.opt (mverbose-cost-dump): New option.
3858 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
3859 flag_aarch64_verbose_cost instead of checking for details dump.
3860 (aarch64_rtx_costs_wrapper): Likewise.
3862 2016-11-16 Jakub Jelinek <jakub@redhat.com>
3864 PR rtl-optimization/78378
3865 * combine.c (make_extraction): Use force_to_mode for non-{REG,MEM}
3866 inner only if pos is 0. Fix up formatting.
3868 2016-11-17 Alan Modra <amodra@gmail.com>
3870 PR rtl-optimization/78325
3871 PR rtl-optimization/70890
3872 * ira.c (combine_and_move_insns): Only remove REG_EQUIV notes
3875 2016-11-16 Jason Merrill <jason@redhat.com>
3877 * rtl.h: Declare gt_ggc_mx and gt_pch_nx.
3879 2016-11-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3880 Richard Biener <rguenther@suse.de>
3882 PR tree-optimization/77848
3883 * tree-if-conv.c (version_loop_for_if_conversion): When versioning
3884 an outer loop, only save basic block aux information for the inner
3886 (versionable_outer_loop_p): New function.
3887 (tree_if_conversion): Version the outer loop instead of the inner
3888 one if the pattern will be recognized for outer-loop
3891 2016-11-16 Andrew Burgess <andrew.burgess@embecosm.com>
3893 * gcc/bb-reorder.c: Remove 'toplev.h' include.
3894 (pass_partition_blocks::gate): No longer check
3895 user_defined_section_attribute, instead check the function decl
3896 for a section attribute.
3897 * gcc/c-family/c-attribs.c (handle_section_attribute): No longer
3898 set user_defined_section_attribute.
3899 * gcc/final.c (rest_of_handle_final): Likewise.
3900 * gcc/toplev.c: Remove definition of user_defined_section_attribute.
3901 * gcc/toplev.h: Remove declaration of
3902 user_defined_section_attribute.
3904 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
3906 * config/mips/mips.md (casesi_internal_mips16_<mode>):
3907 Explicitly switch between JR and JRC for the table jump. Adjust
3910 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
3912 * config/mips/mips.md (casesi_internal_mips16_<mode>): Set
3913 `insn_count' to 11 rather than 16.
3915 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
3917 * config/mips/mips.md (casesi_internal_mips16_<mode>): Use the
3918 `ltu' rather than `leu' operation in the RTL pattern
3920 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
3922 * config/mips/mips.md (casesi_internal_mips16_<mode>): Add
3923 missing <d> instruction prefixes throughout. Correct
3926 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
3928 * config/mips/mips.c (mips_output_jump): Output R_MICROMIPS_JALR
3929 rather than R_MIPS_JALR relocation in microMIPS code. Do not
3930 cancel short delay slots in PIC call relaxation.
3932 2016-11-16 Thomas Preud'homme <thomas.preudhomme@arm.com>
3934 * config/arm/arm.md (arm_addsi3): Add alternative for addition of
3935 general register with general register or ARM constant into SP
3938 2016-11-16 Jakub Jelinek <jakub@redhat.com>
3941 * omp-low.c (expand_omp_for_static_nochunk): Don't assert
3942 that loop->header == body_bb if broken_loop.
3944 2015-11-16 Wilco Dijkstra <wdijkstr@arm.com>
3946 * tree-ssa-math-opts.c (bswap_replace): Remove test
3947 of SLOW_UNALIGNED_ACCESS.
3949 2016-11-16 Alexander Monakov <amonakov@ispras.ru>
3951 * config/nvptx/mkoffload.c (main): Check that either OpenACC or OpenMP
3952 is selected. Pass -mgomp to offload compiler in OpenMP case.
3953 * config/nvptx/nvptx-protos.h (nvptx_shuffle_kind): Move enum
3954 declaration from nvptx.c.
3955 (nvptx_gen_shuffle): Declare.
3956 (nvptx_output_set_softstack): Declare.
3957 * config/nvptx/nvptx.c (nvptx_shuffle_kind): Move to nvptx-protos.h.
3958 (need_softstack_decl): New variable.
3959 (need_unisimt_decl): New variable.
3960 (diagnose_openacc_conflict): New. Use it...
3961 (nvptx_option_override): ...here. Handle TARGET_GOMP.
3962 (nvptx_encode_section_info): Handle "shared" attribute.
3963 (write_as_kernel): Restrict to OpenACC target regions.
3964 (init_softstack_frame): New.
3965 (nvptx_init_unisimt_predicate): New.
3966 (write_omp_entry): New. Use it...
3967 (nvptx_declare_function_name): ...here to emit OpenMP target region
3968 entrypoints. Handle TARGET_SOFT_STACK. Call
3969 nvptx_init_unisimt_predicate.
3970 (nvptx_output_set_softstack): New.
3971 (nvptx_get_drap_rtx): Return %argp as the DRAP if needed.
3972 (nvptx_gen_shuffle): Export.
3973 (nvptx_output_call_insn): Handle COND_EXEC patterns. Emit instruction
3975 (nvptx_print_operand): Fix handling of instruction predicates.
3976 (nvptx_get_unisimt_master): New helper function.
3977 (nvptx_get_unisimt_predicate): Ditto.
3978 (nvptx_call_insn_is_syscall_p): Ditto.
3979 (nvptx_unisimt_handle_set): Ditto.
3980 (nvptx_reorg_uniform_simt): New. Transform code for -muniform-simt.
3981 (nvptx_reorg): Call nvptx_reorg_uniform_simt.
3982 (nvptx_handle_shared_attribute): New. Use it...
3983 (nvptx_attribute_table): ... here (new entry).
3984 (nvptx_record_offload_symbol): Handle NULL attributes.
3985 (nvptx_file_end): Handle need_softstack_decl and need_unisimt_decl.
3986 (nvptx_simt_vf): New.
3987 (TARGET_SIMT_VF): Define.
3988 * config/nvptx/nvptx.h (TARGET_CPU_CPP_BUILTINS): Define
3989 __nvptx_softstack or __nvptx_unisimt__ when -msoft-stack, or resp.
3990 -muniform-simt option is active.
3991 (STACK_SIZE_MODE): Define.
3992 (FIXED_REGISTERS): Adjust.
3993 (SOFTSTACK_SLOT_REGNUM): New.
3994 (SOFTSTACK_PREV_REGNUM): New.
3995 (REGISTER_NAMES): Adjust.
3996 (struct machine_function): New fields.
3997 * config/nvptx/nvptx.md (UNSPEC_SET_SOFTSTACK): New.
3998 (UNSPEC_VOTE_BALLOT): Ditto.
3999 (UNSPEC_LANEID): Ditto.
4000 (UNSPECV_NOUNROLL): Ditto.
4001 (atomic): New attribute.
4002 (predicable): New attribute. Generate predicated forms via
4004 (br_true): Mark as not predicable.
4006 (br_true_uni): Ditto.
4007 (br_false_uni): Ditto.
4009 (trap_if_true): Ditto.
4010 (trap_if_false): Ditto.
4011 (nvptx_fork): Ditto.
4012 (nvptx_forked): Ditto.
4013 (nvptx_joining): Ditto.
4014 (nvptx_join): Ditto.
4015 (nvptx_barsync): Ditto.
4016 (epilogue): Emit stack restore if TARGET_SOFT_STACK.
4017 (allocate_stack): Implement for TARGET_SOFT_STACK. Remove unused code.
4018 (allocate_stack_<mode>): Remove unused pattern.
4019 (set_softstack_insn): New pattern.
4020 (restore_stack_block): Handle for TARGET_SOFT_STACK.
4021 (nvptx_vote_ballot): New pattern.
4022 (omp_simt_lane): Ditto.
4023 (omp_simt_last_lane): Ditto.
4024 (omp_simt_ordered): Ditto.
4025 (omp_simt_vote_any): Ditto.
4026 (omp_simt_xchg_bfly): Ditto.
4027 (omp_simt_xchg_idx): Ditto.
4028 (nvptx_nounroll): Ditto.
4029 (atomic_compare_and_swap<mode>_1): Mark with atomic attribute.
4030 (atomic_exchange<mode>): Ditto.
4031 (atomic_fetch_add<mode>): Ditto.
4032 (atomic_fetch_addsf): Ditto.
4033 (atomic_fetch_<logic><mode>): Ditto.
4034 * config/nvptx/nvptx.opt (msoft-stack): New option.
4035 (muniform-simt): Ditto.
4037 * config/nvptx/t-nvptx (MULTILIB_OPTIONS): New.
4038 * doc/extend.texi (Nvidia PTX Variable Attributes): New section.
4039 * doc/invoke.texi (msoft-stack): Document.
4040 (muniform-simt): Document
4042 * doc/tm.texi: Regenerate.
4043 * doc/tm.texi.in (TARGET_SIMT_VF): New hook.
4044 * target.def: Define it.
4045 * target-insns.def (omp_simt_lane): New.
4046 (omp_simt_last_lane): New.
4047 (omp_simt_ordered): New.
4048 (omp_simt_vote_any): New.
4049 (omp_simt_xchg_bfly): New.
4050 (omp_simt_xchg_idx): New.
4052 2016-11-16 Maciej W. Rozycki <macro@imgtec.com>
4054 * config/mips/mips-protos.h (mips_set_text_contents_type): New
4056 * config/mips/mips.h (ASM_OUTPUT_BEFORE_CASE_LABEL): New macro.
4057 (ASM_OUTPUT_CASE_END): Likewise.
4058 * config/mips/mips.c (mips_set_text_contents_type): New function.
4059 (mips16_emit_constants): Record the pool's initial label number
4060 with the `consttable' insn. Emit a `consttable_end' insn at the end.
4061 (mips_final_prescan_insn): Call `mips_set_text_contents_type'
4062 for `consttable' insns.
4063 (mips_final_postscan_insn): Call `mips_set_text_contents_type'
4064 for `consttable_end' insns.
4065 * config/mips/mips.md (unspec): Add UNSPEC_CONSTTABLE_END enum value.
4066 (consttable): Add operand.
4067 (consttable_end): New insn.
4069 2016-11-16 Yuri Rumyantsev <ysrumyan@gmail.com>
4071 * params.def (PARAM_VECT_EPILOGUES_NOMASK): New.
4072 * tree-if-conv.c (tree_if_conversion): Make public.
4073 * * tree-if-conv.h: New file.
4074 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences) Avoid
4075 dynamic alias checks for epilogues.
4076 * tree-vect-loop-manip.c (vect_do_peeling): Return created epilog.
4077 * tree-vect-loop.c: include tree-if-conv.h.
4078 (new_loop_vec_info): Add zeroing orig_loop_info field.
4079 (vect_analyze_loop_2): Don't try to enhance alignment for epilogues.
4080 (vect_analyze_loop): Add argument ORIG_LOOP_INFO which is not NULL
4081 if epilogue is vectorized, set up orig_loop_info field of loop_vinfo
4082 using passed argument.
4083 (vect_transform_loop): Check if created epilogue should be returned
4084 for further vectorization with less vf. If-convert epilogue if
4085 required. Print vectorization success for epilogue.
4086 * tree-vectorizer.c (vectorize_loops): Add epilogue vectorization
4087 if it is required, pass loop_vinfo produced during vectorization of
4088 loop body to vect_analyze_loop.
4089 * tree-vectorizer.h (struct _loop_vec_info): Add new field
4091 (LOOP_VINFO_ORIG_LOOP_INFO): New.
4092 (LOOP_VINFO_EPILOGUE_P): New.
4093 (LOOP_VINFO_ORIG_VECT_FACTOR): New.
4094 (vect_do_peeling): Change prototype to return epilogue.
4095 (vect_analyze_loop): Add argument of loop_vec_info type.
4096 (vect_transform_loop): Return created loop.
4098 2016-11-16 Segher Boessenkool <segher@kernel.crashing.org>
4100 * config/rs6000/rs6000.c (rs6000_components_for_bb): Mark the LR
4101 component as used also if LR_REGNO is a live input to the bb.
4102 * df-scan.c (df_get_entry_block_def_set): Return immediately after
4103 clearing the set if DF_SCAN_EMPTY_ENTRY_EXIT is set.
4104 (df_get_exit_block_use_set): Ditto.
4105 * df.h (df_scan_flags): New enum.
4106 * shrink-wrap.c (try_shrink_wrapping_separate): Set
4107 DF_SCAN_EMPTY_ENTRY_EXIT in df_scan->local_flags, and call
4108 df_update_entry_block_defs and df_update_exit_block_uses
4109 at the start; clear the flag and call those functions at the end.
4111 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
4112 Alan Hayward <alan.hayward@arm.com>
4113 David Sherwood <david.sherwood@arm.com>
4115 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Set
4116 nb_iterations to the number of latch iterations rather than the
4117 number of loop iterations.
4119 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
4120 Alan Hayward <alan.hayward@arm.com>
4121 David Sherwood <david.sherwood@arm.com>
4123 * combine.c (maybe_swap_commutative_operands): New function.
4124 (combine_simplify_rtx): Use it.
4125 (change_zero_ext): Likewise.
4126 (make_compound_operation_int): New function, split out of...
4127 (make_compound_operation): ...here. Use
4128 maybe_swap_commutative_operands for both.
4130 2016-11-16 Richard Earnshaw <rearnsha@arm.com>
4132 * arm/arm-fpus.def (vfpv2): New FPU, currently an alias for 'vfp'.
4133 (neon-vfpv3): New FPU, currently an alias for 'neon'.
4134 * arm/arm-tables.opt: Regenerated.
4135 * arm/t-aprofile (MULTILIB_REUSE): Add reuse rules for vfpv2 and
4137 * doc/invoke.texi (ARM: -mfpu): Document new options. Note that 'vfp'
4138 and 'neon' are aliases for specific implementations.
4140 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
4141 Alan Hayward <alan.hayward@arm.com>
4142 David Sherwood <david.sherwood@arm.com>
4144 * optabs.c (vector_compare_rtx): Add a cmp_mode parameter
4145 and use it in the final call to gen_rtx_fmt_ee.
4146 (expand_vec_cond_expr): Update accordingly.
4147 (expand_vec_cmp_expr): Likewise.
4149 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
4150 Alan Hayward <alan.hayward@arm.com>
4151 David Sherwood <david.sherwood@arm.com>
4153 * cprop.c (local_cprop_find_used_regs): Use df_read_modify_subreg_p.
4155 2016-11-16 Richard Biener <rguenther@suse.de>
4158 * gimplify.c (gimplify_function_tree): Do not instrument
4159 GNU extern inline functions.
4161 2016-11-16 Martin Liska <mliska@suse.cz>
4164 * gimplify.c (gimplify_switch_expr): Always save previous
4165 gimplify_ctxp->live_switch_vars.
4167 2016-11-16 Andrew Burgess <andrew.burgess@embecosm.com>
4169 * config/arc/arc.md (movb peephole2): New peephole2 to merge two
4170 zero_extract operations to allow a movb to occur.
4171 * testsuite/gcc.target/arc/movb-1.c: Update little endian arc results.
4172 * testsuite/gcc.target/arc/movb-2.c: Likewise.
4173 * testsuite/gcc.target/arc/movb-5.c: Likewise.
4174 * testsuite/gcc.target/arc/movh_cl-1.c: Extend test to cover
4177 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
4178 Alan Hayward <alan.hayward@arm.com>
4179 David Sherwood <david.sherwood@arm.com>
4181 * expr.c (emit_group_load_1): Tighten check for whether an
4182 access involves only one operand of a CONCAT. Use extract_bit_field
4183 for constants if the bit range does span the whole operand.
4185 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
4186 Alan Hayward <alan.hayward@arm.com>
4187 David Sherwood <david.sherwood@arm.com>
4189 * rtlanal.c (rtx_addr_can_trap_p_1): Handle unknown sizes.
4191 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
4192 Alan Hayward <alan.hayward@arm.com>
4193 David Sherwood <david.sherwood@arm.com>
4195 * tree-vect-loop.c (vect_transform_loop): Protect the updates of
4196 all three iteration counts with an any_* test. Use a single update
4197 for each count. Fix the calculation of nb_iterations_estimate.
4199 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
4201 * config/pdp11/pdp11.c: Include dbxout.h.
4203 2016-11-16 Richard Sandiford <richard.sandiford@arm.com>
4205 * config/arc/arc.c (arc_loop_hazard): Add missing brackets.
4207 2016-11-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4210 * config/arm/arm.md (*extv_reg): Restrict operands 2 and 3 to the
4211 proper ranges for an SBFX instruction.
4212 (extzv_t2): Likewise for UBFX.
4214 2016-11-16 Richard Biener <rguenther@suse.de>
4216 PR tree-optimization/78348
4217 * tree-loop-distribution.c (enum partition_kind): Add PKIND_MEMMOVE.
4218 (generate_memcpy_builtin): Honor PKIND_MEMCPY on the partition.
4219 (classify_partition): Set PKIND_MEMCPY if dependence analysis
4220 revealed no dependency, PKIND_MEMMOVE otherwise.
4222 2016-11-16 Jakub Jelinek <jakub@redhat.com>
4225 * ubsan.c (ubsan_build_overflow_builtin): Add DATAP argument, if
4226 it points to non-NULL tree, use it instead of ubsan_create_data.
4227 (instrument_si_overflow): Handle vector signed integer overflow
4229 * ubsan.h (ubsan_build_overflow_builtin): Add DATAP argument.
4230 * tree-vrp.c (simplify_internal_call_using_ranges): Punt for
4231 vector IFN_UBSAN_CHECK_*.
4232 * internal-fn.c (expand_addsub_overflow): Add DATAP argument,
4233 pass it through to ubsan_build_overflow_builtin.
4234 (expand_neg_overflow, expand_mul_overflow): Likewise.
4235 (expand_vector_ubsan_overflow): New function.
4236 (expand_UBSAN_CHECK_ADD, expand_UBSAN_CHECK_SUB,
4237 expand_UBSAN_CHECK_MUL): Use tit for vector arithmetics.
4238 (expand_arith_overflow): Adjust expand_*_overflow callers.
4240 2016-11-16 Matthias Klose <doko@ubuntu.com>
4242 * doc/install.texi: Remove references to java/libjava.
4244 2016-11-16 Kugan Vivekanandarajah <kuganv@linaro.org>
4246 * tree-ssa-coalesce.c (register_default_def): Remove
4247 register_ssa_partition.
4248 (create_outofssa_var_map): Likewise.
4249 * tree-ssa-live.c (register_ssa_partition_check): Remove.
4250 * tree-ssa-live.h (register_ssa_partition): Likewise.
4252 2016-11-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
4254 * genattrtab.c (attr_rtx_1): Avoid allocating new rtx objects.
4255 Clear ATTR_CURR_SIMPLIFIED_P for re-used binary rtx objects.
4256 Use DEF_ATTR_STRING for string arguments. Use RTL_HASH for
4257 integer arguments. Only set ATTR_PERMANENT_P on newly hashed
4258 rtx when all sub-rtx are also permanent.
4259 (attr_eq): Simplify.
4260 (attr_copy_rtx): Remove.
4261 (make_canonical, get_attr_value): Use attr_equal_p.
4262 (copy_boolean): Rehash NOT.
4263 (simplify_test_exp_in_temp,
4264 optimize_attrs): Remove call to attr_copy_rtx.
4265 (attr_alt_intersection, attr_alt_union,
4266 attr_alt_complement, mk_attr_alt): Rehash EQ_ATTR_ALT.
4267 (make_automaton_attrs): Use attr_eq.
4269 2016-11-15 Matthias Klose <doko@ubuntu.com>
4271 * doc/install.texi: Remove references to java/libjava.
4272 * doc/sourcebuild.texi: Likewise.
4273 * doc/invoke.texi: Likewise.
4274 * doc/standards.texi: Likewise.
4276 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
4277 Alan Hayward <alan.hayward@arm.com>
4278 David Sherwood <david.sherwood@arm.com>
4280 * config/i386/i386.h (INCOMING_RETURN_ADDR_RTX): Use Pmode instead
4282 * config/ia64/ia64.h (INCOMING_RETURN_ADDR_RTX): Likewise.
4283 * config/iq2000/iq2000.h (INCOMING_RETURN_ADDR_RTX): Likewise.
4284 * config/m68k/m68k.h (INCOMING_RETURN_ADDR_RTX): Likewise.
4285 * config/microblaze/microblaze.h (INCOMING_RETURN_ADDR_RTX): Likewise.
4286 * config/mips/mips.h (INCOMING_RETURN_ADDR_RTX): Likewise.
4287 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Likewise.
4288 * config/nios2/nios2.h (INCOMING_RETURN_ADDR_RTX): Likewise.
4290 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
4291 Alan Hayward <alan.hayward@arm.com>
4292 David Sherwood <david.sherwood@arm.com>
4294 * dce.c (check_argument_store): Pass the size instead of
4295 the memory reference.
4296 (find_call_stack_args): Pass MEM_SIZE to check_argument_store.
4298 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
4299 Alan Hayward <alan.hayward@arm.com>
4300 David Sherwood <david.sherwood@arm.com>
4302 * alias.c (canon_rtx): Use simplify_gen_binary.
4304 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
4305 Alan Hayward <alan.hayward@arm.com>
4306 David Sherwood <david.sherwood@arm.com>
4308 * rtl.h (load_extend_op): Declare.
4309 * rtlanal.c (load_extend_op): New function.
4310 (nonzero_bits1): Use it.
4311 (num_sign_bit_copies1): Likewise.
4312 * cse.c (cse_insn): Likewise.
4313 * fold-const.c (fold_single_bit_test): Likewise.
4314 (fold_unary_loc): Likewise.
4315 * fwprop.c (free_load_extend): Likewise.
4316 * postreload.c (reload_cse_simplify_set): Likewise.
4317 (reload_cse_simplify_operands): Likewise.
4318 * combine.c (try_combine): Likewise.
4319 (simplify_set): Likewise. Remove redundant SUBREG_BYTE and
4320 subreg_lowpart_p checks.
4322 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
4323 Alan Hayward <alan.hayward@arm.com>
4324 David Sherwood <david.sherwood@arm.com>
4326 * combine.c (simplify_shift_const_1): Use the number of bits
4327 in the inner mode to determine the range of the shift.
4328 When handling shifts of vectors, skip any rules that apply
4331 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
4332 Alan Hayward <alan.hayward@arm.com>
4333 David Sherwood <david.sherwood@arm.com>
4335 * rtlanal.c (num_sign_bit_copies1): Calculate bitwidth after
4338 2016-11-15 Matthias Klose <doko@ubuntu.com>
4340 * doc/install.texi: Remove references to gcj/libjava.
4341 * doc/invoke.texi: Likewise.
4343 2016-11-15 Jeff Law <law@redhat.com>
4345 * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove unneeded
4346 parameter. Callers changed.
4347 (check-subpath_and_update_thread_path): Extracted from
4348 fsm_find_control_statement_thread_paths.
4349 (handle_phi, handle_assignment, handle_assignment_p): Likewise.
4350 (handle_phi, handle_assignment): Allow any constant node, not
4353 2016-11-15 Claudiu Zissulescu <claziss@synopsys.com>
4355 * config/arc/arc-arch.h: New file.
4356 * config/arc/arc-arches.def: Likewise.
4357 * config/arc/arc-cpus.def: Likewise.
4358 * config/arc/arc-options.def: Likewise.
4359 * config/arc/t-multilib: Likewise.
4360 * config/arc/genmultilib.awk: Likewise.
4361 * config/arc/genoptions.awk: Likewise.
4362 * config/arc/arc-tables.opt: Likewise.
4363 * config/arc/driver-arc.c: Likewise.
4364 * testsuite/gcc.target/arc/nps400-cpu-flag.c: Likewise.
4365 * common/config/arc/arc-common.c (arc_handle_option): Trace
4367 * config.gcc (arc*-*-*): Add arc-tables.opt to arc's extra
4368 options; check for supported cpu against arc-cpus.def file.
4369 (arc*-*-elf*, arc*-*-linux-uclibc*): Use new make fragment; define
4370 TARGET_CPU_BUILD macro; add driver-arc.o as an extra object.
4371 * config/arc/arc-c.def: Add emacs local variables.
4372 * config/arc/arc-opts.h (processor_type): Use arc-cpus.def file.
4373 (FPU_FPUS, FPU_FPUD, FPU_FPUDA, FPU_FPUDA_DIV, FPU_FPUDA_FMA)
4374 (FPU_FPUDA_ALL, FPU_FPUS_DIV, FPU_FPUS_FMA, FPU_FPUS_ALL)
4375 (FPU_FPUD_DIV, FPU_FPUD_FMA, FPU_FPUD_ALL): New defines.
4376 (DEFAULT_arc_fpu_build): Define.
4377 (DEFAULT_arc_mpy_option): Define.
4378 * config/arc/arc-protos.h (arc_init): Delete.
4379 * config/arc/arc.c (arc_cpu_name): New variable.
4380 (arc_selected_cpu, arc_selected_arch, arc_arcem, arc_archs)
4381 (arc_arc700, arc_arc600, arc_arc601): New variable.
4382 (arc_init): Add static; remove selection of default tune value,
4383 cleanup obsolete error messages.
4384 (arc_override_options): Make use of .def files for selecting the
4385 right cpu and option configurations.
4386 * config/arc/arc.h (stdbool.h): Include.
4387 (TARGET_CPU_DEFAULT): Define.
4388 (CPP_SPEC): Remove mcpu=NPS400 handling.
4389 (arc_cpu_to_as): Declare.
4390 (EXTRA_SPEC_FUNCTIONS): Define.
4391 (OPTION_DEFAULT_SPECS): Likewise.
4392 (ASM_DEFAULT): Remove.
4393 (ASM_SPEC): Use arc_cpu_to_as.
4394 (DRIVER_SELF_SPECS): Remove deprecated options.
4395 (arc_base_cpu): Declare.
4396 (TARGET_ARC600, TARGET_ARC601, TARGET_ARC700, TARGET_EM)
4397 (TARGET_HS, TARGET_V2, TARGET_ARC600): Make them use arc_base_cpu
4399 (MULTILIB_DEFAULTS): Use ARC_MULTILIB_CPU_DEFAULT.
4400 * config/arc/arc.md (attr_cpu): Remove.
4401 * config/arc/arc.opt (mno-mpy): Deprecate.
4402 (mcpu=ARC600, mcpu=ARC601, mcpu=ARC700, mcpu=NPS400, mcpu=ARCEM)
4403 (mcpu=ARCHS): Remove.
4404 (mcrc, mdsp-packa, mdvbf, mmac-d16, mmac-24, mtelephony, mrtsc):
4406 (mbarrel_shifte, mspfp_, mdpfp_, mdsp_pack, mmac_): Remove.
4407 (arc_fpu): Use new defines.
4408 (mpy-option): Change to use numeric or string like inputs.
4409 * config/arc/t-arc (driver-arc.o): New target.
4410 (arc-cpus, t-multilib, arc-tables.opt): Likewise.
4411 * config/arc/t-arc-newlib: Delete.
4412 * config/arc/t-arc-uClibc: Renamed to t-uClibc.
4413 * doc/invoke.texi (ARC): Update arc options.
4415 2016-11-15 Maciej W. Rozycki <macro@imgtec.com>
4417 * config/mips/mips.c (mips16_emit_constants): Emit `consttable'
4418 insn at the beginning of the constant pool.
4419 (mips_insert_insn_pseudos): New function.
4420 (mips_machine_reorg2): Call it.
4421 * config/mips/mips.md (unspec): Add UNSPEC_CONSTTABLE and
4422 UNSPEC_INSN_PSEUDO enum values.
4423 (insn_pseudo, consttable): New insns.
4425 2016-11-15 Michael Matz <matz@suse.de>
4427 PR missed-optimization/77881
4428 * combine.c (simplify_comparison): Remove useless subregs
4429 also inside the loop, not just after it.
4430 (make_compound_operation): Recognize some subregs as being
4433 2016-11-15 Richard Sandiford <richard.sandiford@arm.com>
4434 Alan Hayward <alan.hayward@arm.com>
4435 David Sherwood <david.sherwood@arm.com>
4437 * dwarf2out.c (mem_loc_descriptor): Fix GET_MODE_CLASS/
4440 2016-11-14 Michael Meissner <meissner@linux.vnet.ibm.com>
4442 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Add support
4443 for using xxinsertw and vinsert{b,h} on ISA 3.0.
4445 * config/rs6000/vsx.md (vsx_extract_<mode>): Update comment.
4446 (vsx_set_<mode>_p9): New insn to generate xxinsertw and
4447 vinsert{b,h} on ISA 3.0.
4449 2016-11-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
4451 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
4452 and cmpnop in two steps: first the ones not accessed in original gimple
4453 expression in a endian independent way and then the ones not accessed
4454 in the final result in an endian-specific way.
4455 (bswap_replace): Stop doing big endian adjustment.
4457 2016-11-14 Uros Bizjak <ubizjak@gmail.com>
4459 * config/i386/i386.md (*andndi3_doubleword): Merge operand constraints.
4460 (*ashl<mode>3_doubleword): Ditto.
4462 2016-11-14 Martin Liska <mliska@suse.cz>
4464 * tree-ssa-dse.c (dse_optimize_stmt): Remove quotes and extra new line.
4466 2016-11-14 Prasad Ghangal <prasad.ghangal@gmail.com>
4467 Richard Biener <rguenther@suse.de>
4469 * doc/invoke.texi (fgimple): Document.
4470 * dumpfile.h (TDF_GIMPLE): Add.
4471 * dumpfile.c (dump_options): Add gimple.
4472 * gimple-pretty-print.c (dump_gimple_switch): Adjust dump
4474 (dump_gimple_label): Likewise.
4475 (dump_gimple_phi): Likewise.
4476 (dump_gimple_bb_header): Likewise.
4477 (dump_phi_nodes): Likewise.
4478 (pp_cfg_jump): Likewise. Pass in dump flags.
4479 (dump_implicit_edges): Adjust.
4480 * passes.c (pass_init_dump_file): Do not dump function header
4482 * tree-cfg.c (dump_function_to_file): Dump function return type
4483 and __GIMPLE keyword for TDF_GIMPLE. Change guard for dumping
4485 * tree-pretty-print.c (dump_decl_name): Adjust dump for TDF_GIMPLE.
4486 (dump_generic_node): Likewise.
4487 * function.h (struct function): Add pass_startwith member.
4488 * passes.c (execute_one_pass): Implement startwith.
4489 * tree-ssanames.c (make_ssa_name_fn): New argument, check for version
4490 and assign proper version for parsed ssa names.
4491 * tree-ssanames.h (make_ssa_name_fn): Add new argument to the function.
4492 * internal-fn.c (expand_PHI): New function.
4493 * internal-fn.h (expand_PHI): Declared here.
4494 * internal-fn.def: New defination for PHI.
4495 * tree-cfg.c (lower_phi_internal_fn): New function.
4496 (build_gimple_cfg): Call it.
4497 (verify_gimple_call): Condition for passing label as arg in internal
4499 * tree-into-ssa.c (rewrite_add_phi_arguments): Handle already
4500 present PHIs with arguments.
4502 2016-11-14 Martin Liska <mliska@suse.cz>
4505 * common.opt: Add prefer-atomic as a new enum value for
4507 * coretypes.h: Likewise.
4508 * doc/invoke.texi: Document the new option value.
4509 * gcc.c: Replace atomic with prefer-atomic. Remove warning.
4510 * tree-profile.c (tree_profiling): Select default value
4511 of -fprofile-update when 'prefer-atomic' is selected.
4513 2016-11-14 Wilco Dijkstra <wdijkstr@arm.com>
4515 * config/arm/cortex-a57.md (cortex_a57_alu): Move extend here, bfm...
4516 (cortex_a57_alu_shift): ...here.
4518 2016-11-14 Wilco Dijkstra <wdijkstr@arm.com>
4520 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3)
4522 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
4523 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
4524 (<optab>si3_insn_uxtw): Likewise.
4525 (<optab><mode>3_insn): Likewise.
4526 (<ANY_EXTEND:optab><GPI:mode>_ashl<SHORT:mode>): Likewise.
4527 (zero_extend<GPI:mode>_lshr<SHORT:mode>): Likewise.
4528 (extend<GPI:mode>_ashr<SHORT:mode>): Likewise.
4529 (<optab><mode>): Likewise.
4530 (insv<mode>): Likewise.
4531 (andim_ashift<mode>_bfiz): Likewise.
4532 * config/aarch64/thunderx.md (thunderx_shift): Add bfx.
4533 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
4534 * config/arm/cortex-a57.md (cortex_a57_alu): Add bfx.
4535 * config/arm/exynos-m1.md (exynos_m1_alu): Add bfx.
4536 (exynos_m1_alu_p): Likewise.
4537 * config/arm/types.md: Add bfx.
4538 * config/arm/xgene1.md (xgene1_bfm): Add bfx.
4540 2016-11-14 Wilco Dijkstra <wdijkstr@arm.com>
4542 * config/aarch64/aarch64.c (cortexa57_vector_cost):
4543 Change vec_stmt_cost, vec_align_load_cost and vec_unalign_load_cost.
4545 2016-11-14 Richard Biener <rguenther@suse.de>
4547 PR tree-optimization/78312
4548 * gimple-ssa-backprop.c (backprop::prepare_change): Reset
4549 flow-sensitive info.
4551 2016-11-14 Georg-Johann Lay <avr@gjlay.de>
4554 * doc/invoke.texi (AVR Options) [-mabsdata]: Document new option.
4555 * config/avr/avr.opt (-mabsdata): New option.
4556 * config/avr/avr-arch.h (avr_device_specific_features): Add AVR_ISA_LDS.
4557 * config/avr/avr.c (avr_encode_section_info) [AVR_TINY]: If
4558 -mabsdata & symbol is not progmem, tag as AVR_SYMBOL_FLAG_TINY_ABSDATA.
4559 * config/avr/avr-mcus.def (attiny4/5/9/10/20): Use AVR_ISA_LDS.
4560 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Print cc1_absdata
4561 spec depending on AVR_ISA_LDS.
4562 * config/avr/specs.h (CC1_SPEC): Enhanced by cc1_absdata spec.
4564 2016-11-13 Jakub Jelinek <jakub@redhat.com>
4566 * match.pd: Don't try to compare addresses of variables with
4569 2016-11-13 Kugan Vivekanandarajah <kuganv@linaro.org>
4571 * ipa-cp.c (ipa_get_jf_pass_through_result): Skip unary expressions.
4572 (propagate_vr_accross_jump_function): Handle unary expressions.
4573 * ipa-prop.c (ipa_set_jf_unary_pass_through): New.
4574 (load_from_param_1): New.
4575 (load_from_unmodified_param): Factor common part into load_from_param_1.
4576 (load_from_param): New.
4577 (compute_complex_assign_jump_func): Handle unary expressions.
4578 (update_jump_functions_after_inlining): Likewise.
4579 (ipa_write_jump_function): Likewise.
4580 (ipa_read_jump_function): Likewise.
4582 2016-11-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4585 * doc/invoke.texi: Document Wrestrict.
4586 * pretty-print.c (pp_format): Add case for "Z" specifier.
4587 (test_pp_format): Test "Z" specifier.
4589 2016-11-13 Eric Botcazou <ebotcazou@adacore.com>
4591 * ipa-icf.c (sem_function::merge): Do not create a wrapper also if the
4592 original function needs a static chain.
4594 2016-11-13 David Edelsohn <dje.gcc@gmail.com>
4597 * config/rs6000/rs6000.c (rs6000_asm_weaken_decl): Protect
4600 2016-11-12 Segher Boessenkool <segher@kernel.crashing.org>
4603 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
4604 return early if !optional_tbtab.
4606 2016-11-11 Eric Botcazou <ebotcazou@adacore.com>
4608 PR rtl-optimization/59461
4609 * doc/rtl.texi (paradoxical subregs): Add missing word.
4610 * combine.c (reg_nonzero_bits_for_combine): Do not discard results
4611 in modes with precision larger than that of last_set_mode.
4612 * rtlanal.c (nonzero_bits1) <SUBREG>: If WORD_REGISTER_OPERATIONS is
4613 set and LOAD_EXTEND_OP is appropriate, propagate results from inner
4614 REGs to paradoxical SUBREGs.
4615 (num_sign_bit_copies1) <SUBREG>: Likewise. Check that the mode is not
4616 larger than a word before invoking LOAD_EXTEND_OP on it.
4618 2016-11-11 Michael Meissner <meissner@linux.vnet.ibm.com>
4621 * config/rs6000/vsx.md (vsx_extract_<mode>_p9): Correct the
4622 element order for little endian ordering.
4624 * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Use
4625 VECTOR_ELT_ORDER_BIG and not BYTES_BIG_ENDIAN to adjust element
4628 2016-11-11 Uros Bizjak <ubizjak@gmail.com>
4631 * config/i386/i386.md (rotate to rotatex splitter): Avoid overflow
4632 when calculating operand 2.
4633 (rotate to rotatex zext splitter): Ditto.
4635 2016-11-11 Jeff Law <law@redhat.com>
4637 * gimple-ssa-isolate-paths.c (is_divmod_with_given_divisor): New
4639 (stmt_uses_name_in_undefined_way): New function, extracted from
4640 find_implicit_erroneous_behavior and extended for div/mod case.
4641 (stmt_uses_0_or_null_in_undefined_way): New function, extracted from
4642 find_explicit_erroneous_behavior and extended for div/mod case.
4643 (find_implicit_erroneous_behavior): Use new helper function.
4644 (find_explicit_erroneous_behavior): Use new helper function.
4646 2016-11-11 Richard Biener <rguenther@suse.de>
4648 PR tree-optimization/71575
4649 * graphite-isl-ast-to-gimple.c (copy_cond_phi_nodes): Remove
4652 2016-11-11 Richard Biener <rguenther@suse.de>
4655 * tree-ssa-uninit.c (warn_uninitialized_vars): Do not warn
4656 about uninitialized destination arg of BIT_INSERT_EXPR.
4658 2016-11-10 Sandra Loosemore <sandra@codesourcery.com>
4661 * doc/invoke.texi (Code Gen Options) [-fno-common]: Use correct
4662 terminology. Expand to remove ambiguity.
4664 2016-11-10 Segher Boessenkool <segher@kernel.crashing.org>
4666 PR rtl-optimization/78232
4667 * combine.c (try_combine): Add a big comment about why reusing i2dest
4669 (change_zero_ext): Do not call simplify_gen_binary, do the
4670 simplifications manually.
4672 2016-11-10 Michael Meissner <meissner@linux.vnet.ibm.com>
4674 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If ISA 3.0,
4675 enable HImode and QImode to go in vector registers by default if
4676 the -mvsx-small-integer option is enabled.
4677 (rs6000_secondary_reload_simple_move): Likewise.
4678 (rs6000_preferred_reload_class): Don't force integer constants to
4679 be loaded into vector registers that we can easily make into
4680 memory (or being created in the GPRs and moved over with direct move).
4681 * config/rs6000/vsx.md (UNSPEC_P9_MEMORY): Delete, no longer used.
4682 (vsx_extract_<mode>): Rework V4SImode, V8HImode, and V16QImode
4683 vector extraction on ISA 3.0 when the scalar integer can be
4684 allocated in vector registers. Generate the VEC_SELECT directy,
4685 and don't use UNSPEC's to avoid having the scalar type in a vector
4686 register. Make the expander target registers, and let the
4687 combiner fold in results storing to memory, if the machine
4689 (vsx_extract_<mode>_di): Likewise.
4690 (vsx_extract_<mode>_p9): Likewise.
4691 (vsx_extract_<mode>_di_p9): Likewise.
4692 (vsx_extract_<mode>_store_p9): Likewise.
4693 (vsx_extract_si): Likewise.
4694 (vsx_extract_<mode>_p8): Likewise.
4695 (p9_lxsi<wd>zx): Delete, no longer used.
4696 (p9_stxsi<wd>x): Likewise.
4697 * config/rs6000/rs6000.md (INT_ISA3): New mode iterator for
4698 integers in vector registers for ISA 3.0.
4699 (QHI): Update comment.
4700 (zero_extendqi<mode>2): Add support for ISA 3.0 scalar load or
4701 vector extract instructions in sign/zero extend.
4702 (zero_extendhi<mode>): Likewise.
4703 (extendqi<mode>): Likewise.
4704 (extendhi<mode>2): Likewise.
4705 (HImode splitter for load/sign extend in vector register): Likewise.
4706 (float<QHI:mode><FP_ISA3:mode>2): Eliminate old method of
4707 optimizing floating point conversions to/from small data types and
4708 rewrite it to support QImode/HImode being allowed in vector
4709 registers on ISA 3.0.
4710 (float<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
4711 (floatuns<QHI:mode><FP_ISA3:mode>2): Likewise.
4712 (floatuns<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
4713 (fix_trunc<SFDF:mode><QHI:mode>2): Likewise.
4714 (fix_trunc<SFDF:mode><QHI:mode>2_internal): Likewise.
4715 (fixuns_trunc<SFDF:mode><QHI:mode>2): Likewise.
4716 (fixuns_trunc<SFDF:mode><QHI:mode>2_internal): Likewise.
4717 VSPLITISW on ISA 2.07.
4718 (movhi_internal): Combine movhi_internal and movqi_internal into
4719 one mov<mode>_internal with an iterator. Add support for QImode
4720 and HImode being allowed in vector registers. Make large number
4721 of attributes and constraints easier to read.
4722 (movqi_internal): Likewise.
4723 (mov<mode>_internal): Likewise.
4724 (movdi_internal64): Fix constraint to allow loading -16..15 with
4725 VSPLITISW on ISA 2.07.
4726 (integer XXSPLTIB splitter): Add support for QI, HI, and SImode as
4729 2016-11-10 Pat Haugen <pthaugen@us.ibm.com>
4731 PR rtl-optimization/78241
4732 * loop-unroll.c (unroll_loop_runtime_iterations): Don't adjust 'niter',
4733 but emit initial peel copy if niter expr is not reliable.
4735 2016-11-10 Segher Boessenkool <segher@kernel.crashing.org>
4737 * dwarf2cfi.c (dump_cfi_row): Add forward declaration.
4738 (maybe_record_trace_start): If the CFI is different on the new and
4739 old paths, print out both to the dump file before ICEing.
4741 2016-11-10 Vladimir Makarov <vmakarov@redhat.com>
4743 * target.def (additional_allocno_class_p): New.
4744 * hooks.h (hook_bool_reg_class_t_false): New prototype.
4745 * hooks.c (hook_bool_reg_class_t_false): New.
4746 * ira.c (setup_allocno_and_important_classes): Use the new hook.
4747 * doc/tm.texi.in (TARGET_ADDITIONAL_ALLOCNO_CLASS_P): Add it.
4748 * doc/tm.texi: Update.
4750 2016-11-10 Jason Merrill <jason@redhat.com>
4752 * gengtype.c (new_structure): Append to structures list.
4753 (find_structure): Likewise.
4755 2016-11-10 Jim Wilson <jim.wilson@linaro.org>
4757 * tree-loop-distribution.c (pg_add_dependence_edges): Return 2 if
4758 this_dir is 2. Check for this_dir non-zero before dir != this_dir
4761 2016-11-10 Jakub Jelinek <jakub@redhat.com>
4763 * omp-low.c (lower_omp_target): Fix up argument to is_reference.
4764 (expand_omp_ordered_sink): Handle TREE_PURPOSE of deps being
4766 * gimplify.c (gimplify_scan_omp_clauses): Likewise. Set
4767 ctx->target_map_scalars_firstprivate on OMP_TARGET even for Fortran.
4768 Remove omp_no_lastprivate callers. Propagate lastprivate on combined
4769 teams distribute parallel for simd even to distribute and teams
4770 construct. For OMP_CLAUSE_DEPEND add missing break at the end of
4771 OMP_CLAUSE_DEPEND_SINK case.
4772 (omp_notice_variable): Use lang_hooks.decls.omp_scalar_p.
4773 (omp_no_lastprivate): Removed.
4774 (gimplify_adjust_omp_clauses): Remove omp_no_lastprivate callers.
4775 (gimplify_omp_for): Likewise.
4776 (computable_teams_clause): Fail for automatic vars from current
4777 function not yet seen in bind expr.
4778 * langhooks.c (lhd_omp_scalar_p): New function.
4779 * langhooks.h (struct lang_hooks_for_decls): Add omp_scalar_p.
4780 * varpool.c (varpool_node::get_create): Set node->offloading
4781 even for DECL_EXTERNAL decls.
4782 * langhooks-def.h (lhd_omp_scalar_p): New prototype.
4783 (LANG_HOOKS_OMP_SCALAR_P): Define.
4784 (LANG_HOOKS_DECLS): Use it.
4786 2016-11-10 Martin Liska <mliska@suse.cz>
4789 * gimplify.c (gimplify_switch_expr): Create live_switch_vars
4790 only when SWITCH_BODY is a BIND_EXPR.
4792 2016-11-10 Pierre-Marie de Rodat <derodat@adacore.com>
4795 * dwarf2out.c (dwarf2out_early_global_decl): Call dwarf2out_decl
4796 on the context only when it has no DIE yet.
4798 2016-11-10 Richard Earnshaw <rearnsha@arm.com>
4800 * arm.h (target_cpus): Delete.
4801 * arm-opts.h (enum processor_type): Prefix entires with TARGET_CPU_.
4802 * arm.c (all_cores): Prefix IDENT with TARGET_CPU_.
4803 (all_architectures): Likewise.
4804 (arm_option_override): Adjust use of CPU enums.
4805 (arm_sched_reorder): Likewise.
4806 * vfp.md (movdi_vfp, movdi_vfp_cortexa8): Likewise.
4807 * arm.opt (mcpu, mtune): Adjust use of CPU enums.
4808 * arm/genopt.sh (processor_type): Prefix enumeration entries with
4810 * arm-tables.opt: Regenerated.
4812 2016-11-10 Siddhesh Poyarekar <siddhesh.poyarekar@linaro.org>
4814 * config/aarch64/aarch64-cores.def (qdf24xx): Update part number.
4816 * config/aarch64/aarch64-tune.md: Regenerated.
4817 * config/arm/arm-cores.def (falkor): New core.
4818 * config/arm/arm-tables.opt: Regenerated.
4819 * config/arm/arm-tune.md: Regenerated.
4820 * config/arm/bpabi.h (BE8_LINK_SPEC): Add falkor support.
4821 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
4822 * doc/invoke.texi (AArch64 Options/-mtune): Document it.
4823 (ARM Options/-mtune): Likewise.
4825 2016-11-10 Kugan Vivekanandarajah <kuganv@linaro.org>
4828 2016-11-09 Kugan Vivekanandarajah <kuganv@linaro.org>
4830 * ipa-cp.c (ipa_get_jf_pass_through_result): Handle unary expressions.
4831 (propagate_vr_accross_jump_function): Likewise.
4832 * ipa-prop.c (ipa_set_jf_unary_pass_through): New.
4833 (load_from_param_1): New.
4834 (load_from_unmodified_param): Factor common part into load_from_param_1.
4835 (load_from_param): New.
4836 (compute_complex_assign_jump_func): Handle unary expressions.
4837 (ipa_write_jump_function): Likewise.
4838 (ipa_read_jump_function): Likewise.
4840 2016-11-09 Segher Boessenkool <segher@kernel.crashing.org>
4842 * simplify-rtx.c (simplify_binary_operation_1): Simplify
4843 (xor (and (xor A B) C) B) to (ior (and A C) (and B ~C)) and
4844 (xor (and (xor A B) C) A) to (ior (and A ~C) (and B C)) if C
4847 2016-11-09 David Malcolm <dmalcolm@redhat.com>
4849 * print-rtl-function.c: Include varasm.h.
4850 (print_any_param_name): New function.
4851 (print_param): New function.
4852 (print_rtx_function): Call print_param for each argument.
4853 * print-rtl.c (rtx_writer::finish_directive): New function.
4854 * print-rtl.h (rtx_writer::finish_directive): New decl.
4856 2016-11-09 Uros Bizjak <ubizjak@gmail.com>
4859 * config/i386/i386.md (*<shift_insn><mode>3_doubleword): Mark
4860 operand 0 as earlyclobber.
4861 (*ashl<mode>3_doubleword): Ditto for all operand 0 alternatives.
4863 2016-11-09 Martin Liska <mliska@suse.cz>
4865 * fold-const-call.c (fold_const_call): Fix up type of s0 and s1.
4867 2016-11-09 Jakub Jelinek <jakub@redhat.com>
4870 * builtins.c (expand_builtin_memcmp): Formatting fix.
4872 * flag-types.h (enum sanitize_code): Add SANITIZE_SHIFT_BASE
4873 and SANITIZE_SHIFT_EXPONENT, change SANITIZE_SHIFT to bitwise
4874 or of them, renumber other enumerators.
4875 * opts.c (sanitizer_opts): Add shift-base and shift-exponent.
4876 * doc/invoke.texi: Document -fsanitize=shift-base and
4877 -fsanitize-shift-exponent, document -fsanitize=shift as
4878 having those 2 suboptions.
4880 2016-11-09 Richard Biener <rguenther@suse.de>
4882 * fold-const.c (tree_swap_operands_p): Remove unused arg.
4883 * fold-const.c (tree_swap_operands_p): Likewise.
4884 (fold_binary_loc): Adjust.
4885 (fold_ternary_loc): Likewise.
4886 * genmatch.c (dt_operand::gen_gimple_exp): Likewise.
4887 * gimple-fold.c (fold_stmt_1): Likewise.
4888 * gimple-match-head.c (gimple_resimplify2): Likewise.
4889 (gimple_resimplify3): Likewise.
4890 (gimple_simplify): Likewise.
4891 * tree-ssa-dom.c (record_equality): Likewise.
4892 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Likewise.
4893 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
4894 * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): Likewise.
4896 2016-11-09 Richard Biener <rguenther@suse.de>
4898 * tree-ssa-dom.c (canonicalize_comparison): Remove.
4899 (optimize_stmt): Remove redundant pre-propagation canonicalization
4900 of comparison operand order.
4902 2016-11-09 Martin Liska <mliska@suse.cz>
4904 * fold-const-call.c (fold_const_call): Fix the folding.
4906 2016-11-09 Richard Biener <rguenther@suse.de>
4908 * common.opt (flag_evaluation_order): Remove.
4909 * expr.c (expand_operands): Remove code guarded by
4910 flag_evaluation_order.
4911 * fold-const.c (reorder_operands_p): Remove, it always returns
4913 (negate_expr_p): Remove calls to reorder_operands_p.
4914 (fold_negate_expr): Likewise.
4915 (tree_swap_operands_p): Likewise.
4916 (fold_binary_loc): Likewise.
4918 2016-11-09 Andreas Schwab <schwab@suse.de>
4921 * config/m68k/m68k.md: Reject out-of-range bit pos in bit-fields
4922 insns operating on a register.
4924 2016-11-09 Richard Biener <rguenther@suse.de>
4926 PR tree-optimization/78007
4927 * tree-vect-stmts.c (vectorizable_bswap): New function.
4928 (vectorizable_call): Call vectorizable_bswap for
4929 BUILT_IN_BSWAP{16,32,64} if arguments are not promoted.
4931 2016-11-09 Richard Biener <rguenther@suse.de>
4933 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
4934 Look at the DR_BASE_ADDRESS object for forcing alignment.
4936 2016-11-09 Kugan Vivekanandarajah <kuganv@linaro.org>
4938 * ipa-cp.c (ipa_get_jf_pass_through_result): Handle unary expressions.
4939 (propagate_vr_accross_jump_function): Likewise.
4940 * ipa-prop.c (ipa_set_jf_unary_pass_through): New.
4941 (load_from_param_1): New.
4942 (load_from_unmodified_param): Factor common part into load_from_param_1.
4943 (load_from_param): New.
4944 (compute_complex_assign_jump_func): Handle unary expressions.
4945 (ipa_write_jump_function): Likewise.
4946 (ipa_read_jump_function): Likewise.
4948 2016-11-09 Kugan Vivekanandarajah <kuganv@linaro.org>
4951 * ipa-cp.c (propagate_vr_accross_jump_function): Pass param type.
4952 Also fold constant passed as argument while computing value range.
4953 (propagate_constants_accross_call): Pass param type.
4954 * ipa-prop.c: export ipa_get_callee_param_type.
4955 * ipa-prop.h: export ipa_get_callee_param_type.
4957 2016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com>
4959 * asan.h (asan_intercepted_p): Handle BUILT_IN_STRCSPN,
4960 BUILT_IN_STRPBRK, BUILT_IN_STRSPN and BUILT_IN_STRSTR.
4962 2016-11-09 Maxim Ostapenko <m.ostapenko@samsung.com>
4964 * asan.h (ASAN_STACK_MAGIC_PARTIAL): Remove.
4965 * asan.c (ASAN_STACK_MAGIC_PARTIAL): Replace with
4966 ASAN_STACK_MAGIC_MIDDLE.
4967 (asan_global_struct): Increase the size of fields.
4968 (asan_add_global): Add new field constructor.
4969 * sanitizer.def (__asan_version_mismatch_check_v6): Replace with
4970 __asan_version_mismatch_check_v8.
4972 2016-11-08 David Edelsohn <dje.gcc@gmail.com>
4974 * dwarf2asm.c (USE_LINKONCE_INDIRECT): Test XCOFF_DEBUGGING_INFO
4977 2016-11-08 Uros Bizjak <ubizjak@gmail.com>
4980 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
4981 Handle ASHIFT and LSHIFTRT.
4982 (dimode_scalar_chain::compute_convert_gain): Ditto.
4983 (dimode_scalar_chain::convert_insn): Ditto.
4985 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4987 * gimple-ssa-store-merging.c: Include selftest.h
4988 (verify_array_eq): New function.
4989 (verify_shift_bytes_in_array): Likewise.
4990 (verify_shift_bytes_in_array_right): Likewise.
4991 (verify_clear_bit_region): Likewise.
4992 (verify_clear_bit_region_be): Likewise.
4993 (store_merging_c_tests): Likewise.
4994 * selftest.h (store_merging_c_tests): Declare prototype.
4995 * selftest-run-tests.c (selftest::run_tests): Run
4996 store_merging_c_tests.
4998 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5000 * config/arm/arm.opt (mold-rtx-costs): Delete.
5001 (mnew-generic-costs): Delete.
5002 * config/arm/arm-protos.h (struct tune_params): Delete rtx_costs field.
5003 * config/arm/arm.c (arm_rtx_costs_1): Delete.
5004 (arm_size_rtx_costs): Likewise.
5005 (arm_slowmul_rtx_costs): Likewise.
5006 (arm_fastmul_rtx_costs): Likewise.
5007 (arm_xscale_rtx_costs): Likewise.
5008 (arm_9e_rtx_costs): Likewise.
5009 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
5010 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
5011 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
5012 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
5013 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
5014 arm_cortex_a5_tune, arm_xgene1_tune, arm_marvell_pj4_tune,
5015 arm_cortex_a35_tune, arm_exynosm1_tune, arm_cortex_a73_tune,
5016 arm_cortex_m7_tune):
5017 Delete rtx_costs field.
5018 (arm_new_rtx_costs): Rename to...
5019 (arm_rtx_costs_internal): ... This.
5020 (arm_rtx_costs): Remove old way of doing rtx costs.
5022 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5024 * config/arm/arm.c (arm_slowmul_tune): Use generic_extra_costs.
5025 (arm_fastmul_tune): Likewise.
5026 (arm_strongarm_tune): Likewise.
5027 (arm_xscale_tune): Likewise.
5028 (arm_9e_tune): Likewise.
5029 (arm_marvell_pj4_tune): Likewise.
5030 (arm_v6t2_tune): Likewise.
5031 (arm_v6m_tune): Likewise.
5032 (arm_fa726te_tune): Likewise.
5034 2016-11-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5036 PR tree-optimization/78234
5037 * gimple-ssa-store-merging.c (clear_bit_region): Fix off-by-one error
5040 2016-11-08 Martin Liska <mliska@suse.cz>
5043 * dbgcnt.def: Add new debug counter asan_use_after_scope.
5044 * gimplify.c (gimplify_decl_expr): Do not sanitize vars
5045 with a value expr. Do not add artificial variables to
5046 live_switch_vars. Use the debug counter.
5047 (gimplify_target_expr): Use the debug counter.
5048 * internal-fn.def: Remove ECF_TM_PURE from ASAN_MARK builtin.
5049 * sanitizer.def: Set ATTR_NOTHROW_LEAF_LIST to
5050 BUILT_IN_ASAN_CLOBBER_N and BUILT_IN_ASAN_UNCLOBBER_N.
5052 2016-11-08 Richard Biener <rguenther@suse.de>
5054 * tree-vect-stmts.c (get_group_load_store_type): If the
5055 access is aligned do not trigger peeling for gaps.
5056 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
5057 force alignment of vars with DECL_USER_ALIGN.
5059 2016-11-08 James Greenhalgh <james.greenhalgh@arm.com>
5061 * config/aarch64/t-aarch64 (aarch64-c.o): Depend on TARGET_H.
5063 2016-11-08 Richard Biener <rguenther@suse.de>
5065 PR tree-optimization/78205
5066 * tree-vect-stmts.c (vectorizable_load): Move check whether
5067 we may run into gaps when BB vectorizing SLP permutations ...
5068 * tree-vect-slp.c (vect_supported_load_permutation_p): ...
5069 here where we can do a more precise check.
5071 2016-11-08 Richard Biener <rguenther@suse.de>
5073 PR tree-optimization/78224
5074 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
5075 Split the fallthru edge in case its successor may have PHIs.
5076 Do not free dominance info.
5078 2016-11-07 Jakub Jelinek <jakub@redhat.com>
5081 * config/i386/i386.c (ix86_gimple_fold_builtin): Do not adjust
5082 EH info even for bzhi and pdep/pext.
5084 2016-11-07 Peter Bergner <bergner@vnet.ibm.com>
5086 * config.gcc (powerpc*-*-*, rs6000*-*-*): Remove setting of
5087 INCLUDE_EXTRA_SPEC for Advance Toolchain builds.
5089 2016-11-07 Segher Boessenkool <segher@kernel.crashing.org>
5091 * config/rs6000/rs6000.md (div<mode>3): Expand using rs6000_emit_swdiv
5093 * config/rs6000/vector.md (div<mode>3): Ditto.
5095 2016-11-07 David Edelsohn <dje.gcc@gmail.com>
5097 * configure.ac (.hidden): Change to conftest_s string. Provide string
5099 (gcc_cv_ld_hidden): Yes for AIX.
5100 * configure: Regenerate.
5102 * dwarf2asm.c (USE_LINKONCE_INDIRECT): Don't set for AIX (XCOFF).
5104 * config/rs6000/rs6000-protos.h (rs6000_asm_weaken_decl): Declare
5105 (rs6000_xcoff_asm_output_aligned_decl_common): Declare.
5106 * config/rs6000/xcoff.h (TARGET_ASM_GLOBALIZE_DECL_NAME): Define.
5107 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
5108 (ASM_OUTPUT_ALIGNED_COMMON): Delete.
5109 * config/rs6000/rs6000.c (rs6000_init_builtins): Change clog rename
5111 (rs6000_xcoff_visibility): New.
5112 (rs6000_xcoff_declare_function_name): Add visibility support.
5113 (rs6000_xcoff_asm_globalize_decl_name): New.
5114 (rs6000_xcoff_asm_output_aligned_decl_common): New.
5115 (rs6000_asm_weaken_decl): New.
5116 (rs6000_code_end): Disable HIDDEN_LINKONCE on XCOFF.
5117 config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Change definition to
5120 2016-11-07 Jack Howarth <howarth.at.gcc@gmail.com>
5123 * incpath.c (remove_dup): Also silently ignore EPERM.
5125 2016-11-07 Martin Jambor <mjambor@suse.cz>
5127 * tree.c (verify_type_variant): Use pointer comparison to check that
5128 TYPE_SIZE_UNIT match.
5130 2016-11-07 Jakub Jelinek <jakub@redhat.com>
5133 * dse.c (dse_step5): Call scan_reads even if just
5134 insn_info->frame_read. Improve and fix dump file messages.
5137 * config/i386/i386.c (ix86_expand_sse_cmp): Force dest into
5138 cmp_mode argument even for -O0 if cmp_mode != mode and maskcmp.
5140 2016-11-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5143 * match.pd: Add following two patterns:
5144 (x == 0 & y == 0) -> (x | typeof(x)(y)) == 0.
5145 (x != 0 | y != 0) -> (x | typeof(x)(y)) != 0.
5147 2016-11-07 Bernd Schmidt <bschmidt@redhat.com>
5149 * emit-rtl.c (emit_copy_of_insn_after): Duplicate notes in order.
5150 * sel-sched-ir.c (create_copy_of_insn_rtx): Likewise.
5151 * rtl.h (duplicate_reg_notes): Declare.
5152 * rtlanal.c (duplicate_reg_note): New function.
5154 PR rtl-optimization/77309
5155 * combine.c (make_compound_operation): Allow EQ for IN_CODE, and
5156 don't assume an equality comparison for plain COMPARE.
5157 (simplify_comparison): Pass a more accurate code to
5158 make_compound_operation.
5160 2016-11-07 Pat Haugen <pthaugen@us.ibm.com>
5162 * target.def (compute_pressure_classes): New target hook.
5163 * doc/tm.texi.in: Document it.
5164 * doc/tm.texi: Regenerate.
5165 * ira.c (setup_pressure_classes): Call target hook if defined.
5167 2016-11-07 David Malcolm <dmalcolm@redhat.com>
5169 * print-rtl.c (rtx_writer::operand_has_default_value_p): New
5171 (rtx_writer::print_rtx): In compact mode, omit trailing operands
5172 that have the default values.
5173 * print-rtl.h (rtx_writer::operand_has_default_value_p): New
5175 * rtl-tests.c (selftest::test_dumping_insns): Remove empty
5176 label string from expected dump.
5177 (seltest::test_uncond_jump): Remove trailing "(nil)" for REG_NOTES
5180 2016-11-07 Jakub Jelinek <jakub@redhat.com>
5183 * alias.c (nonoverlapping_memrefs_p): If one decl is
5184 FUNCTION_DECL or LABEL_DECL and the other is not, return 1.
5186 2016-11-07 Richard Biener <rguenther@suse.de>
5189 * config/i386/i386.c (ix86_gimple_fold_builtin): Do not adjust
5192 2016-11-07 Richard Biener <rguenther@suse.de>
5194 PR tree-optimization/78218
5195 * gimple-ssa-store-merging.c
5196 (pass_store_merging::terminate_all_aliasing_chains):
5197 Drop unused argument, fix alias check to also consider uses.
5198 (pass_store_merging::execute): Adjust.
5200 2016-11-07 Richard Biener <rguenther@suse.de>
5202 PR tree-optimization/78228
5203 * tree-ssa-phiopt.c (abs_replacement): Avoid introducing
5206 2016-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5209 * config/aarch64/aarch64.md (*tb<optab><mode>1): Use
5210 aarch64_simd_shift_imm_<mode> predicate for operand 1.
5211 (<optab>, ANY_EXTRACT): Use tighter predicates on operands 2 and 3
5212 to restrict them to an appropriate range and add FAIL check if the
5213 region they specify is out of range. Delete useless constraint
5215 (*<optab><mode>, ANY_EXTRACT): Add appropriate predicates on operands
5216 2 and 3 to restrict their range and add pattern predicate.
5218 2016-11-07 Martin Liska <mliska@suse.cz>
5220 * asan.c (enum asan_check_flags): Move the enum to header file.
5221 (asan_init_shadow_ptr_types): Make type creation more generic.
5222 (shadow_mem_size): New function.
5223 (asan_emit_stack_protection): Use newly added ASAN_SHADOW_GRANULARITY.
5224 Rewritten stack unpoisoning code.
5225 (build_shadow_mem_access): Add new argument return_address.
5226 (instrument_derefs): Instrument local variables if use after scope
5227 sanitization is enabled.
5228 (asan_store_shadow_bytes): New function.
5229 (asan_expand_mark_ifn): Likewise.
5230 (asan_sanitize_stack_p): Moved from asan_sanitize_stack_p.
5231 * asan.h (enum asan_mark_flags): Moved here from asan.c
5232 (asan_protect_stack_decl): Protect all declaration that need
5234 (asan_sanitize_use_after_scope): New function.
5235 (asan_no_sanitize_address_p): Likewise.
5236 * cfgexpand.c (partition_stack_vars): Consider
5237 asan_sanitize_use_after_scope in condition.
5238 (expand_stack_vars): Likewise.
5239 * common.opt (-fsanitize-address-use-after-scope): New option.
5240 * doc/invoke.texi (use-after-scope-direct-emission-threshold):
5241 Explain the parameter.
5242 * flag-types.h (enum sanitize_code): Define SANITIZE_USE_AFTER_SCOPE.
5243 * gimplify.c (build_asan_poison_call_expr): New function.
5244 (asan_poison_variable): Likewise.
5245 (gimplify_bind_expr): Generate poisoning/unpoisoning for local
5246 variables that have address taken.
5247 (gimplify_decl_expr): Likewise.
5248 (gimplify_target_expr): Likewise for C++ temporaries.
5249 (sort_by_decl_uid): New function.
5250 (gimplify_expr): Unpoison all variables for a label we can jump
5251 from outside of a scope.
5252 (gimplify_switch_expr): Unpoison variables defined in the switch
5254 (gimplify_function_tree): Clear asan_poisoned_variables.
5255 (asan_poison_variables): New function.
5256 (warn_switch_unreachable_r): Handle IFN_ASAN_MARK.
5257 * internal-fn.c (expand_ASAN_MARK): New function.
5258 * internal-fn.def (ASAN_MARK): Declare.
5259 * opts.c (finish_options): Handle -fstack-reuse if
5260 -fsanitize-address-use-after-scope is enabled.
5261 (common_handle_option): Enable address sanitization if
5262 -fsanitize-address-use-after-scope is enabled.
5263 * params.def (PARAM_USE_AFTER_SCOPE_DIRECT_EMISSION_THRESHOLD):
5265 * params.h: Likewise.
5266 * sancov.c (pass_sanopt::execute): Handle IFN_ASAN_MARK.
5267 * sanitizer.def: Define __asan_poison_stack_memory and
5268 __asan_unpoison_stack_memory functions.
5269 * asan.c (asan_mark_poison_p): New function.
5270 (transform_statements): Handle asan_mark_poison_p calls.
5271 * gimple.c (nonfreeing_call_p): Handle IFN_ASAN_MARK.
5273 2016-11-07 Tamar Christina <tamar.christina@arm.com>
5276 * Makefile.in (SELFTEST_FLAGS): Added -o /dev/null.
5278 2016-11-07 Martin Liska <mliska@suse.cz>
5280 * tree-profile.c (gimple_gen_time_profiler): Set proper type
5281 to time_profiler_counter_ptr.
5283 2016-11-07 Richard Biener <rguenther@suse.de>
5285 PR tree-optimization/37150
5286 * tree-vectorizer.h (vect_transform_slp_perm_load): Add n_perms
5288 * tree-vect-slp.c (vect_supported_load_permutation_p): Adjust.
5289 (vect_analyze_slp_cost_1): Account for the real number of
5290 permutations emitted and for dead loads.
5291 (vect_transform_slp_perm_load): Add n_perms parameter counting
5292 the number of emitted permutations.
5293 * tree-vect-stmts.c (vectorizable_load): Adjust.
5295 2016-11-07 Richard Biener <rguenther@suse.de>
5297 PR tree-optimization/78189
5298 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Fix
5299 alignment computation.
5301 2016-11-06 Kugan Vivekanandarajah <kuganv@linaro.org>
5303 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove unreachable code.
5305 2016-11-05 Martin Sebor <msebor@redhat.com>
5307 * doc/invoke.texi (Warning Options): Correct typos in -Walloca
5310 2016-11-05 David Edelsohn <dje.gcc@gmail.com>
5314 * ipa-comdats.c (pass_ipa_comdats::gate): Require HAVE_COMDAT_GROUP.
5316 2016-11-04 Jakub Jelinek <jakub@redhat.com>
5319 * alias.c (nonoverlapping_memrefs_p): Return 0 if exprx or expry
5320 doesn't have rtl set.
5322 2016-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5324 * config/rs6000/rs6000.c (gimple-ssa.h): New #include.
5325 (TARGET_GIMPLE_FOLD_BUILTIN): Define as
5326 rs6000_gimple_fold_builtin.
5327 (rs6000_gimple_fold_builtin): New function. Add handling for
5328 early expansion of vector addition builtins.
5330 2016-11-04 Eric Botcazou <ebotcazou@adacore.com>
5332 * expr.h (copy_blkmode_from_reg): Delete.
5333 * expr.c (copy_blkmode_from_reg): Make static.
5335 2016-11-04 Eric Botcazou <ebotcazou@adacore.com>
5337 * defaults.h (LOAD_EXTEND_OP): Define if not already defined.
5338 * combine.c (LOAD_EXTEND_OP): Delete.
5339 (simplify_comparison): Fix comment about LOAD_EXTEND_OP.
5340 * cse.c (LOAD_EXTEND_OP): Delete.
5341 * fold-const.c (LOAD_EXTEND_OP): Likewise.
5342 * fwprop.c (free_load_extend): Remove #ifdef LOAD_EXTEND_OP/#endif.
5343 * postreload.c (LOAD_EXTEND_OP): Delete.
5344 * reload.c (push_reload): Remove #ifdef LOAD_EXTEND_OP/#endif.
5345 Convert conditional compilation based on WORD_REGISTER_OPERATIONS.
5346 (find_reloads): Likewise.
5347 * reload1.c (eliminate_regs_1): Likewise.
5348 * rtlanal.c (nonzero_bits1): Remove #ifdef LOAD_EXTEND_OP/#endif.
5349 (num_sign_bit_copies1): Likewise.
5351 2016-11-04 David Malcolm <dmalcolm@redhat.com>
5353 * config/i386/i386.c: Include "selftest.h" and "selftest-rtl.h".
5354 (selftest::ix86_test_dumping_hard_regs): New function.
5355 (selftest::ix86_run_selftests): New function.
5356 (TARGET_RUN_TARGET_SELFTESTS): When CHECKING_P, wire this up to
5357 selftest::ix86_run_selftests.
5358 * doc/tm.texi.in (TARGET_RUN_TARGET_SELFTESTS): New.
5359 * doc/tm.texi: Regenerate
5360 * selftest-rtl.h: New file.
5361 * rtl-tests.c: Include "selftest-rtl.h".
5362 (selftest::assert_rtl_dump_eq): Make non-static.
5363 (ASSERT_RTL_DUMP_EQ): Move to selftest-rtl.h.
5364 (selftest::test_dumping_regs): Update comment.
5365 * selftest-run-tests.c: Include "target.h".
5366 (selftest::run_tests): If non-NULL, call
5367 targetm.run_target_selftests.
5368 * target.def (run_target_selftests): New hook.
5370 2016-11-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
5372 * config/arm/arm-arches.def (armv8-m.main+dsp): Set Cortex-M33 as
5373 representative core for this architecture.
5374 * config/arm/arm-cores.def (cortex-m33): Define new processor.
5375 * config/arm/arm-tables.opt: Regenerate.
5376 * config/arm/arm-tune.md: Likewise.
5377 * config/arm/bpabi.h (BE8_LINK_SPEC): Add Cortex-M33 to the list of
5378 valid -mcpu options.
5379 * doc/invoke.texi (ARM Options): Document new Cortex-M33 processor.
5381 2016-11-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
5383 * config/arm/arm-arches.def (armv8-m.base): Set Cortex-M23 as
5384 representative core for this architecture.
5385 * config/arm/arm-cores.def (cortex-m23): Define new processor.
5386 * config/arm/arm-tables.opt: Regenerate.
5387 * config/arm/arm-tune.md: Likewise.
5388 * config/arm/arm.c (arm_v6m_tune): Add Cortex-M23 to the list of cores
5389 this tuning parameters apply to in the comment.
5390 * config/arm/bpabi.h (BE8_LINK_SPEC): Add Cortex-M23 to the list of
5391 valid -mcpu options.
5392 * doc/invoke.texi (ARM Options): Document new Cortex-M23 processor.
5394 2016-11-04 Bin Cheng <bin.cheng@arm.com>
5396 * fold-const.c (fold_cond_expr_with_comparison): Remove call
5397 to pedantic_non_lvalue_loc. Remove useless code for lvalue
5398 where cond_expr can't be a lvalue.
5400 2016-11-04 Claudiu Zissulescu <claziss@synopsys.com>
5402 * config/arc/arc.c (arc_process_double_reg_moves): Use
5404 * config/arc/arc.md (movsi_insn): Disable unsupported move
5405 instructions for ARCv2 cores.
5406 (movdi): Use prepare_move_operands.
5407 (movsf, movdf): Use move_dest_operand predicate.
5408 * config/arc/constraints.md (Chs): Enable when barrel shifter is
5410 * config/arc/fpu.md (divsf3): Change to divsf3_fpu.
5411 * config/arc/fpx.md (dexcl_3op_peep2_insn): Dx data register is
5413 (dexcl_3op_peep2_insn_nores): Likewise.
5414 * config/arc/arc.h (SHIFT_COUNT_TRUNCATED): Define to one.
5415 (LINK_COMMAND_SPEC): Remove.
5417 2016-11-04 Richard Biener <rguenther@suse.de>
5420 * loop-invariant.c (find_exits): Record entering inner
5421 loops as possibly exiting to handle infinite sub-loops.
5422 * tree-ssa-loop-im.c: Include tree-ssa-loop-niter.h.
5423 (fill_always_executed_in_1): Honor infinite child loops.
5425 2016-11-03 Michael Meissner <meissner@linux.vnet.ibm.com>
5428 * config/rs6000/vsx.md (vsx_extract_<mode>_di): The element number
5429 has already been adjusted for endianness, so don't adjust it any
5433 * config/rs6000/rs6000.h (FLOAT128_IBM_P): Do not allow IFmode or
5434 ICmode unless we have standard PowerPC floating point.
5435 * config/rs6000/rs6000.md (FP iterator): Likewise.
5436 (FMOVE128 iterator): Likewise.
5438 2016-11-03 Jakub Jelinek <jakub@redhat.com>
5439 Alexandre Oliva <aoliva@redhat.com>
5440 Jason Merrill <jason@redhat.com>
5444 * langhooks.h (struct lang_hooks_for_types): Add type_dwarf_attribute
5446 * langhooks.c (lhd_type_dwarf_attribute): New function.
5447 * langhooks-def.h (lhd_type_dwarf_attribute): Declare.
5448 (LANG_HOOKS_TYPE_DWARF_ATTRIBUTE): Define.
5449 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add
5450 LANG_HOOKS_TYPE_DWARF_ATTRIBUTE.
5451 (check_qualified_type, check_aligned_type): Call it.
5452 * dwarf2out.c (modified_type_die): Don't use type_main_variant
5453 for FUNCTION_TYPE or METHOD_TYPE, instead walk over variants with
5454 check_base_type and check_lang_type.
5455 (gen_ptr_to_mbr_type_die): If lookup_type_die is already non-NULL,
5456 return early. For pointer-to-data-member add DW_AT_use_location
5458 (gen_subroutine_type_die): Add DW_AT_{,rvalue_}reference attribute
5460 (gen_type_die_with_usage): Don't use type_main_variant
5461 for FUNCTION_TYPE or METHOD_TYPE, instead walk over variants with
5462 check_base_type and check_lang_type. Formatting fixes. Call
5463 get_debug_type langhook.
5465 2016-11-03 Jason Merrill <jason@redhat.com>
5467 * tree.c (check_lang_type): New.
5468 (check_qualified_type): Use it.
5469 (check_aligned_type): Use it.
5470 * tree.h: Declare it.
5472 2016-11-03 Richard Earnshaw <rearnsha@arm.com>
5474 * config.gcc (arm-wrs-vxworks): Set target_cpu_cname.
5475 (arm*-freebsd*): Likewise.
5476 (arm*-*-netbsdelf*): Likewise.
5477 (arm*-*-linux*): Likewise.
5478 (arm*-*-uclinux*eabi*): Likewise.
5479 (arm*-*-phoenix*): Likewise.
5480 (arm*-*-eabi*, arm*-*-symbianelf*, arm*-*-rtems*): Likewise.
5481 (arm*-*-*): Don't clobber target_cpu_cname when --with-cpu is not
5482 specified. Default to arm6 if target_cpu_cname is not set.
5483 * arm/arm.c (arm_option_override): Simplify logic. Assert that the
5484 default cpu has been correctly configured.
5485 * arm/arm.h (TARGET_CPU_DEFAULT): Delete.
5486 (target_cpus): Delete TARGET_CPU_generic, add TARGET_CPU_num_cores.
5487 * arm/freebsd.h (SUBTARGET_CPU_DEFAULT): Delete.
5488 * arm/linux-eabi.h (SUBTARGET_CPU_DEFAULT): Delete.
5489 * arm/linux-elf.h (SUBTARGET_CPU_DEFAULT): Delete.
5490 * arm/symbian.h (SUBTARGET_CPU_DEFAULT): Delete.
5491 * arm/unknown-elf.h (SUBTARGET_CPU_DEFAULT): Delete.
5493 2016-11-03 Jiong Wang <jiong.wang@arm.com>
5495 * reg-notes.def (CFA_VAL_EXPRESSION): New entry.
5496 * dwarf2cfi.c (dwarf2out_frame_debug_cfa_val_expression): New function.
5497 (dwarf2out_frame_debug): Support REG_CFA_VAL_EXPRESSION.
5498 (output_cfa_loc): Support DW_CFA_val_expression.
5499 (output_cfa_loc_raw): Likewise.
5500 (output_cfi): Likewise.
5501 (output_cfi_directive): Likewise.
5502 * dwarf2out.c (dw_cfi_oprnd1_desc): Support DW_CFA_val_expression.
5503 (dw_cfi_oprnd2_desc): Likewise.
5504 (mem_loc_descriptor): Recognize new pattern generated for value
5507 2016-11-03 Segher Boessenkool <segher@kernel.crashing.org>
5509 PR rtl-optimization/78186
5510 * combine.c (change_zero_ext): Mask the RHS of a zero_extract as
5511 well, when converting to IOR.
5513 2016-11-03 Eric Botcazou <ebotcazou@adacore.com>
5515 * config/sparc/sparc.md (vec_interleave_lowv8qi): Delete.
5516 (vec_interleave_highv8qi): Likewise.
5518 2016-11-03 Martin Liska <mliska@suse.cz>
5520 * profile.c (instrument_values): Fix coding style.
5521 (branch_prob): Use renamed function.
5522 * tree-profile.c (init_ic_make_global_vars): Likewise.
5523 (gimple_init_edge_profiler): Rename to
5524 gimple_init_gcov_profiler.
5525 tree_time_profiler_counter variable declaration.
5526 (gimple_gen_time_profiler): Rewrite to do a direct gimple code
5528 * value-prof.h: Remove an argument.
5530 2016-11-03 Richard Biener <rguenther@suse.de>
5532 * config/rs6000/rs6000.c (rs6000_xcoff_declare_object_name): Use
5533 symtab_node::get_create.
5535 2016-11-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5537 * rtlanal.c (nonzero_bits1): Fix WORD_REGISTER_OPERATIONS condition.
5538 Move comments into more natural position.
5540 2016-11-03 Vineet Gupta <vgupta@synopsys.com>
5542 * config/arc/arc.h (SIZE_TYPE): Define as unsigned int.
5543 (PTRDIFF_TYPE): Define as int.
5545 2016-11-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5547 * ccmp.c (expand_ccmp_expr_1): Adjust.
5548 (expand_ccmp_expr): Likewise.
5549 (expand_ccmp_next): Likewise.
5550 * config/aarch64/aarch64.c (aarch64_gen_ccmp_next): Likewise.
5551 (aarch64_gen_ccmp_first): Likewise.
5552 * doc/tm.texi: Regenerate.
5553 * target.def (gen_ccmp_first): Change argument types to rtx_insn *.
5554 (gen_ccmp_next): Likewise.
5556 2016-11-03 Bin Cheng <bin.cheng@arm.com>
5558 * tree-vect-loop.c (destroy_loop_vec_info): Handle cond_expr.
5559 (vect_is_simple_reduction): Swap cond_reduction by inversion.
5561 2016-11-02 Uros Bizjak <ubizjak@gmail.com>
5563 * config/i386/i386.c (ix86_init_libfuncs): New. Call
5564 darwin_rename_builtins here.
5565 (ix86_expand_divmod_libfunc): New.
5566 (TARGET_INIT_LIBFUNCS): Unconditionally define to ix86_init_libfuncs.
5567 (TARGET_EXPAND_DIVMOD_LIBFUNC): Define.
5569 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
5570 Nathan Sidwell <nathan@acm.org>
5572 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): Set to zero.
5574 2016-11-02 Max Filippov <jcmvbkbc@gmail.com>
5576 * config/xtensa/xtensa.c (xtensa_output_integer_literal_parts):
5578 (xtensa_output_literal): Use xtensa_output_integer_literal_parts
5579 to format MODE_INT and MODE_PARTIAL_INT literals.
5581 2016-11-02 Segher Boessenkool <segher@kernel.crashing.org>
5584 * config/r6000/rs6000.c (rs6000_get_separate_components): Return
5585 NULL if TARGET_SPE_ABI.
5587 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5589 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Don't forget to
5590 clear padding bits even when they're less than a byte.
5592 2016-11-02 Richard Biener <rguenther@suse.de>
5594 * gimple-ssa-store-merging.c: Include gimplify-me.h.
5595 (imm_store_chain_info::output_merged_stores): Force base_addr
5596 to be proper GIMPLE for a MEM_REF address.
5597 (pass_store_merging::execute): Restrict negative bitpos
5598 handling to non-MEM_REF bases. Remove TREE_THIS_VOLATILE
5599 check. Take into account non-NULL_TREE offset if the base
5600 is already addressable.
5602 2016-11-26 Wilco Dijkstra <wdijkstr@arm.com>
5604 * config/aarch64/aarch64-simd.md (aarch64_crypto_sha1hv4si):
5606 (aarch64_be_crypto_sha1hv4si): New pattern.
5608 2016-11-02 Wilco Dijkstra <wdijkstr@arm.com>
5610 * config/aarch64/aarch64.md (add<mode>3): Remove
5611 redundant code. Don't split frame based additions.
5613 2016-11-02 Richard Biener <rguenther@suse.de>
5615 * gimple-ssa-store-merging.c (struct store_immediate_info): Remove
5616 redundant val and dest members.
5617 (store_immediate_info::store_immediate_info): Adjust.
5618 (merged_store_group::merged_store_group): Adjust.
5619 (merged_store_group::apply_stores): Likewise.
5620 (struct imm_store_chain_info): Add base_addr field.
5621 (imm_store_chain_info::imm_store_chain_info): New constructor.
5622 (imm_store_chain_info::terminate_and_process_chain): Do not pass base.
5623 (imm_store_chain_info::output_merged_store): Likewise. Use
5624 addr_base which is already the address.
5625 (imm_store_chain_info::output_merged_stores): Likewise.
5626 (pass_tree_store_merging::terminate_all_aliasing_chains): Take
5627 imm_store_chain_info instead of base. Fix alias check.
5628 (pass_tree_store_merging::terminate_and_release_chain): Likewise.
5629 (imm_store_chain_info::coalesce_immediate_stores): Adjust.
5630 (pass_store_merging::execute): Refuse to operate on TARGET_MEM_REF.
5631 use the address of the base and adjust for other changes.
5633 2016-11-02 Martin Liska <mliska@suse.cz>
5635 * fold-const-call.c (host_size_t_cst_p): Test whether
5636 t is convertible to size_t.
5638 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5640 PR tree-optimization/78170
5641 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Truncate padding
5642 introduced by native_encode_expr on little-endian as well.
5644 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5646 PR tree-optimization/78162
5647 * gimple-ssa-store-merging.c (execute): Mark stores with bitpos < 0
5650 2016-11-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5652 * config/aarch64/aarch64.c (aarch64_register_saved_on_entry): Add
5654 (aarch64_next_callee_save): Likewise.
5655 (aarch64_pushwb_single_reg): Likewise.
5656 (aarch64_gen_storewb_pair): Likewise.
5657 (aarch64_push_regs): Likewise.
5658 (aarch64_gen_loadwb_pair): Likewise.
5659 (aarch64_pop_regs): Likewise.
5660 (aarch64_gen_store_pair): Likewise.
5661 (aarch64_gen_load_pair): Likewise.
5662 (aarch64_save_callee_saves): Likewise.
5663 (aarch64_restore_callee_saves): Likewise.
5665 2016-11-02 Richard Biener <rguenther@suse.de>
5667 PR tree-optimization/78035
5668 PR tree-optimization/77964
5669 * gimple-pretty-print.c (pp_points_to_solution): Print
5670 vars_contains_interposable.
5671 * tree-ssa-alias.c: Include varasm.h.
5672 (ptrs_compare_unequal): Check vars_contains_interposable and
5673 decl_binds_to_current_def_p.
5674 (dump_points_to_solution): Dump vars_contains_interposable.
5675 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_interposable
5677 * tree-ssa-structalias.c: Include varasm.h.
5678 (set_uids_in_ptset): Record whether vars contains a
5679 not decl_binds_to_current_def_p variable in vars_contains_interposable.
5680 (ipa_escaped_pt): Update initializer.
5682 2016-11-02 Richard Biener <rguenther@suse.de>
5684 PR tree-optimization/78047
5685 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Initialize
5686 fake field at offset zero conservatively regarding to may_have_pointers.
5688 2016-11-02 Richard Biener <rguenther@suse.de>
5690 * tree-vrp.c (evrp_dom_walker::before_dom_children): Call
5691 infer_value_range on stmt ops and update value-ranges.
5692 Dump visited stmts and blocks.
5693 (evrp_dom_walker::push_value_range): Dump changes.
5694 (evrp_dom_walker::pop_value_range): Likewise.
5695 (evrp_dom_walker::try_find_new_range): Avoid noop changes.
5697 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5699 * emit-rtl.c (prev_nonnote_insn_bb): Change argument type to
5701 * rtl.h (prev_nonnote_insn_bb): Adjust prototype.
5703 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5705 * cfgrtl.c (delete_insn_chain): Change argument type to rtx_insn *
5706 and adjust for that.
5707 * cfgrtl.h (delete_insn_chain): Adjust prototype.
5709 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5711 * config/rl78/rl78.c (gen-and_emit_move): Change argument type
5713 (transcode_memory_rtx): Likewise.
5714 (move_to_acc): Likewise.
5715 (move_from_acc): Likewise.
5716 (move_acc_to_reg): Likewise.
5717 (move_to_x): Likewise.
5718 (move_to_hl): Likewise.
5719 (move_to_de): Likewise.
5720 * config/rs6000/rs6000.c (emit_frame_save): Likewise.
5721 (rs6000_emit_savres_rtx): Likewise.
5722 (rs6000_emit_prologue): Likewise.
5723 * reorg.c (update_reg_unused_notes): Likewise.
5724 * rtl.h (remove_note): Adjust prototype.
5725 * rtlanal.c (remove_note): Make argument type rtx_insn *.
5727 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5729 * config/alpha/alpha.c (alpha_legitimize_address_1): Split up
5730 variables so some can be rtx_insn *.
5731 (alpha_emit_xfloating_libcall): Likewise.
5732 * config/mips/mips.c (mips_call_tls_get_addr): Likewise.
5733 (mips_legitimize_tls_address): Likewise.
5734 * optabs.c (expand_binop): Likewise.
5735 * reload1.c (gen_reload): Likewise.
5737 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5739 * reorg.c (relax_delay_slots): Split up the trial variable.
5741 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5743 * config/arc/arc.c (arc_emit_call_tls_get_addr): Make the type
5744 of variables rtx_insn *.
5745 * config/arm/arm.c (arm_call_tls_get_addr): Likewise.
5746 (legitimize_tls_address): Likewise.
5747 * config/bfin/bfin.c (hwloop_optimize): Likewise.
5748 (bfin_gen_bundles): Likewise.
5749 * config/c6x/c6x.c (reorg_split_calls): Likewise.
5750 (c6x_reorg): Likewise.
5751 * config/frv/frv.c (frv_reorder_packet): Likewise.
5752 * config/i386/i386.c (ix86_split_idivmod): Likewise.
5753 * config/ia64/ia64.c (ia64_expand_compare): Likewise.
5754 * config/m32c/m32c.c (m32c_prepare_shift): Likewise.
5755 * config/mn10300/mn10300.c: Likewise.
5756 * config/rl78/rl78.c: Likewise.
5757 * config/s390/s390.c (s390_fix_long_loop_prediction): Likewise.
5758 * config/sh/sh-mem.cc (sh_expand_cmpstr): Likewise.
5759 (sh_expand_cmpnstr): Likewise.
5760 (sh_expand_strlen): Likewise.
5761 (sh_expand_setmem): Likewise.
5762 * config/sh/sh.md: Likewise.
5763 * emit-rtl.c (emit_pattern_before): Likewise.
5764 * except.c: Likewise.
5765 * final.c: Likewise.
5768 2016-11-01 Jason Merrill <jason@redhat.com>
5770 * tree-inline.c (copy_tree_body_r): Only copy the taken branch of
5771 a COND_EXPR with constant condition.
5773 2016-11-01 Jakub Jelinek <jakub@redhat.com>
5775 * dwarf2out.c (gen_variable_die): Remove again origin_die variable
5776 and its initialization.
5778 2016-11-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5780 * dwarf2out.c (output_rnglists): Wrap basebuf, len in
5783 2016-11-01 Jakub Jelinek <jakub@redhat.com>
5785 * dwarf2out.c (add_name_and_src_coords_attributes): Add NO_LINKAGE_NAME
5786 argument, don't call add_linkage_name if it is true.
5787 (gen_variable_die): For C++ inline static data members, consider the
5788 initial call when old_die is NULL to be declaration and call
5789 add_name_and_src_coords_attributes in that case with true as
5790 NO_LINKAGE_NAME. Add DW_AT_inline attribute if needed.
5791 (gen_member_die): For C++ inline static data members, emit a
5792 definition DIE right away in DW_TAG_compile_unit context.
5794 2016-11-01 John David Anglin <danglin@gcc.gnu.org>
5797 * config/pa/pa.md: Add new shift/add patterns to handle
5798 (plus (mult (reg) (mem_shadd_operand)) (reg)) source operand.
5800 2016-11-01 Max Filippov <jcmvbkbc@gmail.com>
5802 * config/xtensa/xtensa-protos.h
5803 (xtensa_use_return_instruction_p): New prototype.
5804 * config/xtensa/xtensa.c (xtensa_current_frame_size,
5805 xtensa_callee_save_size): Remove.
5806 (struct machine_function): Add new fields: current_frame_size,
5807 callee_save_size, frame_laid_out and epilogue_done.
5808 (compute_frame_size, xtensa_expand_prologue,
5809 xtensa_expand_epilogue): Replace xtensa_callee_save_size with
5810 cfun->machine->callee_save_size and xtensa_current_frame_size
5811 with cfun->machine->current_frame_size.
5812 (compute_frame_size): Update cfun->machine->frame_laid_out and
5813 don't update frame layout after reload completion.
5814 (xtensa_expand_epilogue): Set cfun->machine->epilogue_done
5815 instead of zeroing xtensa_current_frame_size.
5816 (xtensa_use_return_instruction_p): New function.
5817 * config/xtensa/xtensa.h (xtensa_current_frame_size): Remove
5819 (INITIAL_ELIMINATION_OFFSET): Use return value of
5820 compute_frame_size instead of xtensa_current_frame_size value.
5821 * config/xtensa/xtensa.md ("return" pattern): Use new predicate
5822 function xtensa_use_return_instruction_p instead of inline code.
5824 2016-11-01 Jakub Jelinek <jakub@redhat.com>
5826 * tree.h (BLOCK_IN_COLD_SECTION_P): Define.
5827 * final.c (final_scan_insn): Set BLOCK_IN_COLD_SECTION_P.
5828 * dwarf2out.c (rnglist_idx): New variable.
5829 (struct dw_ranges): Add label, idx and maybe_new_sec fields.
5830 (DEBUG_RNGLISTS_SECTION): Define.
5831 (ranges_base_label): New variable.
5832 (size_of_die) <case dw_val_class_range_list>: If using
5833 DW_FORM_rnglistx, count size of uleb128 of range list index.
5834 (value_format) <case dw_val_class_range_list>: For
5835 -gdwarf-5 -gsplit-dwarf return DW_FORM_rnglistx.
5836 (output_range_list_offset): Handle -gdwarf-5 .debug_rnglists
5837 offsets. Multiply dwarf < 5 offsets by 2 * DWARF_ADDR_SIZE.
5838 (add_ranges_num): Remove useless prototype. Don't multiply
5839 by 2 * DWARF2_ADDR_SIZE. Add maybe_new_sec argument, adjust
5840 for new fields added to dw_ranges struct.
5841 (add_ranges): Add maybe_new_sec argument and pass it
5842 through to add_ranges_num.
5843 (note_rnglist_head): New function.
5844 (add_ranges_by_labels): Pass true as maybe_new_sec to
5845 add_ranges_num, call note_rnglist_head on the head of the list.
5846 (output_ranges): Add function comment. Switch to
5847 .debug_ranges section here and emit .Ldebug_ranges0 label.
5848 (index_rnglists, output_rnglists): New functions.
5849 (gen_subprogram_die): Formatting fixes.
5850 (add_high_low_attributes): Don't divide offsets
5851 by 2 * DWARF2_ADDR_SIZE. Call note_rnglist_head on the
5852 first list element or when pointing into the middle of
5853 a list. Pass true as second argument to add_ranges on the
5854 first block fragment after cold/hot section switch.
5855 (init_sections_and_labels): For -gdwarf-5 use .debug_rnglists
5856 section instead of .debug_ranges. Initialize
5857 ranges_base_label if -gdwarf-5 -gsplit-dwarf.
5858 (dwarf2out_finish): For -gdwarf-5 -gsplit-dwarf call
5859 index_rnglists and add DW_AT_rnglists_base attr. Don't switch
5860 to dwarf_ranges_section here or emit .Ldebug_ranges0 label.
5861 Call output_rnglists for -gdwarf-5.
5862 (dwarf2out_c_finalize): Clear rnglist_idx.
5864 2016-11-01 Fritz Reese <fritzoreese@gmail.com>
5866 * combine.c (simplify_compare_const): Add gcc_fallthrough.
5868 2016-11-01 Bilyan Borisov <bilyan.borisov@arm.com>
5869 Tamar Christina <tamar.christina@arm.com>
5871 * config/arm/arm-c.c (arm_cpu_builtins): New macro definition.
5872 * config/arm/arm_neon.h (vmaxnm_f32): New intrinsinc.
5873 (vmaxnmq_f32): Likewise.
5874 (vminnm_f32): Likewise.
5875 (vminnmq_f32): Likewise.
5876 * config/arm/arm_neon_builtins.def (vmaxnm): New builtin.
5878 * config/arm/neon.md (neon_<fmaxmin_op><mode>, VCVTF): New
5881 2016-10-31 Michael Meissner <meissner@linux.vnet.ibm.com>
5883 * config/rs6000/vsx.md (VSX_EXTRACT_FL): New iterator for all
5884 binary floating point types supported by the hardware except for
5886 (vsx_xvcvsxwdp_df): Provide scalar result alternative to the
5887 vector instruction for optimizing extracting a SImode from a
5888 V4SImode vector and converting it to floating point.
5889 (vsx_xvcvuxwdp_df): Likewise.
5890 (vsx_extract_si): On ISA 3.0, allow extract target and temporary
5891 registers to be any VSX register. Move stores to the end of the
5893 (vsx_extract_si_<uns>float_df): New combiner pattern and splitter
5894 to optimize extracting a SImode from a V4SImode vector and
5895 converting it to a binary floating point type supported by the
5896 hardware. Use the vector converts instead of extracting the
5897 element, sign extending it, and then converting it to double.
5898 Other floating point types than double first convert to double,
5899 then the double is converted to that type.
5900 (vsx_extract_si_<uns>float_<mode>): Likewise.
5902 2016-10-31 Andrew Pinski <apinski@cavium.com>
5904 * config/aarch64/driver-aarch64.c (host_detect_local_cpu):
5905 Rewrite handling of part num to handle the case where
5906 multiple implementers share the same part num.
5908 2016-10-31 Jan Kratochvil <jan.kratochvil@redhat.com>
5909 Jakub Jelinek <jakub@redhat.com>
5911 * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): Adjust for -gdwarf-5.
5912 (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): Likewise.
5914 2016-10-31 Jakub Jelinek <jakub@redhat.com>
5916 * dwarf2out.c (dwarf_AT): Handle DW_AT_dwo_name.
5917 (use_debug_types): Adjust comment for DWARF5 DW_UT_type units.
5918 (new_die): Handle DW_TAG_skeleton_unit like DW_TAG_compile_unit.
5919 (is_cu_die, is_unit_die): Likewise.
5920 (should_move_die_to_comdat, break_out_comdat_types): Adjust
5921 comments for DWARF5 DW_UT_type units.
5922 (output_compilation_unit_header): Add UT argument, output
5923 start of DWARF5 .debug_info section header.
5924 (output_comp_unit): Add dwo_id argument. Adjust
5925 output_compilation_unit_header caller, for DW_UT_split_compile
5926 emit dwo_id field, otherwise padding1. Emit padding2 field.
5927 (add_top_level_skeleton_die_attrs): Add DW_AT_dwo_name
5928 rather than DW_AT_GNU_dwo_name attr for -gdwarf-5.
5929 (output_skeleton_debug_sections): Add dwo_id argument, for
5930 -gdwarf-5 emit DWARF 5 DW_UT_skeleton header.
5931 (output_comdat_type_unit): For -gdwarf-5 emit .debug_info
5932 DW_UT_type or DW_UT_split_type units rather than .debug_types.
5933 (dwarf2out_finish): Use DW_TAG_skeleton_unit rather than
5934 DW_TAG_compile_unit for skeleton unit die. Don't add
5935 DW_AT_GNU_dwo_id attributes for -gdwarf-5, instead pass checksum
5936 address to output_comp_unit and output_skeleton_debug_sections.
5938 * dwarf2out.c (debug_line_str_section): New variable.
5939 (debug_line_str_hash): Likewise.
5940 (DEBUG_LINE_STR_SECTION): Define.
5941 (set_indirect_string): Handle DW_FORM_line_strp like
5943 (find_string_form): Fix up formatting.
5944 (size_of_die): Handle DW_FORM_line_strp like DW_FORM_strp.
5946 (output_die): Handle DW_FORM_line_strp.
5947 (DWARF5_USE_DEBUG_LINE_STR): Define.
5948 (output_line_string): New function.
5949 (output_file_names): Add -gdwarf-5 support.
5950 (output_line_info): Likewise.
5951 (init_sections_and_labels): Initialize debug_line_str_section.
5952 (output_indirect_string): Change 2nd argument from void *
5953 to enum dwarf_form form, compare with form rather than
5955 (output_indirect_strings): Pass DW_FORM_strp to
5956 output_indirect_string traversion.
5957 (dwarf2out_finish): Output .debug_line_str strings.
5958 (dwarf2out_c_finalize): Clear debug_line_str_section and
5959 debug_line_str_hash.
5961 2016-10-31 Tom Tromey <tom@tromey.com>
5964 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_form_tls_address.
5965 (resolve_args_picking_1): Move DW_OP_form_tls_address case next to
5966 DW_OP_GNU_push_tls_address case.
5967 (loc_list_from_tree_1): Use DW_OP_form_tls_address.
5969 2016-10-31 Jakub Jelinek <jakub@redhat.com>
5971 * dwarf2out.h (struct dw_loc_descr_node): Adjust comment
5972 for frame_offset_rel bit.
5973 (struct array_descr_info): Add rank field.
5974 * dwarf2out.c (struct loc_descr_context): Add placeholder_arg
5975 and placeholder_seen fields.
5976 (resolve_args_picking_1): Handle also frame_offset_rel DW_OP_dup
5977 and DW_OP_over. Optimize DW_OP_pick 0 into DW_OP_dup and
5978 DW_OP_pick 1 into DW_OP_over.
5979 (function_to_dwarf_procedure, type_byte_size, field_byte_offset,
5980 gen_variant_part): Clear placeholder_{arg,seen}.
5981 (loc_list_from_tree_1): Drop const from context argument.
5982 Handle integral PLACEHOLDER_EXPR if context->placeholder_arg.
5983 (loc_list_for_address_of_addr_expr_of_indirect_ref,
5984 loc_list_from_tree, loc_descriptor_from_tree): Drop const from
5986 (add_scalar_info): Drop const from context argument. Handle
5987 context->placeholder_arg.
5988 (add_bound_info): Drop const from context argument.
5989 (gen_descr_array_type_die): Drop const from ctx variable.
5990 Initialize placeholder_arg and placeholder_seen. Add DW_AT_rank
5991 attribute and use a single DW_TAG_generic_subrange instead of
5992 7 DW_TAG_subrange_type for assumed rank arrays.
5994 * dwarf2out.h (enum dw_val_class): Add dw_val_class_loclistsptr.
5995 * dwarf2out.c (struct dw_loc_list_struct): Change emitted field
5996 from bool to 1-bit uchar bitfield. Add num_assigned and
5997 offset_emitted bitfields.
5998 (dw_val_equal_p): Compare v.val_lbl_id rather than v.val_unsigned
5999 for dw_val_class_lineptr and dw_val_class_macptr. Handle
6000 dw_val_class_loclistsptr.
6001 (new_addr_loc_descr): Fix up formatting.
6002 (DEBUG_LOCLISTS_SECTION, DEBUG_DWO_LOCLISTS_SECTION): Define.
6003 (add_AT_low_high_pc): Fix up formatting.
6004 (add_AT_loclistsptr): New function.
6005 (AT_lbl): Allow dw_val_class_loclistsptr.
6006 (print_dw_val, attr_checksum, attr_checksum_ordered, same_dw_val_p):
6007 Handle dw_val_class_loclistsptr.
6008 (loc_list_idx): New variable.
6009 (output_loclists_offsets, assign_location_list_indexes): New
6011 (size_of_die): For dw_val_class_loc_list -gsplit-dwarf -gdwarf-5
6012 add size_of_uleb128 of the index. Drop never used
6013 dwarf_split_debug_info AT_index handling. Handle
6014 dw_val_class_loclistsptr.
6015 (value_format): Return DW_FORM_loclistsx for dw_val_class_loc_list
6016 if -gsplit-dwarf -gdwarf-5. Handle dw_val_class_loclistsptr.
6017 (output_loc_list): Handle DWARF 5 .debug_loclists* format.
6018 (output_loc_list_offset): Handle -gsplit-dwarf -gdwarf-5
6019 DW_FORM_loclistx indexes.
6020 (output_attr_index_or_value): Fix up formatting. Don't handle
6021 dw_val_class_loc_list here.
6022 (output_die): Formatting fixes. Handle dw_val_class_loclistsptr.
6023 For dw_val_class_loc_list call output_loc_list_offset rather than
6024 output_attr_index_or_value.
6025 (init_sections_and_labels): For -gdwarf-5 use .debug_loclists
6026 or .debug_loclists.dwo section name for debug_loc_section.
6027 (resolve_addr_in_expr): Formatting fix.
6028 (index_location_lists): Likewise.
6029 (dwarf2out_finish): If there are any location lists, for
6030 -gsplit-dwarf -gdwarf-5 add DW_AT_loclists_base attribute. Call
6031 index_location_lists only if have_location_lists. Call
6032 assign_location_list_indexes for -gsplit-dwarf -gdwarf-5. Emit
6033 .debug_loclists{,.dwo} section header for -gdwarf-5, for -gdwarf-5
6034 -gsplit-dwarf also emit offset table.
6036 * dwarf2out.c (DWARF_LARGEST_DATA_FORM_BITS): Define.
6037 (size_of_die, value_format, output_die): Use
6038 DW_FORM_data16 for 128-bit dw_val_class_const_double or
6039 dw_val_class_wide_int.
6041 * dwarf2out.c (dwarf_op): Renamed to ...
6042 (dwarf_OP): ... this.
6043 (convert_descriptor_to_mode, scompare_loc_descriptor,
6044 minmax_loc_descriptor, typed_binop, mem_loc_descriptor,
6045 implicit_ptr_descriptor, optimize_one_addr_into_implicit_ptr): Adjust
6047 (dwarf_AT, dwarf_TAG): New functions.
6048 (check_die): Disallow DW_AT_call_all_calls next to
6049 DW_AT_GNU_all_call_sites.
6050 (gen_call_site_die): Use dwarf_TAG and dwarf_AT with DWARF 5 tag
6051 and attributes instead of the corresponding GNU tag and attributes.
6052 (gen_subprogram_die): Likewise. Emit call site information even
6053 for -gdwarf-5 -gstrict-dwarf. Replace DW_AT_GNU_defaulted with
6054 DW_AT_defaulted in comment.
6055 (resolve_addr): Handle DW_AT_call_origin attribute on
6056 DW_TAG_call_site DIE like DW_AT_abstract_origin on
6057 DW_TAG_GNU_call_site DIE.
6059 * dwarf2out.c (dwarf_op): New function.
6060 (size_of_loc_descr): Handle DW_OP_{implicit_pointer,entry_value},
6061 DW_OP_{const,regval,deref}_type and DW_OP_{convert,reinterpret}.
6062 (output_loc_operands, output_loc_operands_raw): Likewise.
6063 (resolve_args_picking_1, prune_unused_types_walk_loc_descr,
6064 mark_base_types, hash_loc_operands, compare_loc_operands): Likewise.
6065 (resolve_addr_in_expr): Likewise. Only punt for !dwarf_strict
6066 if dwarf_version < 5.
6067 (convert_descriptor_to_mode): Use dwarf_op (DW_OP_xxx) instead of
6069 (scompare_loc_descriptor, ucompare_loc_descriptor,
6070 minmax_loc_descriptor, typed_binop, mem_loc_descriptor,
6071 implicit_ptr_descriptor, optimize_one_addr_into_implicit_ptr,
6072 optimize_location_into_implicit_ptr): Likewise. Only punt for
6073 !dwarf_strict if dwarf_version < 5.
6074 (string_cst_pool_decl): Adjust comment.
6075 (non_dwarf_expression): Handle DW_OP_implicit_pointer.
6077 * dwarf2out.h (enum dw_val_class): Add dw_val_class_const_implicit,
6078 dw_val_class_unsigned_const_implicit and dw_val_class_file_implicit.
6079 (struct dw_val_node): Add val_file_implicit field.
6080 * dwarf2out.c (dw_val_equal_p, print_dw_val, attr_checksum,
6081 attr_checksum_ordered, same_dw_val_p, size_of_die, value_format,
6082 output_die): Handle dw_val_class_const_implicit,
6083 dw_val_class_unsigned_const_implicit and dw_val_class_file_implicit.
6084 (abbrev_die_table): Change into va_gc vec.
6085 (abbrev_die_table_allocated, abbrev_die_table_in_use,
6086 ABBREV_DIE_TABLE_INCREMENT): Remove.
6087 (AT_int, AT_unsigned, AT_file): Allow dw_val_class_*_implicit.
6088 (abbrev_opt_start, abbrev_usage_count, sorted_abbrev_dies): New
6090 (build_abbrev_table): Adjust for abbrev_die_table being a va_gc vec.
6091 If abbrev_opt_start, fill in abbrev_usage_count and abbrev_dies
6093 (die_abbrev_cmp, optimize_implicit_const, optimize_abbrev_table): New
6095 (output_die_abbrevs): For DW_FORM_implicit_const emit sleb128 with
6097 (output_abbrev_section): Adjust for abbrev_die_table being a va_gc
6099 (output_comp_unit): Initialize abbrev_opt_start if emitting the main
6100 unit. Call optimize_abbrev_table.
6101 (dwarf2out_init, dwarf2out_finish, dwarf2out_c_finalize): Adjust for
6102 abbrev_die_table being a va_gc vec.
6104 PR tree-optimization/77860
6105 * tree-ssa-reassoc.c (eliminate_using_constants): Handle
6106 also integral complex and vector constants.
6108 * dwarf2out.c (dwarf2out_define, dwarf2out_undef, output_macinfo_op,
6109 optimize_macinfo_range, save_macinfo_strings): Replace
6110 DW_MACRO_GNU_* constants with corresponding DW_MACRO_* constants.
6111 (output_macinfo): Likewise. Emit .debug_macro* rather than
6112 .debug_macinfo* even for -gstrict-dwarf -gdwarf-5.
6113 (init_sections_and_labels): Use .debug_macro* labels rather than
6114 .debug_macinfo* labels even for -gstrict-dwarf -gdwarf-5.
6115 (dwarf2out_finish): Use DW_AT_macros instead of DW_AT_macro_info
6116 or DW_AT_GNU_macros for -gdwarf-5.
6118 2016-10-31 Waldemar Brodkorb <wbx@openadk.org>
6120 * config/microblaze/linux.h (UCLIBC_DYNAMIC_LINKER): Define.
6122 2016-09-11 Le-Chun Wu <lcwu@google.com>
6123 Mark Wielaard <mjw@redhat.com>
6125 * common.opt (Wshadow=global): New option. Default for -Wshadow.
6126 (Wshadow=local): New option.
6127 (Wshadow-local): Hidden alias for -Wshadow=local.
6128 (Wshadow=compatible-local): New option.
6129 (Wshadow-compatible-local): Hidden alias for
6130 -Wshadow=compatible-local.
6131 * doc/invoke.texi: Document Wshadow=global, Wshadow=local and
6132 Wshadow=compatible-local.
6134 2016-10-31 Bin Cheng <bin.cheng@arm.com>
6136 * tree-vect-slp.c (vect_get_and_check_slp_defs): New parameter SWAP.
6137 Check slp defs for COND_EXPR by swapping/inverting operands if the
6138 new parameter SWAP indicates so.
6139 (vect_build_slp_tree_1): New parameter SWAP. Check COND_EXPR stmt
6140 is isomorphic to the first stmt via swapping/inverting. Store swap
6141 information in the new parameter SWAP.
6142 (vect_build_slp_tree): New local array SWAP and pass it to function
6143 vect_build_slp_tree_1. Cleanup result handling code for function
6144 call to vect_get_and_check_slp_defs. Skip operand swapping if the
6145 order of operands has been fixed as indicated by SWAP[i].
6147 2016-10-31 Bin Cheng <bin.cheng@arm.com>
6149 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): Skip
6150 unnecessary data dependence check after visited store stmt.
6152 2016-10-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6154 PR tree-optimization/71915
6155 PR tree-optimization/71490
6156 * gimple-ssa-strength-reduction.c (struct slsr_cand_d): Add
6158 (find_basis_for_base_expr): Require stride types to match when
6160 (alloc_cand_and_find_basis): Record the stride type.
6161 (slsr_process_phi): Pass stride type to alloc_cand_and_find_basis.
6162 (backtrace_base_for_ref): Pass types to legal_cast_p_1 rather than
6163 the expressions having those types.
6164 (slsr_process_ref): Pass stride type to alloc_cand_and_find_basis.
6165 (create_mul_ssa_cand): Likewise.
6166 (create_mul_imm_cand): Likewise.
6167 (create_add_ssa_cand): Likewise.
6168 (create_add_imm_cand): Likewise.
6169 (legal_cast_p_1): Change interface to accept types rather than the
6170 expressions having those types.
6171 (legal_cast_p): Pass types to legal_cast_p_1.
6172 (slsr_process_cast): Pass stride type to
6173 alloc_cand_and_find_basis.
6174 (slsr_process_copy): Likewise.
6175 (dump_candidate): Display stride type when a cast exists.
6176 (create_add_on_incoming_edge): Introduce a cast when necessary for
6178 (analyze_increments): Change the code checking for invalid casts
6179 to rely on the stride type, and update the documentation and
6180 example. Change the code checking for pointer multiplies to rely
6182 (insert_initializers): Introduce a cast when necessary for the
6183 stride type. Use the stride type for the type of the initializer.
6185 2016-10-30 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6187 * config/arm/arm.c (arm_const_not_ok_for_debug_p): Use VAR_P.
6189 2016-10-29 Jakub Jelinek <jakub@redhat.com>
6191 PR rtl-optimization/77919
6192 * expr.c (expand_expr_real_1) <normal_inner_ref>: Only avoid forcing
6193 into memory if both modes are complex and their inner modes have the
6194 same precision. If the two modes are different complex modes, convert
6195 each part separately and generate a new CONCAT.
6197 2016-10-29 John David Anglin <danglin@gcc.gnu.org>
6199 * config/pa/pa64-hpux.h (FINI_SECTION_ASM_OP): Define to null string.
6201 2016-10-29 Jakub Jelinek <jakub@redhat.com>
6204 * gimple-ssa-store-merging.c
6205 (imm_store_chain_info::output_merged_store): Use build_aligned_type
6206 instead of SET_TYPE_ALIGN on shared integral type.
6208 2016-10-29 John David Anglin <danglin@gcc.gnu.org>
6210 * config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
6211 (MALLOC_ABI_ALIGNMENT): Define to 128 on all targets except SOM.
6214 2016-10-28 Jeff Law <law@redhat.com>
6216 * config/vax/vax.h (REGNO_REG_CLASS): Access the REGNO argument.
6217 * config/spu/spu.h (REGNO_REG_CLASS): Likewise.
6219 2016-10-28 Eric Botcazou <ebotcazou@adacore.com>
6221 * doc/sourcebuild.texi (Ada Tests): Remove mention of gcc chapter.
6223 2016-10-28 Eric Botcazou <ebotcazou@adacore.com>
6225 * target.def (min_arithmetic_precision): New hook.
6226 * doc/tm.texi.in (Misc): Add TARGET_MIN_ARITHMETIC_PRECISION.
6227 * doc/tm.texi: Regenerate.
6228 * internal-fn.c (expand_arith_overflow): Adjust handling of target
6229 dependent support by means of TARGET_MIN_ARITHMETIC_PRECISION.
6230 * targhooks.c (default_min_arithmetic_precision): New function.
6231 * targhooks.h (default_min_arithmetic_precision): Declare.
6232 * config/sparc/sparc.c (TARGET_MIN_ARITHMETIC_PRECISION): Define.
6233 (sparc_min_arithmetic_precision): New function.
6235 2016-10-28 Segher Boessenkool <segher@kernel.crashing.org>
6238 * combine.c (change_zero_ext): Handle zero_ext of hard registers.
6239 Swap commutative operands in new RTL if needed. Handle zero_ext
6241 (recog_for_combine): Pass *pnewpat to change_zero_ext instead of
6244 2016-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6245 Kugan Vivekanandarajah <kuganv@linaro.org>
6246 Jim Wilson <jim.wilson@linaro.org>
6248 PR tree-optimization/43721
6249 * target.def: New hook expand_divmod_libfunc.
6250 * doc/tm.texi.in: Add hook for TARGET_EXPAND_DIVMOD_LIBFUNC.
6251 * doc/tm.texi: Regenerate.
6252 * internal-fn.def: Add new entry for DIVMOD ifn.
6253 * internal-fn.c (expand_DIVMOD): New.
6254 * tree-ssa-math-opts.c: Include optabs-libfuncs.h, tree-eh.h,
6256 (widen_mul_stats): Add new field divmod_calls_inserted.
6257 (target_supports_divmod_p): New.
6258 (divmod_candidate_p): Likewise.
6259 (convert_to_divmod): Likewise.
6260 (pass_optimize_widening_mul::execute): Call calculate_dominance_info,
6261 renumber_gimple_stmt_uids at beginning of function. Call
6262 convert_to_divmod and record stats for divmod.
6263 * config/arm/arm.c (arm_expand_divmod_libfunc): Override hook
6264 TARGET_EXPAND_DIVMOD_LIBFUNC.
6265 * doc/sourcebuild.texi: Add items for arm_divmod_simode, divmod,
6268 2016-10-28 Eric Botcazou <ebotcazou@adacore.com>
6269 Segher Boessenkool <segher@kernel.crashing.org>
6271 * dojump.c (do_jump_by_parts_greater_rtx): Invert probability when
6272 swapping the arms of the branch.
6273 * internal-fn.c (expand_addsub_overflow): Use a straight-line code
6274 sequence for the generic signed-signed-signed case.
6276 2016-10-28 Jeff Law <law@redhat.com>
6278 * config/bfin/bfin.c (bfin_legitimate_address_p): Add missing
6280 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
6282 2016-10-28 Segher Boessenkool <segher@kernel.crashing.org>
6284 PR rtl-optimization/78029
6285 * function.c (prologue_contains, epilogue_contains): New functions.
6286 (record_prologue_seq, record_epilogue_seq): New functions.
6287 * function.h (prologue_contains, epilogue_contains,
6288 record_prologue_seq, record_epilogue_seq): New declarations.
6289 * sched-deps.c (sched_analyze_insn): Make dependencies to prevent
6290 mixing prologue and epilogue insns.
6291 (init_deps): Initialize the new fields in struct deps_desc.
6292 * sched-int.h (struct deps_desc): New fields last_prologue,
6293 last_epilogue, and last_logue_was_epilogue.
6294 * shrink-wrap.c (emit_common_heads_for_components): Record all
6295 emitted prologue and epilogue insns.
6296 (emit_common_tails_for_components): Ditto.
6297 (insert_prologue_epilogue_for_components): Ditto.
6299 2016-10-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6302 * Makefile.in (OBJS): Add gimple-ssa-store-merging.o.
6303 * common.opt (fstore-merging): New Optimization option.
6304 * opts.c (default_options_table): Add entry for
6305 OPT_ftree_store_merging.
6306 * fold-const.h (can_native_encode_type_p): Declare prototype.
6307 * fold-const.c (can_native_encode_type_p): Define.
6308 * params.def (PARAM_STORE_MERGING_ALLOW_UNALIGNED): Define.
6309 (PARAM_MAX_STORES_TO_MERGE): Likewise.
6310 * timevar.def (TV_GIMPLE_STORE_MERGING): New timevar.
6311 * passes.def: Insert pass_tree_store_merging.
6312 * tree-pass.h (make_pass_store_merging): Declare extern
6314 * gimple-ssa-store-merging.c: New file.
6315 * doc/invoke.texi (Optimization Options): Document
6317 (--param documentation): Document store-merging-allow-unaligned
6318 and max-stores-to-merge.
6320 2016-10-28 Will Schmidt <will_schmidt@vnet.ibm.com>
6323 * gimplify.c (gimplify_init_constructor): Move emit of constructor
6324 assignment to earlier in the if/else logic.
6326 2016-10-28 Richard Biener <rguenther@suse.de>
6330 * fold-const.c (make_bit_field_ref): Only adjust alias set
6331 when the original alias set was zero.
6333 2016-10-28 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6335 * config/s390/s390.c (s390_adjust_loop_scan_osc): New function.
6336 (s390_adjust_loops): New function.
6337 (s390_reorg): Invoke s390_adjust_loops.
6338 * config/s390/s390.md (UNSPEC_OSC_BREAK): New constant.
6339 ("osc_break"): New insn definition.
6341 2016-10-28 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6343 * config/s390/s390.opt: Support alternate cpu level naming (archXX).
6344 * config.gcc: Support alternate archXX cpu levels with
6345 --with-arch= and --with-tune=.
6346 * config/s390/linux.h: Translate new archXX cpu levels to the
6347 original names when calling GAS.
6348 * config/s390/tpf.h: Likewise.
6349 * doc/invoke.texi: Document the alternate cpu level names.
6351 2016-10-28 Jakub Jelinek <jakub@redhat.com>
6353 PR rtl-optimization/77919
6354 * expr.c (expand_expr_real_1) <normal_inner_ref>: Force CONCAT into
6355 MEM if mode1 is not a complex mode.
6357 PR rtl-optimization/78132
6358 * ree.c (combine_reaching_defs): Give up if copy_needed and
6359 !HARD_REGNO_MODE_OK (REGNO (src_reg), dst_mode).
6361 2016-10-27 Eric Botcazou <ebotcazou@adacore.com>
6363 * config/sparc/sparc.md (<*vlop:code><VL:mode>3): Remove leading '*'.
6365 2016-10-27 Michael Meissner <meissner@linux.vnet.ibm.com>
6367 * config/rs6000/constraints.md (wH constraint): Add new
6368 constraints for allowing 32-bit integers (and eventually 8/16-bit
6369 integers) into the vector registers.
6370 (wI constraint): Likewise.
6371 (wJ constraint): Likewise.
6372 (wK constraint): Likewise.
6373 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
6374 -mvsx-small-integer as a default option for ISA 2.07
6376 (POWERPC_MASKS): Likewise.
6377 * config/rs6000/rs6000.opt (-mvsx-small-integer): Add new debug
6378 switch to turn off small integer support in vector registers.
6379 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Eliminate
6380 test for -mupper-regs-di, since it is already done with the
6381 reg_add[mode].scalar_in_vsx_p. Add support for the switch
6382 -mvsx-small-integer.
6383 (rs6000_debug_reg_global): Add support for wH, wI, wJ, and wK
6385 (rs6000_setup_reg_addr_masks): Likewise.
6386 (rs6000_init_hard_regno_mode_ok): Likewise.
6387 (rs6000_option_override_internal): Add consistency checks for
6388 -mvsx-small-integer.
6389 (rs6000_secondary_reload_simple_move): SImode is a simple move if
6390 -mvsx-small-integer.
6391 (rs6000_secondary_reload): Use std::swap.
6392 (rs6000_preferred_reload_class): Don't prefer FLOAT_REGS over
6393 VSX_REGS for small integers in vector registers, since there is no
6394 D-FORM address mode for such types.
6395 (rs6000_register_move_cost): Use FIRST_FPR_REGNO instead of 32.
6396 (rs6000_opt_masks): Add -mvsx-small-integer.
6397 * config/rs6000/vsx.md (VSINT_84): Add SImode for small integer
6399 (VSX_EXTRACT_I2): Clone VSX_EXTRACT_I, but drop V4SI since SImode
6400 extracts can be done on ISA 2.07.
6401 (vsx_extract_<mode>): Add support for small integers in vsx
6403 (vsx_extract_<mode>_p9): Use 'v' instead of VSX_EX, since we no
6404 longer support V4SImode in this pattern.
6405 (vsx_extract_si): New insn to support extraction of SImode in ISA
6406 2.07 using either xxextractuw or vspltw.
6407 (vsx_extract_<mode>_p8): Use 'v' instead of VSX_EX, since we no
6408 longer support V4SImode in this pattern.
6409 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wH, wI,
6410 wJ, and wK constraints.
6411 * config/rs6000/rs6000.md (f32_sv): Use correct instruction for
6412 storing SDmode with VSX instructions.
6413 (zero_extendsi<mode>2): Reorder pattern, so RLDICL comes after the
6414 GPR load and before the FPR and VSX loads. Remove ??, ! from the
6415 constraints. Add MFVSRWZ and XXEXTRACTUW instructions to support
6416 small integers in vector registers.
6417 (extendsi<mode>2): Reorder pattern, so EXTSW comes after the GPR
6418 load and before the FPR and VSX loads. Remove ??, ! from the
6419 constraints. Add VEXTSW2D support for small integers in vector
6421 (lfiwax): Remove ! constraint. Add VEXTSW2D support for small
6422 integers in vector registers.
6423 (floatsi<mode>2_lfiwax): If -mvsx-small-integer issue a normal
6424 move instead of using an UNSPEC.
6425 (lfiwzx): Remove ! constraint. Add XXEXTRACTUW support for small
6426 integers in vector registers.
6427 (floatunssi<mode>2_lfiwzx): If -mvsx-small-integer issue a normal
6428 move instead of using an UNSPEC.
6429 (movsi_internal1): Add support for -mvsx-small-integer. Align
6430 columns so that it is more readable.
6431 (SImode splitter for ISA 3.0 constants): Add splitter for
6432 -128..127 constants that can easily be constructed on ISA 3.0.
6433 * doc/md.texi (PowerPC Constraints): Document wH, wI, wJ, and wK
6436 2016-10-27 Jakub Jelinek <jakub@redhat.com>
6439 * omp-simd-clone.c (simd_clone_adjust): Handle noreturn declare simd
6442 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
6444 * builtins.c (expand_builtin_nonlocal_goto): Avoid evaluating
6445 PIC_OFFSET_TABLE_REGNUM twice.
6447 2016-10-27 Bin Cheng <bin.cheng@arm.com>
6449 * match.pd ((convert (op:s (convert@2 @0) (convert?@3 @1)))): Add
6450 support for constant operand for OP.
6452 2016-10-27 Jakub Jelinek <jakub@redhat.com>
6454 * dwarf2out.c (gen_member_die): Only reparent_child instead of
6455 splice_child_die if child doesn't have DW_AT_specification attribute.
6457 2016-10-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
6459 * config/arm/arm.h (TARGET_HAVE_LDREX): Define for ARMv8-M Baseline.
6460 (TARGET_HAVE_LDREXBH): Likewise.
6461 (TARGET_HAVE_LDACQ): Likewise.
6463 2016-10-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
6465 * config/arm/arm.c (arm_split_atomic_op): Add function comment. Add
6466 logic to to decide whether to copy over old value to register for new
6468 * config/arm/sync.md: Add comments explaning why mode and code
6469 attribute are not defined in iterators.md
6470 (thumb1_atomic_op_str): New code attribute.
6471 (thumb1_atomic_newop_str): Likewise.
6472 (thumb1_atomic_fetch_op_str): Likewise.
6473 (thumb1_atomic_fetch_newop_str): Likewise.
6474 (thumb1_atomic_fetch_oldop_str): Likewise.
6475 (atomic_exchange<mode>): Add new ARMv8-M Baseline only alternatives to
6476 mirror the more restrictive constraints of the Thumb-1 insns after
6477 split compared to Thumb-2 counterpart insns.
6478 (atomic_<sync_optab><mode>): Likewise. Add comment to keep constraints
6479 in sync with non atomic version.
6480 (atomic_nand<mode>): Likewise.
6481 (atomic_fetch_<sync_optab><mode>): Likewise.
6482 (atomic_fetch_nand<mode>): Likewise.
6483 (atomic_<sync_optab>_fetch<mode>): Likewise.
6484 (atomic_nand_fetch<mode>): Likewise.
6485 * config/arm/thumb1.md (thumb1_addsi3): Add comment to keep contraint
6486 in sync with atomic version.
6487 (thumb1_subsi3_insn): Likewise.
6488 (thumb1_andsi3_insn): Likewise.
6489 (thumb1_iorsi3_insn): Likewise.
6490 (thumb1_xorsi3_insn): Likewise.
6492 2016-10-27 Nick Clifton <nickc@redhat.com>
6494 * plugin.c (register_plugin_info): Produce an error message if the
6495 plugin is not found in the hash table.
6497 2016-10-27 Bin Cheng <bin.cheng@arm.com>
6499 * match.pd ((convert1 (minmax ((convert2 (x) c)))) -> minmax (x c)):
6502 2016-10-26 Kelvin Nilsen <kelvin@gcc.gnu.org>
6505 * config/rs6000/rs6000.c (spe_init_builtins): Modify loops to not
6506 define builtin functions from the bdesc_spe_predicates or
6507 bdesc_spe_evsel arrays if the builtin mask is not compatible with
6508 the current compiler configuration.
6509 (paired_init_builtins): Modify loop to not define define builtin
6510 functions from the bdesc_paried_preds array if the builtin mask is
6511 not compatible with the current compiler configuration.
6512 (altivec_init_builtins): Modify loops to not define the
6513 __builtin_altivec_stxvl function nor the builtin functions from
6514 the bdesc_dst or bdesc_altivec_preds, or bdesc_abs arrays if the
6515 builtin mask is not compatible with the current compiler
6518 2016-10-26 Jeff Law <law@redhat.com>
6520 * config/sh/sh.c (output_branch): Add missing fallthru comments.
6521 (gen_shl_and): Likewise.
6522 * config/sh/sh.md (movsicc): Add missing fallthru comments.
6524 * config/mips/mips.c (mips16_constant_cost): Add missing
6526 (mips16_build_call_stub): Increase buffer size. Adjust
6529 2016-10-26 David Malcolm <dmalcolm@redhat.com>
6531 * print-rtl.c (rtx_writer::print_rtx_operand_code_u): Print
6532 INSN_UIDs for all insns in compact mode.
6533 (rtx_writer::print_rtx): Likewise.
6534 * print-rtl.h (rtx_writer::flag_compact): Update comment.
6535 * rtl-tests.c (selftest::test_dumping_insns): Update expected
6536 output to include INSN_UID.
6537 (selftest::test_uncond_jump): Likewise.
6539 2016-10-26 Pat Haugen <pthaugen@us.ibm.com>
6541 * haifa-sched.c (call_used_regs_num): Rename to...
6542 (call_saved_regs_num): ...this.
6543 (fixed_regs_num): New variable.
6544 (sched_pressure_start_bb): Subtract out fixed_regs. Scale call_saved
6546 (alloc_global_sched_pressure_data): Compute call_saved and fixed regs.
6548 2016-10-26 David Malcolm <dmalcolm@redhat.com>
6550 * print-rtl-function.c (print_rtx_function): Rewrite in terms of
6552 * print-rtl.c (outfile): Delete global.
6553 (sawclose): Likewise.
6555 (in_call_function_usage): Likewise.
6556 (flag_compact): Likewise.
6557 (flag_simple): Likewise.
6558 (rtx_writer::rtx_writer): New ctor.
6559 (print_rtx_operand_code_0): Convert to...
6560 (rtx_writer::print_rtx_operand_code_0): ...this.
6561 (print_rtx_operand_code_e): Convert to...
6562 (rtx_writer::print_rtx_operand_code_e): ...this.
6563 (print_rtx_operand_codes_E_and_V): Convert to...
6564 (rtx_writer::print_rtx_operand_codes_E_and_V): ...this.
6565 (print_rtx_operand_code_i): Convert to...
6566 (rtx_writer::print_rtx_operand_code_i): ...this.
6567 (print_rtx_operand_code_r): Convert to...
6568 (rtx_writer::print_rtx_operand_code_r): ...this.
6569 (print_rtx_operand_code_u): Convert to...
6570 (rtx_writer::print_rtx_operand_code_u): ...this.
6571 (print_rtx_operand): Convert to...
6572 (rtx_writer::print_rtx_operand): ...this.
6573 (print_rtx): Convert to...
6574 (rtx_writer::print_rtx): ...this.
6575 (print_inline_rtx): Rewrite in terms of class rtx_writer.
6576 (debug_rtx): Likewise.
6577 (print_rtl): Convert to...
6578 (rtx_writer::print_rtl): ...this.
6579 (print_rtl): Reimplement in terms of class rtx_writer.
6580 (print_rtl_single): Rewrite in terms of class rtx_writer.
6581 (print_rtl_single_with_indent): Convert to..
6582 (rtx_writer::print_rtl_single_with_indent): ...this.
6583 (print_simple_rtl): Rewrite in terms of class rtx_writer.
6584 * print-rtl.h (flag_compact): Delete decl.
6585 (class rtx_writer): New class.
6586 * rtl-tests.c (selftest::assert_rtl_dump_eq): Rewrite in terms of
6589 2016-10-26 Jeff Law <law@redhat.com>
6591 * config/microblaze/microblaze.c (tls_mentioned_p): Avoid
6594 * config/arc/arc.c (acr_print_operand): Adjust fallthru comment.
6595 (check_if_valid_sleep_operand): Add missing fallthru comment.
6596 (arc_register_move_cost): Increase buffer size.
6597 * config/arc/arc.md (cbranch4si_scratch): Add missing fallthru
6599 * config/arc/predicates.md (move_str_operand): Avoid fallthru.
6601 * config/cr16/cr16.c (cr16_print_operand): Add missing fallthru
6602 comment. Add gcc_unreachable for path that should never happen.
6604 * config/epiphany/epiphany.c (epiphany_print_operand): Adjust
6607 2016-10-26 Jakub Jelinek <jakub@redhat.com>
6608 Martin Liska <mliska@suse.cz>
6611 * gimplify.c (gimplify_adjust_omp_clauses_1): For all added map
6612 clauses with OMP_CLAUSE_SIZE being a decl, call omp_notice_variable
6613 on outer context if any.
6615 2016-10-26 Jakub Jelinek <jakub@redhat.com>
6617 * gen-pass-instances.awk (adjust_linenos): Increment pass_lines[p]
6618 by increment rather than double it.
6619 (insert_remove_pass): Strip leading whitespace from args[3]. Don't
6620 emit a space before args[4].
6621 (END): Don't emit a space before with_arg.
6623 2016-10-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
6625 * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Add new ARMv8-M
6626 Baseline only alternatives to (i) hold store atomic success value in a
6627 return register rather than a scratch register, (ii) use a low register
6628 for it and to (iii) ensure the cbranchsi insn generated by the split
6629 respect the constraints of Thumb-1 cbranchsi4_insn and
6631 * config/arm/thumb1.md (cbranchsi4_insn): Add comment to indicate
6632 constraints must match those in atomic_compare_and_swap.
6633 (cbranchsi4_scratch): Likewise.
6635 2016-10-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
6637 * config/arm/arm.c (arm_expand_compare_and_swap): Add new bdst local
6638 variable. Add the new parameter to the insn generator. Set that
6639 parameter to be CC flag for 32-bit targets, bval otherwise. Set the
6640 return value from the negation of that parameter for Thumb-1, keeping
6641 the logic unchanged otherwise except for using bdst as the destination
6642 register of the compare_and_swap insn.
6643 (arm_split_compare_and_swap): Add explanation about how is the value
6644 returned to the function comment. Rename scratch variable to
6645 neg_bval. Adapt initialization of variables holding operands to the
6646 new operand numbers. Use return register to hold result of store
6647 exclusive for Thumb-1, scratch register otherwise. Construct the
6648 appropriate cbranch for Thumb-1 targets, keeping the logic unchanged
6649 for 32-bit targets. Guard Z flag setting to restrict to 32bit targets.
6650 Use gen_cbranchsi4 rather than hand-written conditional branch to loop
6651 for strongly ordered compare_and_swap.
6652 * config/arm/predicates.md (cc_register_operand): New predicate.
6653 * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Use a
6654 match_operand with the new predicate to accept either the CC flag or a
6655 destination register for the boolean return value, restricting it to
6656 CC flag only via constraint. Adapt operand numbers accordingly.
6658 2016-10-26 Jeff Law <law@redhat.com>
6660 * config/fr30/fr30.c (fr30_print_operand): Adjust fallthru comment.
6662 * config/frv/frv.c (comparison_string): Do not fall through after
6665 * config/iq2000/iq2000.c (iq2000_function_arg): Adjust fallthru
6667 (expand_one_builtin): Add missing break.
6669 * config/m32c/m32c.c (encode_pattern_1): Add fallthru comment.
6670 (m32c_legitimate_address_p): Likewise.
6672 * config/m32r/m32r.c (m32r_print_operand): Adjust fallthru comment.
6674 * config/mcore/mcore.c (mcore_gen_compare): Adjust fallthru comments.
6676 * config/microblaze/microblaze.c (microblaze_function_arg): Adjust
6679 * config/msp430/msp430.c (msp430_legitimate_address_p): Adjust
6682 * config/nios2/nios2.c (nios2_rtx_costs): Avoid fallthru.
6684 * config/rl78/rl78.c (rl78_calculate_death_notes): Add fallthru
6686 (rl78_asm_ctor_dtor): Increase buffer size.
6688 * config/stormy16/stormy16.c (xstormy16_asm_output_destrutor): Increase
6690 (xstormy16_asm_output_constructor): Likewise.
6692 * config/pa/pa.c (pa_asm_output_mi_thunk): Increase buffer
6695 * config/h8300/h8300.c (h8300_print_operand): Adjust FALLTHRU
6696 comment to silence warning.
6698 * config/spu/spu.c (spu_sched_reorder): Add missing fallthru comment.
6699 (spu_legitimate_address_p): Fix logic error and add missing fallthru
6702 2016-10-26 Michael Matz <matz@suse.de>
6704 PR tree-optimization/78060
6705 PR tree-optimization/78061
6706 PR tree-optimization/78088
6707 * tree-ssa-loop-split.c (easy_exit_values): New function.
6708 (tree_ssa_split_loops): Use it.
6709 (compute_new_first_bound): Change order of operations,
6710 fix invalid use of types.
6712 2016-10-26 Georg-Johann Lay <avr@gjlay.de>
6714 gen-pass-instances.awk is sensitive to the order in which
6715 passes are added; passes that appear later have to be added first.
6719 * config/avr/avr-passes.def: Swap order of directives for
6720 gen-pass-instances.awk.
6722 2016-10-25 Jeff Law <law@redhat.com>
6724 * config/vax/vax.c (vad_address_cost_1): Add missing FALLTHRU comment.
6725 (vax_notice_update_cc): Likewise.
6727 2016-10-25 Eric Botcazou <ebotcazou@adacore.com>
6729 * config.gcc (sparc*-*-solaris2*): Adjust.
6730 (sparc64-*-linux*): Likewise.
6731 * config/sparc/default-64.h: Rename to...
6732 * config/sparc/default64.h: ...this.
6733 * config/sparc/sparc.c (sparc_option_override): Replace TARGET_64BIT
6735 (sparc_mangle_type): Replace !TARGET_64BIT with TARGET_ARCH32.
6736 * config/sparc/sparc.h: Minor tweaks.
6737 * config/sparc/sparc.md: Replace !TARGET_64BIT and !TARGET_ARCH64 with
6738 TARGET_ARCH32 throughout. Minor various tweaks throughout.
6740 2016-10-25 David Malcolm <dmalcolm@redhat.com>
6742 * input.c (fcache::file_patch): Add comment about lifetime.
6743 (selftest::cpp_reader_ptr): New class.
6744 (selftest::lexer_test): Convert m_parser from cpp_reader *
6745 to a cpp_reader_ptr, and move m_tempfile to after it.
6746 (selftest::lexer_test::lexer_test): Update for above reordering.
6747 (lexer_test::~lexer_test): Move cleanup of m_parser to
6748 cpp_reader_ptr's dtor.
6750 2016-10-25 David Malcolm <dmalcolm@redhat.com>
6752 * toplev.c (toplev::main): Remove call to
6753 location_adhoc_data_fini.
6755 2016-10-25 Eric Botcazou <ebotcazou@adacore.com>
6757 * tree.h (wi::fits_to_tree_p): Accept only 0 and 1 for boolean types.
6758 * tree.c (int_fits_type_p): Likewise. Adjust head comment.
6760 2016-10-25 David Malcolm <dmalcolm@redhat.com>
6762 * ggc-tests.c (forcibly_ggc_collect): Rename to...
6763 (selftest::forcibly_ggc_collect): ...this, and remove "static".
6764 (test_basic_struct): Update for above renaming.
6765 (test_length): Likewise.
6766 (test_union): Likewise.
6767 (test_finalization): Likewise.
6768 (test_deletable_global): Likewise.
6769 (test_inheritance): Likewise.
6770 (test_chain_next): Likewise.
6771 (test_user_struct): Likewise.
6772 (test_tree_marking): Likewise.
6773 * selftest-run-tests.c (selftest::run_tests): Call
6774 selftest::forcibly_ggc_collect at the end of the selftests.
6775 * selftest.h (selftest::forcibly_ggc_collect): New decl.
6777 2016-10-25 Jakub Jelinek <jakub@redhat.com>
6780 * optabs.def (vcondeq_optab, vec_cmpeq_optab): New optabs.
6781 * optabs.c (expand_vec_cond_expr): For comparison codes
6782 EQ_EXPR and NE_EXPR, attempt vcondeq_optab as fallback.
6783 (expand_vec_cmp_expr): For comparison codes
6784 EQ_EXPR and NE_EXPR, attempt vec_cmpeq_optab as fallback.
6785 * optabs-tree.h (expand_vec_cmp_expr_p, expand_vec_cond_expr_p):
6786 Add enum tree_code argument.
6787 * optabs-query.h (get_vec_cmp_eq_icode, get_vcond_eq_icode): New
6789 * optabs-tree.c (expand_vec_cmp_expr_p): Add CODE argument. For
6790 CODE EQ_EXPR or NE_EXPR, attempt to use vec_cmpeq_optab as
6792 (expand_vec_cond_expr_p): Add CODE argument. For CODE EQ_EXPR or
6793 NE_EXPR, attempt to use vcondeq_optab as fallback.
6794 * tree-vect-generic.c (expand_vector_comparison,
6795 expand_vector_divmod, expand_vector_condition): Adjust
6796 expand_vec_cmp_expr_p and expand_vec_cond_expr_p callers.
6797 * tree-vect-stmts.c (vectorizable_condition,
6798 vectorizable_comparison): Likewise.
6799 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern,
6800 check_bool_pattern, search_type_for_mask_1): Likewise.
6801 * expr.c (do_store_flag): Likewise.
6802 * doc/md.texi (@code{vec_cmpeq@var{m}@var{n}},
6803 @code{vcondeq@var{m}@var{n}}): Document.
6804 * config/i386/sse.md (vec_cmpeqv2div2di, vcondeq<VI8F_128:mode>v2di):
6807 2016-10-25 Jeff Law <law@redhat.com>
6809 * config/v850/v850.c (v850_handle_data_area_attribute): Fix fallthru
6811 (v850_output_aligned_bss): Add missing break.
6813 * config/m68k/m68k.c (m68k_get_reloc_decoration): Add gcc_unreachable.
6815 2016-10-25 Martin Liska <mliska@suse.cz>
6818 * sanopt.c (imm_dom_path_with_freeing_call): Handle gasm
6819 statements as they can also contain possibly a freeing call.
6821 2016-10-25 H.J. Lu <hongjiu.lu@intel.com>
6822 Martin Liska <mliska@suse.cz>
6825 * common.opt: Mark flag_ipa_icf_variables as Optimization flag.
6826 * ipa-icf.c (sem_function::get_hash): Add target optimization
6829 2016-10-25 Wilco Dijkstra <wdijkstr@arm.com>
6832 * config/arm/neon.md (ashldi3_neon): Add "r 0 i" and "&r r i" variants.
6833 Remove partial overlap check for shift by 1.
6834 (ashldi3_neon): Likewise.
6836 2016-10-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
6838 * config/arm/constraints.md (Q constraint): Document its use for
6840 (Pf constraint): New constraint for relaxed, consume or relaxed memory
6842 * config/arm/sync.md (atomic_load<mode>): Add new ARMv8-M Baseline only
6843 alternatives to allow any register when memory model matches Pf and
6844 thus lda is used, but only low registers otherwise. Use unpredicated
6845 output template for Thumb-1 targets.
6846 (atomic_store<mode>): Likewise for stl.
6847 (arm_load_exclusive<mode>): Add new ARMv8-M Baseline only alternative
6848 whose output template does not have predication.
6849 (arm_load_acquire_exclusive<mode>): Likewise.
6850 (arm_load_exclusivesi): Likewise.
6851 (arm_load_acquire_exclusivesi): Likewise.
6852 (arm_store_release_exclusive<mode>): Likewise.
6853 (arm_store_exclusive<mode>): Use unpredicated output template for
6856 2016-10-25 Jakub Jelinek <jakub@redhat.com>
6858 * internal-fn.def (LAUNDER): New internal function.
6859 * internal-fn.c (expand_LAUNDER): New function.
6861 2016-10-25 Georg-Johann Lay <avr@gjlay.de>
6862 Pitchumani Sivanupandi <pitchumani.sivanupandi@microchip.com>
6864 New avr target pass to work around performance loss by PR fix.
6868 * config/avr/avr.md (casesi_<mode>_sequence) [qi,hi]: New insn.
6869 (*cmp<mode>) [qi,qq,uqq,hi,hq,uhq,ha,uha]: Rename to cmp<mode>3.
6870 * config/avr/predicates.md (extend_operator): New.
6871 * config/avr/avr-passes.def (avr_pass_casesi): Register new pass.
6872 * config/avr/avr-protos.h (avr_casei_sequence_check_operands)
6873 (make_avr_pass_casesi): New prototypes.
6874 * config/avr/avr.c (print-rtl.h): Include it.
6875 (pass_data avr_pass_data_casesi): Data for new pass.
6876 (avr_pass_casesi): New class implementing rtl_opt_pass .avr-casesi.
6877 (make_avr_pass_casesi, avr_parallel_insn_from_insns)
6878 (avr_is_casesi_sequence, avr_casei_sequence_check_operands)
6879 (avr_optimize_casesi): New functions.
6881 2016-10-25 Georg-Johann Lay <avr@gjlay.de>
6882 Pitchumani Sivanupandi <pitchumani.sivanupandi@microchip.com>
6886 * config/avr/avr.md (casesi): Rewrite avoiding subregs of SI.
6888 2016-10-24 Jakub Jelinek <jakub@redhat.com>
6890 * dwarf2out.c (gen_subprogram_die): Add DW_AT_reference or
6891 DW_AT_rvalue_reference attributes.
6893 2016-10-24 Bernd Edlinger <bernd.edlinger@hotmail.de>
6895 * doc/invoke.text (Wint-in-bool-context): Update documentation.
6896 * value-prof.c (stringop_block_profile): Fix a warning.
6898 2016-10-24 Martin Sebor <msebor@redhat.com>
6901 * builtins.c (string_length): New function.
6902 (c_strlen): Use string_length. Correctly handle wide strings.
6903 * gimple-ssa-sprintf.c (target_max_value, target_size_max): New
6905 (target_int_max): Call target_max_value.
6906 (format_result::knownrange): New data member.
6907 (fmtresult::fmtresult): Define default constructor.
6908 (format_integer): Use it and set format_result::knownrange.
6909 Handle global constants.
6910 (format_floating_max): Add third argument.
6911 (format_floating): Recompute maximum value for %a for each argument.
6912 (get_string_length): Use fmtresult default ctor.
6913 (format_string): Set format_result::knownrange.
6914 (format_directive): Check format_result::knownrange.
6915 (add_bytes): Same. Correct caret placement in diagnostics.
6916 (pass_sprintf_length::compute_format_length): Set
6917 format_result::knownrange.
6918 (pass_sprintf_length::handle_gimple_call): Use target_size_max.
6920 2016-10-24 Jakub Jelinek <jakub@redhat.com>
6922 * config/i386/i386.c (ix86_in_large_data_p, ix86_expand_builtin): Use
6923 VAR_P (x) instead of TREE_CODE (x) == VAR_DECL.
6925 2016-10-24 Ximin Luo <infinity0@pwned.gg>
6928 * dwarf2out.c (file_table_relative_p): Remove.
6929 (gen_compile_unit_die, dwarf2out_early_finish): Emit DW_AT_comp_dir
6930 also for absolute paths.
6931 * doc/tm.texi: Update.
6932 * doc/tm.texi.in (SDB and DWARF) <TARGET_FORCE_AT_COMP_DIR>: Remove.
6933 * target.def (force_at_comp_dir): Remove hook.
6934 * config/darwin.h (TARGET_FORCE_AT_COMP_DIR): Remove define.
6936 2016-10-24 Richard Biener <rguenther@suse.de>
6938 * tree-vrp.c (evrp_dom_walker::before_dom_children): Ignore
6939 backedges when identifying the single predecessor to take
6940 conditional info from. Use SCEV to get at ranges for loop IVs.
6941 * lto-streamer-out.c (lto_write_mode_table): CSE inner mode to
6942 avoid false warning.
6944 2016-10-24 Georg-Johann Lay <avr@gjlay.de>
6947 * doc/extend.texi (AVR Variable Attributes) [absdata]: Document it.
6948 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_ABSDATA): New macro.
6949 (avr_address_tiny_absdata_p): New static function.
6950 (avr_legitimate_address_p, avr_legitimize_address) [AVR_TINY]: Use
6951 it to determine validity of constant addresses.
6952 (avr_attribute_table) [absdata]: New variable attribute...
6953 (avr_handle_absdata_attribute): ...and handler.
6954 (avr_decl_absdata_p): New static function.
6955 (avr_encode_section_info) [AVR_TINY]: Use it to add flag
6956 AVR_SYMBOL_FLAG_TINY_ABSDATA to respective symbols_refs.
6957 (avr_address_cost) [AVR_TINY]: absdata addresses cost 2.
6959 2016-10-24 Richard Biener <rguenther@suse.de>
6961 PR tree-optimization/78076
6962 * tree-ssa-loop-split.c (tree_ssa_split_loops): Reset aux
6963 also on the loop tree root.
6965 2016-10-24 Jakub Jelinek <jakub@redhat.com>
6967 * config/i386/i386.c (ix86_fold_builtin): Handle
6968 IX86_BUILTIN_BEXTR{,I}{32,64}, IX86_BUILTIN_BZHI{32,64},
6969 IX86_BUILTIN_PDEP{32,64} and IX86_BUILTIN_PEXT{32,64}.
6970 (ix86_gimple_fold_builtin): Handle IX86_BUILTIN_BZHI{32,64},
6971 IX86_BUILTIN_PDEP{32,64} and IX86_BUILTIN_PEXT{32,64}.
6973 2016-10-24 Martin Liska <mliska@suse.cz>
6976 * opts.c (finish_options): Skip conditionally.
6978 2016-10-23 Martin Sebor <msebor@redhat.com>
6981 * config/rs6000/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define.
6982 * config/rs6000/linux64.h (TARGET_PRINTF_POINTER_FORMAT): Likewise.
6984 2016-10-23 Eric Botcazou <ebotcazou@adacore.com>
6986 * config/sparc/sparc.md (cpu_feature): Minor tweak.
6987 (enabled): Likewise.
6988 (movsi_insn, movdi_insn_sp32, movdi_insn_sp64, movsf_insn,
6989 movdf_insn_sp32, movdf_insn_sp64, zero_extendsidi2_insn_sp64,
6990 sign_extendsidi2_insn, mov<VM32:mode>_insn, mov<VM64:mode>_insn_sp64,
6991 mov<VM64:mode>_insn_sp32, not_<code><mode>, nand<mode>_vis,
6992 <code>_not1<mode>_vi, <code>_not2<mode>_vis, one_cmpl<mode>2,
6993 fcmp<code><GCM:gcm_name>, pdistn<mode>_vis): Likewise.
6995 2016-10-23 Eric Botcazou <ebotcazou@adacore.com>
6997 * config/sparc/sparc-c.c (sparc_target_macros): Replace TARGET_64BIT
6998 with TARGET_ARCH64. Define __VIS to 0x400 if TARGET_VIS4.
7000 2016-10-21 Andrew Pinski <apinski@cavium.com>
7002 * config/aarch64/aarch64-cores.def: Rewrite so IMP and PART are
7004 * config/aarch64/driver-aarch64.c (struct aarch64_core_data): Change
7005 implementer_id to unsigned char.
7006 Change part_no to unsigned int.
7007 (AARCH64_BIG_LITTLE): New define.
7008 (INVALID_IMP): New define.
7009 (INVALID_CORE): New define.
7010 (cpu_data): Change the last element's implementer_id and part_no to
7012 (valid_bL_string_p): Rewrite to ..
7013 (valid_bL_core_p): this for integers instead of strings.
7014 (parse_field): New function.
7015 (contains_string_p): Rewrite to ...
7016 (contains_core_p): this for integers and only for the part_no.
7017 (host_detect_local_cpu): Rewrite handling of implementation and
7018 par num to be integers; simplifying the code.
7020 2016-10-21 Kugan Vivekanandarajah <kuganv@linaro.org>
7022 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Create nonzero
7023 value range for pointers in more cases.
7025 2016-10-21 Wilco Dijkstra <wdijkstr@arm.com>
7027 * config/aarch64/aarch64.c (aarch64_add_constant_internal):
7028 Add extra argument to allow emitting the move immediate.
7029 Use add/sub with positive immediate.
7030 (aarch64_add_constant): Add inline function.
7031 (aarch64_add_sp): Likewise.
7032 (aarch64_sub_sp): Likewise.
7033 (aarch64_expand_prologue): Call aarch64_sub_sp.
7034 (aarch64_expand_epilogue): Call aarch64_add_sp.
7035 Decide when to leave out move.
7036 (aarch64_output_mi_thunk): Call aarch64_add_constant.
7038 2016-10-21 Wilco Dijkstra <wdijkstr@arm.com>
7040 * config/aarch64/aarch64.c (aarch64_layout_frame):
7041 Align FP callee-saves.
7043 2016-10-21 Jakub Jelinek <jakub@redhat.com>
7045 * config/i386/adxintrin.h (_subborrow_u32, _addcarry_u32,
7046 _addcarryx_u32, _subborrow_u64, _addcarry_u64, _addcarryx_u64):
7048 * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
7049 _rdseed64_step): Likewise.
7050 * config/i386/tbmintrin.h (__bextri_u32): Likewise.
7053 * config/i386/i386.c: Include fold-const-call.h, tree-vrp.h
7054 and tree-ssanames.h.
7055 (ix86_fold_builtin): Fold IX86_BUILTIN_[LT]ZCNT{16,32,64}
7056 with INTEGER_CST argument.
7057 (ix86_gimple_fold_builtin): New function.
7058 (TARGET_GIMPLE_FOLD_BUILTIN): Define.
7060 * dwarf2out.c (ranges_table): Change into vec<dw_ranges, va_gc> *.
7061 (ranges_by_label): Change into vec<dw_ranges_by_label, va_gc> *.
7062 (ranges_table_allocated, ranges_table_in_use,
7063 ranges_by_label_allocated, ranges_by_label_in_use,
7064 RANGES_TABLE_INCREMENT): Removed.
7065 (add_ranges_num): Use vec_safe_push into ranges_table.
7066 (add_ranges_by_labels): Use vec_safe_push into ranges_by_label.
7067 (output_ranges): Adjust for ranges_table and ranges_by_label
7068 conversion from arrays to vec.
7069 (add_high_low_attributes, dwarf2out_finish): Adjust for range_table
7070 conversion from arrays to vec.
7071 (dwarf2out_c_finalize): Don't clear ranges_table_allocated,
7072 ranges_table_in_use, ranges_by_label_allocated and
7073 ranges_by_label_in_use. Set ranges_by_label to NULL instead of 0.
7075 * dwarf2out.c (gen_variable_die): Emit DW_AT_const_expr attribute
7076 if needed. Re-add origin_die variable and its initialization.
7078 * gimplify.c (gimplify_bind_expr): Handle oacc_declare_returns
7079 even for -fstack-reuse=none, or for volatile vars etc.
7081 2016-10-21 David Malcolm <dmalcolm@redhat.com>
7083 * print-rtl-function.c (flag_compact): Move extern decl to...
7084 * print-rtl.h (flag_compact): ...here.
7085 * rtl-tests.c (selftests::assert_rtl_dump_eq): New function.
7086 (ASSERT_RTL_DUMP_EQ): New macro.
7087 (selftest::test_dumping_regs): New function.
7088 (selftest::test_dumping_insns): New function.
7089 (selftest::test_uncond_jump): Add uses of ASSERT_RTL_DUMP_EQ on
7091 (selftest::rtl_tests_c_tests): Call the new test functions.
7093 2016-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7095 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
7096 (outgoing_edges_match): Likewise.
7097 (try_crossjump_to_edge): Likewise.
7098 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
7099 (rtl_tidy_fallthru_edge): Likewise.
7100 * rtl.h (tablejump_p): Adjust prototype.
7101 * rtlanal.c (tablejump_p): Return the label as a rtx_insn *.
7103 2016-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7105 * rtl.h (label_ref_label): New function.
7106 (set_label_ref_label): New function.
7107 (LABEL_REF_LABEL): Delete.
7108 * alias.c (rtx_equal_for_memref_p): Adjust.
7109 * cfgbuild.c (make_edges): Likewise.
7110 (purge_dead_tablejump_edges): Likewise.
7111 * cfgexpand.c (convert_debug_memory_address): Likewise.
7112 * cfgrtl.c (patch_jump_insn): Likewise.
7113 * combine.c (distribute_notes): Likewise.
7114 * cse.c (hash_rtx_cb): Likewise.
7115 (exp_equiv_p): Likewise.
7116 (fold_rtx): Likewise.
7117 (check_for_label_ref): Likewise.
7118 * cselib.c (rtx_equal_for_cselib_1): Likewise.
7119 (cselib_hash_rtx): Likewise.
7120 * emit-rtl.c (mark_label_nuses): Likewise.
7121 * explow.c (convert_memory_address_addr_space_1): Likewise.
7122 * final.c (output_asm_label): Likewise.
7123 (output_addr_const): Likewise.
7124 * gcse.c (add_label_notes): Likewise.
7125 * genconfig.c (walk_insn_part): Likewise.
7126 * genrecog.c (validate_pattern): Likewise.
7127 * ifcvt.c (cond_exec_get_condition): Likewise.
7128 (noce_emit_store_flag): Likewise.
7129 (noce_get_alt_condition): Likewise.
7130 (noce_get_condition): Likewise.
7131 * jump.c (maybe_propagate_label_ref): Likewise.
7132 (mark_jump_label_1): Likewise.
7133 (redirect_exp_1): Likewise.
7134 (rtx_renumbered_equal_p): Likewise.
7135 * lra-constraints.c (operands_match_p): Likewise.
7136 * print-rtl.c (print_value): Likewise.
7137 * reload.c (find_reloads): Likewise.
7138 * reload1.c (set_label_offsets): Likewise.
7139 * reorg.c (get_branch_condition): Likewise.
7140 * rtl-tests.c (test_uncond_jump): Likewise.
7141 * rtl.c (rtx_equal_p_cb): Likewise.
7142 (rtx_equal_p): Likewise.
7143 * rtlanal.c (reg_mentioned_p): Likewise.
7144 (rtx_referenced_p): Likewise.
7145 (get_condition): Likewise.
7146 * varasm.c (const_hash_1): Likewise.
7147 (compare_constant): Likewise.
7148 (const_rtx_hash_1): Likewise.
7149 (output_constant_pool_1): Likewise.
7151 2016-10-21 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
7154 * reload.c (find_valid_class_1): Allow regclass if atleast one
7155 regno in regclass is ok. Compute and use rclass size based on
7156 actually available regnos for mode in rclass.
7158 2016-10-21 Eric Botcazou <ebotcazou@adacore.com>
7160 * config/sparc/sparc-modes.def (CCV): New.
7162 * config/sparc/predicates.md (v_comparison_operator): New.
7163 (icc_comparison_operator): Add support for CCV/CCXV.
7164 (xcc_comparison_operator): Likewise.
7165 * config/sparc/sparc.c (output_cbranch): Likewise.
7166 (sparc_print_operand): Likewise.
7167 * config/sparc/sparc.md (UNSPEC_{ADD,SUB,NEG}V): New constants.
7168 (uaddvdi4): New expander.
7169 (addvdi4): Likewise.
7170 (uaddvdi4_sp32): New instruction.
7171 (addvdi4_sp32): Likewise.
7172 (uaddvsi4): New expander.
7173 (addvsi4): Likewise.
7174 (cmp_ccc_plus_sltu_set): New instruction.
7175 (cmp_ccv_plus): Likewise.
7176 (cmp_ccxv_plus): Likewise.
7177 (cmp_ccv_plus_set): Likewise.
7178 (cmp_ccxv_plus_set): Likewise.
7179 (cmp_ccv_plus_sltu_set): Likewise.
7180 (uaddvdi4): New expander.
7181 (subvdi4): Likewise.
7182 (usubdi4_sp32): New instruction.
7183 (subvdi4_sp32): Likewise.
7184 (usubvsi4): New expander.
7185 (subvsi4): Likewise.
7186 (cmpsi_minus_sltu_set): New instruction.
7187 (cmp_ccv_minus): Likewise.
7188 (cmp_ccxv_minus): Likewise.
7189 (cmp_ccv_minus_set): Likewise.
7190 (cmp_ccxv_minus_set): Likewise.
7191 (cmp_ccv_minus_sltu_set): Likewise.
7192 (unegvdi3): New expander.
7193 (negvdi3): Likewise.
7194 (unegdi3_sp32): New instruction.
7195 (negvdi3_sp32): Likewise.
7196 (unegvsi3): New expander.
7197 (negvsi3): Likewise.
7198 (cmp_ccc_neg_sltu_set): New instruction.
7199 (cmp_ccv_neg): Likewise.
7200 (cmp_ccxv_neg): Likewise.
7201 (cmp_ccv_neg_set): Likewise.
7202 (cmp_ccxv_neg_set): Likewise.
7203 (cmp_ccv_neg_sltu_set): Likewise.
7205 * tree-ssa-loop-split.c: Remove trailing spaces.
7206 * match.pd: Likewise.
7208 2016-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7210 PR rtl-optimization/78038
7211 * ree.c (get_defs): Return NULL if a defining insn for REG cannot
7212 be deduced to set REG through the RTL structure.
7213 (make_defs_and_copies_lists): Return false on a failing get_defs call.
7215 2016-10-21 Richard Biener <rguenther@suse.de>
7217 PR tree-optimization/78051
7218 * tree-vrp.c (evrp_dom_walker::before_dom_children): Update stmt
7219 and mark replaced if folding did something.
7221 2016-10-21 David Edelsohn <dje.gcc@gmail.com>
7223 * config/rs6000/rs6000.c (rs6000_assemble_visibility): Swap "internal"
7224 and "protected" in visibility types.
7225 (rs6000_xcoff_declare_function_name): Fix formatting.
7226 (rs6000_xcoff_declare_object_name): Fix formatting.
7228 2016-10-21 Uros Bizjak <ubizjak@gmail.com>
7230 * config/i386/i386.c (ix86_fold_builtin): Handle IX86_BUILTIN_INFQ
7231 and IX86_BUILTIN_HUGE_VALQ here ...
7232 (ix86_expand_builtin): ... not here.
7234 2016-10-20 Jakub Jelinek <jakub@redhat.com>
7236 * doc/gty.texi (for_user): Use @item next to @findex.
7238 2016-10-20 Uros Bizjak <ubizjak@gmail.com>
7241 * config/i386/bmiintrin.h (__tzcnt_u16): Call __builtin_ia32_tzcnt_u16.
7242 (__tzcnt_u32, _tzcnt_u32): Call __builtin_ia32_tzcnt_u32.
7243 (__tzcnt_u64, _tzcnt_u64): Call __builtin_ia32_tzcnt_u64.
7244 * config/i386/lzcntintrin.h (__lzcnt_u16): Call
7245 __builtin_ia32_lzcnt_u16.
7246 (__lzcnt_u32, _lzcnt_u32): Call __builtin_ia32_lzcnt_u32.
7247 (__lzcnt_u64, _lzcnt_u64): Call __builtin_ia32_lzcnt_u64.
7248 * config/i386/i386.md (UNSPEC_LZCNT, UNSPEC_TZCNT): New unspecs.
7249 (ctz<mode>2, *ctz<mode>2): Use SWI48 mode iterator.
7250 (bmi_tzcnt_<mode>): New expander.
7251 (*bmi_tzcnt_<mode>_falsedep_1): New define_insn_and_split pattern.
7252 (*bmi_tzcnt_<mode>_falsedep, *bmi_tzcnt_<mode>): New insn patterns.
7253 (clz<mode>2_lzcnt, *clz<mode>2_lzcnt): Use SWI48 mode iterator.
7254 (lzcnt_<mode>): New expander.
7255 (*lzcnt_<mode>_falsedep_1): New define_insn_and_split pattern.
7256 (*lzcnt_<mode>_falsedep, *lzcnt_<mode>): New insn patterns.
7257 * config/i386/i386-builtin-types.def (UINT_FTYPE_UINT): New.
7258 (UINT64_FTYPE_UINT64): New.
7259 * config/i386/i386-builtin.def (__builtin_clzs): Remove description.
7260 (__builtin_ia32_lzcnt_u16): New description.
7261 (__builtin_ia32_lzcnt_u32): Ditto.
7262 (__builtin_ia32_lzcnt_u64): Ditto.
7263 (__builtin_ctzs): Remove description.
7264 (__builtin_ia32_tzcnt_u16): New description.
7265 (__builtin_ia32_tzcnt_u32): Ditto.
7266 (__builtin_ia32_tzcnt_u64): Ditto.
7267 * config/i386/i386.c (ix86_expand_args_builtin): Handle
7268 UINT_FTYPE_UINT and UINT64_FTYPE_UINT64.
7270 2016-10-20 Martin Liska <mliska@suse.cz>
7273 * lto-streamer-in.c (fixup_call_stmt_edges_1): Replace value
7274 comparison with STMT_UID_NOT_IN_RANGE.
7275 (fixup_call_stmt_edges): Do not fixup edges of a thunk in
7278 2016-10-20 Eric Botcazou <ebotcazou@adacore.com>
7280 * compare-elim.c (conforming_compare): Accept UNSPECs.
7281 (find_comparison_dom_walker::before_dom_children): Deal with
7282 instructions both using and killing the flags register.
7283 (equivalent_reg_at_start): New function extracted from...
7284 (try_eliminate_compare): ...here. Use it and add support for
7285 registers and UNSPECs as second operand of the compare.
7286 * config/visium/visium-modes.def (CCV): New.
7287 * config/visium/predicates.md (visium_v_comparison_operator): New.
7288 (visium_branch_operator): Deal with CCV mode.
7289 * config/visium/visium.c (visium_select_cc_mode): Likewise.
7290 (output_cbranch): Likewise.
7291 * config/visium/visium.md (UNSPEC_{ADD,SUB,NEG}V): New constants.
7292 (uaddv<mode>4): New expander.
7293 (addv<mode>4): Likewise.
7294 (add<mode>3_insn_set_carry): New instruction.
7295 (add<mode>3_insn_set_overflow): Likewise.
7296 (addsi3_insn_set_overflow): Likewise.
7297 (usubv<mode>4): New expander.
7298 (subv<mode>4): Likewise.
7299 (sub<mode>3_insn_set_carry): New instruction.
7300 (sub<mode>3_insn_set_overflow): Likewise.
7301 (subsi3_insn_set_overflow): Likewise.
7302 (unegv<mode>3): New expander.
7303 (negv<mode>3): Likewise.
7304 (neg<mode>2_insn_set_overflow): New instruction.
7305 (addv_tst<mode>): Likewise.
7306 (subv_tst<mode>): Likewise.
7307 (negv_tst<mode>): Likewise.
7308 (cbranch<mode>4_addv_insn): New splitter and instruction.
7309 (cbranch<mode>4_subv_insn): Likewise.
7310 (cbranch<mode>4_negv_insn): Likewise.
7312 2016-10-20 Richard Biener <rguenther@suse.de>
7314 * tree-ssa-alias.c (ptrs_compare_unequal): Remove code duplication.
7315 Handle decls possibly not bound.
7316 * tree-ssa-structalias.c (get_constraint_for_ssa_var): Add
7317 nothing_id for decls that might not be bound if we are interested
7319 (get_constraint_for_component_ref): Deal with that.
7321 2016-10-20 Michael Matz <matz@suse.de>
7324 * common.opt (-fsplit-loops): New flag.
7325 * passes.def (pass_loop_split): Add.
7326 * opts.c (default_options_table): Add OPT_fsplit_loops entry at -O3.
7327 (enable_fdo_optimizations): Add loop splitting.
7328 * timevar.def (TV_LOOP_SPLIT): Add.
7329 * tree-pass.h (make_pass_loop_split): Declare.
7330 * tree-ssa-loop-manip.h (rewrite_into_loop_closed_ssa_1): Declare.
7331 * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h,
7332 * tree-ssa-loop-split.c: New file.
7333 * Makefile.in (OBJS): Add tree-ssa-loop-split.o.
7334 * doc/invoke.texi (fsplit-loops): Document.
7335 * doc/passes.texi (Loop optimization): Add paragraph about loop
7338 2016-10-20 Richard Biener <rguenther@suse.de>
7340 * cgraphunit.c (analyze_functions): Set node->definition to
7341 false to signal symbol removal to debug_hooks->late_global_decl.
7342 * ipa.c (symbol_table::remove_unreachable_nodes): When not in
7343 WPA signal symbol removal to the debuginfo machinery.
7344 * dwarf2out.c (dwarf2out_late_global_decl): Instead of
7345 using early_finised to guard the we're called for symbol
7346 removal case look at the symtabs definition flag.
7347 (gen_variable_die): Remove redundant check.
7349 2016-10-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7351 * config/s390/s390.md ("prefetch"): Add fallthrough comment.
7353 2016-10-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7355 PR tree-optimization/53979
7356 * match.pd ((a ^ b) | a -> a | b): New pattern.
7358 2016-10-19 John David Anglin <danglin@gcc.gnu.org>
7360 * config/pa/pa64-hpux.h (PA_INIT_FRAME_DUMMY_ASM_OP): Move to
7361 config/pa/pa64-hpux-lib.h.
7362 (PA_CRTBEGIN_HACK): Likewise.
7363 (DTOR_LIST_BEGIN): Likewise.
7365 2016-10-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
7367 * config/arm/arm.c (arm_emit_coreregs_64bit_shift): Clear the result
7368 register only if "in" and "out" are different registers.
7370 2016-10-19 Eric Botcazou <ebotcazou@adacore.com>
7372 * omp-low.c (pass_oacc_device_lower::gate): New method.
7373 (execute): Always call execute_oacc_device_lower.
7375 2016-10-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7377 PR tree-optimization/77916
7378 PR tree-optimization/77937
7379 * gimple-ssa-strength-reduction.c (analyze_increments): Remove
7381 (insert_initializers): Requirement of initializer for -1 should be
7382 based on pointer-typedness of the candidate basis.
7384 2016-10-19 Bin Cheng <bin.cheng@arm.com>
7386 PR tree-optimization/78005
7387 * tree-vect-loop-manip.c (vect_gen_prolog_loop_niters): Compute
7388 upper (included) bound for niters of prolog loop.
7389 (vect_gen_scalar_loop_niters): Change parameter VF to VFM1.
7390 Compute niters of scalar loop above which vectorized loop is
7391 preferred, as well as the upper (included) bound for the niters.
7392 (vect_do_peeling): Record niter bound for loops accordingly.
7394 2016-10-19 Thomas Schwinge <thomas@codesourcery.com>
7397 * tree-core.h (enum tree_index): Put the complex types after their
7399 * tree-streamer.c (verify_common_node_recorded): New function.
7400 (preload_common_nodes) <TREE_CODE (node) == COMPLEX_TYPE>: Use it.
7402 2016-10-19 Martin Liska <mliska@suse.cz>
7404 * cgraph.h (cgraph_edge::binds_to_current_def_p):
7405 Replace NULL with false as a return value.
7407 2016-10-19 Thomas Schwinge <thomas@codesourcery.com>
7409 PR tree-optimization/78024
7410 * omp-low.c (oacc_loop_discovery): Call clear_bb_flags before, and
7411 don't clear BB_VISITED after processing.
7413 2016-10-19 Richard Biener <rguenther@suse.de>
7415 * domwalk.c (dom_walker::walk): Use RPO order.
7417 2016-10-19 Richard Biener <rguenther@suse.de>
7419 * tree-vrp.c (evrp_dom_walker::evrp_dom_walker): Initialize
7421 (evrp_dom_walker::~evrp_dom_walker): Free it.
7422 (evrp_dom_walker::stmts_to_remove): Add.
7423 (evrp_dom_walker::before_dom_children): Mark PHIs and stmts
7424 whose output we fully propagate for removal. Propagate
7425 into BB destination PHI arguments.
7426 (execute_early_vrp): Remove queued stmts. Dump value ranges
7427 before stmt removal.
7429 2016-10-18 Aldy Hernandez <aldyh@redhat.com>
7431 * Makefile.in (OBJS): Add gimple-ssa-warn-alloca.o.
7432 * passes.def: Add two instances of pass_walloca.
7433 * tree-pass.h (make_pass_walloca): New.
7434 * gimple-ssa-warn-alloca.c: New file.
7435 * doc/invoke.texi: Document -Walloca, -Walloca-larger-than=, and
7436 -Wvla-larger-than= options.
7438 2016-10-18 Thomas Schwinge <thomas@codesourcery.com>
7440 * cfg.c (clear_bb_flags): Use FOR_ALL_BB_FN.
7441 * config/nvptx/nvptx.c (nvptx_find_sese): Likewise.
7443 2016-10-18 Kelvin Nilsen <kelvin@gcc.gnu.org>
7445 * config/rs6000/altivec.h (vec_xl_len): New macro.
7446 (vec_xst_len): New macro.
7447 (vec_cmpnez): New macro.
7448 (vec_cntlz_lsbb): New macro.
7449 (vec_cnttz_lsbb): New macro.
7450 (vec_xlx): New macro.
7451 (vec_xrx): New macro.
7452 (vec_all_nez): New C++ predicate template.
7453 (vec_any_eqz): New C++ predicate template.
7454 (vec_all_ne): Revised C++ predicate template under _ARCH_PWR9
7455 conditional compilation.
7456 (vec_any_eq): Revised C++ predicate template under _ARCH_PWR9
7457 conditional compilation.
7458 (vec_all_nez): New macro.
7459 (vec_any_eqz): New macro.
7460 (vec_all_ne): Revised macro under _ARCH_PWR9 conditional
7462 (vec_any_eq): Revised macro under _ARCH_PWR9 conditional
7464 * config/rs6000/vector.md (VI): Moved this mode iterator
7465 definition from altivec.md to vector.md.
7466 (UNSPEC_NEZ_P): New value.
7467 (vector_ne_<mode>_p): New expansion for implementation of
7468 vec_all_ne and vec_any_eq built-in functions.
7469 (vector_nez_<mode>_p): New expansion for implementation of
7470 vec_all_nez and vec_any_eqz built-in functions.
7471 (vector_ne_v2di_p): New expansion for implementation of vec_all_ne
7472 and vec_any_eq built-in function.
7473 (cr6_test_for_zero): New commentary to explain this expansion.
7474 (cr6_test_for_zero_reverse): New commentary to explain this expansion.
7475 (cr6_test_for_lt): New commentary to explain this expansion.
7476 (cr6_test_for_lt_reverse): New commentary to explain this
7478 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
7479 overloaded function prototypes for vec_all_ne, vec_all_nez,
7480 vec_any_eq, vec_any_eqz, vec_cmpnez, vec_cntlz_lsbb,
7481 vec_cnttz_lsbb, vec_xl_len, vec_xst_len, vec_xlx, and vec_xrx
7483 (altivec_resolve_overloaded_builtin): Modify the handling of
7484 ALTIVEC_BUILTIN_VEC_CMPNE to use the Power9 instructions when
7485 the compiler is configured to support TARGET_P9_VECTOR.
7486 * config/rs6000/rs6000-builtin.def (BU_ALTIVEC_P): Add commentary
7487 to explain the special processing that is given to predicate
7488 built-ins introduced using this macro.
7489 (BU_ALTIVEC_OVERLOAD_P): Add commentary to alert maintainers to
7490 the special processing given to predicate built-ins introduced
7492 (BU_VSX_P): Likewise.
7493 (BU_P8V_AV_P): Likewise.
7494 (BU_P9V_AV_P): Likewise.
7495 (BU_P9V_AV_X): New macro.
7496 (BU_P9V_64BIT_AV_X): New macro.
7497 (BU_P9V_VSX_3): New macro.
7498 (BU_P9V_OVERLOAD_P): New macro.
7499 (LXVL): New BU_P9V_64BIT_VSX_2.
7500 (VEXTUBLX): New BU_P9V_AV_2.
7501 (VEXTUBRX): Likewise.
7502 (VEXTUHLX): Likewise.
7503 (VEXTUHRX): Likewise.
7504 (VEXTUWLX): Likewise.
7505 (VEXTUWRX): Likewise.
7506 (STXVL): New BU_P9V_64BIT_AV_X.
7507 (VCLZLSBB): New BU_P9V_AV_1.
7508 (VCTZLSBB): Likewise.
7509 (CMPNEB): New BU_P9V_AV_2.
7514 (VCMPNEB_P): New BU_P9V_AV_P.
7515 (VCMPNEH_P): Likewise.
7516 (VCMPNEW_P): Likewise.
7517 (VCMPNED_P): Likewise.
7518 (VCMPNEFP_P): Likewise.
7519 (VCMPNEDP_P): Likewise.
7520 (CMPNEZB): New BU_P9V_AV_2.
7521 (CMPNEZH): Likewise.
7522 (CMPNEZW): Likewise.
7523 (VCMPNEZB_P): New BU_P9V_AV_P.
7524 (VCMPNEZH_P): Likewise.
7525 (VCMPNEZW_P): Likewise.
7526 (LXVL): New BU_P9V_OVERLOAD_2.
7527 (STXVL): New BU_P9V_OVERLOAD_3.
7528 (VEXTULX): New BU_P9V_OVERLOAD_2.
7529 (VEXTURX): Likewise.
7531 (VCMPNEZ_P): New BU_P9V_OVERLOAD_P.
7532 (VCMPNE_P): Likewise.
7533 (VCLZLSBB): New BU_P9V_OVERLOAD_1.
7534 (VCTZLSBB): Likewise.
7535 * config/rs6000/rs6000.c (altivec_expand_predicate_builtin): Add
7536 comment to explain mode used for scratch register.
7537 (altivec_expand_stxvl_builtin): New function.
7538 (altivec_expand_builtin): Add case for new constant P9V_BUILTIN_STXVL.
7539 (altivec_init_builtins): Add initialized variable
7540 void_ftype_v16qi_pvoid_long and use this type to define the
7541 built-in function __builtin_altivec_stxvl.
7542 * config/rs6000/vsx.md (UNSPEC_LXVL): New value.
7543 (UNSPEC_STXVL): New value.
7544 (UNSPEC_VCLZLSBB): New value.
7545 (UNSPEC_VCTZLSBB): New value.
7546 (UNSPEC_VEXTUBLX): New value.
7547 (UNSPEC_VEXTUHLX): New value.
7548 (UNSPEC_VEXTUWLX): New value.
7549 (UNSPEC_VEXTUBRX): New value.
7550 (UNSPEC_VEXTUHRX): New value.
7551 (UNSPEC_VEXTUWRX): New value.
7552 (UNSPEC_VCMPNEB): New value.
7553 (UNSPEC_VCMPNEZB): New value.
7554 (UNSPEC_VCMPNEH): New value.
7555 (UNSPEC_VCMPNEZH): New value.
7556 (UNSPEC_VCMPNEW): New value.
7557 (UNSPEC_VCMPNEZW): New value.
7558 (*vsx_ne_<mode>_p): New insn for vector test all not equal with
7559 vector of integer modes.
7560 (*vsx_ne_<mode>_p): New insn for vector test all not equal with
7561 vector of float or double modes.
7562 (*vector_nez_<mode>_p): New insn for vector test all not equal or
7564 (lxvl): New expand for load VSX vector with length.
7565 (*lxvl): New insn for load VSX vector with length.
7566 (stxvl): New expand for store VSX vector with length.
7567 (*stxvl): New insn for store VSX vector with length.
7568 (vcmpneb): New insn for vector of byte compare not equal.
7569 (vcmpnezb): New insn for vector of byte compare not equal or zero.
7570 (vcmpneh): New insn for vector of half word compare not equal.
7571 (vcmpnezh): New insn for vector of half word compare not equal or
7573 (vcmpnew): New insn for vector of word compare not equal.
7574 (vcmpne<VSs>): New insn for vector of float or double compare not
7576 (vcmpnezw): New insn for vector of word compare not equal or zero.
7577 (vclzlsbb): New insn for vector count leading zero
7578 least-significant bits byte.
7579 (vctzlsbb): New insn for vector count trailing zero least
7580 signficant bits byte.
7581 (vextublx): New insn for vector extract unsigned byte left
7583 (vextubrx): New insn for vector extract unsigned byte right
7585 (vextuhlx): New insn for vector extract unsigned half word left
7587 (vextuhrx): New insn for vector extract unsigned half word right
7589 (vextuwlx): New insn for vector extract unsigned word left
7591 (vextuwrx): New insn for vector extract unsigned word right
7593 * config/rs6000/rs6000.h (RS6000_BTC_CONST): Enhance comment to
7594 clarify intent of this constant.
7595 * config/rs6000/altivec.md (VI): Move this mode iterator to vsx.md.
7596 * doc/extend.texi (PowerPC Altivec Built-in Functions): Add
7597 documentation for vec_all_nez, vec_any_eqz, vec_cmpnez,
7598 vec_cntlz_lsbb, vec_cnttz_lsbb, vec_xl_len, vec_xst_len, vec_xlx,
7599 and vec_xrx functions.
7601 2016-10-18 Andrew Pinski <apinski@cavium.com>
7604 * predict.c (is_exit_with_zero_arg): New function.
7605 (tree_bb_level_predictions): Don't consider paths leading to exit(0)
7608 2016-10-18 Uros Bizjak <ubizjak@gmail.com>
7611 * config/i386/i386.c (legitimize_tls_address)
7612 <case TLS_MODEL_INITIAL_EXEC>: For TARGET_64BIT || TARGET_ANY_GNU_TLS
7613 convert dest to Pmode if different than Pmode.
7615 2016-10-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7617 PR tree-optimization/77916
7618 * gimple-ssa-strength-reduction.c (analyze_increments): Reinstate
7619 stopgap fix, as pointers with -1 increment are still broken.
7621 2016-10-18 David Edelsohn <dje.gcc@gmail.com>
7623 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Move storage
7624 mapping class decoration from here...
7625 (rs6000_xcoff_encode_section): ...to here.
7627 (rs6000_savres_strategy) [AIX,ELFv2]: Inline FPR save and restore
7628 if shrink-wrapping and optimizing for speed.
7630 2016-10-18 Richard Biener <rguenther@suse.de>
7632 * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
7633 not visited but non-executable predecessors. Return taken edge.
7634 Simplify conditions and refactor propagation vs. folding step.
7636 2016-10-18 Segher Boessenkool <segher@kernel.crashing.org>
7638 * config/rs6000/rs6000.c (rs6000_savres_strategy): Do not select
7639 {SAVE,REST}_MULTIPLE if shrink-wrapping separate components.
7640 (rs6000_get_separate_components): Assert we do not have those
7641 strategies selected.
7643 2016-10-18 Richard Biener <rguenther@suse.de>
7645 * tree-ssa-propagate.h (substitute_and_fold): Adjust prototype.
7646 * tree-ssa-propagate.c (ssa_prop_fini): Remove final BB_VISITED
7648 (substitute_and_fold_dom_walker): Adjust constructor.
7649 (substitute_and_fold_dom_walker::before_dom_children): Remove
7650 do_dce flag and handling (always true).
7651 (substitute_and_fold): Likewise.
7652 * tree-vrp.c (vrp_finalize): Adjust.
7653 (execute_early_vrp): Remove final BB_VISITED clearing.
7654 * tree-ssa-ccp.c (ccp_finalize): Adjust.
7655 * tree-ssa-copy.c (fini_copy_prop): Likewise.
7656 * ira.c (ira): Call clear_bb_flags.
7658 2016-10-18 Richard Biener <rguenther@suse.de>
7660 * genmatch.c (dt_operand::gen_gimple_expr): Use get_name to
7661 get at the operand to look at with TREE_OPERAND for generic
7664 2016-10-18 David Malcolm <dmalcolm@redhat.com>
7666 * genattrtab.c (attr_string): Use rtx_reader_ptr for call to
7668 (gen_attr): Use rtx_reader_ptr for lookup_enum_type call.
7669 (write_test_expr): Use rtx_reader_ptr for calls to
7671 (write_attr_value): Likewise.
7672 * genconditions.c (write_one_condition): Use rtx_reader_ptr for
7673 call to print_md_ptr_loc.
7674 (write_one_condition): Likewise for calls to print_c_condition.
7675 * genconstants.c: Include "statistics.h" and "vec.h".
7676 (main): Update for conversion to member functions.
7677 * genemit.c (emit_c_code): Use rtx_reader_ptr for
7678 call to print_md_ptr_loc.
7679 * genenums.c: Include "statistics.h" and "vec.h".
7680 (main): Update for conversion of traverse_enum_types to a method.
7681 * genmddeps.c: Include "statistics.h" and "vec.h".
7682 * genoutput.c (process_template): Use rtx_reader_ptr for call to
7684 * genpreds.c (write_predicate_subfunction): Likewise.
7685 (write_predicate_expr): Likewise for calls to print_c_condition.
7686 * genrecog.c (print_test): Likewise.
7687 * gensupport.c (process_rtx): Likewise for calls to
7688 copy_md_ptr_loc and join_c_conditions.
7689 (alter_test_for_insn): Likewise for call to join_c_conditions.
7690 (process_substs_on_one_elem): Likewise.
7691 (gen_mnemonic_setattr): Update for move of string_obstack to a
7692 field of rtx_reader.
7693 (mnemonic_htab_callback): Likewise. Fix formatting.
7694 (gen_mnemonic_attr): Likewise.
7695 * gentarget-def.c (def_target_insn): Use rtx_reader_ptr for calls
7696 to print_c_condition.
7697 * read-md.c: Include "statistics.h" and "vec.h".
7698 (string_obstack): Convert this global to field "m_string_obstack"
7699 of class rtx_reader.
7700 (ptr_locs): Likewise, as "m_ptr_locs".
7701 (ptr_loc_obstack): Likewise, as "m_ptr_loc_obstack".
7702 (joined_conditions): Likewise, as "m_joined_conditions".
7703 (joined_conditions_obstack): Likewise, as "m_joined_conditions_obstack".
7704 (md_constants): Likewise, as "m_md_constants".
7705 (enum_types): Likewise, as "m_enum_types".
7706 (set_md_ptr_loc): Convert to...
7707 (rtx_reader::set_md_ptr_loc): ...member function.
7708 (get_md_ptr_loc): Convert to...
7709 (rtx_reader::get_md_ptr_loc): ...member function.
7710 (copy_md_ptr_loc): Convert to...
7711 (rtx_reader::copy_md_ptr_loc): ...member function.
7712 (fprint_md_ptr_loc): Convert to...
7713 (rtx_reader::fprint_md_ptr_loc): ...member function.
7714 (print_md_ptr_loc): Convert to...
7715 (rtx_reader::print_md_ptr_loc): ...member function.
7716 (join_c_conditions): Convert to...
7717 (rtx_reader::join_c_conditions): ...member function.
7718 (fprint_c_condition): Convert to...
7719 (rtx_reader::fprint_c_condition): ...member function.
7720 (print_c_condition): Convert to...
7721 (rtx_reader::print_c_condition): ...member function.
7722 (read_name): Convert to...
7723 (rtx_reader::read_name): ...member function.
7724 (read_escape): Convert to...
7725 (rtx_reader::read_escape): ...member function.
7726 (read_quoted_string): Convert to...
7727 (rtx_reader::read_quoted_string): ...member function.
7728 (read_braced_string): Convert to...
7729 (rtx_reader::read_braced_string): ...member function.
7730 (read_string): Convert to...
7731 (rtx_reader::read_string): ...member function.
7732 (read_skip_construct): Convert to...
7733 (rtx_reader::read_skip_construct): ...member function.
7734 (handle_constants): Convert to...
7735 (rtx_reader::handle_constants): ...member function.
7736 (traverse_md_constants): Convert to...
7737 (rtx_reader::traverse_md_constants): ...member function.
7738 (handle_enum): Convert to...
7739 (rtx_reader::handle_enum): ...member function.
7740 (lookup_enum_type): Convert to...
7741 (rtx_reader::lookup_enum_type): ...member function.
7742 (traverse_enum_types): Convert to...
7743 (rtx_reader::traverse_enum_types): ...member function.
7744 (rtx_reader::rtx_reader): Move initializations
7745 of various former global data from rtx_reader::read_md_files to
7746 here, as fields, along with the call to unlock_std_streams.
7747 (rtx_reader::~rtx_reader): Clean up m_base_dir, and clean up
7749 (rtx_reader::read_md_files): Move initializations of various
7750 global data from here to the ctor.
7751 * read-md.h (read_name): Convert to...
7752 (rtx_reader::read_name): ...member function.
7753 (rtx_reader::read_escape): New method decl.
7754 (read_quoted_string): Convert to...
7755 (rtx_reader::read_quoted_string): ...member function.
7756 (rtx_reader::read_braced_string): New method decl.
7757 (read_string): Convert to...
7758 (rtx_reader::read_string): ...member function.
7759 (rtx_reader::read_skip_construct): New method decl.
7760 (rtx_reader::set_md_ptr_loc): New method decl.
7761 (rtx_reader::get_md_ptr_loc): New method decl.
7762 (copy_md_ptr_loc): Convert to...
7763 (rtx_reader::copy_md_ptr_loc): ...member function.
7764 (fprint_md_ptr_loc): Convert to...
7765 (rtx_reader::fprint_md_ptr_loc): ...member function.
7766 (print_md_ptr_loc): Convert to...
7767 (rtx_reader::print_md_ptr_loc): ...member function.
7768 (rtx_reader::lookup_enum_type): New method decl.
7769 (rtx_reader::traverse_enum_types): New method decl.
7770 (rtx_reader::handle_constants): New method decl.
7771 (traverse_md_constants): Convert to...
7772 (rtx_reader::traverse_md_constants): ...member function.
7773 (rtx_reader::handle_enum): New method decl.
7774 (rtx_reader::join_c_conditions): New method decl.
7775 (fprint_c_condition): Convert to...
7776 (rtx_reader::fprint_c_condition): ...member function.
7777 (print_c_condition): Convert to...
7778 (rtx_reader::print_c_condition): ...member function.
7779 (rtx_reader::apply_iterator_to_string): New method decl.
7780 (rtx_reader::copy_rtx_for_iterators): New method decl.
7781 (rtx_reader::read_conditions): New method decl.
7782 (rtx_reader::record_potential_iterator_use): New method decl.
7783 (rtx_reader::read_mapping): New method decl.
7784 (rtx_reader::read_rtx): New method decl.
7785 (rtx_reader::read_rtx_code): New method decl.
7786 (rtx_reader::read_rtx_operand): New method decl.
7787 (rtx_reader::read_nested_rtx): New method decl.
7788 (rtx_reader::read_rtx_variadic): New method decl.
7789 (rtx_reader::get_string_obstack): New method.
7790 (rtx_reader::get_md_constants): New method.
7791 (string_obstack): Convert global variable decl to...
7792 (rtx_reader::m_string_obstack): ...this new field.
7793 (rtx_reader::m_ptr_locs): New field.
7794 (rtx_reader::m_ptr_loc_obstack): New field.
7795 (rtx_reader::m_joined_conditions): New field.
7796 (rtx_reader::m_joined_conditions_obstack): New field.
7797 (rtx_reader::m_md_constants): New field.
7798 (rtx_reader::m_enum_types): New field.
7799 * read-rtl.c (apply_iterator_to_string): Convert to...
7800 (rtx_reader::apply_iterator_to_string): ...member function.
7801 (copy_rtx_for_iterators): Convert to...
7802 (rtx_reader::copy_rtx_for_iterators): ...member function.
7803 (add_condition_to_string): Use rtx_reader_ptr for
7804 calls join_c_conditions.
7805 (apply_iterators): Use rtx_reader_ptr for calls to
7806 join_c_conditions and copy_rtx_for_iterators.
7807 (read_conditions): Convert to...
7808 (rtx_reader::read_conditions): ...member function.
7809 (record_potential_iterator_use): Convert to...
7810 (rtx_reader::record_potential_iterator_use): ...member function.
7811 (read_mapping): Convert to...
7812 (rtx_reader::read_mapping): ...member function.
7813 (read_subst_mapping): Use rtx_reader_ptr for read_string call.
7814 (read_rtx): Convert to...
7815 (rtx_reader::read_rtx): ...member function.
7816 (read_rtx_code): Convert to...
7817 (rtx_reader::read_rtx_code): ...member function.
7818 (read_rtx_operand): Convert to...
7819 (rtx_reader::read_rtx_operand): ...member function. Update for move
7820 of string_obstack to a field.
7821 (read_nested_rtx): Convert to..
7822 (rtx_reader::read_nested_rtx): ...member function.
7823 (read_rtx_variadic): Convert to..
7824 (rtx_reader::read_rtx_variadic): ...member function.
7826 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
7828 * tree-vrp.c (get_value_range): Check get_ptr_nonnull.
7830 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
7832 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Set value range
7833 for pointer type too.
7834 (ipcp_update_vr): set_ptr_nonnull for pointer.
7836 2016-10-18 Kugan Vivekanandarajah <kuganv@linaro.org>
7838 * tree-ssa-alias.h (pt_solution_singleton_or_null_p): Renamed from
7839 pt_solution_singleton_p.
7840 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use renamed
7841 pt_solution_singleton_or_null_p from pt_solution_singleton_p.
7842 * tree-ssa-structalias.c (find_what_p_points_to): Preserve
7843 pointer nonnull computed by VRP.
7844 Also Conservatively set pt.null to 1.
7845 (pt_solution_reset): Conservatively set pt.null to 1.
7846 (pt_solution_singleton_or_null_p): Renamed from
7847 pt_solution_singleton_p.
7848 * tree-ssanames.h (set_ptr_nonnull): Declare.
7849 (get_ptr_nonnull): Likewise.
7850 * tree-ssanames.c (set_ptr_nonnull): New.
7851 (get_ptr_nonnull): Likewise.
7852 * tree-vrp.c (vrp_finalize): Set ptr that are nonnull.
7853 (evrp_dom_walker::before_dom_children): Likewise.
7855 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
7857 * config/i386/i386.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
7858 * config/i386/i386.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
7859 * config/ia64/ia64.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
7860 * config/ia64/ia64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
7861 * config/rs6000/rs6000.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to.
7862 * config/rs6000/rs6000.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
7863 (rs6000_option_override_internal): Clear it if ABI_AIX.
7864 * config/sparc/sparc.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
7865 * config/sparc/sparc.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ... here.
7867 2016-10-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7869 * gimple-ssa-strength-reduction.c (record_increment): Remove
7872 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
7874 * expmed.c (expand_shift_1): Add MAY_FAIL parameter and do not assert
7875 that the result is non-zero if it is true.
7876 (maybe_expand_shift): New wrapper around expand_shift_1.
7877 (emit_store_flag): Call maybe_expand_shift in lieu of expand_shift.
7879 2016-10-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7881 PR tree-optimization/77916
7882 * gimple-ssa-strength-reduction.c (create_add_on_incoming_edge):
7883 Don't allow a MINUS_EXPR for pointer arithmetic for either known
7885 (record_increment): Increments of -1 for unknown strides just use
7886 a multiply initializer like other negative values.
7887 (analyze_increments): Remove stopgap solution for -1 increment
7888 applied to pointer arithmetic.
7890 2016-10-17 Yuri Rumyantsev <ysrumyan@gmail.com>
7892 * dominance.c (dom_info::dom_info): Add new constructor for region
7893 which is vector of basic blocks.
7894 (dom_init): New method to initialize members common for both
7896 (dom_info::dom_info): Invoke dom_init for partial initialization.
7897 (dom_info::get_idom): Add check to corner cases on basic blocks which
7899 (dom_info::calc_dfs_tree): Check M_FAKE_EXIT_EDGE instead of M_REVERSE
7900 to detect unreachable bbs.
7901 (dom_info::calc_idoms): Likewise.
7902 (compute_dom_fast_query_in_region): New function.
7903 (calculate_dominance_info_for_region): Likewise.
7904 (free_dominance_info_for_region): Likewise.
7905 * dominance.h: Add prototypes for introduced region-based functions
7906 * tree-if-conv.c (build_region): New function.
7907 (if_convertible_loop_p_1): Invoke local version of post-dominators
7908 calculation before basic block predication with subsequent freeing
7909 post-dominator info.
7910 (tree_if_conversion): Remove free of post-dominator info
7911 (pass_if_conversion::execute): Delete detection of infinite loops
7912 and fake edges to exit block since post-dominator calculation is
7913 performed per if-converted loop only.
7915 2016-10-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
7918 * config/arm/arm.c (arm_emit_coreregs_64bit_shift): Clear the result
7919 register explicitly.
7920 * config/arm/arm.md (ashldi3, ashrdi3, lshrdi3): Don't FAIL if
7921 optimizing for size.
7923 2016-10-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7925 * config/aarch64/aarch64.c: Delete inclusion of
7926 cortex-a57-fma-steering.h.
7927 (aarch64_override_options): Delete call
7928 to aarch64_register_fma_steering.
7929 * config/aarch64/aarch64-protos.h (make_pass_fma_steering): Declare.
7930 * config/aarch64/cortex-a57-fma-steering.h: Delete.
7931 * config/aarch64/aarch64-passes.def: New file.
7932 * config/aarch64/cortex-a57-fma-steering.c
7933 (aarch64_register_fma_steering): Delete definition.
7934 (make_pass_fma_steering): Remove static qualifier.
7935 * config/aarch64/t-aarch64 (PASSES_EXTRA): New directive.
7936 (cortex-a57-fma-steering.o): Remove dependency on
7937 cortex-a57-fma-steering.h.
7939 2016-10-17 Eric Botcazou <ebotcazou@adacore.com>
7941 * explow.c (validize_mem): Do not modify the argument in-place.
7943 2016-10-17 Thomas Schwinge <thomas@codesourcery.com>
7945 * tree-streamer.c (record_common_node): Explicitly list expected
7948 2016-10-17 Richard Biener <rguenther@suse.de>
7950 PR tree-optimization/77988
7951 * tree-vrp.c (remove_range_assertions): Use replace_uses_by.
7953 2016-10-17 Marek Polacek <polacek@redhat.com>
7955 * Makefile.in (C_COMMON_OBJS): Add c-family/c-attribs.o.
7957 2016-10-17 Richard Biener <rguenther@suse.de>
7959 * bb-reorder.c (reorder_basic_blocks_simple): Clear BB_VISITED
7962 2016-10-17 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7964 PR tree-optimization/71636
7965 * match.pd (x & ((1 << b) - 1) -> x & ~(~0 << b)): New pattern.
7967 2016-10-17 Richard Biener <rguenther@suse.de>
7969 * gimplify.c (gimplify_function_tree): Do not move the outer
7972 2016-10-17 Jakub Jelinek <jakub@redhat.com>
7974 * langhooks.h (struct lang_hooks_for_decls): Remove
7975 function_decl_explicit_p, function_decl_deleted_p and
7976 function_decl_defaulted hooks. Add decl_dwarf_attribute hook.
7977 * langhooks-def.h (lhd_decl_dwarf_attribute): Declare.
7978 (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P,
7979 LANG_HOOKS_FUNCTION_DECL_DELETED_P,
7980 LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Remove.
7981 (LANG_HOOKS_DECL_DWARF_ATTRIBUTE): Define.
7982 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P,
7983 LANG_HOOKS_FUNCTION_DECL_DELETED_P and
7984 LANG_HOOKS_FUNCTION_DECL_DEFAULTED. Add
7985 LANG_HOOKS_DECL_DWARF_ATTRIBUTE.
7986 * langhooks.c (lhd_decl_dwarf_attribute): New function.
7987 * dwarf2out.c (gen_subprogram_die): Use
7988 lang_hooks.decls.decl_dwarf_attribute instead of
7989 lang_hooks.decls.function_decl_*.
7991 2016-10-16 Eric Botcazou <ebotcazou@adacore.com>
7995 * common.opt (-ftrampolines): New option.
7996 * doc/invoke.texi (Code Gen Options): Document it.
7997 * doc/tm.texi.in (Trampolines): Add TARGET_CUSTOM_FUNCTION_DESCRIPTORS.
7998 * doc/tm.texi: Regenerate.
7999 * builtins.def: Add init_descriptor and adjust_descriptor.
8000 * builtins.c (expand_builtin_init_trampoline): Do not issue a warning
8001 on platforms with descriptors.
8002 (expand_builtin_init_descriptor): New function.
8003 (expand_builtin_adjust_descriptor): Likewise.
8004 (expand_builtin) <BUILT_IN_INIT_DESCRIPTOR>: New case.
8005 <BUILT_IN_ADJUST_DESCRIPTOR>: Likewise.
8006 * calls.c (prepare_call_address): Remove SIBCALLP parameter and add
8007 FLAGS parameter. Deal with indirect calls by descriptor and adjust.
8008 Set STATIC_CHAIN_REG_P on the static chain register, if any.
8009 (call_expr_flags): Set ECF_BY_DESCRIPTOR for calls by descriptor.
8010 (expand_call): Likewise. Move around call to prepare_call_address
8011 and pass all flags to it.
8012 * cfgexpand.c (expand_call_stmt): Reinstate CALL_EXPR_BY_DESCRIPTOR.
8013 * gimple.h (enum gf_mask): New GF_CALL_BY_DESCRIPTOR value.
8014 (gimple_call_set_by_descriptor): New setter.
8015 (gimple_call_by_descriptor_p): New getter.
8016 * gimple.c (gimple_build_call_from_tree): SetCALL_EXPR_BY_DESCRIPTOR.
8017 (gimple_call_flags): Deal with GF_CALL_BY_DESCRIPTOR.
8018 * langhooks.h (struct lang_hooks): Add custom_function_descriptors.
8019 * langhooks-def.h (LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS): Define.
8020 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS.
8021 * rtl.h (STATIC_CHAIN_REG_P): New macro.
8022 * rtlanal.c (find_first_parameter_load): Skip static chain registers.
8023 * target.def (custom_function_descriptors): New POD hook.
8024 * tree.h (FUNC_ADDR_BY_DESCRIPTOR): New flag on ADDR_EXPR.
8025 (CALL_EXPR_BY_DESCRIPTOR): New flag on CALL_EXPR.
8026 * tree-core.h (ECF_BY_DESCRIPTOR): New mask.
8027 Document FUNC_ADDR_BY_DESCRIPTOR and CALL_EXPR_BY_DESCRIPTOR.
8028 * tree.c (make_node_stat) <tcc_declaration>: Use FUNCTION_ALIGNMENT.
8029 (build_common_builtin_nodes): Initialize init_descriptor and
8031 * tree-nested.c: Include target.h.
8032 (struct nesting_info): Add 'any_descr_created' field.
8033 (get_descriptor_type): New function.
8034 (lookup_element_for_decl): New function extracted from...
8035 (create_field_for_decl): Likewise.
8036 (lookup_tramp_for_decl): ...here. Adjust.
8037 (lookup_descr_for_decl): New function.
8038 (convert_tramp_reference_op): Deal with descriptors.
8039 (build_init_call_stmt): New function extracted from...
8040 (finalize_nesting_tree_1): ...here. Adjust and deal with descriptors.
8041 * defaults.h (FUNCTION_ALIGNMENT): Define.
8042 (TRAMPOLINE_ALIGNMENT): Set to above instead of FUNCTION_BOUNDARY.
8043 * config/i386/i386.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
8044 * config/ia64/ia64.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Likewise.
8045 * config/rs6000/rs6000.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS):Likewise.
8046 * config/sparc/sparc.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Likewise.
8048 2016-10-16 Eric Botcazou <ebotcazou@adacore.com>
8050 * config/sparc/sparc.c (sparc_expand_vector_init): Only accept literal
8051 constants in CONST_VECTORs.
8053 2016-10-15 Eric Botcazou <ebotcazou@adacore.com>
8055 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use a scratch
8056 register as destination of bmask.
8057 (vector_init_bshuffle): Likewise.
8058 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
8059 (bmaskdi_vis): Enable only in 64-bit mode.
8061 2016-10-15 Segher Boessenkool <segher@kernel.crashing.org>
8063 * config/rs6000/rs6000.c (rs6000_get_separate_components): Do not
8064 make LR a separately shrink-wrapped component unless savres_strategy
8065 contains all of {SAVE,REST}_INLINE_{GPRS,FPRS,VRS}. Do not wrap
8066 GPRs unless both {SAVE,REST}_INLINE_GPRS. Do not disallow all
8067 wrapping when not both {SAVE,REST}_INLINE_GPRS.
8069 2016-10-15 Eric Botcazou <ebotcazou@adacore.com>
8071 * optabs.c (expand_parity): Fix mode mismatch, add final conversion
8072 and keep looping on failure.
8074 2016-10-14 David Malcolm <dmalcolm@redhat.com>
8076 * print-rtl-function.c (print_edge): Omit "(flags)" when none are
8078 (print_rtx_function): Update example in comment for...
8079 * print-rtl.c (print_rtx_operand_code_r): In compact mode, print
8080 non-virtual pseudos with a '%' sigil followed by the regno, offset
8081 by (LAST_VIRTUAL_REGISTER + 1), so that the first non-virtual
8082 pseudo is dumped as "%0".
8084 2016-10-14 Jakub Jelinek <jakub@redhat.com>
8087 * expr.c (expand_expr_real_1) <case CONST_DECL>: For EXPAND_WRITE
8090 2016-10-14 Eric Botcazou <ebotcazou@adacore.com>
8092 * config/sparc/sparc-passes.def: New file.
8093 * config/sparc/t-sparc (PASSES_EXTRA): Add sparc-passes.def.
8094 * config/sparc/sparc-protos.h (make_pass_work_around_errata): New.
8095 * config/sparc/sparc.c (sparc_option_override): Don't register passes.
8097 2016-10-14 Pat Haugen <pthaugen@us.ibm.com>
8099 * loop-unroll.c (unroll_loop_runtime_iterations): Condition initial
8100 loop peel to loops with exit test at the beginning.
8102 2016-10-14 Pat Haugen <pthaugen@us.ibm.com>
8104 PR rtl-optimization/68212
8105 * cfgloopmanip.c (duplicate_loop_to_header_edge): Use preheader edge
8106 frequency when computing scale factor for peeled copies.
8107 * loop-unroll.c (unroll_loop_runtime_iterations): Fix freq/count
8108 values for switch/peel blocks/edges.
8110 2016-10-14 Pedro Alves <palves@redhat.com>
8112 * coretypes.h (OVERRIDE, FINAL): Delete, moved to include/ansidecl.h.
8114 2016-10-14 Catherine Moore <clm@codesourcery.com>
8116 * config/mips/mips.c (mips_prepare_pch_save): Initialize
8117 micromips_globals to zero.
8119 2016-10-14 Richard Biener <rguenther@suse.de>
8121 PR tree-optimization/77979
8122 * tree-vrp.c (compare_name_with_value): Handle released SSA names
8123 in the equivalency sets.
8124 (compare_names): Likewise.
8126 2016-10-14 Martin Liska <mliska@suse.cz>
8128 * builtins.h(target_char_cst_p): Declare the function.
8129 * builtins.c (fold_builtin_memchr): Remove.
8130 (target_char_cst_p): Move the function from gimple-fold.c.
8131 (fold_builtin_3): Do not call the function.
8132 * gimple-fold.c (gimple_fold_builtin_memchr): New function.
8133 (gimple_fold_builtin): Call the function.
8134 * fold-const-call.c (fold_const_call_1): Handle CFN_BUILT_IN_MEMCHR.
8136 2016-10-14 Martin Liska <mliska@suse.cz>
8138 * builtins.c (fold_builtin_strcmp): Remove function.
8139 (fold_builtin_strncmp): Likewise.
8140 (fold_builtin_2): Remove call of the function.
8141 (fold_builtin_3): Likewise.
8142 * fold-const-call.c (fold_const_call): Add constant folding
8143 for CFN_BUILT_IN_STRCASECMP and CFN_BUILT_IN_STRNCASECMP.
8144 * fold-const-call.h (build_cmp_result): Declare the function.
8145 * gimple-fold.c (gimple_load_first_char): New function.
8146 (gimple_fold_builtin_string_compare): Likewise.
8147 (gimple_fold_builtin): Call the function.
8149 2016-10-14 Nathan Sidwell <nathan@acm.org>
8151 * gcov-io.c (gcov_open): Deconstify 'mode'.
8153 2016-10-14 Martin Liska <mliska@suse.cz>
8155 * fold-const.c (c_getstr): Support of properly \0-terminated
8156 string constants. New argument is added.
8157 * fold-const.h: New argument is added.
8159 2016-10-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8161 * config/aarch64/aarch64.c (aarch64_print_hint_for_core_or_arch):
8163 (aarch64_print_hint_for_core): Likewise.
8164 (aarch64_print_hint_for_arch): Likewise.
8165 (aarch64_validate_march): Use it. Fix indentation in type signature.
8166 (aarch64_validate_mcpu): Use aarch64_print_hint_for_core_or_arch.
8167 (aarch64_validate_mtune): Likewise.
8168 (aarch64_handle_attr_arch): Likewise.
8169 (aarch64_handle_attr_cpu): Likewise.
8170 (aarch64_handle_attr_tune): Likewise.
8172 2016-10-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8174 * optabs.def: Remove optab function gen_int_libfunc for sdivmod_optab
8177 2016-10-13 Andreas Schwab <schwab@linux-m68k.org>
8179 * config/m68k/m68k.c (m68k_option_override): Check
8180 opt_fstack_limit_symbol_arg and opt_fstack_limit_register_no
8181 instead of stack_limit_rtx.
8183 2016-10-13 Jakub Jelinek <jakub@redhat.com>
8185 * dwarf2out.c (gen_member_die): Handle inline static data member
8188 2016-10-13 Nathan Sidwell <nathan@acm.org>
8190 * gcov-io.c (gcov_open): Fix documentation. Simplify setting
8191 gcov_var.mode. Remove unnecessary fstat.
8193 2016-10-13 Segher Boessenkool <segher@kernel.crashing.org>
8196 * function.c (thread_prologue_and_epilogue_insns): Call all
8197 make_*logue_seq in the same order as traditional. Call them
8198 all a second time if shrink_wrapped_separate.
8200 2016-10-13 Marek Polacek <polacek@redhat.com>
8202 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
8203 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Don't
8206 2016-10-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8208 PR tree-optimization/77937
8209 * gimple-ssa-strength-reduction.c (analyze_increments): Set cost
8210 to infinite when we have a pointer with an increment of -1.
8212 2016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
8214 * coretypes.h: Move MEMMODEL_* macros and enum memmodel definition
8216 * memmodel.h: This file.
8217 * alias.c, asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
8218 caller-save.c, calls.c, ccmp.c, cfgbuild.c, cfgcleanup.c,
8219 cfgexpand.c, cfgloopanal.c, cfgrtl.c, cilk-common.c, combine.c,
8220 combine-stack-adj.c, common/config/aarch64/aarch64-common.c,
8221 common/config/arm/arm-common.c, common/config/bfin/bfin-common.c,
8222 common/config/c6x/c6x-common.c, common/config/i386/i386-common.c,
8223 common/config/ia64/ia64-common.c, common/config/nvptx/nvptx-common.c,
8224 compare-elim.c, config/aarch64/aarch64-builtins.c,
8225 config/aarch64/aarch64-c.c, config/aarch64/cortex-a57-fma-steering.c,
8226 config/arc/arc.c, config/arc/arc-c.c, config/arm/arm-builtins.c,
8227 config/arm/arm-c.c, config/avr/avr.c, config/avr/avr-c.c,
8228 config/avr/avr-log.c, config/bfin/bfin.c, config/c6x/c6x.c,
8229 config/cr16/cr16.c, config/cris/cris.c, config/darwin-c.c,
8230 config/darwin.c, config/epiphany/epiphany.c,
8231 config/epiphany/mode-switch-use.c,
8232 config/epiphany/resolve-sw-modes.c, config/fr30/fr30.c,
8233 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
8234 config/i386/i386-c.c, config/i386/winnt.c, config/iq2000/iq2000.c,
8235 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
8236 config/m68k/m68k.c, config/mcore/mcore.c,
8237 config/microblaze/microblaze.c, config/mmix/mmix.c,
8238 config/mn10300/mn10300.c, config/moxie/moxie.c,
8239 config/msp430/msp430.c, config/nds32/nds32-cost.c,
8240 config/nds32/nds32-intrinsic.c, config/nds32/nds32-md-auxiliary.c,
8241 config/nds32/nds32-memory-manipulation.c,
8242 config/nds32/nds32-predicates.c, config/nds32/nds32.c,
8243 config/nios2/nios2.c, config/nvptx/nvptx.c, config/pa/pa.c,
8244 config/pdp11/pdp11.c, config/rl78/rl78.c, config/rs6000/rs6000-c.c,
8245 config/rx/rx.c, config/s390/s390-c.c, config/s390/s390.c,
8246 config/sh/sh.c, config/sh/sh-c.c, config/sh/sh-mem.cc,
8247 config/sh/sh_treg_combine.cc, config/sol2.c, config/spu/spu.c,
8248 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
8249 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
8250 config/visium/visium.c, config/vms/vms-c.c, config/xtensa/xtensa.c,
8251 coverage.c, cppbuiltin.c, cprop.c, cse.c, cselib.c, dbxout.c, dce.c,
8252 df-core.c, df-problems.c, df-scan.c, dojump.c, dse.c, dwarf2asm.c,
8253 dwarf2cfi.c, dwarf2out.c, emit-rtl.c, except.c, explow.c, expmed.c,
8254 expr.c, final.c, fold-const.c, function.c, fwprop.c, gcse.c,
8255 ggc-page.c, haifa-sched.c, hsa-brig.c, hsa-gen.c, hw-doloop.c,
8256 ifcvt.c, init-regs.c, internal-fn.c, ira-build.c, ira-color.c,
8257 ira-conflicts.c, ira-costs.c, ira-emit.c, ira-lives.c, ira.c, jump.c,
8258 loop-doloop.c, loop-invariant.c, loop-iv.c, loop-unroll.c,
8259 lower-subreg.c, lra.c, lra-assigns.c, lra-coalesce.c,
8260 lra-constraints.c, lra-eliminations.c, lra-lives.c, lra-remat.c,
8261 lra-spills.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
8262 postreload-gcse.c, postreload.c, predict.c, print-rtl-function.c,
8263 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
8264 reload.c, reload1.c, reorg.c, resource.c, rtl-chkp.c, rtl-tests.c,
8265 rtlanal.c, rtlhooks.c, sched-deps.c, sched-rgn.c, sdbout.c,
8266 sel-sched-ir.c, sel-sched.c, shrink-wrap.c, simplify-rtx.c,
8267 stack-ptr-mod.c, stmt.c, stor-layout.c, target-globals.c,
8268 targhooks.c, toplev.c, tree-nested.c, tree-outof-ssa.c,
8269 tree-profile.c, tree-ssa-coalesce.c, tree-ssa-ifcombine.c,
8270 tree-ssa-loop-ivopts.c, tree-ssa-loop.c, tree-ssa-reassoc.c,
8271 tree-ssa-sccvn.c, tree-vect-data-refs.c, ubsan.c, valtrack.c,
8272 var-tracking.c, varasm.c: Include memmodel.h.
8273 * genattrtab.c (write_header): Include memmodel.h in generated file.
8274 * genautomata.c (main): Likewise.
8275 * gengtype.c (open_base_files): Likewise.
8276 * genopinit.c (main): Likewise.
8277 * genconditions.c (write_header): Include memmodel.h earlier in
8279 * genemit.c (main): Likewise.
8280 * genoutput.c (output_prologue): Likewise.
8281 * genpeep.c (main): Likewise.
8282 * genpreds.c (write_insn_preds_c): Likewise.
8283 * genrecog.c (write_header): Likewise.
8284 * Makefile.in (PLUGIN_HEADERS): Include memmodel.h
8286 2016-10-13 David Malcolm <dmalcolm@redhat.com>
8288 * function-tests.c (selftest::test_expansion_to_rtl): Add "true"
8289 for new "compact" param of print_rtx_function. Check for "cinsn"
8291 * print-rtl-function.c (flag_compact): New decl.
8292 (print_rtx_function): Add param "compact" and use it to set
8293 flag_compact, adding a description of the effect to the leading
8294 comment, and updating the example output.
8295 * print-rtl.c (flag_compact): New variable.
8296 (print_rtx_operand_code_0): Omit the JUMP_LABEL reference in compact
8298 (print_rtx_operand_code_i): When printing source locations, wrap
8299 xloc.file in quotes. Don't print INSN_CODEs in compact mode.
8300 (print_rtx_operand_code_r): Don't print regnos for hard regs and
8301 virtuals in compact mode.
8302 (print_rtx_operand_code_u): Don't print insn UIDs in compact mode,
8303 apart from in LABEL_REFs.
8304 (print_rtx_operand): In case 'w', don't print in hex in compact mode.
8305 Don't print basic block ids in compact mode.
8306 (print_rtx): In compact mode, prefix the code of insns with "c",
8307 only print the INSN_UID of CODE_LABELs, and omit their LABEL_NUSES.
8308 * print-rtl.h (print_rtx_function): Add "compact" param.
8310 2016-10-13 Richard Earnshaw <rearnsha@arm.com>
8312 * arm.h (TARGET_VFP): Delete.
8313 (TARGET_VFPD32): Remove references to TARGET_VFP.
8314 (TARGET_VFP3, TARGET_VFP5): Likewise.
8315 (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE): Likewise.
8316 (TARGET_NEON_FP16): Likewise.
8317 (TARGET_FMA): Likewise.
8318 (TARGET_CRYPTO): Likewise.
8319 (TARGET_NEON): Likewise.
8320 (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
8321 (FUNCTION_ARG_REGNO_P): Likewise.
8322 * arm.c (arm_option_check_internal): Likewise.
8323 (arm_option_override): Likewise.
8324 (use_return_insn): Likewise.
8325 (arm_function_value_regno_p): Likewise.
8326 (arm_apply_result_size): Likewise.
8327 (use_vfp_abi): Likewise.
8328 (arm_legitimate_address_outer_p): Likewise.
8329 (thumb2_legitimate_address_p): Likewise.
8330 (arm_legitimate_index_p): Likewise.
8331 (thumb2_legitimate_index_p): Likewise.
8332 (arm_legitimate_address): Likewise.
8333 (arm_get_vfp_saved_size): Likewise.
8334 (arm_emit_vfp_multi_reg_pop): Likewise.
8335 (arm_get_frame_offsets): Likewise.
8336 (arm_save_coproc_regs): Likewise.
8337 (arm_hard_regno_mode_ok): Likewise.
8338 (arm_expand_epilogue_apcs_frame): Likewise.
8339 (arm_expand_epilogue): Likewise.
8340 (arm_file_start): Likewise.
8341 (arm_conditional_register_usage): Likewise.
8342 (arm_validize_comparison): Use vfp_compare_operand directly.
8343 * arm-builtins.c (arm_init_builtins): Remove references to TARGET_VFP.
8344 (arm_expand_vfp_builtin): Use TARGET_HARD_FLOAT for detecting
8346 (arm_atomic_assign_expand_fenv): Likewise.
8347 * arm.md (divsf3): Likewise.
8348 (arm_negsi2): Likewise.
8350 (arm_movdi): Likewise.
8351 (arm_movt): Likewise.
8352 (cbranchsf4): Change predicate to vfp_compare_operand.
8353 (cbranchdf4): Change predicate to vfp_compare_operand.
8354 (cstorehf4): Change predicate to vfp_compare_operand.
8355 (cstoresf4): Change predicate to vfp_compare_operand.
8356 (cstoredf4): Change predicate to vfp_compare_operand.
8357 (vfp_pop_multiple_with_writeback): Remove references to TARGET_VFP.
8358 (movhi_insn_arch4, movhi_bytes): Likewise.
8359 * constraints.md (Dt): Likewise.
8361 * iterators.md (SDF): Likewise.
8362 * predicates.md (arm_float_compare_operand): Delete.
8363 (const_double_vcvt_power_of_two_reciprocal): Remove references to
8365 (const_double_vcvt_power_of_two): Likewise.
8366 * thumb2.md thumb2_movsi_insn): Likewise.
8367 * vfp.md (arm_movhi_vfp, thumb2_movhi_vfp): Likewise.
8368 (movhf_vfp): Likewise.
8369 (arm_movsi_vfp, thumb2_movsi_vfp): Likewise.
8370 (movdi_vfp, movdi_vfp_cortexa8): Likewise.
8371 (movsf_vfp, thumb2_movsf_vfp): Likewise.
8372 (movdf_vfp, thumb2_movdf_vfp): Likewise.
8373 (movsfcc_vfp, abssf2_vfp, negsf2_vfp, addsf3_vfp): Likewise.
8374 (subsf3_vfp, divsf3_vfp): Likewise.
8375 (mulsf3_vfp, mulsf3negsf_vfp, negmulsf3_vfp): Likewise.
8376 (mulsf3addsf_vfp, (mulsf3subsf_vfp, mulsf3negsfaddsf_vfp): Likewise.
8377 (mulsf3negsfsubsf_vfp): Likewise.
8378 (truncsisf2_vfp, fixuns_truncsfsi2, floatsisf2_vfp): Likewise.
8379 (floatunssisf2, sqrtsf2_vfp): Likewise.
8380 (movcc_vfp): Likewise.
8381 (cmpsf_split_vfp, cmpsf_trap_split_vfp): Likewise.
8382 (cmpsf_vfp, cmpsf_trap_vfp): Likewise.
8383 (push_multi_vfp): Likewise.
8384 (set_fpscr, get_fpscr): Likewise.
8385 * arm-c.c (arm_cpu_builtins): Unconditionally define __VFP_FP__.
8387 2016-10-13 Richard Earnshaw <rearnsha@arm.com>
8389 * arm.h (TARGET_VFP): Unconditionally define to 1.
8390 (arm_fpu_desc): Remove 'model' field.
8391 (TARGET_FPU_MODEL): Delete.
8392 * arm.c (all_fpus): Don't initialize the model field.
8393 (arm_can_inline_p): Don't check the FPU model.
8394 * arm-fpus.def: Remove redundant model field from all FPU
8397 2016-10-13 Richard Biener <rguenther@suse.de>
8400 * genmatch.c (struct capture): Add value_match member.
8401 (commutate): Preserve value_match.
8402 (lower_opt_convert): Likewise.
8403 (lower_cond): Likewise.
8404 (replace_id): Likewise.
8405 (struct dt_operand): Add value_match member.
8406 (decision_tree::cmp_node): Compare it.
8407 (decision_tree::insert_operand): Honor it when finding and
8408 when appending a DT_MATCH.
8409 (dt_operand::gen_match_op): Generate a type check after
8410 operand_equal_p if ! value_match for both GENERIC and GIMPLE.
8411 (parser::get_internal_capture_id): New helper.
8412 (parser::finish_match_operand): New function lowering @@<id>.
8413 (parser::parse_capture): Parse @@<id> as value-match.
8414 (parser::parse_expr): Use get_internal_capture_id.
8415 (parser::parse_simplify): Call finish_match_operand.
8416 (walk_captures): New helper.
8417 * match.pd (X - (X / Y) * Y -> X % Y): Use value-matching instead
8419 ((X /[ex] A) * A -> X): Likewise.
8420 ((X | Y) ^ X -> Y & ~ X): Handle constants properly by using
8421 convert[12] and value-matching.
8422 ((A | B) & (A | C) -> A | (B & C)): Likewise.
8423 ((X | Y) | Y -> X | Y): Likewise.
8424 ((X ^ Y) ^ Y -> X): Likewise.
8425 (A - (A & B) -> ~B & A): Likewise.
8426 ((T)(P + A) - (T)P -> (T) A): Likewise.
8427 ((T)P - (T)(P + A) -> -(T) A): Likewise.
8428 ((T)(P + A) - (T)(P + B) -> (T)A - (T)B): Likewise.
8429 * doc/match-and-simplify.texi: Amend capture section.
8431 2016-10-13 Claudiu Zissulescu <claziss@synopsys.com>
8433 * config/arc/arc.md (umul_600): Remove predicated variant.
8434 (umul64_600): Likewise.
8436 2016-10-13 Claudiu Zissulescu <claziss@synopsys.com>
8438 * config/arc/arc.h (INSN_LENGTH_ALIGNMENT): Change.
8440 2016-10-13 Bin Cheng <bin.cheng@arm.com>
8442 * tree-vect-loop.c (loop_niters_no_overflow): New func.
8443 (vect_transform_loop): Call loop_niters_no_overflow. Pass the
8444 no-overflow information to vect_do_peeling_for_loop_bound and
8445 vect_gen_vector_loop_niters.
8447 2016-10-13 Bin Cheng <bin.cheng@arm.com>
8449 * tree-predcom.c (tree_predictive_commoning_loop): Skip loop that only
8452 2016-10-13 Bin Cheng <bin.cheng@arm.com>
8454 * tree-vect-loop-manip.c (adjust_vec_debug_stmts): Don't release
8455 adjust_vec automatically.
8456 (slpeel_add_loop_guard): Remove param cond_expr_stmt_list. Rename
8457 param exit_bb to guard_to.
8458 (slpeel_checking_verify_cfg_after_peeling):
8459 (set_prologue_iterations):
8460 (create_lcssa_for_virtual_phi): New func which is factored out from
8461 slpeel_tree_peel_loop_to_edge.
8462 (slpeel_tree_peel_loop_to_edge):
8463 (iv_phi_p): New func.
8464 (vect_can_advance_ivs_p): Call iv_phi_p.
8465 (vect_update_ivs_after_vectorizer): Call iv_phi_p. Directly insert
8466 new gimple stmts in basic block.
8467 (vect_gen_niters_for_prolog_loop): Rename to...
8468 (vect_gen_prolog_loop_niters): ...Rename from. Change parameters and
8469 adjust implementation.
8470 (vect_update_inits_of_drs): Fix code style issue. Convert niters to
8471 sizetype if necessary.
8472 (vect_build_loop_niters): Move to here from tree-vect-loop.c. Change
8473 it to external function.
8474 (vect_gen_scalar_loop_niters, vect_gen_vector_loop_niters): New.
8475 (vect_gen_vector_loop_niters_mult_vf): New.
8476 (slpeel_update_phi_nodes_for_loops): New.
8477 (slpeel_update_phi_nodes_for_guard1): Reimplement.
8478 (find_guard_arg, slpeel_update_phi_nodes_for_guard2): Reimplement.
8479 (slpeel_update_phi_nodes_for_lcssa, vect_do_peeling): New.
8480 * tree-vect-loop.c (vect_build_loop_niters): Move to file
8481 tree-vect-loop-manip.c
8482 (vect_generate_tmps_on_preheader): Delete.
8483 (vect_transform_loop): Rename vectorization_factor to vf. Call
8484 vect_do_peeling instead of vect_do_peeling-* functions.
8485 * tree-vectorizer.h (vect_do_peeling): New decl.
8486 (vect_build_loop_niters, vect_gen_vector_loop_niters): New decls.
8487 (vect_do_peeling_for_loop_bound): Delete.
8488 (vect_do_peeling_for_alignment): Delete.
8490 2016-10-13 Bin Cheng <bin.cheng@arm.com>
8492 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg): Put
8493 duplicated loop after its preheader and after the original loop.
8495 2016-10-13 Bin Cheng <bin.cheng@arm.com>
8497 * tree-vect-loop.c (vect_analyze_loop_2): Check and skip loop if it
8498 has no enough iterations for LOOP_VINFO_PEELING_FOR_GAPS.
8500 2016-10-13 Bin Cheng <bin.cheng@arm.com>
8502 * tree-vect-loop.c (vectorizable_live_operation): Support handling
8503 for live variable outside loop but not in lcssa form.
8505 2016-10-13 Bin Cheng <bin.cheng@arm.com>
8507 * cfg.c (reset_original_copy_tables): New func.
8508 * cfg.h (reset_original_copy_tables): New decl.
8510 2016-10-13 Jakub Jelinek <jakub@redhat.com>
8513 * tree.h (FALLTHROUGH_LABEL_P): Use private_flag instead of
8515 * varasm.c (default_binds_local_p_3): Formatting fix.
8517 2016-10-13 Bin Cheng <bin.cheng@arm.com>
8519 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Fix code
8521 (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
8522 Remove useless code.
8524 2016-10-13 Martin Liska <mliska@suse.cz>
8526 PR tree-optimization/77943
8527 * tree-ssa-tail-merge.c (merge_stmts_p): Do not merge BBs with
8528 a different EH landing pads.
8530 2016-10-13 Jakub Jelinek <jakub@redhat.com>
8533 * hooks.h (hook_tree_void_null): Declare.
8534 * hooks.c (hook_tree_void_null): New function.
8535 * langhooks.c (lhd_return_null_tree_v): Remove.
8536 * langhooks-def.h (lhd_return_null_tree_v): Remove.
8537 * cfgexpand.c (stack_protect_prologue): If guard_decl is NULL,
8538 set y to const0_rtx.
8539 * function.c (stack_protect_epilogue): Likewise.
8540 * config/tilepro/tilepro.c (TARGET_STACK_PROTECT_GUARD): Redefine
8541 if TARGET_THREAD_SSP_OFFSET is defined.
8542 * config/s390/s390.c (TARGET_STACK_PROTECT_GUARD): Likewise.
8543 * config/sparc/sparc.c (TARGET_STACK_PROTECT_GUARD): Likewise.
8544 * config/tilegx/tilegx.c (TARGET_STACK_PROTECT_GUARD): Likewise.
8545 * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Likewise.
8546 * config/i386/i386.c (TARGET_STACK_PROTECT_GUARD): Likewise.
8547 (ix86_stack_protect_guard): New function.
8549 2016-10-13 Richard Biener <rguenther@suse.de>
8551 * dwarf2out.c (tree_add_const_value_attribute): Do not try
8552 rtl_for_decl_init during early phase.
8553 (gen_variable_die): Do not create locations during early phase.
8554 (gen_label_die): Likewise.
8555 (decls_for_scope): Do not waste time handling BLOCK_NONLOCALIZED_VARs
8558 2016-10-12 Richard Biener <rguenther@suse.de>
8560 * tree-vrp.c (evrp_dom_walker::try_find_new_range): Renamed from
8561 try_add_new_range and made to eturn new range.
8562 (evrp_dom_walker::before_dom_children): Push op1 value range before
8563 pushing op0 value range.
8565 2016-10-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8567 PR tree-optimization/77937
8568 * gimple-ssa-strength-reduction.c (analyze_increments): Use
8569 POINTER_TYPE_P on the candidate type to determine whether
8570 candidates in this chain require pointer arithmetic.
8572 2016-10-12 Eric Botcazou <ebotcazou@adacore.com>
8574 * config/visium/visium.c (visium_gimplify_va_arg): Emit a big-endian
8575 correction if the type is smaller than a word.
8576 (visium_select_cc_mode): Add ... fall through ... comment.
8578 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
8580 * config/rs6000/rs6000.c (machine_function): Add new fields
8581 gpr_is_wrapped_separately and lr_is_wrapped_separately.
8582 (TARGET_SHRINK_WRAP_GET_SEPARATE_COMPONENTS,
8583 TARGET_SHRINK_WRAP_COMPONENTS_FOR_BB,
8584 TARGET_SHRINK_WRAP_DISQUALIFY_COMPONENTS,
8585 TARGET_SHRINK_WRAP_EMIT_PROLOGUE_COMPONENTS,
8586 TARGET_SHRINK_WRAP_EMIT_EPILOGUE_COMPONENTS,
8587 TARGET_SHRINK_WRAP_SET_HANDLED_COMPONENTS): Define.
8588 (rs6000_get_separate_components): New function.
8589 (rs6000_components_for_bb): New function.
8590 (rs6000_disqualify_components): New function.
8591 (rs6000_emit_prologue_components): New function.
8592 (rs6000_emit_epilogue_components): New function.
8593 (rs6000_set_handled_components): New function.
8594 (rs6000_emit_prologue): Don't emit LR save if lr_is_wrapped_separately.
8595 Don't emit GPR saves if gpr_is_wrapped_separately for that register.
8596 (restore_saved_lr): Don't restore LR if lr_is_wrapped_separately.
8597 (rs6000_emit_epilogue): Don't emit GPR restores if
8598 gpr_is_wrapped_separately for that register. Don't make a
8599 REG_CFA_RESTORE note for registers we did not restore, either.
8601 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
8603 * function.c (thread_prologue_and_epilogue_insns): Call
8604 try_shrink_wrapping_separate. Compute the prologue_seq afterwards,
8605 if it has possibly changed. Compute the split_prologue_seq and
8606 epilogue_seq later, too.
8607 * shrink-wrap.c: #include cfgbuild.h and insn-config.h.
8608 (dump_components): New function.
8609 (struct sw): New struct.
8611 (init_separate_shrink_wrap): New function.
8612 (fini_separate_shrink_wrap): New function.
8613 (place_prologue_for_one_component): New function.
8614 (spread_components): New function.
8615 (disqualify_problematic_components): New function.
8616 (emit_common_heads_for_components): New function.
8617 (emit_common_tails_for_components): New function.
8618 (insert_prologue_epilogue_for_components): New function.
8619 (try_shrink_wrapping_separate): New function.
8620 * shrink-wrap.h: Declare try_shrink_wrapping_separate.
8622 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
8624 * regrename.c (build_def_use): Invalidate chains that have a
8625 REG_CFA_RESTORE on some instruction.
8627 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
8629 * dce.c (delete_unmarked_insns): Don't delete instructions with
8630 a REG_CFA_RESTORE note.
8632 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
8634 * common.opt (-fshrink-wrap-separate): New flag.
8635 * doc/invoke.texi: Document it.
8636 * doc/tm.texi.in (Shrink-wrapping separate components): New subsection.
8637 * doc/tm.texi: Regenerate.
8638 * emit-rtl.h (struct rtl_data): New field shrink_wrapped_separate.
8639 * target.def (shrink_wrap): New hook vector.
8640 (get_separate_components, components_for_bb, disqualify_components,
8641 emit_prologue_components, emit_epilogue_components,
8642 set_handled_components): New hooks.
8644 2016-10-12 Segher Boessenkool <segher@kernel.crashing.org>
8646 * config/rs6000/rs6000.c (rs6000_return_in_memory): Warn for
8647 vector return by reference only if -Wpsabi.
8648 (rs6000_pass_by_reference): Similarly, for argument passing.
8650 2016-10-12 David Malcolm <dmalcolm@redhat.com>
8652 * function-tests.c: Include "print-rtl.h".
8653 (selftest::test_expansion_to_rtl): Call print_rtx_function on the
8654 function, and verify what is dumped.
8655 * print-rtl-function.c (print_edge): New function.
8656 (begin_any_block): New function.
8657 (end_any_block): New function.
8658 (can_have_basic_block_p): New function.
8659 (print_rtx_function): Track the basic blocks of insns in the
8660 chain, wrapping those that are within blocks within "(block)"
8661 directives. Remove the "(cfg)" directive.
8663 2016-10-12 David Malcolm <dmalcolm@redhat.com>
8665 * selftest.c (selftest::read_file): New function.
8666 (selftest::test_read_file): New function.
8667 (selftest::selftest_c_tests): Call test_read_file.
8668 * selftest.h (selftest::read_file): New decl.
8670 2016-10-12 Richard Biener <rguenther@suse.de>
8673 * cgraphunit.c (analyze_functions): Preserve cgraph nodes
8676 2016-10-12 Thomas Schwinge <thomas@codesourcery.com>
8678 * lto-streamer.c: Fix LTO_STREAMER_DEBUG build.
8680 * dwarf2out.c (dwarf2_lineno_debug_hooks): Use
8681 dwarf2out_assembly_start.
8683 * Makefile.in (SELFTEST_FLAGS): Add -nostdinc.
8685 * Makefile.in (SELFTEST_FLAGS): New variable.
8686 (s-selftest, selftest-gdb, selftest-valgrind): Use it.
8688 * vmsdbgout.c (vmsdbg_debug_hooks): Add filename parameter to
8691 2016-10-12 Georg-Johann Lay <avr@gjlay.de>
8693 * rtl.h (struct rtx_def): Comment how RTX_FLAGS will be
8694 dumped in RTL dumps.
8696 2016-10-12 Martin Liska <mliska@suse.cz>
8698 * gimple-fold.c (create_tmp_reg_or_ssa_name): New function.
8699 (gimple_fold_builtin_memory_op): Use the function.
8700 (gimple_fold_builtin_strchr): Likewise.
8701 (gimple_fold_builtin_strcat): Likewise.
8702 (gimple_build): Likewise.
8704 2016-10-12 Nathan Sidwell <nathan@acm.org>
8706 * diagnostic.c (diagnostc_report_diagnostic): Fix formatting.
8708 2016-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
8710 * dwarf2out.c (int_loc_descriptor): Generate opcodes for another
8711 equivalent 32-bit constant (modulo 2**32) when that yields
8712 smaller instructions.
8713 (size_of_int_loc_descriptor): Update accordingly.
8715 2016-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
8717 * dwarf2out.c (dwarf2out_early_global_decl): For nested
8718 functions, call dwarf2out_decl on the parent function first.
8720 2016-10-12 Richard Biener <rguenther@suse.de>
8722 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary constraint
8725 2016-10-12 Richard Biener <rguenther@suse.de>
8727 * tree-ssa-propagate.c
8728 (substitute_and_fold_dom_walker::before_dom_children): Do not
8729 ignore ASSERT_EXPRs but only preserve them.
8730 * tree-vrp.c (remove_range_assertions): Deal with ASSERT_EXPRs
8731 that have been propagated into.
8732 (vrp_finalize): Enable DCE for substitute_and_fold.
8734 2016-10-12 Richard Biener <rguenther@suse.de>
8736 PR tree-optimization/77920
8737 * tree-vrp.c (simplify_div_or_mod_using_ranges): Simplify.
8738 (simplify_min_or_max_using_ranges): Pass in gsi and use it.
8739 (simplify_abs_using_ranges): Likewise.
8740 (simplify_conversion_using_ranges): Likewise.
8741 (simplify_stmt_using_ranges): Adjust.
8743 2016-10-12 Jakub Jelinek <jakub@redhat.com>
8745 PR tree-optimization/77929
8746 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Handle
8747 (*ops)[ranges[i].idx]->op != ranges[i].exp case.
8749 2016-10-12 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
8752 * config/rs6000/vmx.md (vsx_concat_<mode>): The mtvsrdd instruction
8753 needs a base register for arg 1.
8755 2016-10-12 Jakub Jelinek <jakub@redhat.com>
8757 * common.opt (Wimplicit-fallthrough) Turn into alias to
8758 -Wimplicit-fallthrough=3. Remove EnabledBy.
8759 (Wimplicit-fallthrough=): New option.
8760 * gimplify.c (warn_implicit_fallthrough_r): Use
8761 OPT_Wimplicit_fallthrough_ instead of OPT_Wimplicit_fallthrough.
8762 * doc/invoke.texi (-Wimplicit-fallthrough): Document as alias
8763 to -Wimplicit-fallthrough=3.
8764 (-Wimplicit-fallthrough=): Document.
8766 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
8768 * config/sparc/sparc.c (emit_scc_insn): Remove direct support for EQ
8769 and GEU in DImode if TARGET_SUBXC.
8770 * config/sparc/sparc.md (seqdi<W:mode>_zero): Remove TARGET_SUBXC.
8771 (seqdi<W:mode>_zero_subxc): Delete.
8772 (neg_seqdi<W:mode>_zero): Remove TARGET_VIS3.
8773 (neg_seqdi<W:mode>_zero_vis3): Delete.
8774 (plus_seqdi<W:mode>_zero): Likewise.
8775 (minus_seqdi<W:mode>_zero): Likewise.
8776 (plus_plus_sltu<W:mode>): Accept only register.
8777 (addx<W:mode>): Likewise.
8778 (plus_sltu<W:mode>_vis3): Likewise.
8779 (plus_plus_sltu<W:mode>_vis3): Likewise.
8780 (neg_sgeu<W:mode>_vis3): Delete.
8781 (minus_sgeu<W:mode>_vis3): Likewise.
8782 (addxc<W:mode>): Accept only registers.
8783 (neg_sltu<W:mode>_subxc): Write %%g0 instead of 0.
8784 (minus_neg_sltu<W:mode>_subxc): Accept only register.
8785 (neg_plus_sltu<W:mode>_subxc): Likewise.
8786 (minus_sltu<W:mode>_subxc): Write %%g0 instead of 0.
8787 (minus_minus_sltu<W:mode>_subxc): Accept only register.
8788 (sgeu<W:mode>_insn_subxc): Delete.
8789 (plus_sgeu<W:mode>_subxc): Likewise.
8790 (subxc<W:mode>): Accept only register.
8791 (scc splitter): Split always GEU again.
8793 2016-10-11 Jeff Law <law@redhat.com>
8795 PR tree-optimization/77424
8796 * tree-ssa-threadupdate.c (thread_through_all_blocks): Remove
8797 dead conditionals. Assert that all e->aux fields are NULL.
8799 2016-10-11 David Malcolm <dmalcolm@redhat.com>
8801 * print-rtl.c (print_rtx): Rename "i" to "idx". Split out the
8802 operand-printing "switch" statement into...
8803 (print_rtx_operand_code_0): ...this new function, ...
8804 (print_rtx_operand_code_e): ...this new function, ...
8805 (print_rtx_operand_codes_E_and_V): ...this new function, ...
8806 (print_rtx_operand_code_i): ...this new function, ...
8807 (print_rtx_operand_code_r): ...this new function, ...
8808 (print_rtx_operand_code_u): ...this new function, ...
8809 (print_rtx_operand): ...and this new function.
8811 2016-10-11 Uros Bizjak <ubizjak@gmail.com>
8813 * config/alpha/alpha-passes.def: New file.
8814 * config/alpha/t-alpha: New file.
8815 * config/alpha/alpha-protos.h (gcc::context, rtl_opt_pass): Declare.
8816 (make_pass_handle_trap_shadows): New prototype.
8817 (make_pass_align_insns): Ditto.
8818 * config/alpha/alpha.c (alpha_option_override): Don't register
8820 * config.gcc (alpha*-*-*) Add alpha/t-alpha to tmake_file.
8822 2016-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
8825 * config/rs6000/rs6000.c (rs6000_init_builtins): Only create the
8826 distinct __ibm128 IBM extended double type if long doubles are
8827 128-bits and the default format for long double is IEEE 128-bit.
8829 2016-10-11 Richard Biener <rguenther@suse.de>
8831 * dwarf2out.c (DEBUG_STR_OFFSETS_SECTION): Remove conditional.
8832 (init_sections_and_labels): Use DEBUG_DWO_STR_OFFSETS_SECTION.
8833 (verify_die): New function.
8834 (dwarf2out_finish): Call it.
8835 (output_line_info): Handle case of -gsplit-dwarf without
8836 DWARF2_ASM_LINE_DEBUG_INFO.
8838 2016-10-11 Richard Biener <rguenther@suse.de>
8841 * gimple-low.c (lower_gimple_bind): Handle arbitrary common
8842 sub-chains of BLOCK_VARS and gimple_bind_vars.
8844 2016-10-11 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
8846 * config/i386/znver1.md : Fix imov/imovx load type reservations.
8848 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
8850 * config/sparc/sparc.opt (msubxc): New option.
8851 * doc/invoke.texi (SPARC options): Document it and tidy up.
8852 * doc/tm.texi.in (Condition Codes): Adjust SPARC example.
8853 * doc/tm.texi: Regenerate.
8854 * config/sparc/sparc-modes.def (CC_NOOV): Rename into...
8856 (CCX_NOOV): Rename into...
8860 * config/sparc/predicates.m (fcc_register_operand): Simplify.
8861 (fcc0_register_operand): Likewise.
8862 (icc_register_operand): New.
8863 (icc_or_fcc_register_operand): Simplify.
8864 (nz_comparison_operator): New.
8865 (c_comparison_operator): Likewise.
8866 (noov_compare_operator): Rename into...
8867 (icc_comparison_operator): ...this. Use above predicates.
8868 (noov_compare64_operator): Rename into...
8869 (v9_comparison_operator): ...this and tidy up.
8870 (fcc_comparison_operator): New.
8871 (icc_or_fcc_comparison_operator): Likewise.
8872 (v9_register_compare_operator): Rename info...
8873 (v9_register_comparison_operator): ...this.
8874 * config/sparc/sparc.c (TARGET_FIXED_CONDITION_CODE_REGS): Define.
8875 (sparc_option_override): Remove redundant VIS masks and add MASK_SUBXC
8877 (sparc_fixed_condition_code_regs): New function.
8878 (select_cc_mode): Remove ATTRIBUTE_UNUSED. Adjust for CCNZ/CCXNZ
8879 renaming and add support for CCC/CCXC.
8880 (output_cbranch): Likewise.
8881 (sparc_print_operand): Likewise.
8882 (gen_v9_scc): Remove obsolete assertion.
8883 (emit_scc_insn): Emit RTL directly for EQ and NE. Add direct support
8884 for EQ in DImode if TARGET_SUBXC. Remove test on TARGET_VIS3 for GEU.
8885 (output_cbcond): Remove bogus handling of CC modes.
8886 (sparc_register_move_cost): Return 100 for NO_REGS.
8887 * config/sparc/sparc.md (W): New mode iterator.
8888 (length): Adjust for noov_compare64_operator renaming.
8889 (cmpsi_sne): New instruction.
8890 (cmpdi_sne): Likewise.
8891 (seqdi_special): Delete.
8892 (seqdi_special): Likewise.
8893 (snesi<P:mode>_special): Likewise.
8894 (snedi_special): Likewise.
8895 (snedi_special_vis3): Likewise.
8896 (snesi patterns): Use W iterator.
8897 (snedi patterns): Likewise. Add TARGET_SUBXC patterns.
8898 (sltu patterns): Likewise.
8899 (sgeu patterns): Likewise.
8900 (scc splitter): Do not split GEU in DImode if TARGET_SUBXC.
8901 (normal_branch): Use icc_comparison_operator predicate.
8902 (inverted_branch): Likewise.
8903 (cbcond_sp32): Use comparison_operator predicate.
8904 (cbcond_sp64): Likewise.
8905 (normal_int_branch_sp64): Adjust for renaming
8906 (inverted_int_branch_sp64): Likewise.
8907 (mov<I:mode>_cc_reg_sp64): Likewise.
8908 (movsf_cc_reg_sp6): Likewise.
8909 (movdf_cc_reg_sp64): Likewise.
8910 (movtf_cc_reg_hq_sp64): Likewise.
8911 (movtf_cc_reg_sp64): Likewise.
8912 (mov<I:mode>_cc_v9): Use icc_or_fcc_comparison_operator predicate.
8913 (movsf_cc_v9): Likewise.
8914 (movdf_cc_v9): Likewise.
8915 (movtf_cc_hq_v9): Likewise.
8916 (movtf_cc_v9): Likewise.
8917 (adddi3): Call gen_adddi3_sp32.
8918 (adddi3_insn_sp32): Rename to...
8919 (adddi3_sp32): ...this. Accept only register_operand as operand #1
8920 and use CCCmode for the carry.
8921 (addx_extend_sp32): Use CCCmode for the carry.
8922 (addx_extend_sp64): Delete.
8923 (adddi3_extend_sp32): Use CCCmode for the carry.
8924 (cmp_plus patterns): Use CCNZ/CCXNZ mode and add C variants.
8925 (subdi3): Call gen_subdi3_sp32.
8926 (subdi3_insn_sp32): Rename to...
8927 (subdi3_sp32): ...this and use CCmode for the carry.
8928 (subx_extend_sp32): Use CCCmode for the carry.
8929 (subx_extend_sp64): Delete.
8930 (subdi3_extend_sp32): Use CCmode for the carry.
8931 (cmp_minus patterns): Use CCNZ/CCXNZ mode and add C variants.
8932 (negdi3): Call gen_negdi3_sp32.
8933 (negdi3_sp32): Use CCCmode for the carry.
8934 (cmp_neg patterns): Use CCNZ/CCXNZ mode and add C variants.
8935 (cmp_nz_ashift_1): Use CCNZ mode.
8936 (cmp_nz_set_ashift_1): Likewise.
8937 (ctrapsi4): Use comparison_operator predicate.
8938 (ctrapdi4): Likewise.
8939 (trapsi_insn): Use icc_comparison_operator predicate.
8940 (trapdi_insn): Likewise.
8941 (edge8 patterns): Use CCNZmode.
8942 (edge16 patterns): Likewise.
8943 (edge32 patterns): Likewise.
8945 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
8947 * config/visium/visium-modes.def (CC_NOOV): Rename into...
8949 (CC_BTST): Rename into...
8951 * config/visium/predicates.md (real_add_operand): New.
8952 (visium_btst_operator): Rename into...
8953 (visium_equality_comparison_operator): ...this.
8954 (visium_noov_operator): Rename into...
8955 (visium_nz_comparison_operator): ...this.
8956 (visium_c_comparison_operator): New.
8957 (visium_branch_operator): Adjust and deal with all CC modes.
8958 * config/visium/visium.c (visium_adjust_cost): Adjust.
8959 (visium_split_double_add): Use the *_set_carry patterns.
8960 (visium_select_cc_mode): Add support for CCC mode and adjust.
8961 (output_cbranch): Adjust and use the carry-based operators for
8962 floating-point comparisons.
8963 * config/visium/visium.md (flags_subst_arith): Adjust.
8964 (addsi3_insn_set_carry): New instruction.
8965 (subsi3_insn_set_carry): Likewise.
8966 (negsi2_insn_set_carry): Likewise.
8968 (cmp<mode>_sne): Likewise.
8969 (cbranch<mode>4): Use ordered_comparison_operator.
8970 (cbranch<mode>4_insn): Likewise.
8971 (cbranchsi4_btst_insn): Adjust.
8973 2016-10-11 Tom de Vries <tom@codesourcery.com>
8976 * builtins.c (std_canonical_va_list_type): Remove RECORD_TYPE
8979 2016-10-11 Eric Botcazou <ebotcazou@adacore.com>
8981 * tree.h (build_complex_type): Add second parameter with default.
8982 * tree.c (build_complex_type): Add NAMED second parameter and adjust
8983 recursive call. Create a TYPE_DECL only if NAMED is true.
8984 (build_common_tree_nodes): Pass true in calls to build_complex_type.
8986 2016-10-11 Georg-Johann Lay <avr@gjlay.de>
8988 New avr-passes.def to register AVR specific passes.
8990 * config/avr/avr-passes.def: New file.
8991 * config/avr/t-avr (PASSES_EXTRA): Add avr-passes.def.
8992 * config/avr/avr-protos.h (gcc::context, rtl_opt_pass): Declare.
8993 (make_avr_pass_recompute_note): New proto.
8994 * config/avr/avr.c (make_avr_pass_recompute_notes): New function.
8995 (avr_pass_recompute_notes): Use anonymous namespace.
8996 (avr_register_passes): Remove function...
8997 (avr_option_override): ...and its call.
8999 2016-10-11 Robert Suchanek <robert.suchanek@imgtec.com>
9001 * config/mips/mips-cpus.def: Replace PTF_AVOID_BRANCHLIKELY with
9002 PTF_AVOID_BRANCHLIKELY_ALWAYS for generic architecture and with
9003 PTF_AVOID_BRANCHLIKELY_SPEED for others.
9004 (mips2, mips3, mips4): Add PTF_AVOID_BRANCHLIKELY_SIZE to tune
9006 * config/mips/mips.c (mips_option_override): Enable the branch
9007 likely depending on the tune flags and optimization level.
9008 * config/mips/mips.h (PTF_AVOID_BRANCHLIKELY): Remove.
9009 (PTF_AVOID_BRANCHLIKELY_SPEED): Define.
9010 (PTF_AVOID_BRANCHLIKELY_SIZE): Likewise.
9011 (PTF_AVOID_BRANCHLIKELY_ALWAYS): Likewise.
9013 2016-10-11 Richard Biener <rguenther@suse.de>
9015 * lto-streamer-out.c (collect_block_tree_leafs): New helper.
9016 (output_function): Properly stream the whole block tree.
9017 * lto-streamer-in.c (input_function): Likewise.
9019 2016-10-11 Marek Polacek <polacek@redhat.com>
9021 * Makefile.in (C_COMMON_OBJS): Add c-family/c-warn.o.
9023 2016-10-11 Kugan Vivekanandarajah <kuganv@linaro.org>
9025 * tree-vrp.c (evrp_dom_walker::try_add_new_range): New.
9026 (evrp_dom_walker::before_dom_children): Infer and push new value
9027 ranges for x in y < x.
9029 2016-10-10 Joseph Myers <joseph@codesourcery.com>
9032 * config/ia64/ia64.c (ia64_libgcc_floating_mode_supported_p)
9033 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
9034 * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Likewise.
9035 * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Likewise.
9036 * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
9037 (IA64_NO_LIBGCC_TFMODE): Likewise.
9039 2016-10-11 Kugan Vivekanandarajah <kuganv@linaro.org>
9041 * tree-vrp.c (vrp_intersect_ranges_1): Allocate bitmap before
9044 2016-10-10 Andreas Tobler <andreast@gcc.gnu.org>
9046 * config.gcc: Add aarch64-*-freebsd* support.
9047 * config.host: Likewise.
9048 * config/aarch64/aarch64-freebsd.h: New file.
9049 * config/aarch64/t-aarch64-freebsd: Ditto.
9051 2016-10-10 Jeff Law <law@redhat.com>
9053 PR tree-optimization/71947
9054 * tree-ssa-dom.c (cprop_into_stmt): Avoid replacing A with B, then
9055 B with A within a single statement.
9057 2016-10-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9059 PR tree-optimization/77824
9060 * gimple-ssa-strength-reduction.c (stmt_cost): Explicitly return
9061 zero cost for copies.
9062 (find_candidates_dom_walker::before_dom_children): Replace
9063 MODIFY_EXPR with SSA_NAME.
9064 (replace_mult_candidate): Likewise.
9065 (replace_profitable_candidates): Likewise.
9067 2016-10-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9069 * config/s390/s390.h: Wrap more macros args in brackets and fix
9071 2016-10-10 Georg-Johann Lay <avr@gjlay.de>
9073 * config/avr/gen-avr-mmcu-texi.c (string.h): Include.
9075 2016-10-10 Andreas Schwab <schwab@suse.de>
9078 * config/ia64/ia64.md ("doloop_end"): Reject if mode of loop
9079 pseudo is not DImode.
9081 2016-10-10 Claudiu Zissulescu <claziss@synopsys.com>
9083 * common/config/arc/arc-common.c (arc_option_optimization_table):
9084 Remove compact casesi option.
9085 * config/arc/arc.c (arc_override_options): Use compact casesi
9086 option only for pre-ARCv2 cores.
9087 * doc/invoke.texi (mcompact-casesi): Update text.
9089 2016-10-09 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
9091 * config/rs6000/rs6000.h (TARGET_EFFICIENT_OVERLAPPING_UNALIGNED):
9092 Add macro to say we can efficiently handle overlapping unaligned
9094 * config/rs6000/rs6000.c (expand_block_compare): Avoid generating
9095 poor code for processors older than p8.
9097 2016-10-09 Eric Botcazou <ebotcazou@adacore.com>
9099 * gen-pass-instances.awk: Remove GNUism.
9101 2016-10-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9103 * ipa-prop.c (ipcp_transform_function): Set fields m_vr and bits to
9104 NULL of (*ipcp_transformations)][node->uid].
9106 2016-10-09 John David Anglin <danglin@gcc.gnu.org>
9108 * config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
9109 (MALLOC_ABI_ALIGNMENT): Define.
9111 2016-10-09 Jakub Jelinek <jakub@redhat.com>
9113 * tree-ssa.c (target_for_debug_bind, verify_phi_args,
9114 ssa_undefined_value_p, maybe_optimize_var): Use VAR_P and/or
9115 VAR_OR_FUNCTION_DECL_P macros.
9116 * tree-chkp.c (chkp_register_var_initializer, chkp_make_static_bounds,
9117 chkp_get_bounds_for_decl_addr, chkp_parse_array_and_component_ref,
9118 chkp_find_bounds_1): Likewise.
9119 * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Likewise.
9120 * hsa-gen.c (get_symbol_for_decl): Likewise.
9121 * cgraphunit.c (check_global_declaration, analyze_functions,
9122 handle_alias_pairs, thunk_adjust, cgraph_node::expand_thunk):
9124 * gimple-fold.c (can_refer_decl_in_current_unit_p,
9125 canonicalize_constructor_val, gimple_get_virt_method_for_vtable):
9127 * tree.c (set_decl_section_name, copy_node_stat,
9128 need_assembler_name_p, free_lang_data_in_decl, find_decls_types_r,
9129 merge_dllimport_decl_attributes, handle_dll_attribute,
9130 decl_init_priority_insert, auto_var_in_fn_p, array_at_struct_end_p,
9131 verify_type): Likewise.
9132 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior,
9133 find_explicit_erroneous_behavior): Likewise.
9134 * sdbout.c (sdbout_toplevel_data, sdbout_late_global_decl): Likewise.
9135 * ipa.c (process_references): Likewise.
9136 * tree-chkp-opt.c (chkp_get_check_result): Likewise.
9137 * varasm.c (get_block_for_decl, use_blocks_for_decl_p, make_decl_rtl,
9138 notice_global_symbol, assemble_variable, mark_decl_referenced,
9139 build_constant_desc, output_constant_def_contents, do_assemble_alias,
9140 make_decl_one_only, default_section_type_flags,
9141 categorize_decl_for_section, default_encode_section_info): Likewise.
9142 * trans-mem.c (requires_barrier): Likewise.
9143 * gimple-expr.c (mark_addressable): Likewise.
9144 * cfgexpand.c (add_scope_conflicts_1, expand_one_var,
9145 expand_used_vars_for_block, clear_tree_used, stack_protect_decl_p,
9146 expand_debug_expr): Likewise.
9147 * tree-dump.c (dequeue_and_dump): Likewise.
9148 * ubsan.c (instrument_bool_enum_load): Likewise.
9149 * tree-pretty-print.c (print_declaration): Likewise.
9150 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
9151 * tree-ssa-uninit.c (warn_uninitialized_vars): Likewise.
9152 * asan.c (asan_protect_global, instrument_derefs): Likewise.
9153 * tree-into-ssa.c (rewrite_stmt, maybe_register_def,
9154 pass_build_ssa::execute): Likewise.
9155 * var-tracking.c (var_debug_decl, track_expr_p): Likewise.
9156 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost, split_address_cost):
9158 * ipa-split.c (test_nonssa_use, consider_split, mark_nonssa_use):
9160 * tree-inline.c (insert_debug_decl_map, remap_ssa_name,
9161 can_be_nonlocal, remap_decls, copy_debug_stmt,
9162 initialize_inlined_parameters, add_local_variables,
9163 reset_debug_binding, replace_locals_op): Likewise.
9164 * dse.c (can_escape): Likewise.
9165 * ipa-devirt.c (compare_virtual_tables, referenced_from_vtable_p):
9167 * tree-diagnostic.c (default_tree_printer): Likewise.
9168 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
9169 unpack_ts_decl_with_vis_value_fields,
9170 lto_input_ts_decl_common_tree_pointers): Likewise.
9171 * builtins.c (builtin_save_expr, fold_builtin_expect,
9172 readonly_data_expr): Likewise.
9173 * tree-ssa-structalias.c (new_var_info, get_constraint_for_ssa_var,
9174 create_variable_info_for, set_uids_in_ptset, visit_loadstore):
9176 * gimple-streamer-out.c (output_gimple_stmt): Likewise.
9177 * gimplify.c (force_constant_size, gimplify_bind_expr,
9178 gimplify_decl_expr, gimplify_var_or_parm_decl,
9179 gimplify_compound_lval, gimplify_init_constructor,
9180 gimplify_modify_expr, gimplify_asm_expr, gimplify_oacc_declare,
9181 gimplify_type_sizes): Likewise.
9182 * cgraphbuild.c (record_reference, record_type_list, mark_address,
9183 mark_load, mark_store, pass_build_cgraph_edges::execute): Likewise.
9184 * tree-ssa-live.c (mark_all_vars_used_1, remove_unused_scope_block_p,
9185 remove_unused_locals): Likewise.
9186 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p, ptrs_compare_unequal,
9187 ref_maybe_used_by_call_p_1, call_may_clobber_ref_p_1): Likewise.
9188 * function.c (instantiate_expr, instantiate_decls_1,
9189 setjmp_vars_warning, add_local_decl): Likewise.
9190 * alias.c (ao_ref_from_mem, get_alias_set, compare_base_symbol_refs):
9192 * tree-stdarg.c (find_va_list_reference, va_list_counter_struct_op,
9193 va_list_ptr_read, va_list_ptr_write, check_all_va_list_escapes,
9194 optimize_va_list_gpr_fpr_size): Likewise.
9195 * tree-nrv.c (pass_nrv::execute): Likewise.
9196 * tsan.c (instrument_expr): Likewise.
9197 * tree-ssa-dce.c (remove_dead_stmt): Likewise.
9198 * vtable-verify.c (verify_bb_vtables): Likewise.
9199 * tree-dfa.c (ssa_default_def, set_ssa_default_def,
9200 get_ref_base_and_extent): Likewise.
9201 * toplev.c (wrapup_global_declaration_1, wrapup_global_declaration_2):
9203 * tree-sra.c (static bool constant_decl_p, find_var_candidates,
9204 analyze_all_variable_accesses): Likewise.
9205 * tree-nested.c (get_nonlocal_debug_decl,
9206 convert_nonlocal_omp_clauses, note_nonlocal_vla_type,
9207 note_nonlocal_block_vlas, convert_nonlocal_reference_stmt,
9208 get_local_debug_decl, convert_local_omp_clauses,
9209 convert_local_reference_stmt, nesting_copy_decl, remap_vla_decls):
9211 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Likewise.
9212 * stmt.c (decl_overlaps_hard_reg_set_p): Likewise.
9213 * dbxout.c (dbxout_late_global_decl, dbxout_type_fields,
9214 dbxout_symbol, dbxout_common_check): Likewise.
9215 * expr.c (expand_assignment, expand_expr_real_2, expand_expr_real_1,
9216 string_constant): Likewise.
9217 * hsa.c (hsa_get_declaration_name): Likewise.
9218 * passes.c (rest_of_decl_compilation): Likewise.
9219 * tree-ssanames.c (make_ssa_name_fn): Likewise.
9220 * tree-streamer-out.c (pack_ts_decl_common_value_fields,
9221 pack_ts_decl_with_vis_value_fields,
9222 write_ts_decl_common_tree_pointers): Likewise.
9223 * stor-layout.c (place_field): Likewise.
9224 * symtab.c (symtab_node::maybe_create_reference,
9225 symtab_node::verify_base, symtab_node::make_decl_local,
9226 symtab_node::copy_visibility_from,
9227 symtab_node::can_increase_alignment_p): Likewise.
9228 * dwarf2out.c (add_var_loc_to_decl, tls_mem_loc_descriptor,
9229 decl_by_reference_p, reference_to_unused, rtl_for_decl_location,
9230 fortran_common, add_location_or_const_value_attribute,
9231 add_scalar_info, add_linkage_name, set_block_abstract_flags,
9232 local_function_static, gen_variable_die, dwarf2out_late_global_decl,
9233 optimize_one_addr_into_implicit_ptr,
9234 optimize_location_into_implicit_ptr): Likewise.
9235 * gimple-low.c (record_vars_into): Likewise.
9236 * ipa-visibility.c (update_vtable_references): Likewise.
9237 * tree-ssa-address.c (fixed_address_object_p, copy_ref_info):
9239 * lto-streamer-out.c (tree_is_indexable, get_symbol_initial_value,
9240 DFS::DFS_write_tree_body, write_symbol): Likewise.
9241 * langhooks.c (lhd_warn_unused_global_decl,
9242 lhd_set_decl_assembler_name): Likewise.
9243 * attribs.c (decl_attributes): Likewise.
9244 * except.c (output_ttype): Likewise.
9245 * varpool.c (varpool_node::get_create, ctor_for_folding,
9246 varpool_node::assemble_decl, varpool_node::create_alias): Likewise.
9247 * fold-const.c (fold_unary_loc): Likewise.
9248 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
9249 ipa_find_agg_cst_from_init): Likewise.
9250 * omp-low.c (expand_omp_regimplify_p, expand_omp_taskreg,
9251 expand_omp_target, lower_omp_regimplify_p,
9252 grid_reg_assignment_to_local_var_p, grid_remap_prebody_decls,
9253 find_link_var_op): Likewise.
9254 * tree-chrec.c (chrec_contains_symbols): Likewise.
9255 * tree-cfg.c (verify_address, verify_expr, verify_expr_location_1,
9256 gimple_duplicate_bb, move_stmt_op, replace_block_vars_by_duplicates,
9257 execute_fixup_cfg): Likewise.
9259 PR tree-optimization/77901
9260 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Only optimize
9261 if ranges[i].exp is SSA_NAME when looking for >= and only when
9262 ranges[i].exp is NULL or SSA_NAME when looking for the other
9265 2016-10-09 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9267 * ipa-cp.c (ipcp_alignment_lattice): Remove.
9268 (ipcp_param_lattices): Remove field alignment.
9269 (print_all_lattices): Remove call to ipcp_alignment_lattice::print.
9270 (set_all_contains_variable): Remove call to
9271 ipcp_alignment_lattice::set_to_bottom.
9272 (initialize_node_lattices): Likewise.
9273 (propagate_alignment_accross_jump_function): Remove.
9274 (propagate_constants_accross_call): Remove call to
9275 propagate_alignment_accross_jump_function.
9276 (ipcp_store_alignment_results): Remove.
9277 (ipcp_driver): Remove call to ipcp_store_alignment_results.
9278 (propagate_bits_accross_jump_function): Handle ancestor jump function.
9279 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Remove
9280 pretty-printing of alignment jump function.
9281 (ipa_set_jf_unknown): Remove assignment to jfunc->alignment.known.
9282 (ipa_compute_jump_functions_for_edge): Adjust ipa_bits jump function for
9283 alignments and remove computing ipa_alignment jump function.
9284 (ipa_node_params_t::duplicate): Remove copying of src_trans->alignments.
9285 (ipa_write_jump_functions): Remove streaming for ipa_alignment.
9286 (ipa_read_jump_function): Remove reading of ipa_alignment.
9287 (write_ipcp_transformation_info): Remove streaming for alignment
9288 propagation summary.
9289 (read_ipcp_transformation_info): Remove reading of alignment
9290 propagation summary.
9291 (ipcp_update_alignments): Remove.
9292 (ipcp_update_bits): Adjust to set alignment for parameters of pointer
9294 (ipcp_transform_function): Remove call to ipcp_update_alignments()
9295 and remove assignment to (*ipcp_transformations)[node->uid].alignments.
9296 * ipa-prop.h (ipa_alignment): Remove.
9297 (ipa_jump_func): Remove field alignment.
9298 (ipcp_transformation_summary): Remove field alignments.
9299 * doc/invoke.texi: Mark fipa-cp-alignment as obsolete.
9300 * opts.c (default_options_table): Remove entry for fipa-cp-alignment.
9301 (enable_fdo_optimizations): Remove checking for fipa-cp-alignment.
9303 2016-10-08 Eric Botcazou <ebotcazou@adacore.com>
9305 * config/sparc/sparc.h (FIXED_REGISTERS): Add %icc.
9307 * config/visium/visium.c (visium_expand_int_cstore): Revert latest
9309 (visium_expand_fp_cstore): Likewise.
9311 2016-10-08 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9313 * diagnostic-core.h (warning_at_rich_loc_n): Declare.
9314 * diagnostic.c (warning_at_rich_loc_n): New function.
9315 (diagnostic_n_impl_richloc): Likewise.
9316 (diagnostic_n_impl): Move most of the function to
9317 diagnostic_n_impl_richloc and call it.
9319 2016-10-08 Jakub Jelinek <jakub@redhat.com>
9321 * gen-pass-instances.awk: Rewritten.
9322 * Makefile.in (pass-instances.def): Depend on $(PASSES_EXTRA), pass
9323 $(PASSES_EXTRA) after passes.def to the script.
9324 * config/i386/t-i386 (PASSES_EXTRA): Add i386-passes.def.
9325 * config/i386/i386-passes.def: New file.
9326 * config/i386/i386-protos.h (make_pass_insert_vzeroupper,
9327 make_pass_stv): Declare.
9328 * config/i386/i386.c (pass_stv::pass_stv): Initialize timode_p to
9330 (pass_stv::gate): Depending on timode_p member require TARGET_64BIT
9332 (pass_stv::clone, pass_stv::set_pass_param): New methods.
9333 (pass_stv::timode_p): New non-static data member.
9334 (ix86_option_override): Don't register passes here.
9336 * doc/invoke.texi: Document accepting Else, fallthrough.
9338 * doc/invoke.texi (-Wimplicit-fallthrough): Document FALLTHRU comment
9341 * doc/invoke.texi (-Wimplicit-fallthrough): Document the accepted
9342 FALLTHRU comment styles.
9344 2016-10-07 Andrew Pinski <apinski@cavium.com>
9346 * config/aarch64/aarch64-arches.def (AARCH64_ARCH): #undef at the end.
9347 * config/aarch64/aarch64-cores.def (AARCH64_CORE): Likewise.
9348 * config/aarch64/aarch64-fusion-pairs.def (AARCH64_FUSION_PAIR):
9350 * config/aarch64/aarch64-option-extensions.def (AARCH64_OPT_EXTENSION):
9352 * config/aarch64/aarch64-tuning-flags.def (AARCH64_EXTRA_TUNING_OPTION):
9354 * config/aarch64/aarch64-opts.h (AARCH64_CORE): Don't #undef here.
9355 (AARCH64_ARCH): Likewise.
9356 * common/config/aarch64/aarch64-common.c (AARCH64_OPT_EXTENSION):
9358 (AARCH64_CORE): Likewise.
9359 (AARCH64_ARCH): Likewise.
9360 * config/aarch64/aarch64-protos.h (AARCH64_FUSION_PAIR): Likewise.
9361 (AARCH64_EXTRA_TUNING_OPTION): Likewise.
9362 * config/aarch64/aarch64.c (AARCH64_FUION_PAIR): Likewise.
9363 (AARCH64_EXTRA_TUNING_OPTION): Likewise.
9364 (AARCH64_ARCH): Likewise.
9365 (AARCH64_CORE): Likewise.
9366 * config/aarch64/aarch64.h (AARCH64_CORE): Likewise.
9367 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Likewise.
9368 (AARCH64_CORE): Likewise.
9369 (AARCH64_ARCH): Likewise.
9371 2016-10-06 Michael Meissner <meissner@linux.vnet.ibm.com>
9373 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Split
9374 -mfloat128 into -mfloat128-type that enables the IEEE 128-bit
9375 floating point type infrastructre, and -mfloat128 that enables the
9376 keyword. Define __FLOAT128__ if -mfloat128, and __FLOAT128_TYPE__
9377 if -mfloat128-type. Define __ibm128 to be long double by default.
9378 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print whether
9379 the IEEE 128-bit floating point type infrastructure should
9380 automatically be enabled.
9381 (rs6000_init_hard_regno_mode_ok): Switch to use -mfloat128-type
9382 instead of -mfloat128 to enable KFmode.
9383 (rs6000_option_override_internal): Split the option -mfloat128
9384 into -mfloat128-type and -mfloat128. On Linux PowerPC 64-bit
9385 systems, automatically set -mfloat128-type, but don't enable it on
9386 other operating systems. Move setting the long double size and
9387 IEEE quad support before the IEEE 128-bit floating point changes.
9388 (rs6000_init_builtins): Do not create a unique type for __ibm128
9389 if long double is IBM extended double, instead rely on __ibm128
9390 being defined as 'long double'. If -mfloat128-type and not
9391 -mfloat128, create the KFmode type with an undocumented __ieee128
9393 (rs6000_init_libfuncs): Use -mfloat128-type instead of
9394 -mfloat128 for tests about the types, but keep tests for
9395 -mfloat128 to enable the keyword support.
9396 (rs6000_complex_function_value): Likewise.
9397 (rs6000_scalar_mode_supported_p): Likewise.
9398 (rs6000_floatn_mode): Likewise.
9399 (rs6000_c_mode_for_suffix): Likewise.
9400 (rs6000_opt_masks): Add -mfloat128-type.
9401 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add support for
9402 -mfloat128-type being split from -mfloat128. Add
9403 -mfloat128-hardware, which was missing.
9404 * config/rs6000/rs6000.opt (-mfloat128): Split -mfloat128 into
9405 -mfloat128 and -mfloat128-type:
9406 (-mfloat128-type): Likewise.
9407 * config/rs6000/linux64.h (TARGET_FLOAT128_ENABLE_TYPE): Define so
9408 that 64-bit Linux systems with enable -mfloat128-type by default
9410 * config/rs6000/rs6000.h (TARGET_FLOAT128_ENABLE_TYPE): Likewise.
9411 (FLOAT128_VECTOR_P): Switch IEEE 128-bit floating points to use
9412 -mfloat128-type instead of -mfloat128.
9413 (FLOAT128_2REG_P): Likewise.
9414 (MASK_FLOAT128_TYPE): Likewise.
9415 (ALTIVEC_ARG_MAX_RETURN): Likewise.
9416 (RS6000_BTM_FLOAT128): Likewise.
9417 (TARGET_FLOAT128): Poison old identifiers.
9418 (OPTION_MASK_FLOAT128): Likewise.
9419 (MASK_FLOAT128): Likewise.
9420 * config/rs6000/rs6000.md (FP): Likewise.
9421 (FLOAT128): Likewise.
9422 (fix_trunc<mode>di2): Likewise.
9423 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
9424 (floatdi<mode>2): Likewise.
9425 (floatuns<SDI:mode><IEEE128:mode>2): Likewise.
9426 (neg<mode>2, FLOAT128 iterator): Likewise.
9427 (abs<mode>2, FLOAT128 iterator): Likewise.
9428 (ieee_128bit_negative_zero): Likewise.
9429 (ieee_128bit_vsx_neg<mode>2): Likewise.
9430 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
9431 (ieee_128bit_vsx_abs<mode>2): Likewise.
9432 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
9433 (ieee_128bit_vsx_nabs<mode>2): Likewise.
9434 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
9435 (extendiftf2): Likewise.
9436 (extendifkf2): Likewise.
9437 (extendtfkf2): Likewise.
9438 (trunciftf2): Likewise.
9439 (truncifkf2): Likewise.
9440 (trunckftf2): Likewise.
9441 (trunctfif2): Likewise.
9442 (extendkftf2): Likewise.
9443 (trunctfkf2): Likewise.
9445 2016-10-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9447 * simplify-rtx.c (simplify_immed_subreg): Zero-initialize tmp array
9448 before merging in bytes to pass down to real_from_target.
9450 2016-10-07 Richard Biener <rguenther@suse.de>
9452 * tree-ssa-propagate.c (replace_phi_args_in): Remove no longer
9454 (substitute_and_fold_dom_walker::before_dom_children):
9455 Substitute and fold before pass specific folding to avoid
9456 feeding that with SSA names that will be later released.
9457 * tree-ssa-ccp.c (get_value_for_expr): Guard for new SSA names
9458 introduced by folding and visited by evaluate_stmt called during
9460 (likely_value): Likewise.
9461 (evaluate_stmt): Likewise.
9462 * tree-vrp.c (simplify_truth_ops_using_ranges): Fold modified stmt.
9463 (simplify_div_or_mod_using_ranges): Likewise.
9464 (simplify_min_or_max_using_ranges): Likewise.
9465 (simplify_abs_using_ranges): Likewise.
9466 (simplify_conversion_using_ranges): Likewise.
9467 (simplify_float_conversion_using_ranges): Likewise.
9468 (simplify_stmt_using_ranges): Likewise.
9470 2016-10-07 Marek Polacek <polacek@redhat.com>
9472 * gimplify.c (should_warn_for_implicit_fallthrough): Check for
9473 FALLTHROUGH_LABEL_P here...
9474 (warn_implicit_fallthrough_r): ...not here.
9476 2016-10-07 Bernd Schmidt <bschmidt@redhat.com>
9478 PR tree-optimization/77880
9479 * expr.c (by_pieces_ninsns): Use unsigned HOST_WIDE_INT where
9482 2016-10-07 Marek Polacek <polacek@redhat.com>
9485 * gimplify.c (last_stmt_in_scope): Add check for FALLTHROUGH ().
9487 2016-10-07 Richard Biener <rguenther@suse.de>
9489 * bitmap.h: Document constraints on bitmap modification while
9492 2016-10-07 Richard Biener <rguenther@suse.de>
9494 * bitmap.c (bitmap_elem_to_freelist): Set indx to -1.
9495 * bitmap.h (bmp_iter_set): When advancing to the next element
9496 check that we didn't remove the current one.
9497 (bmp_iter_and): Likewise.
9498 (bmp_iter_and_compl): Likewise.
9499 * tree-ssa.c (release_defs_bitset): Do not remove worklist bit
9500 we currently iterate on but keep a one-level queue.
9501 * sched-deps.c (remove_from_deps): Do not clear current bit
9502 but keep a one-level queue.
9504 2016-10-07 Jakub Jelinek <jakub@redhat.com>
9506 PR tree-optimization/77664
9507 * tree-ssa-reassoc.c (update_range_test): Also clear low and high
9508 for the other ranges.
9509 (optimize_range_tests_diff): Fix up formatting.
9510 (optimize_range_tests_var_bound): New function.
9511 (optimize_range_tests): Use it.
9513 2016-10-07 Martin Liska <mliska@suse.cz>
9515 * coverage.c (build_gcov_exit_decl): Fix priority what
9516 should be really 99.
9518 2016-10-07 Richard Biener <rguenther@suse.de>
9520 * gimple-low.c (lower_gimple_bind): Clear DECL_CHAIN of
9521 vars in gimple_bind_vars but not in BLOCK_VARS.
9523 2016-10-07 Richard Biener <rguenther@suse.de>
9525 PR tree-optimization/77879
9526 * tree-ssa-structalias.c (handle_const_call): Properly handle
9528 (handle_pure_call): Likewise.
9530 2016-10-06 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
9532 * config/rs6000/rs6000.c (rs6000_elf_asm_out_constructor)
9533 (rs6000_elf_asm_out_destructor): increase size of buf to avoid
9536 2016-10-06 Andrew Pinski <apinski@cavium.com>
9538 * config/aarch64/aarch64-cores.def: Add a comment before each
9541 2016-10-06 Kugan Vivekanandarajah <kuganv@linaro.org>
9543 PR tree-optimization/77862
9544 * tree-vrp.c (add_equivalence): Use get_value_range so that
9545 num_vr_values is checked before accessing vr_values.
9547 2016-10-06 Kugan Vivekanandarajah <kuganv@linaro.org>
9549 * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
9552 2016-10-05 Jeff Law <law@redhat.com>
9554 PR tree-optimization/71661
9555 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Handle case when
9556 removal of a forwarder exposes a new natural loop.
9558 2016-10-06 Uros Bizjak <ubizjak@gmail.com>
9560 * config/i386/sse.md (andnot<mode>3): Add FALLTHRU comments.
9561 Introduce ssesuffix variable.
9562 (<mask_codefor><code><mode>3<mask_name>): Ditto.
9563 (*<code><mode>3): Ditto.
9565 2016-10-06 Jan Hubicka <hubicka@ucw.cz>
9567 * postreload.c (reload_cse_simplify): Skip also USE when detecting
9570 2016-10-06 Richard Biener <rguenther@suse.de>
9572 PR tree-optimization/77855
9573 * tree-ssa-pre.c (prune_clobbered_mems): Queue exprs to remove
9574 instead of removing the current item while iterating over the set
9577 2016-10-06 James Clarke <jrtc27@jrtc27.com>
9578 Eric Botcazou <ebotcazou@adacore.com>
9581 * config/sparc/sparc.c (classify_data_t): Remove int_regs field.
9582 (classify_registers): Don't set it
9583 (function_arg_slotno): Don't initialize and test it. Tidy up.
9585 2016-10-06 Richard Biener <rguenther@suse.de>
9587 PR tree-optimization/77839
9588 * tree-ssa-sccvn.c (set_ssa_val_to): Forbid value -> constant value
9591 2016-10-06 Martin Liska <mliska@suse.cz>
9593 * gcc.c: Set -fprofile-update=atomic when profiling is
9594 enabled and -pthread is set. Warn when one combines
9595 -pthread and -fprofile-update=single for an app using
9598 2016-10-06 Martin Liska <mliska@suse.cz>
9601 * expmed.h (mul_highpart_cost_ptr): Add an gcc_assert.
9602 * gimple-ssa-strength-reduction.c (slsr_process_cast):
9603 Initialize a pointer to NULL.
9604 (slsr_process_copy): Likewise.
9605 * input.c (location_get_source_line): Likewise.
9606 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
9608 2016-10-05 Andrew Senkevich <andrew.senkevich@intel.com>
9610 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PCOMMIT_UNSET,
9611 OPTION_MASK_ISA_PCOMMIT_SET): Deleted definitions.
9612 (ix86_handle_option): Deleted handle of OPT_mpcommit.
9613 * config.gcc: Deleted pcommitintrin.h
9614 * config/i386/pcommitintrin.h: Deleted file.
9615 * config/i386/cpuid.h (bit_PCOMMIT): Deleted.
9616 * config/i386/driver-i386.c (host_detect_local_cpu): Deleted pcommit
9618 * config/i386/i386-c.c (ix86_target_macros_internal): Deleted define
9620 * config/i386/i386.c (ix86_target_string): Deleted -mpcommit.
9621 (PTA_PCOMMIT): Deleted define.
9622 (ix86_option_override_internal): Deleted handle of option.
9623 (ix86_valid_target_attribute_inner_p): Deleted pcommit.
9624 * config/i386/i386-builtin.def (IX86_BUILTIN_PCOMMIT,
9625 __builtin_ia32_pcommit): Deleted.
9626 * config/i386/i386.h (TARGET_PCOMMIT, TARGET_PCOMMIT_P): Deleted.
9627 * config/i386/i386.md (unspecv): Deleted UNSPECV_PCOMMIT.
9628 (pcommit): Deleted instruction.
9629 * config/i386/i386.opt: Mention -mpcommit deprecation.
9630 * config/i386/x86intrin.h: Deleted inclusion of pcommitintrin.h.
9632 2016-10-05 Uros Bizjak <ubizjak@gmail.com>
9635 * config/i386/sse.md (<mask_codefor><code><mode>3<mask_name>):
9636 Remove wrong assert.
9637 (<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>:
9638 Use <round_constraint> as operand 1 constraint.
9640 2016-10-05 Jakub Jelinek <jakub@redhat.com>
9643 * ubsan.c (ubsan_create_data): Call initialize_sanitizer_builtins here.
9644 (ubsan_instrument_float_cast): And not here.
9647 * ubsan.c (ubsan_ids): New GTY(()) array.
9648 (ubsan_type_descriptor, ubsan_create_data): Use ubsan_ids
9649 instead of static local counters.
9651 2016-10-05 Martin Sebor <msebor@redhat.com>
9654 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define macro.
9655 * config/linux.c (gnu_libc_printf_pointer_format): Remove.
9656 * targhooks.c [DEFAULT_LIBC == LIBC_UCLIBC) && SINGLE_LIBC]
9657 (default_printf_pointer_format): Define function.
9658 * targhooks.c (linux_printf_pointer_format): Define new function.
9659 * targhooks.h (linux_printf_pointer_format): Declare.
9660 (gnu_libc_printf_pointer_format): Remove declaration.
9662 2016-10-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9664 * fold-const.c (native_encode_real): Fix logic for selecting offset
9665 to write to when BYTES_BIG_ENDIAN.
9667 2016-10-05 Wilco Dijkstra <wdijkstr@arm.com>
9669 * builtins.c (fold_builtin_strchr): Remove function.
9670 (fold_builtin_strrchr): Likewise.
9671 (fold_builtin2): Remove strchr, index, strrchr, rindex cases.
9672 * gimple-fold.c (target_char_cst_p): New function.
9673 (gimple_fold_builtin_strchr) Add more foldings.
9674 (gimple_fold_builtin): Add index, strrchr, rindex cases.
9676 2016-10-05 Richard Biener <rguenther@suse.de>
9679 * genmatch.c (capture_info::walk_c_expr): Diagnose unknown
9680 capture ids in c-exprs.
9682 2016-10-05 Richard Biener <rguenther@suse.de>
9685 * genmatch.c (dt_operand::gen_match_op): Amend operand_equal_p
9686 with types_match for GIMPLE code gen to handle type mismatched
9688 (dt_operand::gen): Adjust.
9689 * match.pd ((X /[ex] A) * A -> X): Properly handle converted
9692 2016-10-05 Richard Biener <rguenther@suse.de>
9694 * match.pd (copysign(x, CST) -> [-]abs (x)): New pattern.
9696 2016-10-05 Richard Biener <rguenther@suse.de>
9699 * genmatch.c (parser::parse_c_expr): Handle premature EOF.
9701 2016-10-05 Pierre-Marie de Rodat <derodat@adacore.com>
9703 * dwarf2out.c (dwarf2out_imported_module_or_decl): Move DWARF
9704 version check to protect only DW_TAG_imported_module generation.
9706 2016-10-05 Richard Biener <rguenther@suse.de>
9709 * match.pd (min(a,-a) -> -abs(a)): New pattern.
9711 2016-10-04 Ian Lance Taylor <iant@golang.org>
9713 * explow.c (allocate_dynamic_stack_space): Call
9714 do_pending_stack_adjust before handling flag_split_stack.
9716 2016-10-04 David Malcolm <dmalcolm@redhat.com>
9718 * genattrtab.c (make_internal_attr): Supply dummy column number to
9721 * genoutput.c (init_insn_for_nothing): Likewise.
9722 * gensupport.c (add_define_attr): Likewise.
9723 * read-md.c (message_at_1): Print column number.
9724 (fatal_with_file_and_line): Likewise.
9725 (rtx_reader::read_char): Track column numbers.
9726 (rtx_reader::unread_char): Likewise.
9727 (rtx_reader::rtx_reader): Initialize m_read_md_colno.
9728 (rtx_reader::handle_include): Stash and restore m_read_md_colno.
9729 (rtx_reader::handle_file): Initialize m_read_md_colno.
9730 (rtx_reader::get_current_location): Supply column number to
9732 * read-md.h (struct file_location): Add field "colno".
9733 (file_location::file_location): Likewise.
9734 (rtx_reader::get_colno): New accessor.
9735 (rtx_reader::m_read_md_colno): New field.
9736 (rtx_reader::m_last_line_colno): New field.
9738 2016-10-04 Jakub Jelinek <jakub@redhat.com>
9740 * doc/extend.texi (Java Exceptions): Remove.
9741 (java_interface): Remove.
9743 2016-10-04 Doug Gilmore <doug.gilmore@imgtec.com>
9745 PR tree-optimization/77808
9746 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Check base_addr
9747 and addr are different before copying points-to information.
9749 2016-10-04 Uros Bizjak <ubizjak@gmail.com>
9751 * config/i386/x86-tune.def (X86_TUNE_VECTORIZE_DOUBLE): Remove.
9752 * config/i386/i386.h (TARGET_VECTORIZE_DOUBLE): Remove.
9753 * config/i386/i386.c (ix86_add_stmt_cost): Use TARGET_BONNEL instead
9754 of !TARGET_VECTORIZE_DOUBLE when penalizing DFmode vector ops.
9756 2016-10-04 Richard Biener <rguenther@suse.de>
9758 PR tree-optimization/77399
9759 * tree-ssa-forwprop.c (simplify_vector_constructor): Properly
9760 verify the target can convert.
9762 2016-10-04 Richard Biener <rguenther@suse.de>
9765 * explow.c (plus_constant): Verify the mode of the constant
9766 pool offset before calling plus_constant.
9768 2016-10-04 Richard Biener <rguenther@suse.de>
9771 * match.pd (X / abs (X) -> X < 0 ? -1 : 1): Drop vector
9772 type support, mark with :C.
9773 (X / -X -> -1): Mark with :C.
9775 2016-10-04 Jakub Jelinek <jakub@redhat.com>
9777 * defaults.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Remove.
9778 * system.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Poison.
9779 * doc/tm.texi.in (TARGET_USE_JCR_SECTION): Remove.
9780 * doc/tm.texi: Regenerated.
9781 * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Remove.
9782 * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Remove.
9783 * config/darwin.h (JCR_SECTION_NAME): Remove.
9784 * config/pa/pa64-hpux.h (JCR_SECTION_NAME): Remove.
9785 * config/rs6000/aix71.h (TARGET_USE_JCR_SECTION): Remove.
9786 * config/rs6000/aix51.h (TARGET_USE_JCR_SECTION): Remove.
9787 * config/rs6000/aix52.h (TARGET_USE_JCR_SECTION): Remove.
9788 * config/rs6000/aix53.h (TARGET_USE_JCR_SECTION): Remove.
9789 * config/rs6000/aix61.h (TARGET_USE_JCR_SECTION): Remove.
9791 2016-10-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9793 * ipa-cp.c (propagate_bits_accross_jump_function): Introduce space
9794 between "because" and "param" in dump message in call to fprintf.
9796 2016-10-03 Jeff Law <law@redhat.com>
9798 PR tree-optimization/71550
9799 PR tree-optimization/71403
9800 * tree-ssa-threadbackward.c: Include tree-vectorizer.h
9801 (profitable_jump_thread_path): Also return boolean indicating if
9802 the realized path will create an irreducible loop.
9803 Remove loop depth tests from 71403.
9804 (fsm_find_control_statement_thread_paths): Remove loop depth tests
9805 from 71403. If threading will create an irreducible loop, then
9806 throw away loop iteration and related information.
9808 2016-10-03 Uros Bizjak <ubizjak@gmail.com>
9810 * configure.ac (strict_warn): Merge -Wmissing-format-attribute and
9811 -Woverloaded-virtual checks for warning options.
9812 * configure: Regenerate.
9814 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
9816 PR preprocessor/77699
9817 * input.c (maybe_grow): Don't allocate one byte extra headroom.
9818 (get_next_line): Return false on error.
9819 (read_next_line): Removed, use get_next_line instead.
9820 (read_line_num): Don't copy the line.
9821 (location_get_source_line): Don't use static data.
9822 (selftest::test_reading_source_line): Add more test cases.
9824 2016-10-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9827 2016-09-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9829 * ifcvt.c (noce_try_avoid_const_materialization): New function.
9830 (noce_process_if_block): Use it.
9832 2016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
9834 * doc/invoke.texi: Update -Wint-in-bool-context.
9836 2016-10-02 Jakub Jelinek <jakub@redhat.com>
9838 * dwarf2out.c (output_fde, output_call_frame_info,
9839 dwarf2out_do_cfi_startproc, set_indirect_string,
9840 gen_internal_sym, output_die, output_line_info): Use
9841 MAX_ARTIFICIAL_LABEL_BYTES as char array sizes for
9842 ASM_GENERATE_INTERNAL_LABEL output.
9844 2016-10-01 Richard Biener <rguenther@suse.de>
9847 * genmatch.c (get_operand_type): Add operand position arg
9848 and handle COND_EXPR comparison operand with fixed boolean_type_node.
9849 (expr::gen_transform): Adjust.
9850 (dt_simplify::gen_1): Likewise.
9852 2016-10-01 Jakub Jelinek <jakub@redhat.com>
9854 * config/i386/sse.md (<mask_codefor><code><mode>): Add FALLTHRU
9855 comments. Simplify asserts, remove unnecessary conditions.
9857 (*<code><mode>3): Likewise.
9859 2016-09-30 Jakub Jelinek <jakub@redhat.com>
9861 * doc/invoke.texi (-Wregister): Document.
9863 2016-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
9865 * configure.ac: Split CHECKING_P into CHECKING_P and
9866 ENABLE_EXTRA_CHECKING.
9867 * configure: Regenerated.
9868 * config.in: Adjust commment of CHECKING_P. Add ENABLE_EXTRA_CHECKING.
9869 * common.opt (flag_checking): Use CHECKING_P and ENABLE_EXTRA_CHECKING.
9871 2016-09-30 Prasad Ghangal <prasad.ghangal@gmail.com>
9874 * gcc.c (process_command): For @filename handling, output
9875 the correct name if the file does not exist.
9877 2016-09-30 Marek Polacek <polacek@redhat.com>
9879 * config/aarch64/aarch64-simd.md: Adjust fall through comments.
9880 * config/alpha/predicates.md: Likewise.
9882 2016-09-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9884 * ifcvt.c (noce_try_avoid_const_materialization): New function.
9885 (noce_process_if_block): Use it.
9887 2016-09-30 Martin Liska <mliska@suse.cz>
9889 * doc/invoke.texi: Document asan-use-after-return that
9890 it's disabled by default in runtime.
9892 2016-09-30 Richard Biener <rguenther@suse.de>
9894 * tree-vrp.c (intersect_ranges): If we failed to handle
9895 the intersection choose a constant singleton range if available.
9897 2016-09-30 Richard Biener <rguenther@suse.de>
9899 PR tree-optimization/77399
9900 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
9901 float <-> int conversions.
9903 2016-09-30 Alan Modra <amodra@gmail.com>
9905 * config/rs6000/rs6000.c (rs6000_opt_vars): Revert last change.
9907 2016-09-29 Uros Bizjak <ubizjak@gmail.com>
9909 * config/i386/driver-i386.c (host_detect_local_cpu): Check maximum
9910 ext_level before calling CPUID with 0x80000008.
9911 Simplify xgetbv checks.
9913 2016-09-29 David Malcolm <dmalcolm@redhat.com>
9915 * Makefile.in (OBJS): Add print-rtl-function.o.
9916 * print-rtl-function.c: New file.
9917 * print-rtl.h (print_rtx_function): New decl.
9919 2016-09-29 Uros Bizjak <ubizjak@gmail.com>
9922 * config/i386/cpuid.h (__get_cpuid_count): New.
9923 (__get_cpuid): Rename __level to __leaf.
9925 2016-09-29 Marek Polacek <polacek@redhat.com>
9927 * genattrtab.c (write_attr_case): Also emit FALLTHRU marker.
9929 2016-09-29 Bernd Schmidt <bschmidt@redhat.com>
9932 * builtins.c (expand_builtin_memcmp): Don't swap args unless
9933 result is only being compared with zero.
9935 2016-09-29 Marek Polacek <polacek@redhat.com>
9937 * dwarf2out.c (loc_descriptor): Add fall through comment.
9938 (add_const_value_attribute): Likewise.
9940 2016-09-29 Matthew Wahab <matthew.wahab@arm.com>
9942 * config/arm/arm.md (*arm_movsi_insn): Replace "t2" arch attribute
9943 with "v6t2". Move "arch" attribute above "pool_range".
9944 * config/arm/vfp.md (*arm_movhi_vfp): Replace "t2" arch attribute
9946 (*thumb2_movhi_vfp): Likewise.
9947 (*arm_movhi_fp16): Likewise.
9948 (*thumb2_movhi_fp16): Likewise.
9949 (*arm_movsi_vfp): Remove "arch" attribute.
9950 (*thumb2_movsi_vfp): Likewise.
9952 2016-09-29 Martin Liska <mliska@suse.cz>
9954 * doc/extend.texi: Remove limitation of Objective C for
9955 __attribute__((constructor)) and __attribute__((destructor)).
9957 2016-09-29 Richard Biener <rguenther@suse.de>
9959 PR tree-optimization/77768
9960 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
9961 Handle stores to readonly memory when removing redundant stores.
9963 2016-09-29 Richard Biener <rguenther@suse.de>
9966 * match.pd: Add X / abs (X) -> X < 0 ? -1 : 1 and
9967 X / -X -> -1 simplifications.
9969 2016-09-29 Richard Biener <rguenther@suse.de>
9972 * match.pd: Add max(a,-a) -> abs(a) pattern.
9973 * tree-ssa-phiopt.c (minmax_replacement): Disable for
9974 HONOR_SIGNED_ZEROS types.
9976 2016-09-29 James Greenhalgh <james.greenhalgh@arm.com>
9978 * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Remove.
9979 * system.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Poison.
9981 2016-09-29 Richard Biener <rguenther@suse.de>
9983 * tree-vrp.c (set_defs_to_varying): New helper avoiding
9984 writing to vr_const_varying.
9985 (vrp_initialize): Call it.
9986 (vrp_visit_stmt): Likewise.
9987 (evrp_dom_walker::before_dom_children): Likewise.
9989 2016-09-29 Richard Biener <rguenther@suse.de>
9991 * tree-vect-stmts.c (vectorizable_load): Avoid emitting vector
9992 constructors with vector elements.
9994 2016-09-29 Richard Biener <rguenther@suse.de>
9996 PR tree-optimization/77768
9997 * tree-ssa-sccvn.c (visit_reference_op_store): Properly deal
9998 with stores to a place we know has a constant value.
10000 2016-09-29 Alan Modra <amodra@gmail.com>
10002 * config/rs6000/sysv4.opt (mgnu-attribute): New option.
10003 * doc/invoke.texi: Document it.
10004 * config/rs6000/rs6000.c (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): Define.
10005 (rs6000_passes_float): Comment.
10006 (rs6000_passes_long_double): New static var.
10007 (call_ABI_of_interest): Return false unless rs6000_gnu_attr is set.
10008 (init_cumulative_args): Set up to emit fp .gnu_attribute for
10009 ELF 64-bit ABIs as well as 32-bit ELF. Correct rs6000_passes_float
10010 to include fp values returned in vectors.
10011 Set rs6000_passes_long_double.
10012 (rs6000_function_arg_advance_1): Likewise for function args.
10013 (rs6000_elf_file_end): Emit fp .gnu_attribute for ELF 64-bit ABIs,
10014 and SPE. Emit long double tag value too.
10015 (rs6000_opt_vars): Add gnu-attr.
10016 * configure.ac (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): New ppc32 test.
10017 * configure: Regenerate.
10018 * config.in: Regenerate.
10020 2016-09-28 Jakub Jelinek <jakub@redhat.com>
10022 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Use x > 0 instead
10024 (format_floating, format_string, format_directive,
10025 get_destination_size, pass_sprintf_length::handle_gimple_call):
10028 2016-09-28 Jakub Jelinek <jakub@redhat.com>
10030 * gimple-ssa-sprintf.c: Fix comment formatting.
10031 (format_integer): Use is_gimple_assign.
10032 (pass_sprintf_length::handle_gimple_call): Use gimple_call_builtin_p
10033 and gimple_call_fndecl. Reorder case BUILT_IN_SPRINTF_CHK. Fix up
10034 BUILT_IN_SNPRINTF_CHK comment. Replace "to to" with "to" in comment.
10035 (pass_sprintf_length::execute): Use is_gimple_call.
10037 2016-09-28 Wilco Dijkstra <wdijkstr@arm.com>
10039 * gimple-fold.c (gimple_fold_builtin): After failing to fold
10040 strchr, also try the generic folding.
10042 2016-09-28 Martin Sebor <msebor@redhat.com>
10045 * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call):
10048 2016-09-28 Martin Sebor <msebor@redhat.com>
10050 PR middle-end/77683
10051 * gimple-ssa-sprintf.c (format_integer): Fail gracefully when
10052 length modifier is not expected.
10053 (format_floating): Ignore l length modifier and fail gracefuly
10054 when it isn't one of the other expected ones.
10056 2016-09-28 Martin Sebor <msebor@redhat.com>
10059 * varasm.c (assemble_addr_to_section): Increase local buffer size.
10061 2016-09-27 Richard Biener <rguenther@suse.de>
10063 * dwarf2out.c (cu_die_list): New global.
10064 (dwarf2out_finish): Walk cu_die_list instead of limbo DIEs. Add
10065 main_comp_unit_die to cu_die_list if we created it.
10066 Move break_out_includes ...
10067 (dwarf2out_early_finish): ... here. Push created CU DIEs onto
10070 2016-09-28 Richard Biener <rguenther@suse.de>
10072 * dwarf2out.c (struct die_struct): Add removed flag.
10073 (lookup_type_die): If the DIE is marked as removed, clear
10074 TYPE_SYMTAB_DIE and return NULL.
10075 (lookup_decl_die): If the DIE is marked as removed, remove it
10076 from the hash and return NULL.
10077 (mark_removed): New helper.
10078 (prune_unused_types_prune): Call it for removed DIEs.
10079 (gen_subprogram_die): Move the premark_used_types call to after
10080 DIEs for the functions scopes are generated.
10081 (process_scope_var): Do not re-create pruned types or type decls.
10082 Make sure to also re-parent type decls.
10083 (dwarf2out_finish): Move unused type pruning and debug_types
10085 (dwarf2out_early_finish): ... here.
10087 2016-09-29 Claudiu Zissulescu <claziss@synopsys.com>
10089 * config/arc/arc-c.c: New file.
10090 * config/arc/arc-c.def: Likewise.
10091 * config/arc/t-arc: Likewise.
10092 * config.gcc: Include arc-c.o as c and cpp object.
10093 * config/arc/arc-protos.h (arc_cpu_cpp_builtins): Add prototype.
10094 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Use
10095 arc_cpu_cpp_builtins.
10097 2016-09-29 Claudiu Zissulescu <claziss@synopsys.com>
10099 * config/arc/arc.md (*rotrsi3_cnt1): New pattern.
10100 (*ashlsi2_cnt1, *lshrsi3_cnt1, *ashrsi3_cnt1): Likewise.
10102 2016-09-28 Nathan Sidwell <nathan@acm.org>
10104 * gimple-pretty-print.c (dump_gimple_call_args): Simplify "' "
10107 2016-09-28 Wilco Dijkstra <wdijkstr@arm.com>
10109 PR tree-optimization/61056
10110 * gimple-fold.c (gimple_fold_builtin_strchr):
10111 New function to optimize strchr (s, 0) to strlen.
10112 (gimple_fold_builtin): Add BUILT_IN_STRCHR case.
10114 2016-09-27 Robin Dapp <rdapp@linux.vnet.ibm.com>
10116 PR tree-optimization/77724
10117 * tree-vect-loop-manip.c (create_intersect_range_checks_index):
10118 Add tree_fits_shwi_p check.
10120 2016-09-27 Jakub Jelinek <jakub@redhat.com>
10122 * auto-inc-dec.c (try_merge): Remove break after return.
10123 * cselib.c (autoinc_split): Likewise.
10124 * explow.c (promote_mode): Likewise.
10125 * fixed-value.c (fixed_arithmetic): Likewise.
10126 * hsa.c (hsa_internal_fn::get_arity): Likewise.
10127 * rtlanal.c (modified_between_p, modified_in_p): Likewise.
10128 * trans-mem.c (get_attrs_for): Likewise.
10129 * tree-if-conv.c (if_convertible_stmt_p): Likewise.
10130 * tree-vrp.c (simplify_stmt_using_ranges): Likewise.
10131 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Likewise.
10132 * config/aarch64/aarch64.c (aarch64_get_condition_code_1): Likewise.
10133 * config/c6x/c6x.c (c6x_get_unit_specifier): Likewise.
10134 * config/cr16/cr16.c (legitimate_pic_operand_p): Likewise.
10135 * config/cris/cris.c (cris_op_str): Likewise.
10136 * config/mn10300/mn10300.c (cc_flags_for_code): Likewise.
10137 * config/tilepro/tilepro.c (tilepro_emit_setcc_internal_di): Likewise.
10139 2016-09-27 Nathan Sidwell <nathan@codesourcery.com>
10141 * internal-fn.h (IFN_UNIQUE_CODES, IFN_GOACC_LOOP_CODES,
10142 IFN_GOACC_REDUCTION_CODES): New.
10143 (enum ifn_unique_kind, enum ifn_goacc_loop_kind, enum
10144 ifn_goacc_reduction_kind): Use them.
10145 * gimple-pretty-print.c (dump_gimple_call_args): Decode first arg
10146 of internal functions, when applicable.
10148 2016-09-27 Maciej W. Rozycki <macro@imgtec.com>
10150 * config/mips/constraints.md (d): Fix documentation.
10151 * doc/md.texi (Machine Constraints): Update accordingly.
10153 2016-09-27 Richard Biener <rguenther@suse.de>
10155 * dwarf2out.c (dwarf2out_init): Move text_section_line_info,
10156 cur_line_info_table initialization ...
10157 (dwarf2out_assembly_start): ... here.
10159 2016-09-27 Matthew Wahab <matthew.wahab@arm.com>
10161 * config/arm/arm.md (*arm_movsi_insn): Add "arch" attribute.
10162 * config/arm/vfp.md (*arm_movhi_vfp): Likewise.
10163 (*thumb2_movhi_vfp): Likewise.
10164 (*arm_movhi_fp16): Remove predication operand from VMOV.F16
10165 template. Expand predicable attribute to mark VMOV.F16 as not
10166 predicable. Add "arch" attribute.
10167 (*thumb2_movhi_fp16): Likewise.
10168 (*arm_movsi_vfp): Break a long line. Add "arch" attribute.
10169 (*thumb2_movsi_vfp): Add "arch" attribute.
10171 2016-09-27 David Edelsohn <dje.gcc@gmail.com>
10173 * config/rs6000/rs6000.c (rs6000_output_symbol): Don't modify
10176 2016-09-27 Marek Polacek <polacek@redhat.com>
10178 * config/ia64/ia64.c (ia64_print_operand): Adjust fall through
10181 * config/c6x/c6x.h: Adjust fall through comment.
10182 * config/sh/sh.c (final_prescan_insn): Likewise.
10183 * config/visium/visium.c (visium_expand_int_cstore): Likewise.
10184 (visium_expand_fp_cstore): Likewise.
10186 2016-09-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10188 * config/arm/arm.c (const_ok_for_op): Use "Fall through" comment form
10189 expected by -Wimplicit-fallthrough.
10190 (thumb1_size_rtx_costs): Likewise.
10191 (thumb2_reorg): Likewise.
10192 (tls_mentioned_p): Add "Fall through" comment.
10193 (thumb2_reorg): Likewise.
10194 * config/arm/arm-builtins.c (arm_expand_neon_args): Use "Fall through"
10195 comment form expected by -Wimplicit-fallthrough.
10197 2016-09-27 Martin Liska <mliska@suse.cz>
10199 PR gcov-profile/46266
10200 * input.h (RESERVED_LOCATION_P): New macro.
10201 * profile.c (branch_prob): Use RESERVED_LOCATION_P and
10202 instread of comparison with UNKNOWN_LOCATION.
10204 2016-09-27 Richard Biener <rguenther@suse.de>
10206 PR tree-optimization/77745
10207 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
10208 When removing redundant stores make sure to check compatibility
10209 of the TBAA state for downstream accesses.
10210 * tree-ssa-sccvn.c (visit_reference_op_store): Likewise for when
10211 value-numbering virtual operands for store matches.
10213 2016-09-27 Oleg Endo <olegendo@gcc.gnu.org>
10216 * config/sh/sh.c (sh_rtx_costs): Fix return value of SET of movt and
10217 movrt patterns. Match them before anything else in the SET case.
10219 2016-09-27 Martin Liska <mliska@suse.cz>
10221 PR gcov-profile/7970
10222 PR gcov-profile/16855
10223 PR gcov-profile/44779
10224 * coverage.c (build_gcov_exit_decl): New function.
10225 (coverage_obj_init): Call the function and generate __gcov_exit
10227 * doc/gcov.texi: Document when __gcov_exit function is called.
10229 2016-09-27 Marek Polacek <polacek@redhat.com>
10232 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
10233 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Use
10234 -Wno-error instead of -Wno-implicit-fallthrough.
10236 2016-09-27 Martin Liska <mliska@suse.cz>
10239 * gcov-counter.def: Remove GCOV_COUNTER_V_DELTA.
10241 2016-09-27 Jakub Jelinek <jakub@redhat.com>
10243 * combine.c (simplify_comparison): Add canonical FALLTHROUGH comments.
10244 * config/i386/i386.c (ix86_dep_by_shift_count_body): Add FALLTHROUGH
10245 comments. Remove break after return.
10246 (ix86_fp_compare_code_to_integer, has_dispatch,
10247 ix86_simd_clone_usable): Remove break after return.
10249 2016-09-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
10251 PR rlt-optimization/77714
10252 * lra-eliminations.c (eliminate_regs_in_insn): Avoid alias on
10255 2016-09-27 Kugan Vivekanandarajah <kuganv@linaro.org>
10258 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Use
10259 extract_range_from_unary_expr to convert value_range.
10260 * tree-vrp.c (extract_range_from_unary_expr_1): Rename to.
10261 (extract_range_from_unary_expr): This.
10262 * tree-vrp.h (extract_range_from_unary_expr): Declare.
10264 2016-09-27 Segher Boessenkool <segher@kernel.crashing.org>
10266 * config/rs6000/rs6000.md (movcc_internal1): Disparage using CTR or LR.
10268 2016-09-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10270 * config/i386/i386.c (ix86_print_operand)
10271 [HAVE_AS_IX86_CMOV_SUN_SYNTAX]: Add gcc_fallthrough.
10272 * config/sparc/sparc.c (check_pic): Add fallthrough comment.
10273 (epilogue_renumber): Likewise.
10275 2016-09-26 Kugan Vivekanandarajah <kuganv@linaro.org>
10277 PR middle-end/77719
10278 * tree-ssa-reassoc.c (make_new_ssa_for_def): Use gimple_get_lhs
10279 to get lhs instead of gimple_assign_lhs as stmt can be builtins too.
10281 2016-09-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
10283 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
10284 is_mm_consume, is_mm_acquire, is_mm_release, is_mm_acq_rel,
10285 is_mm_seq_cst, is_mm_sync): Move to ...
10286 * memmodel.h: This. New file.
10287 * builtins.c: Include memmodel.h.
10288 * optabs.c: Likewise.
10289 * tsan.c: Likewise.
10290 * config/aarch64/aarch64.c: Likewise.
10291 * config/alpha/alpha.c: Likewise.
10292 * config/arm/arm.c: Likewise.
10293 * config/i386/i386.c: Likewise.
10294 * config/ia64/ia64.c: Likewise.
10295 * config/mips/mips.c: Likewise.
10296 * config/rs6000/rs6000.c: Likewise.
10297 * config/sparc/sparc.c: Likewise.
10298 * genconditions.c: Include memmodel.h in generated file.
10299 * genemit.c: Likewise.
10300 * genoutput.c: Likewise.
10301 * genpeep.c: Likewise.
10302 * genpreds.c: Likewise.
10303 * genrecog.c: Likewise.
10305 2016-09-26 David Malcolm <dmalcolm@redhat.com>
10307 * read-rtl.c (read_rtx_code): Rename local "i" to "idx", and use
10308 "c" instead when parsing characters. Move operand parsing into...
10309 (read_rtx_operand): ...this new function, renaming "i" to "idx",
10310 and tightening the scope of various locals.
10312 2016-09-26 Liu Hao <lh_mouse@126.com>
10314 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Fix typo.
10316 2016-09-26 Marek Polacek <polacek@redhat.com>
10318 * system.h: Use __has_attribute to check whether the fallthrough
10319 attribute is supported.
10321 2016-09-26 Marek Polacek <polacek@redhat.com>
10323 * ipa-inline-analysis.c (find_foldable_builtin_expect): Use
10324 gimple_call_internal_p.
10325 * ipa-split.c (find_return_bb): Likewise.
10326 (execute_split_functions): Likewise.
10327 * omp-low.c (dump_oacc_loop_part): Likewise.
10328 (oacc_loop_xform_head_tail): Likewise.
10329 * predict.c (predict_loops): Likewise.
10330 * sanopt.c (pass_sanopt::execute): Likewise.
10331 * tree-cfg.c (get_abnormal_succ_dispatcher): Likewise.
10332 * tree-parloops.c (oacc_entry_exit_ok_1): Likewise.
10333 * tree-stdarg.c (gimple_call_ifn_va_arg_p): Remove function.
10334 (expand_ifn_va_arg_1): Use gimple_call_internal_p.
10335 (expand_ifn_va_arg): Likewise.
10336 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
10337 (optimize_mask_stores): Likewise.
10338 * tree-vect-stmts.c (vect_simd_lane_linear): Likewise.
10339 (vect_transform_stmt): Likewise.
10340 * tree-vectorizer.c (vect_loop_vectorized_call): Likewise.
10341 * tsan.c (instrument_memory_accesses): Likewise.
10343 2016-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10344 Alexander Monakov <amonakov@ispras.ru>
10346 * regrename.c (rename_chains): Check
10347 HARD_FRAME_POINTER_IS_FRAME_POINTER rather than
10348 HARD_FRAME_POINTER_REGNUM when picking unavailable registers.
10349 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
10351 2016-09-26 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10353 * config/s390/s390.c (s390_rtx_costs): Add /* fallthrough */.
10354 (s390_sched_score): Likewise.
10356 2016-09-26 Martin Liska <mliska@suse.cz>
10358 * doc/gcov.texi: Update program output of gcov tool.
10360 2016-09-26 Martin Liska <mliska@suse.cz>
10362 PR gcov-profile/23332
10363 * profile.c (instrument_values): Do not handle HIST_TYPE_CONST_DELTA.
10364 * tree-profile.c (gimple_gen_const_delta_profiler): Remove.
10365 * value-prof.c (dump_histogram_value): Do not handle
10366 HIST_TYPE_CONST_DELTA.
10367 (stream_in_histogram_value): Likewise.
10368 (gimple_find_values_to_profile): Likewise.
10369 * value-prof.h (enum hist_type): Likewise.
10371 2016-09-26 Martin Liska <mliska@suse.cz>
10373 * common.opt: Exclude SANITIZE_UNREACHABLE and SANITIZE_RETURN
10374 from default sanitize recover values.
10375 * doc/invoke.texi: Fix documentation related to -fsanitize=leak,
10376 -fsanitize=address, -fsanitize=thread and -fsanitize-recover.
10377 * flag-types.h: Replace couple of 1 << x to 1UL << x, make it
10379 * opts.c (finish_options): Do a generic loop over options
10380 that can be recovered.
10381 (parse_sanitizer_options): Exclude SANITIZE_UNREACHABLE and
10383 (common_handle_option): Likewise.
10384 * opts.h: Declare can_recover to sanitizer_opts_s.
10386 2016-09-26 Andre Vieira <andre.simoesdiasvieira@arm.com>
10388 * target.def(elf_flags_numeric): Change documentation to present tense.
10389 * doc/tm.texi: Regenerate.
10391 2016-09-26 Marek Polacek <polacek@redhat.com>
10394 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
10395 insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Add
10396 -Wno-switch-fallthrough.
10397 * builtins.c (expand_builtin_int_roundingfn_2): Add gcc_fallthrough.
10398 (expand_builtin): Likewise.
10399 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass): Likewise.
10400 * convert.c (convert_to_real_1): Likewise.
10401 (convert_to_integer_1): Likewise.
10402 * final.c (output_alternate_entry_point): Likewise.
10403 * genattrtab.c (make_canonical): Likewise.
10404 (write_test_expr): Likewise.
10405 * genpreds.c (validate_exp): Likewise.
10406 * gimple-ssa-strength-reduction.c
10407 (find_candidates_dom_walker::before_dom_children): Likewise.
10408 * godump.c (go_format_type): Likewise.
10409 * reload1.c (elimination_effects): Likewise.
10410 * resource.c (mark_referenced_resources): Likewise.
10411 (mark_set_resources): Likewise.
10412 * tree-ssa-loop-ivopts.c (find_deriving_biv_for_expr): Likewise.
10413 * varasm.c (output_addressed_constants): Likewise.
10415 2016-09-26 Marek Polacek <polacek@redhat.com>
10418 * common.opt (Wimplicit-fallthrough): New option.
10419 * doc/extend.texi: Document statement attributes and the fallthrough
10421 * doc/invoke.texi: Document -Wimplicit-fallthrough.
10422 * gimple.h (gimple_call_internal_p): New function.
10423 * gimplify.c (struct gimplify_ctx): Add in_switch_expr.
10424 (struct label_entry): New struct.
10425 (find_label_entry): New function.
10426 (case_label_p): New function.
10427 (collect_fallthrough_labels): New function.
10428 (last_stmt_in_scope): New function.
10429 (should_warn_for_implicit_fallthrough): New function.
10430 (warn_implicit_fallthrough_r): New function.
10431 (maybe_warn_implicit_fallthrough): New function.
10432 (expand_FALLTHROUGH_r): New function.
10433 (expand_FALLTHROUGH): New function.
10434 (gimplify_switch_expr): Call maybe_warn_implicit_fallthrough and
10435 expand_FALLTHROUGH for the innermost GIMPLE_SWITCH.
10436 (gimplify_label_expr): New function.
10437 (gimplify_case_label_expr): Set location.
10438 (gimplify_expr): Call gimplify_label_expr.
10439 * internal-fn.c (expand_FALLTHROUGH): New function.
10440 * internal-fn.def (FALLTHROUGH): New internal function.
10441 * langhooks.c (lang_GNU_OBJC): New function.
10442 * langhooks.h (lang_GNU_OBJC): Declare.
10443 * system.h (gcc_fallthrough): Define.
10444 * tree-core.h: Add FALLTHROUGH_LABEL_P comment.
10445 * tree.h (FALLTHROUGH_LABEL_P): Define.
10447 2016-09-26 Richard Biener <rguenther@suse.de>
10449 * dwarf2out.c (stripattributes): Remove unused function.
10450 (DEBUG_NORM_MACINFO_SECTION): Rename to DEBUG_MACINFO_SECTION.
10451 Push dwarf_split_debug_info handling into init_sections_and_labels.
10452 (DEBUG_NORM_MACRO_SECTION): Likewise to DEBUG_MACRO_SECTION.
10453 (DEBUG_MACRO_SECTION_FLAGS): Remove.
10454 (debug_macinfo_section_name): New global.
10455 (output_macinfo): Use debug_macinfo_section_name.
10456 (init_sections_and_labels): Split out section and label generation
10457 from dwarf2out_init. Set debug_macinfo_section_name.
10458 (dwarf2out_init): Move text section label generation and emission
10460 (dwarf2out_assembly_start): ... here.
10461 (dwarf2out_finish): Call init_sections_and_labels before DWARF
10464 2016-09-26 Richard Biener <rguenther@suse.de>
10467 * cgraphunit.c (analyze_functions): Before early removing
10468 global vars calls the late_global_decl debug handler mark
10469 the variable as readonly.
10471 2016-09-25 Oleg Endo <olegendo@gcc.gnu.org>
10474 * config/sh/sh.c (sh_movt_set_dest, sh_movrt_set_dest): Add overloads.
10475 (sh_rtx_costs): Handle SET of movt and movrt patterns.
10476 * cnofig/sh/sh-protos.h (sh_movt_set_dest, sh_movrt_set_dest): Forward
10477 declare new overloads.
10478 * config/sh/sh.md (*cset_zero): Add variant that takes a treg_set_expr
10481 2016-09-24 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
10483 * config/rs6000/rs6000.c (expand_block_compare, do_load_for_compare):
10484 Change TARGET_LITTLE_ENDIAN to !BYTES_BIG_ENDIAN.
10486 2016-09-24 David Edelsohn <dje.gcc@gmail.com>
10488 * configure.ac (gcc_cv_as_aix_dwloc): Fix typo in assembly fragment.
10489 * configure: Regenerate.
10491 2016-09-24 Marek Polacek <polacek@redhat.com>
10494 * doc/invoke.texi: Document -Wbool-operation.
10496 2016-09-23 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
10498 * config/rs6000/rs6000.md (cmpmemsi): New define_expand.
10499 * config/rs6000/rs6000.c (expand_block_compare): New function used by
10500 cmpmemsi pattern to do builtin expansion of memcmp ().
10501 (compute_current_alignment): Add helper function for
10502 expand_block_compare used to compute alignment as the compare proceeds.
10503 (select_block_compare_mode): Used by expand_block_compare to select
10504 the mode used for reading the next chunk of bytes in the compare.
10505 (do_load_for_compare): Used by expand_block_compare to emit the load
10506 insns for the compare.
10507 (rs6000_emit_dot_insn): Moved this function to avoid a forward
10508 reference from expand_block_compare ().
10509 * config/rs6000/rs6000-protos.h (expand_block_compare): Add a
10510 prototype for this function.
10511 * config/rs6000/rs6000.opt (mblock-compare-inline-limit): Add a new
10512 target option for controlling how much code inline expansion of
10513 memcmp() will be allowed to generate.
10515 2016-09-23 Jakub Jelinek <jakub@redhat.com>
10517 * hooks.c (hook_bool_bool_false, hook_bool_bool_gcc_optionsp_false,
10518 hook_bool_mode_false, hook_bool_mode_true,
10519 hook_bool_mode_const_rtx_false, hook_bool_mode_const_rtx_true,
10520 hook_bool_mode_rtx_false, hook_bool_mode_rtx_true,
10521 hook_bool_const_rtx_insn_const_rtx_insn_true,
10522 hook_bool_mode_uhwi_false, hook_void_FILEptr_constcharptr,
10523 hook_bool_FILEptr_rtx_false, hook_bool_gsiptr_false,
10524 hook_bool_const_tree_hwi_hwi_const_tree_false,
10525 hook_bool_const_tree_hwi_hwi_const_tree_true,
10526 default_can_output_mi_thunk_no_vcall, hook_int_uint_mode_1,
10527 hook_int_const_tree_0, hook_int_const_tree_const_tree_1,
10528 hook_int_rtx_0, hook_int_rtx_bool_0, hook_void_tree,
10529 hook_void_constcharptr, hook_void_tree_treeptr, hook_void_int_int,
10530 hook_bool_tree_false, hook_bool_const_tree_false, hook_bool_tree_true,
10531 hook_bool_const_tree_true, hook_bool_tree_tree_false,
10532 hook_bool_tree_tree_true, hook_bool_tree_bool_false,
10533 hook_bool_rtx_insn_true, hook_bool_rtx_false,
10534 hook_bool_uintp_uintp_false,
10535 hook_bool_rtx_mode_int_int_intp_bool_false, hook_rtx_rtx_null,
10536 hook_rtx_tree_int_null, hook_uint_mode_0,
10537 hook_constcharptr_const_tree_null, hook_tree_tree_int_treep_bool_null,
10538 hook_tree_tree_tree_null, hook_tree_tree_tree_tree_null,
10539 hook_constcharptr_const_rtx_insn_null,
10540 hook_constcharptr_const_tree_const_tree_null,
10541 hook_constcharptr_int_const_tree_null,
10542 hook_constcharptr_int_const_tree_const_tree_null,
10543 hook_tree_const_tree_null, hook_bool_rtx_insn_int_false,
10544 hook_void_rtx_insn_int, hook_void_gcc_optionsp): For arguments with
10545 ATTRIBUTE_UNUSED, remove parameter name as well as ATTRIBUTE_UNUSED.
10547 * vec.h (vNULL): Extend comment to say = vNULL initialization
10548 isn't needed for static vars.
10550 * sel-sched-ir.c (sel_global_bb_info, sel_region_bb_info,
10551 loop_nests, s_i_d, last_added_blocks): Remove unnecessary
10552 = vNULL initialization of file scope vec.
10553 * passes.c (pass_tab, enabled_pass_uid_range_tab,
10554 disabled_pass_uid_range_tab): Likewise.
10555 * haifa-sched.c (sched_luids, h_i_d): Likewise.
10556 * tree-chkp-opt.c (check_infos): Likewise.
10557 * sel-sched.c (vec_av_set, vec_temp_moveop_nops): Likewise.
10559 * vec.h (vnull::operator vec): Add constexpr keyword for
10562 2016-09-23 Doug Gilmore <doug.gilmore@imgtec.com>
10564 PR tree-optimization/77654
10565 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Add call
10566 to duplicate_ssa_name_ptr_info.
10568 2016-09-23 David Malcolm <dmalcolm@redhat.com>
10570 PR preprocessor/77672
10571 * input.c (selftest::test_lexer_string_locations_simple): Update
10572 test to expect location information of the terminator character
10573 at the location of the final closing quote.
10574 (selftest::test_lexer_string_locations_hex): Likewise.
10575 (selftest::test_lexer_string_locations_oct): Likewise.
10576 (selftest::test_lexer_string_locations_letter_escape_1): Likewise.
10577 (selftest::test_lexer_string_locations_letter_escape_2): Likewise.
10578 (selftest::test_lexer_string_locations_ucn4): Likewise.
10579 (selftest::test_lexer_string_locations_ucn8): Likewise.
10580 (selftest::test_lexer_string_locations_u8): Likewise.
10581 (selftest::test_lexer_string_locations_utf8_source): Likewise.
10582 (selftest::test_lexer_string_locations_concatenation_1): Likewise.
10583 (selftest::test_lexer_string_locations_concatenation_2): Likewise.
10584 (selftest::test_lexer_string_locations_concatenation_3): Likewise.
10585 (selftest::test_lexer_string_locations_macro): Likewise.
10586 (selftest::test_lexer_string_locations_long_line): Likewise.
10588 2016-09-23 Richard Biener <rguenther@suse.de>
10590 * tree-ssa-sccvn.c (visit_reference_op_call): Value number
10591 virtual definition to virtual use if the call devirtualizes
10592 to a const or pure function.
10593 (visit_use): Also visit calls we can devirtualize to a
10594 const or pure function.
10596 2016-09-23 Richard Biener <rguenther@suse.de>
10598 PR tree-optimization/77697
10599 * tree-ssa-forwprop.c (defcodefor_name): Remove bogus code,
10600 signal error if we have sth ternary or unhandled.
10602 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
10604 * config/arm/arm_neon.h (vabd_f16): New.
10638 (vcvt_f16_s16): New.
10639 (vcvt_f16_u16): New.
10640 (vcvt_s16_f16): New.
10641 (vcvt_u16_f16): New.
10642 (vcvtq_f16_s16): New.
10643 (vcvtq_f16_u16): New.
10644 (vcvtq_s16_f16): New.
10645 (vcvtq_u16_f16): New.
10646 (vcvta_s16_f16): New.
10647 (vcvta_u16_f16): New.
10648 (vcvtaq_s16_f16): New.
10649 (vcvtaq_u16_f16): New.
10650 (vcvtm_s16_f16): New.
10651 (vcvtm_u16_f16): New.
10652 (vcvtmq_s16_f16): New.
10653 (vcvtmq_u16_f16): New.
10654 (vcvtn_s16_f16): New.
10655 (vcvtn_u16_f16): New.
10656 (vcvtnq_s16_f16): New.
10657 (vcvtnq_u16_f16): New.
10658 (vcvtp_s16_f16): New.
10659 (vcvtp_u16_f16): New.
10660 (vcvtpq_s16_f16): New.
10661 (vcvtpq_u16_f16): New.
10662 (vcvt_n_f16_s16): New.
10663 (vcvt_n_f16_u16): New.
10664 (vcvtq_n_f16_s16): New.
10665 (vcvtq_n_f16_u16): New.
10666 (vcvt_n_s16_f16): New.
10667 (vcvt_n_u16_f16): New.
10668 (vcvtq_n_s16_f16): New.
10669 (vcvtq_n_u16_f16): New.
10677 (vmaxnmq_f16): New.
10681 (vminnmq_f16): New.
10683 (vmul_lane_f16): New.
10686 (vmulq_lane_f16): New.
10687 (vmulq_n_f16): New.
10694 (vrecpeq_f16): New.
10707 (vrsqrte_f16): New.
10708 (vrsqrteq_f16): New.
10710 (vrecpsq_f16): New.
10711 (vrsqrts_f16): New.
10712 (vrsqrtsq_f16): New.
10716 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
10718 * config.gcc (extra_headers): Add arm_fp16.h
10719 * config/arm/arm_fp16.h: New.
10720 * config/arm/arm_neon.h: Include "arm_fp16.h".
10722 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
10724 * config/arm/arm_neon_builtins.def (vadd): New (v8hf, v4hf
10726 (vmulf): New (v8hf, v4hf variants).
10727 (vfma): New (v8hf, v4hf variants).
10728 (vfms): New (v8hf, v4hf variants).
10729 (vsub): New (v8hf, v4hf variants).
10730 (vcage): New (v8hf, v4hf variants).
10731 (vcagt): New (v8hf, v4hf variants).
10732 (vcale): New (v8hf, v4hf variants).
10733 (vcalt): New (v8hf, v4hf variants).
10734 (vceq): New (v8hf, v4hf variants).
10735 (vcgt): New (v8hf, v4hf variants).
10736 (vcge): New (v8hf, v4hf variants).
10737 (vcle): New (v8hf, v4hf variants).
10738 (vclt): New (v8hf, v4hf variants).
10739 (vceqz): New (v8hf, v4hf variants).
10740 (vcgez): New (v8hf, v4hf variants).
10741 (vcgtz): New (v8hf, v4hf variants).
10742 (vcltz): New (v8hf, v4hf variants).
10743 (vclez): New (v8hf, v4hf variants).
10744 (vabd): New (v8hf, v4hf variants).
10745 (vmaxf): New (v8hf, v4hf variants).
10746 (vmaxnm): New (v8hf, v4hf variants).
10747 (vminf): New (v8hf, v4hf variants).
10748 (vminnm): New (v8hf, v4hf variants).
10749 (vpmaxf): New (v4hf variant).
10750 (vpminf): New (v4hf variant).
10751 (vpadd): New (v4hf variant).
10752 (vrecps): New (v8hf, v4hf variants).
10753 (vrsqrts): New (v8hf, v4hf variants).
10754 (vabs): New (v8hf, v4hf variants).
10755 (vneg): New (v8hf, v4hf variants).
10756 (vrecpe): New (v8hf, v4hf variants).
10757 (vrnd): New (v8hf, v4hf variants).
10758 (vrnda): New (v8hf, v4hf variants).
10759 (vrndm): New (v8hf, v4hf variants).
10760 (vrndn): New (v8hf, v4hf variants).
10761 (vrndp): New (v8hf, v4hf variants).
10762 (vrndx): New (v8hf, v4hf variants).
10763 (vrsqrte): New (v8hf, v4hf variants).
10764 (vmul_lane): Add v4hf and v8hf variants.
10765 (vmul_n): Add v4hf and v8hf variants.
10766 (vext): New (v8hf, v4hf variants).
10767 (vcvts): New (v8hi, v4hi variants).
10768 (vcvts): New (v8hf, v4hf variants).
10769 (vcvtu): New (v8hi, v4hi variants).
10770 (vcvtu): New (v8hf, v4hf variants).
10771 (vcvts_n): New (v8hf, v4hf variants).
10772 (vcvtu_n): New (v8hi, v4hi variants).
10773 (vcvts_n): New (v8hi, v4hi variants).
10774 (vcvtu_n): New (v8hf, v4hf variants).
10775 (vbsl): New (v8hf, v4hf variants).
10776 (vcvtas): New (v8hf, v4hf variants).
10777 (vcvtau): New (v8hf, v4hf variants).
10778 (vcvtms): New (v8hf, v4hf variants).
10779 (vcvtmu): New (v8hf, v4hf variants).
10780 (vcvtns): New (v8hf, v4hf variants).
10781 (vcvtnu): New (v8hf, v4hf variants).
10782 (vcvtps): New (v8hf, v4hf variants).
10783 (vcvtpu): New (v8hf, v4hf variants).
10785 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
10787 * config/arm/arm-builtins.c (hf_UP): New.
10789 (vfp_builtin_data): New. Update comment.
10790 (enum arm_builtins): Include "arm_vfp_builtins.def".
10791 (ARM_BUILTIN_VFP_PATTERN_START): New.
10792 (arm_init_vfp_builtins): New.
10793 (arm_init_builtins): Add arm_init_vfp_builtins.
10794 (arm_expand_vfp_builtin): New.
10795 (arm_expand_builtins): Update for arm_expand_vfp_builtin. Fix
10797 * config/arm/arm_vfp_builtins.def: New file.
10798 * config/arm/t-arm (arm.o): Add arm_vfp_builtins.def.
10799 (arm-builtins.o): Likewise.
10801 2016-09-23 Kugan Vivekanandarajah <kuganv@linaro.org>
10804 * ipa-cp.c (propagate_vr_accross_jump_function): Drop TREE_OVERFLOW
10805 from constant while creating value range.
10807 2016-09-23 Renlin Li <renlin.li@arm.com>
10809 * ira.c (ira): Move ira_use_lra_p initialization code to ...
10810 (ira_init_once): Here.
10812 2016-09-23 Uros Bizjak <ubizjak@gmail.com>
10813 Jakub Jelinek <jakub@redhat.com>
10815 * hooks.h (hook_uint_uintp_false): Rename to...
10816 (hook_bool_uint_uintp_false): ... this.
10817 * hooks.c (hook_uint_uintp_false): Rename to...
10818 (hook_bool_uint_uintp_false): ... this.
10819 * target.def (elf_flags_numeric): Use hook_bool_uint_uintp_false
10820 instead of hook_uint_uintp_false.
10822 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
10824 * config/arm/arm-builtins.c (arm_init_neon_builtin): New.
10825 (arm_init_builtins): Move body of a loop to the standalone
10826 function arm_init_neon_builtin.
10827 (arm_expand_neon_builtin_1): New. Update comment. Function body
10828 moved from arm_neon_builtin with some white-space fixes.
10829 (arm_expand_neon_builtin): Move code into the standalone function
10830 arm_expand_neon_builtin_1.
10832 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
10834 * config/arm/iterators.md (VCVTHI): New.
10835 (NEON_VCMP): Add UNSPEC_VCLT and UNSPEC_VCLE. Fix a long line.
10836 (NEON_VAGLTE): New.
10837 (VFM_LANE_AS): New.
10839 (V_reg): Add HF, V4HF and V8HF. Fix white-space.
10840 (V_HALF): Add V4HF. Fix white-space.
10841 (V_if_elem): Add HF, V4HF and V8HF. Fix white-space.
10842 (V_s_elem): Likewise.
10843 (V_sz_elem): Fix white-space.
10844 (V_elem_ch): Likewise.
10846 (scalar_mul_constraint): Add V8HF and V4HF.
10847 (Is_float_mode): Fix white-space.
10848 (Is_d_reg): Add V4HF and V8HF. Fix white-space.
10849 (q): Add HF. Fix white-space.
10852 (cmp_op_unsp): Add UNSPEC_VCALE and UNSPEC_VCALT.
10853 (neon_vfm_lane_as): New.
10854 * config/arm/neon.md (add<mode>3_fp16): New.
10855 (sub<mode>3_fp16): New.
10856 (mul<mode>3add<mode>_neon): New.
10857 (fma<VH:mode>4_intrinsic): New.
10858 (fmsub<VCVTF:mode>4_intrinsic): Fix white-space.
10859 (fmsub<VH:mode>4_intrinsic): New.
10860 (<absneg_str><mode>2): New.
10861 (neon_v<absneg_str><mode>): New.
10862 (neon_v<fp16_rnd_str><mode>): New.
10863 (neon_vrsqrte<mode>): New.
10864 (neon_vpaddv4hf): New.
10865 (neon_vadd<mode>): New.
10866 (neon_vsub<mode>): New.
10867 (neon_vmulf<mode>): New.
10868 (neon_vfma<VH:mode>): New.
10869 (neon_vfms<VH:mode>): New.
10870 (neon_vc<cmp_op><mode>): New.
10871 (neon_vc<cmp_op><mode>_fp16insn): New
10872 (neon_vc<cmp_op_unsp><mode>_fp16insn_unspec): New.
10873 (neon_vca<cmp_op><mode>): New.
10874 (neon_vca<cmp_op><mode>_fp16insn): New.
10875 (neon_vca<cmp_op_unsp><mode>_fp16insn_unspec): New.
10876 (neon_vc<cmp_op>z<mode>): New.
10877 (neon_vabd<mode>): New.
10878 (neon_v<maxmin>f<mode>): New.
10879 (neon_vp<maxmin>fv4hf: New.
10880 (neon_<fmaxmin_op><mode>): New.
10881 (neon_vrecps<mode>): New.
10882 (neon_vrsqrts<mode>): New.
10883 (neon_vrecpe<mode>): New (VH variant).
10884 (neon_vdup_lane<mode>_internal): New.
10885 (neon_vdup_lane<mode>): New.
10886 (neon_vcvt<sup><mode>): New (VCVTHI variant).
10887 (neon_vcvt<sup><mode>): New (VH variant).
10888 (neon_vcvt<sup>_n<mode>): New (VH variant).
10889 (neon_vcvt<sup>_n<mode>): New (VCVTHI variant).
10890 (neon_vcvt<vcvth_op><sup><mode>): New.
10891 (neon_vmul_lane<mode>): New.
10892 (neon_vmul_n<mode>): New.
10893 * config/arm/unspecs.md (UNSPEC_VCALE): New
10894 (UNSPEC_VCALT): New.
10895 (UNSPEC_VFMA_LANE): New.
10896 (UNSPECS_VFMS_LANE): New.
10898 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
10900 * config/s390/s390.md ("*extzv<mode>_zEC12", "*extzv<mode>_z10")
10901 ("*extzv<mode><clobbercc_or_nocc>"):
10902 Correct a typo in a comment.
10904 ("*insv<mode>_zEC12", "*insv<mode>_z10")
10905 ("*insv<mode><clobbercc_or_nocc>"): Ditto.
10906 ("*insv<mode>_zEC12_appendbitsleft")
10907 ("*insv<mode><clobbercc_or_nocc>_appendbitsleft")
10908 ("*insv<mode>_z10_appendbitsleft"): Ditto.
10909 ("*insv<mode>_zEC12_noshift", "*insv<mode>_z10_noshift")
10910 ("*insv<mode><clobbercc_or_nocc>_noshift"): Ditto.
10911 Provide pattern with operands switched.
10912 ("*pre_z10_extv<mode>"):
10913 Use new subst patterns.
10914 ("*extzvdi<clobbercc_or_nocc>_lshiftrt", "*<risbg_n>_ior_and_sr_ze")
10915 ("*extvsidi<clobbercc_or_nocc>", "*<risbg_n>_and_subregdi_rotr")
10916 ("*<risbg_n>_and_subregdi_rotl", "*<risbg_n>_di_and_rot")
10917 ("*insv_z10_noshift_cc", "*insv_z10_noshift_cconly")
10918 ("*<risbg_n>_<mode>_ior_and_lshiftrt")
10919 ("*<risbg_n>_sidi_ior_and_lshiftrt")
10920 ("*trunc_sidi_and_subreg_lshrt<clobbercc_or_nocc>"):
10922 ("*extzv_<mode>_sll", "*extzv_<mode>_srl")
10923 ("*extzv_<mode>_srl<clobbercc_or_nocc>")
10924 ("*extzv_<mode>_sll<clobbercc_or_nocc>"): Renamed patterns, use risbgn
10926 ("SINT"): New mode_iterator with SI, HI, QI.
10927 * config/s390/subst.md ("clobbercc_or_nocc_subst", "z10_or_zEC12_cond")
10928 ("clobbercc_or_nocc", "risbg_n"): New constructs for risbg pattern
10931 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
10933 * config/s390/predicates.md ("contiguous_bitmask_operand"): Adapt to
10934 new interface of s390_contiguous_bitmask_p.
10935 ("contiguous_bitmask_nowrap_operand"): New predicate.
10936 ("*anddi3_cc", "*anddi3_cconly", "*anddi3"): Replace NxxDq with NxxDw.
10937 * config/s390/constraints.md ("NxxDw", "NxxSq"): Adapt to new interface
10938 of s390_contiguous_bitmask_p.
10939 ("NxxDw"): Rename NxxDq constraint to NxxDw.
10940 ("NxxSw"): New constraint.
10941 * config/s390/s390.md ("*andsi3_zarch"): Enable bitmask wraparound.
10942 * config/s390/s390-protos.h (s390_contiguous_bitmask_p): Updated
10944 (s390_contiguous_bitmask_nowrap_p): Export.
10945 * config/s390/s390.c (s390_contiguous_bitmask_nowrap_p): New name of
10946 former s390_contiguous_bitmask_p.
10947 (s390_contiguous_bitmask_p): Use s390_contiguous_bitmask_nowrap_p to
10948 detect contiguous bit ranges with wraparound. Change signature to
10949 return START and END position instead of POS and LENGTH.
10950 (s390_contiguous_bitmask_vector_p): Remove extra code for continous bit
10951 ranges with wraparound.
10952 (s390_extzv_shift_ok): Use s390_contiguous_bitmask_nowrap_p.
10953 (s390_contiguous_bitmask_vector_p,s390_extzv_shift_ok,print_operand):
10954 Adapt to new signature of s390_contiguous_bitmask_p.
10956 2016-09-23 Bin Cheng <bin.cheng@arm.com>
10958 * tree-vect-loop-manip.c (create_intersect_range_checks_index): New.
10959 (create_intersect_range_checks): New.
10960 (vect_create_cond_for_alias_checks): Call above function.
10962 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
10964 * config/arm/iterators.md (Code iterators): Fix some white-space
10968 (FCVT): Moved from vfp.md.
10969 (VCVT_HF_US_N): New.
10970 (VCVT_SI_US_N): New.
10975 (FCVTI32typename): Moved from vfp.md.
10976 (sup): Add UNSPEC_VCVTA_S, UNSPEC_VCVTA_U, UNSPEC_VCVTM_S,
10977 UNSPEC_VCVTM_U, UNSPEC_VCVTN_S, UNSPEC_VCVTN_U, UNSPEC_VCVTP_S,
10978 UNSPEC_VCVTP_U, UNSPEC_VCVT_HF_S_N, UNSPEC_VCVT_HF_U_N,
10979 UNSPEC_VCVT_SI_S_N, UNSPEC_VCVT_SI_U_N, UNSPEC_VCVTH_S_N,
10980 UNSPEC_VCVTH_U_N, UNSPEC_VCVTH_S and UNSPEC_VCVTH_U.
10982 (fp16_rnd_str): New.
10983 (fp16_rnd_insn): New.
10984 * config/arm/unspecs.md (UNSPEC_VCVT_HF_S_N): New.
10985 (UNSPEC_VCVT_HF_U_N): New.
10986 (UNSPEC_VCVT_SI_S_N): New.
10987 (UNSPEC_VCVT_SI_U_N): New.
10988 (UNSPEC_VCVTH_S): New.
10989 (UNSPEC_VCVTH_U): New.
10990 (UNSPEC_VCVTA_S): New.
10991 (UNSPEC_VCVTA_U): New.
10992 (UNSPEC_VCVTM_S): New.
10993 (UNSPEC_VCVTM_U): New.
10994 (UNSPEC_VCVTN_S): New.
10995 (UNSPEC_VCVTN_U): New.
10996 (UNSPEC_VCVTP_S): New.
10997 (UNSPEC_VCVTP_U): New.
10998 (UNSPEC_VCVTP_S): New.
10999 (UNSPEC_VCVTP_U): New.
11000 (UNSPEC_VRND): New.
11001 (UNSPEC_VRNDA): New.
11002 (UNSPEC_VRNDI): New.
11003 (UNSPEC_VRNDM): New.
11004 (UNSPEC_VRNDN): New.
11005 (UNSPEC_VRNDP): New.
11006 (UNSPEC_VRNDX): New.
11007 * config/arm/vfp.md (<absneg_str>hf2): New.
11008 (neon_vabshf): New.
11009 (neon_v<fp16_rnd_str>hf): New.
11010 (neon_vrndihf): New.
11015 (*mulsf3neghf_vfp): New.
11016 (*negmulhf3_vfp): New.
11017 (*mulsf3addhf_vfp): New.
11018 (*mulhf3subhf_vfp): New.
11019 (*mulhf3neghfaddhf_vfp): New.
11020 (*mulhf3neghfsubhf_vfp): New.
11022 (neon_vfmahf): New.
11023 (fmsubhf4_fp16): New.
11024 (neon_vfmshf): New.
11027 (neon_vsqrthf): New.
11028 (neon_vrsqrtshf): New.
11029 (FCVT): Move to iterators.md.
11030 (FCVTI32typename): Likewise.
11031 (neon_vcvth<sup>hf): New.
11032 (neon_vcvth<sup>si): New.
11033 (neon_vcvth<sup>_nhf_unspec): New.
11034 (neon_vcvth<sup>_nhf): New.
11035 (neon_vcvth<sup>_nsi_unspec): New.
11036 (neon_vcvth<sup>_nsi): New.
11037 (neon_vcvt<vcvth_op>h<sup>si): New.
11038 (neon_<fmaxmin_op>hf): New.
11040 2016-09-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
11042 * config/s390/s390.md (bitoff, bitoff_plus): Neq mode attributes.
11043 ("*extzv<mode>_zEC12", "*insv<mode>_zEC12", "*insv<mode>_z10")
11044 ("*insv<mode>_zEC12_appendbitsleft")
11045 ("*insv<mode>_z10_appendbitsleft", "*r<noxa>sbg_<mode>_sll")
11046 ("*r<noxa>sbg_<mode>_srl"): Use new attributes.
11048 2016-09-23 Jakub Jelinek <jakub@redhat.com>
11050 * ipa-cp.c (ipcp_store_vr_results): Avoid static local var zero.
11051 * sreal.h (sreal::min, sreal::max): Avoid static local vars,
11052 construct values without normalization.
11053 * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't initialize
11054 static local lhs_ops to vNULL.
11056 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11057 Jiong Wang <jiong.wang@arm.com>
11059 * config/arm/arm.c (coproc_secondary_reload_class): Make HFmode
11060 available when FP16 instructions are available.
11061 (output_move_vfp): Add support for 16-bit data moves.
11062 (arm_validize_comparison): Fix some white-space. Support HFmode
11063 by conversion to SFmode.
11064 * config/arm/arm.md (truncdfhf2): Fix a comment.
11065 (extendhfdf2): Likewise.
11067 (movsicc): Fix some white-space.
11069 (movsfcc): Fix some white-space.
11071 * config/arm/vfp.md (*arm_movhi_vfp): Disable when VFP FP16
11072 instructions are available.
11073 (*thumb2_movhi_vfp): Likewise.
11074 (*arm_movhi_fp16): New.
11075 (*thumb2_movhi_fp16): New.
11076 (*movhf_vfp_fp16): New.
11077 (*movhf_vfp_neon): Disable when VFP FP16 instructions are available.
11078 (*movhf_vfp): Likewise.
11079 (extendhfsf2): Enable when VFP FP16 instructions are available.
11080 (truncsfhf2): Enable when VFP FP16 instructions are available.
11082 2016-09-23 Martin Liska <mliska@suse.cz>
11084 * config/s390/vx-builtins.md: Replace 'adress' with 'address'.
11086 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11088 * config/arm/arm.c (arm_evpc_neon_vuzp): Add support for V8HF and
11090 (arm_evpc_neon_vtrn): Likewise.
11091 (arm_evpc_neon_vrev): Likewise.
11092 (arm_evpc_neon_vext): Likewise.
11093 * config/arm/arm_neon.h (vbsl_f16): New.
11096 (vdupq_n_f16): New.
11097 (vdup_lane_f16): New.
11098 (vdupq_lane_f16): New.
11102 (vmovq_n_f16): New.
11104 (vrev64q_f16): New.
11111 * config/arm/arm_neon_buillins.def (vdup_n): New (v8hf, v4hf variants).
11112 (vdup_lane): New (v8hf, v4hf variants).
11113 (vext): New (v8hf, v4hf variants).
11114 (vbsl): New (v8hf, v4hf variants).
11115 * config/arm/iterators.md (VDQWH): New.
11117 (V_double_vector_mode): Add V8HF and V4HF. Fix white-space.
11118 (Scalar_mul_8_16): Fix white-space.
11119 (Is_d_reg): Add V4HF and V8HF.
11120 * config/arm/neon.md (neon_vdup_lane<mode>_internal): New.
11121 (neon_vdup_lane<mode>): New.
11122 (neon_vtrn<mode>_internal): Replace VDQW with VDQWH.
11123 (*neon_vtrn<mode>_insn): Likewise.
11124 (neon_vzip<mode>_internal): Likewise. Also fix white-space.
11125 (*neon_vzip<mode>_insn): Likewise
11126 (neon_vuzp<mode>_internal): Likewise.
11127 (*neon_vuzp<mode>_insn): Likewise
11128 * config/arm/vec-common.md (vec_perm_const<mode>): New.
11130 2016-09-23 Jiong Wang <jiong.wang@arm.com>
11131 Matthew Wahab <matthew.wahab@arm.com>
11133 * config/arm/arm.c (output_move_vfp): Weaken assert to allow HImode.
11134 (arm_hard_regno_mode_ok): Allow HImode values in VFP registers.
11135 * config/arm/arm.md (*movhi_bytes): Disable when VFP registers are
11136 available. Also fix some white-space.
11137 * config/arm/vfp.md (*arm_movhi_vfp): New.
11138 (*thumb2_movhi_vfp): New.
11140 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11142 * config/arm/arm-c.c (arm_cpu_builtins): Define
11143 "__ARM_FEATURE_FP16_SCALAR_ARITHMETIC" and
11144 "__ARM_FEATURE_FP16_VECTOR_ARITHMETIC".
11146 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11148 * doc/sourcebuild.texi (ARM-specific attributes): Add anchor for
11149 arm_v8_1a_neon_ok. Add entries for arm_v8_2a_fp16_scalar_ok,
11150 arm_v8_2a_fp16_scalar_hw, arm_v8_2a_fp16_neon_ok and
11151 arm_v8_2a_fp16_neon_hw.
11152 (Add options): Add entries for arm_v8_1a_neon, arm_v8_2a_scalar,
11155 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11157 * doc/sourcebuild.texi (ARM-specific attributes): Add entries for
11158 arm_fp16_alternative_ok and arm_fp16_none_ok.
11160 2016-09-23 Martin Liska <mliska@suse.cz>
11162 * ipa-icf.c (sem_variable::merge): Replace adress with address.
11164 2016-09-23 Matthew Wahab <matthew.wahab@arm.com>
11166 * config/arm/arm-arches.def ("armv8.1-a"): Add FL_CRC32.
11167 ("armv8.2-a"): New.
11168 ("armv8.2-a+fp16"): New.
11169 * config/arm/arm-protos.h (FL2_ARCH8_2): New.
11170 (FL2_FP16INST): New.
11171 (FL2_FOR_ARCH8_2A): New.
11172 * config/arm/arm-tables.opt: Regenerate.
11173 * config/arm/arm.c (arm_arch8_2): New.
11174 (arm_fp16_inst): New.
11175 (arm_option_override): Set arm_arch8_2 and arm_fp16_inst. Check
11176 for incompatible fp16-format settings.
11177 * config/arm/arm.h (TARGET_VFP_FP16INST): New.
11178 (TARGET_NEON_FP16INST): New.
11179 (arm_arch8_2): Declare.
11180 (arm_fp16_inst): Declare.
11181 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for
11182 march=armv8.2-a and march=armv8.2-a+fp16.
11183 * config/arm/t-aprofile (Arch Matches): Add entries for armv8.2-a
11184 and armv8.2-a+fp16.
11185 * doc/invoke.texi (ARM Options): Add "-march=armv8.1-a",
11186 "-march=armv8.2-a" and "-march=armv8.2-a+fp16".
11188 2016-09-23 Martin Liska <mliska@suse.cz>
11190 * doc/extend.texi: Remove fused-madd from i386 target options.
11192 2016-09-23 Martin Liska <mliska@suse.cz>
11194 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
11197 2016-09-23 Martin Liska <mliska@suse.cz>
11199 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
11202 2016-09-23 Martin Liska <mliska@suse.cz>
11205 * config/i386/i386.c (ix86_option_override_internal): Change
11206 signature and return false when there's an error related to
11208 (release_options_strings): New function.
11209 (ix86_valid_target_attribute_tree): Call the function.
11211 2016-09-23 Jakub Jelinek <jakub@redhat.com>
11213 * hsa-gen.c (hsa_op_immed::hsa_op_immed Use CONSTRUCTOR_NELTS (...)
11214 instead of vec_safe_length (CONSTRUCTOR_ELTS (...)).
11215 (gen_hsa_ctor_assignment): Likewise.
11216 * print-tree.c (print_node): Likewise.
11217 * tree-dump.c (dequeue_and_dump): Likewise.
11218 * tree-sra.c (sra_modify_constructor_assign): Likewise.
11219 * expr.c (store_constructor): Likewise.
11220 * fold-const.c (operand_equal_p): Likewise.
11221 * tree-pretty-print.c (dump_generic_node): Likewise.
11222 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Likewise.
11223 * ipa-icf-gimple.c (func_checker::compare_operand): Likewise.
11225 2016-09-23 Richard Biener <rguenther@suse.de>
11227 * hooks.h (hook_uint_uintp_false): Declare.
11229 2016-09-22 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
11231 * config/avr/avr.c (avr_rtx_costs_1): Handle DImode MULT.
11232 (avr_address_cost): Replace 61 with MAX_LD_OFFSET(mode).
11234 2016-09-22 Martin Sebor <msebor@redhat.com>
11237 * gimple-ssa-sprintf.c (target_int_min, target_int_max): Use
11238 HOST_BITS_PER_WIDE_INT, make a static local variable auto.
11239 (target_int_min): Correct computation.
11240 (format_integer): Use long long as the argument for the ll length
11242 (format_floating): Use target_int_max().
11243 (get_string_length): Same.
11244 (format_string): Avoid setting the bounded flag for strings
11246 (try_substitute_return_value): Avoid setting range info when
11247 the result isn't bounded.
11248 * varasm.c (assemble_name): Increase buffer size.
11250 2016-09-22 Andre Vieira <andre.simoesdiasvieira@arm.com>
11251 Terry Guo <terry.guo@arm.com>
11253 * target.def (elf_flags_numeric): New target hook.
11254 * targhooks.h (default_asm_elf_flags_numeric): New.
11255 * varasm.c (default_asm_elf_flags_numeric): New.
11256 (default_elf_asm_named_section): Use new target hook.
11257 * config/arm/arm.opt (mpure-code): New.
11258 * config/arm/arm.h (SECTION_ARM_PURECODE): New.
11259 * config/arm/arm.c (arm_asm_init_sections): Add section
11260 attribute to default text section if -mpure-code.
11261 (arm_option_check_internal): Diagnose use of option with
11262 non supported targets and/or options.
11263 (arm_asm_elf_flags_numeric): New.
11264 (arm_function_section): New.
11265 (arm_elf_section_type_flags): New.
11266 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Disable
11268 * doc/texi (TARGET_ASM_ELF_FLAGS_NUMERIC): New.
11269 * doc/texi.in (TARGET_ASM_ELF_FLAGS_NUMERIC): Likewise.
11271 2016-09-22 Jan Hubicka <hubicka@ucw.cz>
11273 * regcprop.c (copyprop_hardreg_forward_1): Remove noop moves.
11275 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11277 * emit-rtl.c (next_cc0_user): Make argument type rtx_insn *.
11278 * rtl.h: Adjust prototype.
11280 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11282 * emit-rtl.c (next_active_insn): Change argument type to rtx_insn *.
11283 (prev_active_insn): Likewise.
11284 (active_insn_p): Likewise.
11285 * rtl.h: Adjust prototypes.
11286 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
11287 * config/arc/arc.md: Likewise.
11288 * config/pa/pa.c (branch_to_delay_slot_p): Likewise.
11289 (branch_needs_nop_p): Likewise.
11290 (use_skip_p): Likewise.
11291 * config/sh/sh.c (gen_block_redirect): Likewise.
11292 (split_branches): Likewise.
11293 * reorg.c (optimize_skip): Likewise.
11294 (fill_simple_delay_slots): Likewise.
11295 (fill_slots_from_thread): Likewise.
11296 (relax_delay_slots): Likewise.
11297 * resource.c (mark_target_live_regs): Likewise.
11299 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11301 * config/cris/cris.c (cris_asm_output_case_end): Change argument
11302 type to rtx_insn *.
11303 * emit-rtl.c (next_nonnote_nondebug_insn): Likewise.
11304 (prev_nonnote_nondebug_insn): Likewise.
11305 * config/cris/cris-protos.h: Adjust prototype.
11307 * jump.c (rtx_renumbered_equal_p): Adjust.
11309 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11311 * emit-rtl.c (prev_real_insn): Change argument type to rtx_insn *.
11312 * rtl.h: Adjust prototype.
11313 * config/sh/sh.md: Adjust.
11314 * dwarf2out.c (add_var_loc_to_decl): Likewise.
11316 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11318 * emit-rtl.c (next_nondebug_insn): Change argument type to rtx_insn *.
11319 (prev_nondebug_insn): Likewise.
11320 * loop-doloop.c (doloop_condition_get): Likewise.
11321 * rtl.h: Adjust prototype.
11322 * cfgloop.h: Likewise.
11324 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11326 * emit-rtl.c (next_nonnote_insn): Change argument type to rtx_insn *.
11327 (prev_nonnote_insn): Likewise.
11328 * jump.c (reversed_comparison_code_parts): Likewise.
11329 (reversed_comparison): Likewise.
11330 * rtl.h: Adjust prototypes.
11331 * config/arc/arc.md: Adjust.
11332 * cse.c (find_comparison_args): Likewise.
11333 * reorg.c (redundant_insn): Change return type to rtx_insn *.
11334 (fix_reg_dead_note): Change argument type to rtx_insn *.
11335 (delete_prior_computation): Likewise.
11336 (delete_computation): Likewise.
11337 (fill_slots_from_thread): Adjust.
11338 (relax_delay_slots): Likewise.
11339 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
11340 (simplify_relational_operation_1): Likewise.
11341 (simplify_ternary_operation): Likewise.
11343 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11345 * config/arc/arc-protos.h (arc_label_align): Change type of
11346 variables from rtx to rtx_insn *.
11347 * config/arc/arc.c (arc_label_align): Likewise.
11348 * config/arm/arm.c (any_sibcall_could_use_r3): Likewise.
11349 * config/bfin/bfin.c (workaround_speculation): Likewise.
11350 * config/c6x/c6x.c (find_next_cycle_insn): Likewise.
11351 (find_last_same_clock): Likewise.
11352 (reorg_split_calls): Likewise.
11353 * config/cris/cris-protos.h (cris_cc0_user_requires_cmp): Likewise.
11354 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise.
11355 * config/h8300/h8300-protos.h (same_cmp_preceding_p): Likewise.
11356 (same_cmp_following_p): Likewise.
11357 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise.
11358 (same_cmp_following_p): Likwise.
11359 * config/m32r/m32r.c (m32r_expand_epilogue): Likewise.
11360 * config/nds32/nds32-protos.h (nds32_target_alignment): Likewise.
11361 * config/nds32/nds32.c (nds32_target_alignment): Likewise.
11362 * config/rl78/rl78.c (rl78_alloc_physical_registers_op2): Likewise.
11363 (rl78_alloc_physical_registers_cmp): Likewise.
11364 (rl78_alloc_physical_registers_umul): Likewise.
11365 (rl78_calculate_death_notes): Likewise.
11366 * config/s390/s390-protos.h (s390_label_align): Likewise.
11367 * config/s390/s390.c (s390_label_align): Likewise.
11368 * config/sh/sh.c (barrier_align): Likewise.
11369 * config/sparc/sparc-protos.h (emit_cbcond_nop): Likewise.
11370 * config/sparc/sparc.c (sparc_asm_function_epilogue): Likewise.
11371 (emit_cbcond_nop): Likewise.
11373 2016-09-22 Martin Liska <mliska@suse.cz>
11376 * ipa-icf.c (sem_variable::merge): Yield merge operation if
11377 alias address matters, not necessarily address of original.
11379 2016-09-22 Richard Biener <rguenther@suse.de>
11381 PR middle-end/77697
11382 * gimple-fold.c (fold_array_ctor_reference): Turn asserts into
11385 2016-09-22 Richard Biener <rguenther@suse.de>
11387 PR middle-end/77677
11388 * gimple-match-head.c (gimple_resimplify1): Drop TREE_OVERFLOW
11389 from constant folding results.
11390 (gimple_resimplify2): Likewise.
11391 (gimple_resimplify3): Likewise.
11393 2016-09-22 Richard Biener <rguenther@suse.de>
11395 PR middle-end/77678
11396 * expr.c (expand_expr_real_1): Guard array access against negative
11399 2016-09-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11401 * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN instead
11403 (format_floating): Likewise.
11405 2016-09-22 Jakub Jelinek <jakub@redhat.com>
11408 * tree-inline.c (remap_gimple_stmt): Set has_simduid_loops
11409 for all IFN_GOMP_SIMD_* internal fns, not just for
11410 IFN_GOMP_SIMD_ORDERED_*.
11412 2016-09-21 Michael Meissner <meissner@linux.vnet.ibm.com>
11415 * config/rs6000/predicates.md (invert_fpmask_comparison_operator):
11416 New predicate that matches the ISA 3.0 XSCMP{EQ,GT,GE}DP
11417 instructions when you want to invert the test.
11418 * config/rs6000/rs6000.md (fpmask<mode>): Use the arguments in the
11419 correct order for XXSEL.
11420 (mov<SFDF:mode><SFDF2:mode>cc_invert_p9): Define the inverted test
11421 for using XSCMP{EQ,GT,GE}DP.
11423 2016-09-21 David Malcolm <dmalcolm@redhat.com>
11425 * genconstants.c (main): Introduce noop_reader and convert call
11426 to read_md_files to a method call.
11427 * genenums.c (main): Likewise.
11428 * genmddeps.c (main): Likewise.
11429 * genpreds.c (write_tm_constrs_h): Replace use of "in_fname" with
11430 rtx_reader_ptr->get_top_level_filename ().
11431 (write_tm_preds_h): Likewise.
11432 (write_insn_preds_c): Likewise.
11433 * gensupport.c (class gen_reader): New subclass of rtx_reader.
11434 (rtx_handle_directive): Convert to...
11435 (gen_reader::handle_unknown_directive): ...this.
11436 (init_rtx_reader_args_cb): Convert return type from bool to
11437 rtx_reader *. Create a gen_reader instance, using it for the
11438 call to read_md_files. Return it if no errors occur.
11439 (init_rtx_reader_args): Convert return type from bool to
11441 * gensupport.h (init_rtx_reader_args_cb): Likewise.
11442 (init_rtx_reader_args_cb): Likewise.
11443 * read-md.c (struct file_name_list): Move to class rtx_reader.
11444 (read_md_file): Delete in favor of rtx_reader::m_read_md_file.
11445 (read_md_filename): Delete in favor of
11446 rtx_reader::m_read_md_filename.
11447 (read_md_lineno): Delete in favor of rtx_reader::m_read_md_lineno.
11448 (in_fname): Delete in favor of rtx_reader::m_toplevel_fname.
11449 (base_dir): Delete in favor of rtx_reader::m_base_dir.
11450 (first_dir_md_include): Delete in favor of
11451 rtx_reader::m_first_dir_md_include.
11452 (last_dir_md_include_ptr): Delete in favor of
11453 rtx_reader::m_last_dir_md_include_ptr.
11454 (max_include_len): Delete.
11455 (rtx_reader_ptr): New.
11456 (fatal_with_file_and_line): Use get_filename and get_lineno
11457 accessors of rtx_reader_ptr.
11458 (require_char_ws): Likewise.
11459 (rtx_reader::read_char): New method, based on ::read_char.
11460 (rtx_reader::unread_char): New method, based on ::unread_char.
11461 (read_escape): Use get_filename and get_lineno accessors of
11463 (read_braced_string): Use get_lineno accessor of rtx_reader_ptr.
11464 (read_string): Use get_filename and get_lineno accessors of
11466 (rtx_reader::rtx_reader): New ctor.
11467 (rtx_reader::~rtx_reader): New dtor.
11468 (handle_include): Convert from a function to...
11469 (rtx_reader::handle_include): ...this method, converting
11470 handle_directive from a callback to a virtual function.
11471 (handle_file): Likewise, converting to...
11472 (rtx_reader::handle_file): ...this method.
11473 (handle_toplevel_file): Likewise, converting to...
11474 (rtx_reader::handle_toplevel_file): ...this method.
11475 (rtx_reader::get_current_location): New method.
11476 (parse_include): Convert from a function to...
11477 (rtx_reader::add_include_path): ...this method, dropping redundant
11478 update to unused max_include_len.
11479 (read_md_files): Convert from a function to...
11480 (rtx_reader::read_md_files): ...this method, converting
11481 handle_directive from a callback to a virtual function.
11482 (noop_reader::handle_unknown_directive): New method.
11483 * read-md.h (directive_handler_t): Delete this typedef.
11484 (in_fname): Delete.
11485 (read_md_file): Delete.
11486 (read_md_lineno): Delete.
11487 (read_md_filename): Delete.
11488 (class rtx_reader): New class.
11489 (rtx_reader_ptr): New decl.
11490 (class noop_reader): New subclass of rtx_reader.
11491 (read_char): Reimplement in terms of rtx_reader::read_char.
11492 (unread_char): Reimplement in terms of rtx_reader::unread_char.
11493 (read_md_files): Delete.
11494 * read-rtl.c (read_rtx_code): Update for deletion of globals
11495 read_md_filename and read_md_lineno.
11497 2016-09-21 Jason Merrill <jason@redhat.com>
11499 * input.h (from_macro_definition_at): New.
11501 2016-09-21 Segher Boessenkool <segher@kernel.crashing.org>
11503 * doc/rtl.texi (JUMP_LABEL): Document RETURN and SIMPLE_RETURN values.
11505 2016-09-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
11507 PR tree-optimization/77550
11508 * tree-vect-stmts.c (create_array_ref): Change parameters.
11509 (get_group_alias_ptr_type): New function.
11510 (vectorizable_store, vectorizable_load): Use get_group_alias_ptr_type.
11512 2016-09-21 Marek Polacek <polacek@redhat.com>
11514 * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
11515 Add falls through comment.
11517 2016-09-21 Richard Biener <rguenther@suse.de>
11519 * dwarf2out.c (remove_child_with_prev): Clear child->die_sib.
11520 (replace_child): Likewise.
11521 (remove_child_TAG): Adjust.
11522 (move_marked_base_types): Likewise.
11523 (prune_unused_types_prune): Clear die_sib of removed children.
11525 2016-09-21 Georg-Johann Lay <avr@gjlay.de>
11528 * config/avr/avr.c (avr_notice_update_cc) [CC_NONE]: If insn
11529 touches some regs mentioned in cc_status, do CC_STATUS_INIT.
11531 2016-09-21 Richard Biener <rguenther@suse.de>
11533 PR tree-optimization/77648
11534 * tree-ssa-structalias.c (process_constraint): Handle all DEREF
11536 (make_transitive_closure_constraints): Adjust comment.
11537 (make_any_offset_constraints): New function.
11538 (handle_rhs_call): Make sure to first expand a pointer to all
11539 subfields before transitively closing it.
11540 (handle_const_call): Likewise. Properly expand returned
11542 (handle_pure_call): Likewise.
11544 2016-09-21 Richard Biener <rguenther@suse.de>
11545 Jakub Jelinek <jakub@redhat.com>
11547 PR tree-optimization/77621
11548 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
11549 group at non-vectorizable stmts.
11551 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
11553 PR tree-optimization/72835
11554 * tree-ssa-reassoc.c (make_new_ssa_for_def): New.
11555 (make_new_ssa_for_all_defs): Likewise.
11556 (zero_one_operation): Replace all SSA_NAMEs defined in the chain.
11558 2016-09-20 Martin Sebor <msebor@redhat.com>
11560 PR middle-end/49905
11561 * Makefile.in (OBJS): Add gimple-ssa-sprintf.o.
11562 * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Redefine.
11563 * config/linux.c (gnu_libc_printf_pointer_format): New function.
11564 * config/sol2.h (TARGET_PRINTF_POINTER_FORMAT): Same.
11565 * config/sol2.c (solaris_printf_pointer_format): New function.
11566 * doc/invoke.texi (-Wformat-length, -fprintf-return-value): New
11568 * doc/tm.texi.in (TARGET_PRINTF_POINTER_FORMAT): Document.
11569 * doc/tm.texi: Regenerate.
11570 * gimple-fold.h (get_range_strlen): New function.
11571 (get_maxval_strlen): Declare existing function.
11572 * gimple-fold.c (get_range_strlen): Add arguments and compute both
11573 maximum and minimum.
11574 (get_range_strlen): Define overload.
11575 (get_maxval_strlen): Adjust.
11576 * gimple-ssa-sprintf.c: New file and pass.
11577 * passes.def (pass_sprintf_length): Add new pass.
11578 * targhooks.h (default_printf_pointer_format): Declare new function.
11579 (gnu_libc_printf_pointer_format): Same.
11580 (solaris_libc_printf_pointer_format): Same.
11581 * targhooks.c (default_printf_pointer_format): Define new function.
11582 * tree-pass.h (make_pass_sprintf_length): Declare new function.
11583 * print-tree.c: Increase buffer size.
11585 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
11587 * tree-vrp.c (get_value_range): Teach PARM_DECL to use ipa-vrp results.
11589 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
11591 * common.opt: New option -fipa-vrp.
11592 * ipa-cp.c (ipa_get_vr_lat): New.
11593 (ipcp_vr_lattice::print): Likewise.
11594 (print_all_lattices): Call ipcp_vr_lattice::print.
11595 (ipcp_vr_lattice::meet_with): New.
11596 (ipcp_vr_lattice::meet_with_1): Likewise.
11597 (ipcp_vr_lattice::top_p): Likewise.
11598 (ipcp_vr_lattice::bottom_p): Likewsie.
11599 (ipcp_vr_lattice::set_to_bottom): Likewise.
11600 (set_all_contains_variable): Call VR set_to_bottom.
11601 (initialize_node_lattices): Init VR lattices.
11602 (propagate_vr_accross_jump_function): New.
11603 (propagate_constants_accross_call): Call
11604 propagate_vr_accross_jump_function.
11605 (ipcp_store_vr_results): New.
11606 (ipcp_driver): Handle VR.
11607 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Handle VR.
11608 (ipa_set_jf_unknown): Likewise.
11609 (ipa_compute_jump_functions_for_edge): Likewise.
11610 (ipa_node_params_t::duplicate): Likewise.
11611 (ipa_write_jump_function): Likewise.
11612 (ipa_read_jump_function): Likewise.
11613 (write_ipcp_transformation_info): Likewise.
11614 (read_ipcp_transformation_info): Likewise.
11615 (ipcp_update_vr): New.
11616 (ipcp_transform_function): Handle VR.
11617 * ipa-prop.h (struct ipa_vr): New.
11618 * cgraph.c: Include tree-vrp.h.
11619 * cgraphunit.c: Likewise.
11620 * ipa-utils.c: Likewise.
11622 * opts.c: Likewise.
11623 * toplev.c: Likewise.
11624 * ipa-devirt.c: Likewise.
11625 * ipa-inline-transform.c: Likewise.
11626 * ipa-inline.c: Likewise.
11627 * ipa-profile.c: Likewise.
11629 2016-09-21 Kugan Vivekanandarajah <kuganv@linaro.org>
11631 * doc/invoke.texi: Document -fdump-tree-evrp.
11632 * passes.def: Define new pass_early_vrp.
11633 * timevar.def: Define new TV_TREE_EARLY_VRP.
11634 * tree-pass.h (make_pass_early_vrp): New.
11635 * tree-ssa-propagate.c: Make replace_uses_in non static.
11636 * tree-ssa-propagate.h: Export replace_uses_in.
11637 * tree-vrp.c (extract_range_for_var_from_comparison_expr): New.
11638 (extract_range_from_assert): Factor out
11639 extract_range_for_var_from_comparison_expr.
11640 (vrp_initialize_lattice): New.
11641 (vrp_initialize): Factor out vrp_initialize_lattice.
11642 (vrp_valueize): Fix it to reject complex value ranges.
11643 (vrp_free_lattice): New.
11644 (evrp_dom_walker::before_dom_children): Likewise.
11645 (evrp_dom_walker::after_dom_children): Likewise.
11646 (evrp_dom_walker::push_value_range): Likewise.
11647 (evrp_dom_walker::pop_value_range): Likewise.
11648 (execute_early_vrp): Likewise.
11649 (execute_vrp): Call vrp_initialize_lattice and vrp_free_lattice.
11650 (make_pass_early_vrp): New.
11652 2016-09-20 Uros Bizjak <ubizjak@gmail.com>
11654 * config/i386/i386.md (mult->ashift peephole2s): Use pow2p_hwi
11655 instead of exact_log2.
11657 2016-09-20 Uros Bizjak <ubizjak@gmail.com>
11660 * config/i386/i386.c (ix86_preferred_simd_mode) <case DFmode>:
11661 Don't return word_mode for !TARGET_VECTORIZE_DOUBLE.
11662 (ix86_add_stmt_cost): Penalize DFmode vector operations
11663 for !TARGET_VECTORIZE_DOUBLE.
11665 2016-09-20 Gerald Pfeifer <gerald@pfeifer.com>
11667 * doc/invoke.texi (Warning Options): Simplify language.
11668 (Optimize Options): Complete sentence.
11670 2016-09-20 David Edelsohn <dje.gcc@gmail.com>
11672 * dbxout.c (xcoff_debug_hooks): Add filename parameter to
11675 2016-09-20 Michael Meissner <meissner@linux.vnet.ibm.com>
11678 * config/rs6000/rs6000.c (rs6000_expand_vector_init): For V4SF
11679 inits on power8 and above, use the VMRGEW instruction instead of a
11682 * config/rs6000/altivec.md (UNSPEC_VMRGEW_DIRECT): New unspec.
11683 (p8_vmrgew_v4sf_direct): New VMRGEW insn for V4SF floating
11686 2016-09-20 Tamar Christina <tamar.christina@arm.com>
11688 * config/aarch64/arm_neon.h
11689 (vst2_s64, vst2_u64, vst2_f64, vst2_s8): Add missing attributes.
11690 (vst3_s64, vst3_u64, vst3_f64, vst3_s8): Likewise.
11691 (vst4_s64, vst4_u64, vst4_f64, vst4_s8): Likewise.
11693 2016-09-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
11695 * config/var/vax.h (ELIMINABLE_REGS): Define.
11696 (INITIAL_ELIMINATION_OFFSET): Define.
11698 2016-09-20 Jakub Jelinek <jakub@redhat.com>
11700 PR middle-end/77624
11701 * builtins.c (fold_builtin_atomic_always_lock_free): Only look through
11702 cast to void * if the cast is from some other pointer type.
11704 2016-09-20 Richard Biener <rguenther@suse.de>
11706 PR tree-optimization/77646
11707 * tree-ssa-sccvn.c (visit_reference_op_call): Always value-number
11710 2016-09-20 Tamar Christina <tamar.christina@arm.com>
11712 * config/aarch64/arm_neon.h: Add gnu_inline and artificial
11713 attributes to all inlined functions and make them extern.
11715 2016-09-20 Richard Biener <rguenther@suse.de>
11717 * debug.h (gcc_debug_hooks): Add filename parameter to early_finish
11719 * debug.c (do_nothing_debug_hooks): Adjust.
11720 * dbxout.c (dbx_debug_hooks): Likewise.
11721 * sdbout.c (sdb_debug_hooks): Likewise.
11722 * dwarf2out.c (dwarf2_lineno_debug_hooks): Likewise.
11723 (dwarf2out_finish): Move producer, filename and
11724 path annotation ...
11725 (dwarf2out_early_finish): ... here. Remove in_lto_p special-casing.
11726 * cgraphunit.c (symbol_table::finalize_compilation_unit): Adjust.
11728 2016-09-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
11731 * doc/invoke.texi: Document -Wint-in-bool-context.
11733 PR middle-end/77421
11734 * dwarf2out.c (output_loc_operands): Fix an assertion.
11736 2016-09-19 Joseph Myers <joseph@codesourcery.com>
11738 * ginclude/float.h [__STDC_WANT_IEC_60559_BFP_EXT__]
11739 (CR_DECIMAL_DIG): New macro.
11741 2016-09-19 Joseph Myers <joseph@codesourcery.com>
11743 * ginclude/stddef.h (max_align_t) [__i386__]: Add __float128
11746 2016-09-19 Vladimir Makarov <vmakarov@redhat.com>
11748 PR rtl-optimization/77416
11749 * lra-remat.c (operand_to_remat): Process hard coded insn
11752 2016-09-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11754 * simplify-rtx.c (simplify_relational_operation_1): Add transformation
11755 (GTU (PLUS a C) (C - 1)) --> (LTU a -C).
11757 2016-09-19 Segher Boessenkool <segher@kernel.crashing.org>
11759 * target.def (lra_p): Wordsmithing.
11760 * doc/tm.texi: Regenerate.
11762 2016-09-19 Jakub Jelinek <jakub@redhat.com>
11763 Jan Hubicka <jh@suse.cz>
11766 * cgraph.c (cgraph_node::rtl_info): Pass &avail to
11767 ultimate_alias_target call, return NULL if avail < AVAIL_AVAILABLE.
11768 Call ultimate_alias_target just once, not up to 4 times.
11770 2016-09-19 Richard Biener <rguenther@suse.de>
11772 * dwarf2out.c (early_dwarf_finished): New global.
11773 (set_early_dwarf::set_early_dwarf): Assert early_dwarf_finished
11775 (dwarf2out_early_finish): Set early_dwarf_finished at the end,
11776 if called from LTO exit early.
11777 (dwarf2out_late_global_decl): When being during the early
11778 debug phase do not add locations but only const value attributes.
11779 Adjust the way we generate early DIEs for LTO.
11781 2016-09-19 Richard Biener <rguenther@suse.de>
11783 PR middle-end/77605
11784 * tree-data-ref.c (analyze_subscript_affine_affine): Use the
11785 proper niter to bound the loops.
11787 2016-09-19 Richard Biener <rguenther@suse.de>
11789 PR tree-optimization/77514
11790 * tree-ssa-pre.c (create_expression_by_pieces): Optimize
11791 search for folded stmt.
11793 2016-09-17 Jan Hubicka <hubicka@ucw.cz>
11795 * passes.def (pass_early_thread_jumps): Schedule after forwprop.
11796 * tree-pass.h (make_pass_early_thread_jumps): Declare.
11797 * tree-ssa-threadbackward.c (fsm_find_thread_path,
11798 fsm_find_thread_path, profitable_jump_thread_path,
11799 fsm_find_control_statement_thread_paths,
11800 find_jump_threads_backwards): Add speed_p parameter.
11801 (pass_data_early_thread_jumps): New pass.
11802 (make_pass_early_thread_jumps): New function.
11804 2016-09-17 Andreas Schwab <schwab@suse.de>
11806 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Add cast.
11807 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
11809 2016-09-16 Eric Botcazou <ebotcazou@adacore.com>
11811 * recog.c (rest_of_handle_split_after_reload): Delete.
11812 (pass_split_after_reload::gate): New method.
11813 (pass_split_after_reload::execute): Call split_all_insns directly.
11815 2016-09-16 Jonathan Wakely <jwakely@redhat.com>
11817 * doc/extend.texi (Integer Overflow Builtins): Fix type of out
11818 parameters for functions taking long long arguments.
11820 2016-09-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11823 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add support for
11824 splat with truncate.
11826 2016-09-16 Jason Merrill <jason@redhat.com>
11828 * hwint.h (least_bit_hwi, pow2_or_zerop, pow2p_hwi, ctz_or_zero):
11830 * hwint.c (exact_log2): Use pow2p_hwi.
11831 (ctz_hwi, ffs_hwi): Use least_bit_hwi.
11832 * alias.c (memrefs_conflict_p): Use pow2_or_zerop.
11833 * builtins.c (get_object_alignment_2, get_object_alignment)
11834 (get_pointer_alignment, fold_builtin_atomic_always_lock_free): Use
11836 * calls.c (compute_argument_addresses, store_one_arg): Use
11838 * cfgexpand.c (expand_one_stack_var_at): Use least_bit_hwi.
11839 * combine.c (force_to_mode): Use least_bit_hwi.
11840 (contains_muldiv, find_split_point, combine_simplify_rtx)
11841 (simplify_if_then_else, simplify_set, force_to_mode)
11842 (if_then_else_cond, simplify_and_const_int_1)
11843 (simplify_compare_const): Use pow2p_hwi.
11844 * cse.c (fold_rtx): Use pow2p_hwi.
11845 * emit-rtl.c (set_mem_attributes_minus_bitpos, adjust_address_1):
11847 * expmed.c (synth_mult, expand_divmod): Use ctz_or_zero, ctz_hwi.
11848 (init_expmed_one_conv): Use pow2p_hwi.
11849 * expr.c (is_aligning_offset): Use pow2p_hwi.
11850 * fold-const.c (round_up_loc, round_down_loc): Use pow2_or_zerop.
11851 (fold_binary_loc): Use pow2p_hwi.
11852 * function.c (assign_parm_find_stack_rtl): Use least_bit_hwi.
11853 * gimple-fold.c (gimple_fold_builtin_memory_op): Use pow2p_hwi.
11854 * gimple-ssa-strength-reduction.c (replace_ref): Use least_bit_hwi.
11855 * hsa-gen.c (gen_hsa_addr_with_align, hsa_bitmemref_alignment):
11857 * ifcvt.c (noce_try_store_flag_constants): Use pow2p_hwi.
11858 * ipa-cp.c (ipcp_alignment_lattice::meet_with_1): Use least_bit_hwi.
11859 * ipa-prop.c (ipa_modify_call_arguments): Use least_bit_hwi.
11860 * omp-low.c (oacc_loop_fixed_partitions)
11861 (oacc_loop_auto_partitions): Use least_bit_hwi.
11862 * rtlanal.c (nonzero_bits1): Use ctz_or_zero.
11863 * stor-layout.c (place_field): Use least_bit_hwi.
11864 * tree-pretty-print.c (dump_generic_node): Use pow2p_hwi.
11865 * tree-sra.c (build_ref_for_offset): Use least_bit_hwi.
11866 * tree-ssa-ccp.c (ccp_finalize): Use least_bit_hwi.
11867 * tree-ssa-math-opts.c (bswap_replace): Use least_bit_hwi.
11868 * tree-ssa-strlen.c (handle_builtin_memcmp): Use pow2p_hwi.
11869 * tree-vect-data-refs.c (vect_analyze_group_access_1)
11870 (vect_grouped_store_supported, vect_grouped_load_supported)
11871 (vect_permute_load_chain, vect_shift_permute_load_chain)
11872 (vect_transform_grouped_load): Use pow2p_hwi.
11873 * tree-vect-generic.c (expand_vector_divmod): Use ctz_or_zero.
11874 * tree-vect-patterns.c (vect_recog_divmod_pattern): Use ctz_or_zero.
11875 * tree-vect-stmts.c (vectorizable_mask_load_store): Use
11877 * tsan.c (instrument_expr): Use least_bit_hwi.
11878 * var-tracking.c (negative_power_of_two_p): Use pow2_or_zerop.
11880 2016-09-16 Andreas Schwab <schwab@suse.de>
11882 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Use parameter
11883 OFFSET, not offset.
11884 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
11886 2016-09-16 Jakub Jelinek <jakub@redhat.com>
11889 * combine.c (rest_of_handle_combine): If any edges have been purged,
11890 free dominators if available.
11892 2016-09-16 Jakub Jelinek <jakub@redhat.com>
11893 Eric Botcazou <ebotcazou@adacore.com>
11895 PR middle-end/77594
11896 * internal-fn.c (expand_arith_overflow) <case MINUS_EXPR>: Don't fall
11897 through into expand_addsub_overflow after expand_neg_overflow.
11899 2016-09-15 David Malcolm <dmalcolm@redhat.com>
11901 * diagnostic-show-locus.c
11902 (selftest::test_fixit_insert_containing_newline): New function.
11903 (selftest::test_fixit_replace_containing_newline): New function.
11904 (selftest::diagnostic_show_locus_c_tests): Call the above.
11906 2016-09-15 Bin Cheng <bin.cheng@arm.com>
11908 PR tree-optimization/77503
11909 * tree-vect-loop.c (vectorizable_reduction): Record reduction
11910 code for CONST_COND_REDUCTION at analysis stage and use it at
11912 * tree-vectorizer.h (struct _stmt_vec_info): New field.
11913 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): New macro.
11914 * tree-vect-stmts.c (new_stmt_vec_info): Initialize above new
11917 2016-09-15 Richard Biener <rguenther@suse.de>
11919 PR middle-end/77544
11920 * fold-const.c (split_tree): Do not split constant ~X.
11922 2016-09-15 Jakub Jelinek <jakub@redhat.com>
11924 PR rtl-optimization/77425
11925 * sched-int.h (sd_iterator_cond): Don't update it_ptr->linkp if list
11928 PR middle-end/77475
11929 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Simplify,
11930 use %qs instead of %s where desirable, use argument instead of arg in
11931 the diagnostic wording, add list of supported strategies and
11933 (ix86_option_override_internal): Emit target("m...") instead of
11934 option("m...") in the diagnostic. Use %qs instead of %s in invalid
11935 -march/-mtune option diagnostic. Add list of supported arches/tunings
11936 and spellcheck hint. Remove prefix, suffix and sw variables, use
11937 main_args_p ? "..." : "..." in diagnostics to make translation
11940 2016-09-15 Richard Biener <rguenther@suse.de>
11942 * dwarf2asm.h (dw2_asm_output_offset): Add overload with
11943 extra offset argument.
11944 * dwarf2asm.c (dw2_asm_output_offset): Implement that.
11945 * doc/tm.texi.in (ASM_OUTPUT_DWARF_OFFSET): Adjust documentation
11946 to reflect new offset parameter.
11947 * doc/tm.texi: Regenerate.
11948 * config/darwin.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
11949 * config/darwin-protos.h (darwin_asm_output_dwarf_delta): Add
11951 (darwin_asm_output_dwarf_offset): Likewise.
11952 * config/darwin.c (darwin_asm_output_dwarf_delta): Add offset
11954 (darwin_asm_output_dwarf_offset): Pass offset argument through.
11955 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
11956 * config/i386/cygmin.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
11958 2016-09-15 Chung-Lin Tang <cltang@codesourcery.com>
11961 * ipa-icf.c (set_alias_uids): New function.
11962 (sem_variable::merge): Use set_alias_uids to set DECL_PT_UID of
11963 all the merged variable's referring aliases.
11965 2016-09-15 Richard Biener <rguenther@suse.de>
11967 PR tree-optimization/77514
11968 * tree-ssa-pre.c (create_expression_by_pieces): Handle garbage
11969 only forced_stmts sequence.
11971 2016-09-15 Kugan Vivekanandarajah <kuganv@linaro.org>
11973 * tree-ssanames.h (FOR_EACH_SSA_NAME): New.
11974 * cfgexpand.c (update_alias_info_with_stack_vars): Use
11975 FOR_EACH_SSA_NAME to iterate over SSA variables.
11976 (pass_expand::execute): Likewise.
11977 * omp-simd-clone.c (ipa_simd_modify_function_body): Likewise.
11978 * tree-cfg.c (dump_function_to_file): Likewise.
11979 * tree-into-ssa.c (pass_build_ssa::execute): Likewise.
11980 (update_ssa): Likewise.
11981 * tree-ssa-alias.c (dump_alias_info): Likewise.
11982 * tree-ssa-ccp.c (ccp_finalize): Likewise.
11983 * tree-ssa-coalesce.c (build_ssa_conflict_graph): Likewise.
11984 (create_outofssa_var_map): Likewise.
11985 (coalesce_ssa_name): Likewise.
11986 * tree-ssa-operands.c (dump_immediate_uses): Likewise.
11987 * tree-ssa-pre.c (compute_avail): Likewise.
11988 * tree-ssa-sccvn.c (init_scc_vn): Likewise.
11989 (scc_vn_restore_ssa_info): Likewise.
11990 (free_scc_vn): Likwise.
11991 (run_scc_vn): Likewise.
11992 * tree-ssa-structalias.c (compute_points_to_sets): Likewise.
11993 * tree-ssa-ter.c (new_temp_expr_table): Likewise.
11994 * tree-ssa-copy.c (fini_copy_prop): Likewise.
11995 * tree-ssa.c (verify_ssa): Likewise.
11997 2016-09-14 Matthew Fortune <matthew.fortune@imgtec.com>
11999 * config.gcc (mips*-mti-elf*, mips*-mti-linux*): Set mips32r2
12000 and mips64r2 as default 32-bit and 64-bit architectures.
12001 (mips*-img-elf*, mips*-img-linux*): Set mips32r6 and mips64r6
12002 as default 32-bit and 64-bit architectures.
12004 2016-09-14 Pat Haugen <pthaugen@us.ibm.com>
12006 * loop-unroll.c (unroll_loop_runtime_iterations): Set probability
12009 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
12011 * target.def (lra_p): Change commentary (for the manual) for the
12013 * doc/tm.texi: Regenerate.
12015 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
12017 * config/aarch64/aarch64.c (TARGET_LRA_P): Delete macro.
12018 * config/arm/arm.c (TARGET_LRA_P): Delete macro.
12019 * config/i386/i386.c (TARGET_LRA_P): Delete macro.
12020 * config/nds32/nds32.c (TARGET_LRA_P): Delete macro.
12022 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
12024 * targhooks.c (default_lra_p): Return true instead of false.
12026 2016-09-14 Segher Boessenkool <segher@kernel.crashing.org>
12028 * config/alpha/alpha.c (TARGET_LRA_P): New macro, defined to
12029 hook_bool_void_false.
12030 * config/avr/avr.c: Ditto.
12031 * config/bfin/bfin.c: Ditto.
12032 * config/c6x/c6x.c: Ditto.
12033 * config/cr16/cr16.c: Ditto.
12034 * config/cris/cris.c: Ditto.
12035 * config/epiphany/epiphany.c: Ditto.
12036 * config/fr30/fr30.c: Ditto.
12037 * config/frv/frv.c: Ditto.
12038 * config/h8300/h8300.c: Ditto.
12039 * config/ia64/ia64.c: Ditto.
12040 * config/iq2000/iq2000.c: Ditto.
12041 * config/lm32/lm32.c: Ditto.
12042 * config/m32c/m32c.c: Ditto.
12043 * config/m32r/m32r.c: Ditto.
12044 * config/m68k/m68k.c: Ditto.
12045 * config/mcore/mcore.c: Ditto.
12046 * config/microblaze/microblaze.c: Ditto.
12047 * config/mmix/mmix.c: Ditto.
12048 * config/mn10300/mn10300.c: Ditto.
12049 * config/moxie/moxie.c: Ditto.
12050 * config/msp430/msp430.c: Ditto.
12051 * config/nios2/nios2.c: Ditto.
12052 * config/nvptx/nvptx.c: Ditto.
12053 * config/pa/pa.c: Ditto.
12054 * config/pdp11/pdp11.c: Ditto.
12055 * config/rl78/rl78.c: Ditto.
12056 * config/sparc/sparc.c: Ditto.
12057 * config/spu/spu.c: Ditto.
12058 * config/stormy16/stormy16.c: Ditto.
12059 * config/tilegx/tilegx.c: Ditto.
12060 * config/tilepro/tilepro.c: Ditto.
12061 * config/v850/v850.c: Ditto.
12062 * config/vax/vax.c: Ditto.
12063 * config/visium/visium.c: Ditto.
12064 * config/xtensa/xtensa.c: Ditto.
12066 2016-09-14 Jakub Jelinek <jakub@redhat.com>
12069 * tsan.c: Include target.h.
12070 (enum tsan_atomic_action): Add bool_clear and bool_test_and_set.
12071 (BOOL_CLEAR, BOOL_TEST_AND_SET): Define.
12072 (tsan_atomic_table): Add BUILT_IN_ATOMIC_CLEAR and
12073 BUILT_IN_ATOMIC_TEST_AND_SET entries.
12074 (instrument_builtin_call): Handle bool_clear and bool_test_and_set.
12076 2016-09-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
12077 Martin Liska <mliska@suse.cz>
12079 PR middle-end/77574
12080 * predict.c (force_edge_cold): Add braces to a condition.
12082 2016-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
12084 PR rtl-optimization/77289
12085 * lra-constraints.c (get_final_hard_regno): Removed.
12086 (get_hard_regno): Add new parameter final_p.
12087 (get_reg_class): Directly call lra_get_elimination_hard_regno.
12088 (operands_match_p): Adjust call to get_hard_regno.
12089 (uses_hard_regs_p): Likewise.
12090 (process_alt_operands): Likewise.
12092 2016-09-13 Joe Seymour <joe.s@somniumtech.com>
12095 * config/msp430/msp430.c (msp430_start_function): Emit an error
12096 if a function is both weak and specifies an interrupt number.
12098 2016-09-13 Jakub Jelinek <jakub@redhat.com>
12100 PR tree-optimization/77454
12101 * tree-ssa-dom.c (optimize_stmt): Set modified flag on stmt after
12102 changing GIMPLE_COND. Move update_stmt_if_modified call after this.
12105 2016-09-13 Tamar Christina <tamar.christina@arm.com>
12107 * config/aarch64/aarch64-builtins.c
12108 (aarch64_init_simd_builtins): Fix builtin type signature printing.
12110 2016-09-13 Uros Bizjak <ubizjak@gmail.com>
12112 * config/alpha/alpha.c (alpha_pass_by_reference): Pass un-named
12113 SFmode and SCmode arguments by reference.
12115 2016-09-13 David Malcolm <dmalcolm@redhat.com>
12117 * diagnostic-show-locus.c (selftest::test_one_liner_fixit_insert):
12119 (selftest::test_one_liner_fixit_insert_before): ...this, and update
12120 for renaming of add_fixit_insert to add_fixit_insert_before.
12121 (selftest::test_one_liner_fixit_insert_after): New function.
12122 (selftest::test_one_liner_fixit_validation_adhoc_locations):
12123 Update for renaming of add_fixit_insert to add_fixit_insert_before.
12124 (selftest::test_one_liner_many_fixits): Likewise.
12125 (selftest::test_diagnostic_show_locus_one_liner): Update for
12126 renaming, call new test function.
12127 (selftest::test_diagnostic_show_locus_fixit_lines): Update for
12128 renaming of add_fixit_insert to add_fixit_insert_before.
12129 (selftest::test_fixit_consolidation): Likewise.
12130 * diagnostic.c (selftest::test_print_parseable_fixits_insert):
12132 * edit-context.c (selftest::test_applying_fixits_insert): Rename to...
12133 (selftest::test_applying_fixits_insert_before): ...this.
12134 (selftest::test_applying_fixits_insert): Update for renaming of
12135 add_fixit_insert to add_fixit_insert_before.
12136 (selftest::test_applying_fixits_insert_after): New function.
12137 (selftest::test_applying_fixits_insert_after_at_line_end): New
12139 (selftest::test_applying_fixits_insert_after_failure): New function.
12140 (selftest::test_applying_fixits_multiple): Update for renaming of
12141 add_fixit_insert to add_fixit_insert_before.
12142 (selftest::change_line): Likewise.
12143 (selftest::test_applying_fixits_unreadable_file): Likewise.
12144 (selftest::test_applying_fixits_line_out_of_range): Likewise.
12145 (selftest::test_applying_fixits_column_validation): Likewise.
12146 (selftest::test_applying_fixits_column_validation): Likewise.
12147 (selftest::edit_context_c_tests): Update for renamed test function;
12148 call new test functions.
12150 2016-09-13 Pat Haugen <pthaugen@us.ibm.com>
12152 PR tree-optimization/77536
12153 PR rtl-optimization/68212
12154 * config/rs6000/rs6000.md (div->recip splitter): Remove
12155 optimize_insn_for_speed_p condition.
12157 2016-09-13 Maciej W. Rozycki <macro@imgtec.com>
12159 * optabs.c (prepare_cmp_insn): Update documentation comment.
12161 2016-09-13 Jakub Jelinek <jakub@redhat.com>
12162 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
12164 PR middle-end/77475
12165 * opts.h (candidates_list_and_hint): Declare.
12166 * opts-common.c (candidates_list_and_hint): New function.
12167 (cmdline_handle_error): Use it.
12169 2016-09-12 David Malcolm <dmalcolm@redhat.com>
12171 * edit-context.c (edited_line::get_len): New accessor.
12172 (edited_file::print_diff): Split out hunk-printing into...
12173 (edited_file::print_diff_hunk): New method.
12174 (edited_file::print_diff_line): New method.
12176 2016-09-12 Andrew Pinski <apinski@cavium.com>
12178 * config/aarch64/aarch64-tuning-flags.def (SLOW_UNALIGNED_LDPW):
12180 * config/aarch64/aarch64.c (thunderx_tunings): Enable
12181 AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW.
12182 (aarch64_operands_ok_for_ldpstp): Return false if
12183 AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW and the mode
12184 was SImode and the alignment is less than 8 byte.
12185 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
12187 2016-09-12 Orlando Arias <oarias@knights.ucf.edu>
12190 * config/msp430/msp430.md (delay_cycles_32x): Fix pushm/popm.
12192 2016-09-12 Marek Polacek <polacek@redhat.com>
12194 * doc/extend.texi: Use lowercase "boolean".
12195 * doc/invoke.texi: Likewise.
12196 * doc/md.texi: Likewise.
12197 * target.def: Likewise.
12198 * doc/tm.texi: Regenerated.
12200 2016-09-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12202 PR middle-end/77426
12203 * expmed.c (synth_mult): Delete duplicate mode check.
12205 2016-09-10 Tom de Vries <tom@codesourcery.com>
12208 * builtins.c (std_canonical_va_list_type): Strictly return non-null for
12210 * config/i386/i386.c (ix86_canonical_va_list_type): Same.
12211 * gimplify.c (gimplify_va_arg_expr): Handle &va_list.
12213 2016-09-09 Peter Bergner <bergner@vnet.ibm.com>
12215 PR rtl-optimization/77289
12216 * lra-constraints.c (get_final_hard_regno): Add support for non hard
12217 register numbers. Remove support for subregs.
12218 (get_hard_regno): Use SUBREG_P. Don't call get_final_hard_regno().
12219 (get_reg_class): Delete removed get_final_hard_regno() argument.
12220 (uses_hard_regs_p): Call get_final_hard_regno().
12222 2016-09-09 Martin Sebor <msebor@redhat.com>
12226 * pretty-print.c (pp_quoted_string): New function.
12227 (pp_format): Call it for %c and %s directives.
12229 2016-09-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
12231 * doc/tm.texi.in (INITIAL_FRAME_POINTER_OFFSET): Remove.
12232 (ELIMINABLE_REGS, TARGET_CAN_ELIMINATE,
12233 INITIAL_ELIMINATION_OFFSET) : Update documentation.
12234 * target.def (frame_pointer_required, can_eliminate): Likewise.
12235 * doc/tm.texi: Regenerated.
12236 * builtins.c (expand_builtin_setjmp_receiver): Remove #ifdef
12238 * df-scan.c (df_hard_reg_init): Likewise.
12239 * ira.c (ira_setup_eliminable_regset): Likewise.
12240 * lra-eliminations.c (reg_eliminate_1, (update_reg_eliminate,
12241 init_elim_table): Likewise.
12242 * reload1.c (reg_eliminate_1, verify_initial_elim_offsets,
12243 set_initial_elim_offsets, update_eliminables,
12244 init_elim_table): Likewise.
12245 * rtlanal.c (get_initial_register_offset): Likewise.
12246 * config/ft32/ft32.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
12247 * config/m32r/m32r.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
12248 * config/moxie/moxie.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
12249 * config/vax/vax.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
12250 * config/fr30/fr30.h: Fix comment.
12251 * config/frv/frv.c: Likewise.
12252 * config/frv/frv.h: Likewise.
12253 * config/ft32/ft32.h: Likewise.
12254 * config/visium/visium.h: Likewise.
12255 * config/pa/pa64-linux.h: Likewise.
12256 * config/v850/v850.h: Likewise.
12257 * config/cris/cris.c: Likewise.
12258 * config/ia64/ia64.h: Likewise.
12259 * config/moxie/moxie.h: Likewise.
12260 * config/m32r/m32r.h: Likewise.
12262 2016-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
12265 * config.in: Regenerate.
12266 * config/i386/linux-common.h (MPX_LD_AS_NEEDED_GUARD_PUSH):
12268 (MPX_LD_AS_NEEDED_GUARD_PUSH): Ditto.
12269 (LIBMPXWRAPPERS_SPEC): Remove "--no-whole-archive" from
12270 static-libmpxwrappers case.
12271 (LIBMPX_SPEC): Add guards with MPX_LD_AS_NEEDED_GUARD_PUSH and
12272 MPX_LD_AS_NEEDED_GUARD_POP.
12273 * configure: Regenerate.
12274 * configure.ac (HAVE_LD_PUSHPOPSTATE_SUPPORT): New variable.
12275 defined if linker support "--push-state"/"--pop-state".
12277 2016-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
12279 * doc/cpp.texi (__*_WIDTH__): Small wording fixes.
12281 2016-09-09 Joseph Myers <joseph@codesourcery.com>
12283 * doc/cpp.texi (__SCHAR_WIDTH__, __SHRT_WIDTH__, __INT_WIDTH__)
12284 (__LONG_WIDTH__, __LONG_LONG_WIDTH__, __PTRDIFF_WIDTH__)
12285 (__SIG_ATOMIC_WIDTH__, __SIZE_WIDTH__, __WCHAR_WIDTH__)
12286 (__WINT_WIDTH__, __INT_LEAST8_WIDTH__, __INT_LEAST16_WIDTH__)
12287 (__INT_LEAST32_WIDTH__, __INT_LEAST64_WIDTH__)
12288 (__INT_FAST8_WIDTH__, __INT_FAST16_WIDTH__, __INT_FAST32_WIDTH__)
12289 (__INT_FAST64_WIDTH__, __INTPTR_WIDTH__, __INTMAX_WIDTH__):
12291 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Define
12292 width macros from TS 18661-1.
12293 * glimits.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Likewise.
12295 2016-09-08 Jakub Jelinek <jakub@redhat.com>
12298 * omp-low.c (lower_rec_simd_input_clauses): Use max_vf for non-positive
12299 OMP_CLAUSE_SAFELEN_EXPR.
12301 2016-09-07 David Malcolm <dmalcolm@redhat.com>
12303 * Makefile.in (OBJS): Add substring-locations.o.
12304 * langhooks-def.h (class substring_loc): New forward decl.
12305 (lhd_get_substring_location): New decl.
12306 (LANG_HOOKS_GET_SUBSTRING_LOCATION): New macro.
12307 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_GET_SUBSTRING_LOCATION.
12308 * langhooks.c (lhd_get_substring_location): New function.
12309 * langhooks.h (class substring_loc): New forward decl.
12310 (struct lang_hooks): Add field get_substring_location.
12311 * substring-locations.c: New file, taking definition of
12312 format_warning_va and format_warning_at_substring from
12313 c-family/c-format.c, making them non-static.
12314 * substring-locations.h (class substring_loc): Move class here
12315 from c-family/c-common.h. Add and rewrite comments.
12316 (format_warning_va): New decl.
12317 (format_warning_at_substring): New decl.
12318 (get_source_location_for_substring): Add comment.
12320 2016-09-07 Eric Gallager <egall@gwmail.gwu.edu>
12322 * config/i386/i386.c: Add 'U' suffix to processor feature bits
12323 to avoid -Wnarrowing warning.
12324 * config/i386/x86-tune.def: Likewise for DEF_TUNE selector bitmasks.
12325 * opts.c: Likewise for SANITIZER_OPT bitmasks.
12327 2016-09-07 Wilco Dijkstra <wdijkstr@arm.com>
12329 * config/aarch64/aarch64.c (aarch64_legitimize_address):
12330 Avoid use of base_offset if offset already in range.
12332 2016-09-07 Kaz Kojima <kkojima@gcc.gnu.org>
12334 * config/sh/sh-protos.h (struct sh_atomic_model,
12335 selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
12336 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
12337 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Move to...
12338 * config/sh/sh.h (struct sh_atomic_model,
12339 selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
12340 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
12341 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): ...here.
12342 Guard with __cplusplus.
12344 2016-09-06 Jakub Jelinek <jakub@redhat.com>
12347 * config/i386/i386.c (ix86_expand_builtin): For builtin with
12348 unsupported or unknown ISA, use expand_call.
12350 2016-09-06 Martin Liska <mliska@suse.cz>
12352 PR gcov-profile/77378
12353 PR gcov-profile/77466
12354 * tree-profile.c (tree_profiling): Detect whether target can use
12355 -fprofile-update=atomic.
12357 2016-09-06 Richard Biener <rguenther@suse.de>
12359 PR tree-optimization/77479
12360 * tree-vrp.c (update_value_range): Extend overflow handling to
12363 2016-09-05 Jakub Jelinek <jakub@redhat.com>
12366 * config/i386/i386.md (isa): Add x64_avx512bw.
12367 (*zero_extendsidi2): For alternative 11 use x64_avx512bw isa.
12368 (kmov_isa): New mode attr.
12369 (zero_extend<mode>di2): Use <kmov_isa> isa for the last alternative.
12370 (*zero_extend<mode>si2): Likewise.
12371 (*zero_extendqihi2): Use avx512dq isa for the last alternative.
12373 2016-09-05 Gerald Pfeifer <gerald@pfeifer.com>
12375 * doc/invoke.texi (SPU Options): nops -> NOPs.
12376 (x86 Options): Ditto.
12378 2016-09-05 Jakub Jelinek <jakub@redhat.com>
12380 PR middle-end/77475
12381 * toplev.c (process_options): Temporarily set input_location
12382 to UNKNOWN_LOCATION around targetm.target_option.override () call.
12384 2016-09-05 Uros Bizjak <ubizjak@gmail.com>
12386 PR rtl-optimization/77452
12387 * explow.c (plus_constant) <case MEM>: Extract scalar constant from
12388 inner-mode reference to a CONST_VECTOR constant in the constant pool.
12390 2016-09-05 Marek Polacek <polacek@redhat.com>
12393 * doc/invoke.texi: Update -Wlogical-not-parentheses documentation.
12395 2016-09-05 Jakub Jelinek <jakub@redhat.com>
12398 * gensupport.c (alter_output_for_subst_insn): Remove redundant
12399 *insn_out == '*' test. Don't copy unnecessary to yet another
12400 memory buffer, and don't leak it.
12402 PR rtl-optimization/77425
12403 * ipa-devirt.c (get_odr_type): Set val->id unconditionally.
12405 2016-09-03 Kirill Yukhin <kirill.yukhin@intel.com>
12407 * ubsan.c (ubsan_use_new_style_p): Fix check for empty string.
12409 2016-09-02 David Malcolm <dmalcolm@redhat.com>
12411 * common.opt (fdiagnostics-generate-patch): New option.
12412 * diagnostic.c: Include "edit-context.h".
12413 (diagnostic_initialize): Initialize context->edit_context_ptr.
12414 (diagnostic_finish): Delete context->edit_context_ptr.
12415 (diagnostic_report_diagnostic): Add fix-it hints from the
12416 diagnostic to context->edit_context_ptr, if any.
12417 * diagnostic.h (class edit_context): Add forward decl.
12418 (struct diagnostic_context): Add field "edit_context_ptr".
12419 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
12420 -fdiagnostics-generate-patch.
12421 (-fdiagnostics-generate-patch): New item.
12422 * toplev.c: Include "edit-context.h".
12423 (process_options): Set global_dc->edit_context_ptr to a new
12424 edit_context if the options need one.
12425 (toplev::main): Handle -fdiagnostics-generate-patch by using
12426 global_dc->edit_context_ptr.
12428 2016-09-02 Jakub Jelinek <jakub@redhat.com>
12431 * gimplify.c (gimplify_adjust_omp_clauses_1): Diagnose implicit
12432 map and firstprivate clauses on target construct for _Atomic
12434 (gimplify_adjust_omp_clauses): Diagnose explicit firstprivate clauses
12435 on target construct for _Atomic qualified decls.
12436 * omp-low.c (use_pointer_for_field): Return true for _Atomic qualified
12438 * omp-simd-clone.c (simd_clone_clauses_extract): Warn and give up for
12439 _Atomic qualified arguments not mentioned in uniform clause.
12441 2016-09-02 David Malcolm <dmalcolm@redhat.com>
12443 * Makefile.in (OBJS-libcommon): Add edit-context.o.
12444 * diagnostic-color.c (color_dict): Add "diff-filename",
12445 "diff-hunk", "diff-delete", and "diff-insert".
12446 (parse_gcc_colors): Update default value of GCC_COLORS in comment
12447 to reflect above changes.
12448 * doc/invoke.texi (-fdiagnostics-color): Update description of
12449 default GCC_COLORS, and of the supported capabilities.
12450 * edit-context.c: New file.
12451 * edit-context.h: New file.
12452 * input.c (struct fcache): Add field "missing_trailing_newline".
12453 (diagnostics_file_cache_forcibly_evict_file): Initialize it to
12455 (add_file_to_cache_tab): Likewise.
12456 (fcache::fcache): Likewise.
12457 (get_next_line): Update c->missing_trailing_newline.
12458 (location_missing_trailing_newline): New function.
12459 * input.h (location_missing_trailing_newline): New decl.
12460 * selftest-run-tests.c (selftest::run_tests): Call
12461 edit_context_c_tests.
12462 * selftest.h (edit_context_c_tests): New decl.
12464 2016-09-02 Jakub Jelinek <jakub@redhat.com>
12465 Richard Biener <rguenth@suse.de>
12467 PR tree-optimization/77444
12468 * tree-ssa-loop-ivopts.c (cand_value_at): For pointers use sizetype
12469 as steptype, remove redundant initialization.
12471 2016-09-02 Jakub Jelinek <jakub@redhat.com>
12474 * sanopt.c: Include gimple-ssa.h, tree-phinodes.h and ssa-iterators.h.
12475 (sanopt_optimize_walker): Optimize away
12476 __asan_before_dynamic_init (...) followed by
12477 __asan_after_dynamic_init () without intervening memory loads/stores.
12478 * ipa-pure-const.c (special_builtin_state): Handle
12479 BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT and
12480 BUILT_IN_ASAN_AFTER_DYNAMIC_INIT.
12482 2016-09-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12484 * cfg.c (free_original_copy_tables): Replace second assignment of
12485 bb_copy = NULL by bb_original = NULL.
12487 2016-09-02 Jakub Jelinek <jakub@redhat.com>
12490 * config/i386/i386.c (ix86_expanded_args_builtin): Remove redundant
12491 assignment added in r216794.
12493 2016-09-02 David Malcolm <dmalcolm@redhat.com>
12495 * Makefile.in (OBJS): Add typed-splay-tree.o.
12496 * selftest-run-tests.c (selftest::run_tests): Call
12497 typed_splay_tree_c_tests.
12498 * selftest.h (typed_splay_tree_c_tests): New decl.
12499 * typed-splay-tree.c: New file.
12500 * typed-splay-tree.h (typed_splay_tree::foreach_fn): New typedef.
12501 (typed_splay_tree::max): New method.
12502 (typed_splay_tree::min): New method.
12503 (typed_splay_tree::foreach): New method.
12504 (typed_splay_tree::closure): New struct.
12505 (typed_splay_tree::inner_foreach_fn): New function.
12507 2016-09-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12509 * ipa-cp.c (ipcp_store_bits_results): Change option name from
12510 -fipa-cp-bit to -fipa-bit-cp.
12512 2016-09-01 Martin Sebor <msebor@redhat.com>
12514 PR tree-optimization/71831
12515 * tree-object-size.h: Return bool instead of the size and add
12516 argument for the size.
12517 * tree-object-size.c (compute_object_offset): Update signature.
12518 (addr_object_size): Same.
12519 (compute_builtin_object_size): Return bool instead of the size
12520 and add argument for the size. Handle POINTER_PLUS_EXPR when
12521 optimization is disabled.
12522 (expr_object_size): Adjust.
12523 (plus_stmt_object_size): Adjust.
12524 (pass_object_sizes::execute): Adjust.
12525 * builtins.c (fold_builtin_object_size): Adjust.
12526 * doc/extend.texi (Object Size Checking): Update.
12527 * ubsan.c (instrument_object_size): Adjust.
12529 2016-09-01 Martin Sebor <msebor@redhat.com>
12531 * genmatch.c (parser::parse_expr): Increase buffer size to guarantee
12532 it fits the output of the formatted function regardless of its
12534 * genmodes.c (parser::parse_expr): Same.
12535 * gimplify.c (gimplify_asm_expr): Same.
12536 * passes.c (pass_manager::register_one_dump_file): Same.
12537 * print-tree.c (print_node): Same.
12539 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
12541 * config/rs6000/altivec.md: Use VSCR_REGNO instead of 110 throughout.
12543 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
12545 * config/rs6000/altivec.md: Use VRSAVE_REGNO instead of 109 throughout.
12547 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
12549 * config/rs6000/altivec.md: Use CR6_REGNO instead of 74 throughout.
12550 * config/rs6000/vector.md: Ditto.
12551 * config/rs6000/vsx.md: Ditto.
12553 2016-09-01 Eric Botcazou <ebotcazou@adacore.com>
12555 * ipa-inline-analysis.c (param_change_prob): Get to the base object
12556 first in all cases.
12558 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
12560 * config/rs6000/rs6000.md (*restore_gpregs_<mode>_r11,
12561 *restore_gpregs_<mode>_r12, *restore_gpregs_<mode>_r1,
12562 *return_and_restore_gpregs_<mode>_r11,
12563 *return_and_restore_gpregs_<mode>_r12,
12564 *return_and_restore_gpregs_<mode>_r1,
12565 *return_and_restore_fpregs_<mode>_r11,
12566 *return_and_restore_fpregs_<mode>_r12,
12567 *return_and_restore_fpregs_<mode>_r1): Use the hard register LR_REGNO
12568 directly instead of via the "l" constraint. Renumber operands.
12571 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
12573 * config/rs6000/altivec.md (*save_world, *save_vregs_<mode>_r11,
12574 save_vregs_<mode>_r12, *restore_vregs_<mode>_r11,
12575 *restore_vregs_<mode>_r12): Use LR_REGNO instead of 65.
12576 * config/rs6000/darwin.md (load_macho_picbase, load_macho_picbase_si,
12577 load_macho_picbase_di, *call_indirect_nonlocal_darwin64,
12578 *call_nonlocal_darwin64, *call_value_indirect_nonlocal_darwin64,
12579 *call_value_nonlocal_darwin64, reload_macho_picbase,
12580 reload_macho_picbase_si, reload_macho_picbase_di): Ditto.
12581 * config/rs6000/rs6000.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Ditto.
12582 * config/rs6000/rs6000.md (*save_gpregs_<mode>_r11,
12583 *save_gpregs_<mode>_r12, *save_gpregs_<mode>_r1,
12584 *save_fpregs_<mode>_r11, *save_fpregs_<mode>_r12,
12585 *save_fpregs_<mode>_r1): Ditto.
12586 * config/rs6000/spe.md (*save_gpregs_spe, *restore_gpregs_spe,
12587 *return_and_restore_gpregs_spe): Ditto.
12589 2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
12591 * config/rs6000/rs6000.md
12592 (define_insn "*return_and_restore_fpregs_aix_<mode>_r11"): Delete
12593 the use of the link register.
12594 (define_insn "*return_and_restore_fpregs_aix_<mode>_r1"): Ditto.
12596 2016-09-01 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12597 Michael Meissner <meissner@linux.vnet.ibm.com>
12600 * config/rs6000/rs6000.c (rs6000_legitimize_address): Avoid
12601 reg+reg addressing for TImode.
12602 (rs6000_legitimate_address_p): Only allow register indirect
12603 addressing for TImode, even without TARGET_QUAD_MEMORY.
12605 2016-09-01 Richard Biener <rguenther@suse.de>
12607 PR middle-end/77436
12608 * tree-chrec.c (tree_fold_binomial): Use widest_int, properly
12609 check whether the result fits the desired result type.
12611 2016-09-01 Nathan Sidwell <nathan@acm.org>
12613 * config/nvptx/nvptx.md (cbranch<mode>4): Op 2 can be const.
12615 2016-09-01 Wilco Dijkstra <wdijkstr@arm.com>
12617 * config/aarch64/aarch64.c (aarch64_legitimize_address_displacement):
12619 (TARGET_LEGITIMIZE_ADDRESS_DISPLACEMENT): Define.
12621 2016-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12623 * config/aarch64/aarch64.md (*ands<mode>_compare0): New pattern.
12624 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_NZmode
12625 for comparisons of integer ZERO_EXTEND against zero.
12627 2016-09-01 Eric Botcazou <ebotcazou@adacore.com>
12629 * config/i386/i386.c (ix86_option_override_internal): Also disable the
12630 STV pass if -mstackrealign is enabled.
12632 2016-08-31 Ilya Verbin <iverbin@gmail.com>
12634 * config/i386/driver-i386.c (host_detect_local_cpu): Fix detection of
12637 2016-08-31 David Malcolm <dmalcolm@redhat.com>
12639 * diagnostic-show-locus.c (class layout): Add field m_fixit_hints.
12640 (layout_range::intersects_line_p): New method.
12641 (test_range_contains_point_for_single_point): Rename to...
12642 (test_layout_range_for_single_point): ...this, and add testing
12643 for layout_range::intersects_line_p.
12644 (test_range_contains_point_for_single_line): Rename to...
12645 (test_layout_range_for_single_line): ...this, and add testing
12646 for layout_range::intersects_line_p.
12647 (test_range_contains_point_for_multiple_lines): Rename to...
12648 (test_layout_range_for_multiple_lines): ...this, and add testing
12649 for layout_range::intersects_line_p.
12650 (layout::layout): Populate m_fixit_hints.
12651 (layout::get_expanded_location): Handle the case of a line-span
12653 (layout::validate_fixit_hint_p): New method.
12654 (get_line_span_for_fixit_hint): New function.
12655 (layout::calculate_line_spans): Add spans for fixit-hints.
12656 (layout::should_print_annotation_line_p): New method.
12657 (layout::print_any_fixits): Drop param "richloc", instead using
12658 validated fixits in m_fixit_hints. Add "const" to hint pointers.
12659 (diagnostic_show_locus): Avoid printing blank annotation lines.
12660 (selftest::test_diagnostic_context::test_diagnostic_context):
12661 Initialize show_column and start_span.
12662 (selftest::test_diagnostic_context::start_span_cb): New static
12664 (selftest::test_diagnostic_show_locus_fixit_lines): New function.
12665 (selftest::diagnostic_show_locus_c_tests): Update for function
12666 renamings. Call test_diagnostic_show_locus_fixit_lines.
12668 2016-08-31 Marc Glisse <marc.glisse@inria.fr>
12670 PR tree-optimization/73714
12671 * match.pd (a * (1 << b)): Revert change from 2016-05-23.
12673 2016-08-31 David Malcolm <dmalcolm@redhat.com>
12675 * selftest.c: Move "namespace selftest {" to top of file,
12676 removing explicit "selftest::" qualifiers throughout.
12678 2016-08-31 Marc Glisse <marc.glisse@inria.fr>
12680 * config/i386/avx512fintrin.h (__m512_u, __m512i_u, __m512d_u):
12682 (_mm512_loadu_pd, _mm512_storeu_pd, _mm512_loadu_ps,
12683 _mm512_storeu_ps, _mm512_loadu_si512, _mm512_storeu_si512):
12684 Replace builtin with vector extension.
12685 * config/i386/avxintrin.h (__m256_u, __m256i_u, __m256d_u):
12687 (_mm256_loadu_pd, _mm256_storeu_pd, _mm256_loadu_ps,
12688 _mm256_storeu_ps, _mm256_loadu_si256, _mm256_storeu_si256):
12689 Replace builtin with vector extension.
12690 * config/i386/emmintrin.h (__m128i_u, __m128d_u): New types.
12691 (_mm_loadu_pd, _mm_storeu_pd, _mm_loadu_si128, _mm_storeu_si128):
12692 Replace builtin with vector extension.
12693 * config/i386/xmmintrin.h (__m128_u): New type.
12694 (_mm_loadu_ps, _mm_storeu_ps): Replace builtin with vector extension.
12695 (_mm_load_ps, _mm_store_ps): Simplify.
12697 2016-08-31 Eric Botcazou <ebotcazou@adacore.com>
12699 * config/arm/arm.c (thumb1_size_rtx_costs) <SET>: Add missing guard.
12701 2016-08-30 David Malcolm <dmalcolm@redhat.com>
12703 * diagnostic-show-locus.c (colorizer::begin_state): Support more
12704 than 3 ranges per diagnostic by alternating between color 1 and
12706 (layout::layout): Replace use of rich_location::MAX_RANGES
12707 with richloc->get_num_locations ().
12708 (layout::calculate_line_spans): Replace use of
12709 rich_location::MAX_RANGES with m_layout_ranges.length ().
12710 (layout::print_annotation_line): Handle arbitrary numbers of
12711 ranges in caret-printing by defaulting to '^'.
12712 (selftest::test_one_liner_many_fixits): New function.
12713 (test_diagnostic_show_locus_one_liner): Call it.
12714 * diagnostic.c (diagnostic_initialize): Update for renaming
12715 of rich_location::MAX_RANGES to
12716 rich_location::STATICALLY_ALLOCATED_RANGES.
12717 * diagnostic.h (struct diagnostic_context): Likewise.
12719 2016-08-30 David Malcolm <dmalcolm@redhat.com>
12721 * selftest.c (selftest::named_temp_file::named_temp_file): New
12723 (selftest::temp_source_file::~temp_source_file): Move to...
12724 (selftest::named_temp_file::~named_temp_file): ...here.
12725 (selftest::test_named_temp_file): New function.
12726 (selftest::selftest_c_tests): Call test_named_temp_file.
12727 * selftest.h (class named_temp_file): New class.
12728 (class temp_source_file): Convert to a subclass of named_temp_file.
12730 2016-08-30 Segher Boessenkool <segher@kernel.crashing.org>
12732 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Do not emit
12733 USEs of LR_REGNO in returns and sibcalls.
12734 (rs6000_output_mi_thunk): Similar.
12735 (rs6000_sibcall_aix): Similar.
12736 * config/rs6000/rs6000.md (sibcall, sibcall_value, sibcall_local32,
12737 sibcall_local64, sibcall_value_local32, sibcall_value_local64,
12738 sibcall_nonlocal_sysv<mode>, sibcall_value_nonlocal_sysv<mode>):
12739 Remove the USE of LR_REGNO from the patterns as well. Delete an
12741 (return_internal_<mode>): Delete.
12743 2016-08-30 Tamar Christina <tamar.christina@arm.com>
12745 * config/aarch64/aarch64-simd.md
12746 (aarch64_ld2<mode>_dreg_le): New.
12747 (aarch64_ld2<mode>_dreg_be): New.
12748 (aarch64_ld2<mode>_dreg): Removed.
12749 (aarch64_ld3<mode>_dreg_le): New.
12750 (aarch64_ld3<mode>_dreg_be): New.
12751 (aarch64_ld3<mode>_dreg): Removed.
12752 (aarch64_ld4<mode>_dreg_le): New.
12753 (aarch64_ld4<mode>_dreg_be): New.
12754 (aarch64_ld4<mode>_dreg): Removed.
12755 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Wrapper around _le, _be.
12757 2016-08-30 David Malcolm <dmalcolm@redhat.com>
12759 * diagnostic-show-locus.c (test_one_liner_fixit_insert): Remove
12760 redundant location param.
12761 (test_one_liner_fixit_remove): Likewise.
12762 (test_one_liner_fixit_replace): Likewise.
12763 (test_one_liner_fixit_replace_equal_secondary_range): Likewise.
12764 * gcc-rich-location.c
12765 (gcc_rich_location::add_fixit_misspelled_id): Eliminate call to
12766 get_range_from_loc. Drop overload taking a const char *.
12767 * gcc-rich-location.h
12768 (gcc_rich_location::add_fixit_misspelled_id): Drop overload taking
12771 2016-08-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
12773 * config/linux.c (linux_libc_has_function): Return true on musl.
12775 2016-08-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
12777 * config.gcc (*-*-*musl*): Disable gnu-indirect-function.
12779 2016-08-30 Eric Botcazou <ebotcazou@adacore.com>
12781 * postreload-gcse.c (bb_has_well_behaved_predecessors): Tweak criterion
12782 used for abnormal egdes.
12784 2016-08-30 Jakub Jelinek <jakub@redhat.com>
12786 PR tree-optimization/72866
12787 * tree-vect-patterns.c (search_type_for_mask): Turn into
12788 a small wrapper, move all code to ...
12789 (search_type_for_mask_1): ... this new function. Add caching
12790 and adjust recursive calls.
12793 * dwarf2out.c (modified_type_die): Use lookup_type_die (type)
12794 instead of lookup_type_die (type_main_variant (type)) even for array
12797 PR middle-end/77377
12798 * simplify-rtx.c (avoid_constant_pool_reference): For out of bounds
12799 constant pool reference return x instead of c.
12801 2016-08-29 Segher Boessenkool <segher@kernel.crashing.org>
12803 * config/rs6000/rs6000.h (CALL_REALLY_USED_REGISTERS): Do not
12806 2016-08-29 David Malcolm <dmalcolm@redhat.com>
12809 (selftest::test_make_location_nonpure_range_endpoints): Fix
12812 2016-08-29 David Malcolm <dmalcolm@redhat.com>
12814 * diagnostic-show-locus.c
12815 (selftest::test_one_liner_fixit_validation_adhoc_locations): New
12817 (selftest::test_diagnostic_show_locus_one_liner): Call it.
12818 * input.c (get_pure_location): Move to libcpp/line-map.c.
12819 * input.h (get_pure_location): Convert decl to an inline function
12820 calling implementation in libcpp.
12822 2016-08-29 Uros Bizjak <ubizjak@gmail.com>
12825 * config/i386/sse.md (vec_set_lo_<mode><mask_name>): Fix assembler
12826 template for intel asm dialect.
12827 (vec_set_hi_<mode><mask_name>): Ditto.
12829 2016-08-29 David Malcolm <dmalcolm@redhat.com>
12831 * selftest.h (selftest::fail): Add ATTRIBUTE_NORETURN.
12832 (selftest::fail_formatted): Likewise.
12834 2016-08-29 David Malcolm <dmalcolm@redhat.com>
12836 * input.c (make_location): Call get_start and get_finish
12837 on the endpoints to avoid storing packed ranges or ad-hoc
12839 (selftest::test_make_location_nonpure_range_endpoints): New function.
12840 (selftest::input_c_tests): Call it.
12841 * input.h (get_start): New inline function.
12843 2016-08-29 Tom de Vries <tom@codesourcery.com>
12846 * gimplify.c (gimplify_va_arg_expr): Replace first argument type error
12849 2016-08-29 Eric Botcazou <ebotcazou@adacore.com>
12851 * Makefile.in (gcov-iov.h): Add dummy recipe.
12853 2016-08-29 Nathan Sidwell <nathan@acm.org>
12855 * config/nvptx/nvptx.c: #include tree-vrp.h.
12857 2016-08-28 Eric Botcazou <ebotcazou@adacore.com>
12860 * config/sparc/sparc.c (sparc_legitimate_address_p): Accept special
12861 HIGH+LO construct during reload.
12863 2016-08-28 Tom de Vries <tom@codesourcery.com>
12866 * config/i386/i386.c (ix86_build_builtin_va_list_64): Tag type with
12867 'sysv_abi va_list' attribute.
12868 (ix86_build_builtin_va_list): Tag type with 'ms_abi va_list' attribute.
12869 (ix86_canonical_va_list_type): Handle 'sysv_abi/ms_abi va_list'
12872 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12874 * emit-rtl.h (struct rtl_data): Make stack_slot_list a vector.
12875 * emit-rtl.c (unshare_all_rtl_1): Adjust.
12876 (unshare_all_rtl_again): Likewise.
12877 * function.c (assign_stack_local_1): Likewise.
12878 (assign_stack_temp_for_type): Likewise.
12880 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12882 * cfgbuild.c (make_edges): Adjust.
12883 * cfgrtl.c (can_delete_label_p): Likewise.
12884 * dwarf2cfi.c (create_trace_edges): Likewise.
12885 * except.c (sjlj_emit_dispatch_table): Likewise.
12886 * function.h (struct expr_status): make x_forced_labels a vector.
12887 * jump.c (rebuild_jump_labels_1): Adjust.
12888 * reload1.c (set_initial_label_offsets): Likewise.
12889 * stmt.c (force_label_rtx): Likewise.
12890 (expand_label): Likewise.
12892 2016-08-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12894 * haifa-sched.c (fix_recovery_deps): Make ready_list a vector.
12896 2016-08-27 Patrick Palka <ppalka@gcc.gnu.org>
12898 PR tree-optimization/71077
12899 PR tree-optimization/68542
12900 * fold-const.c (fold_relational_const): Fix folding of
12901 VECTOR_CST comparisons that have a scalar boolean result type.
12902 (selftest::test_vector_folding): New static function.
12903 (selftest::fold_const_c_tests): Call it.
12905 2016-08-27 Gerald Pfeifer <gerald@pfeifer.com>
12907 * doc/extend.texi (SPU Built-in Functions): Remove stale
12908 references to material formerly at IBM and Sony.
12910 2016-08-26 David Edelsohn <dje.gcc@gmail.com>
12913 * config/rs6000/xcoff.h (DWARF_OFFSET_SIZE): Define as PTR_SIZE.
12915 2016-08-26 David Malcolm <dmalcolm@redhat.com>
12917 * diagnostic-show-locus.c
12918 (selftest::test_fixit_consolidation): New function.
12919 (selftest::diagnostic_show_locus_c_tests): Call it.
12920 * gcc-rich-location.h (gcc_rich_location): Eliminate unused
12921 constructor based on source_range.
12923 2016-08-26 David Malcolm <dmalcolm@redhat.com>
12925 * diagnostic-color.c (color_dict): Add "fixit-insert" and
12927 (parse_gcc_colors): Update description of default GCC_COLORS.
12928 * diagnostic-show-locus.c (colorizer::set_fixit_hint): Delete.
12929 (colorizer::set_fixit_insert): New method.
12930 (colorizer::set_fixit_delete): New method.
12931 (colorizer::get_color_by_name): New method.
12932 (colorizer::STATE_FIXIT_INSERT): New constant.
12933 (colorizer::STATE_FIXIT_DELETE): New constant.
12934 (class colorizer): Drop "_cs" suffix from fields. Delete "_ce"
12935 fields in favor of new field "m_stop_color". Add fields
12936 "m_fixit_insert" and "m_fixit_delete".
12937 (colorizer::colorizer): Update for above changes. Replace
12938 colorize_start calls with calls to get_color_by_name.
12939 (colorizer::begin_state): Handle STATE_FIXIT_INSERT and
12940 STATE_FIXIT_DELETE. Update for field renamings.
12941 (colorizer::finish_state): Simplify by using m_stop_color,
12942 rather than multiple identical "*_ce" fields.
12943 (colorizer::get_color_by_name): New method.
12944 (layout::print_any_fixits): Print insertions and replacements
12945 using the "fixit-insert" color, and deletions using the
12946 "fixit-delete" color.
12947 * doc/invoke.texi (-fdiagnostics-color): Update description of
12948 default GCC_COLORS, and of the supported capabilities.
12950 2016-08-26 Max Filippov <jcmvbkbc@gmail.com>
12952 * config/xtensa/xtensa.c (xtensa_expand_prologue): Update
12953 current_function_static_stack_size variable with the static
12954 stack frame size of the current function when
12955 flag_stack_usage_info is enabled.
12957 2016-08-26 Nathan Sidwell <nathan@acm.org>
12959 * ipa-inline-analysis.c (inline_write_summary): Remove unnecessary
12960 assignment inside if condition.
12962 2016-08-26 Richard Biener <rguenther@suse.de>
12964 PR tree-optimization/69047
12965 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle general bitfield
12966 extracts similar to what FRE does.
12967 (non_rewritable_mem_ref_base): Likewise.
12969 2016-08-26 Joseph Myers <joseph@codesourcery.com>
12971 * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p)
12972 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
12973 * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
12974 * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
12975 * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE):
12977 * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
12978 * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
12979 * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
12980 * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Likewise.
12981 * config/i386/vxworks.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
12983 2016-08-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12986 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_muld): Reduce
12987 reservation duration to 15 cycles.
12988 (cortex_a8_vfp_macs): Likewise.
12989 (cortex_a8_vfp_macd): Likewise.
12990 (cortex_a8_vfp_divs): Likewise.
12991 (cortex_a8_vfp_divd): Likewise.
12993 2016-08-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12995 * config/arm/arm.c (arm_sets_movw_movt_fusible_p): New function.
12996 (aarch_macro_fusion_pair_p): Use above to avoid early return.
12998 2016-08-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12999 Martin Jambhor <mjambor@suse.cz>
13001 * common.opt: New option -fipa-bit-cp.
13002 * doc/invoke.texi: Document -fipa-bit-cp.
13003 * opts.c (default_options_table): Add entry for -fipa-bit-cp.
13004 (enable_fdo_optimizations): Check for flag_ipa_bit_cp.
13005 * tree-ssa-ccp.h: New header file.
13006 * tree-ssa-ccp.c: Include tree-ssa-ccp.h
13007 (bit_value_binop_1): Change to bit_value_binop_1 and export it.
13008 Replace all occurences of tree parameter by two new params: signop, int.
13009 (bit_value_unop_1): Change to bit_value_unop and export it.
13010 Replace all occurences of tree parameter by two new params: signop,
13012 (bit_value_binop): Change call from bit_value_binop_1 to
13014 (bit_value_assume_aligned): Likewise.
13015 (bit_value_unop): Change call from bit_value_unop_1 to bit_value_unop.
13016 (do_ssa_ccp): Pass nonzero_p || flag_ipa_cp_bit instead of nonzero_p
13018 (ccp_finalize): Skip processing if val->mask == 0.
13019 * ipa-cp.c: Include tree-ssa-ccp.h
13020 (ipcp_bits_lattice): New class.
13021 (ipcp_param_lattice (bits_lattice): New member.
13022 (print_all_lattices): Call ipcp_bits_lattice::print.
13023 (set_all_contains_variable): Call ipcp_bits_lattice::set_to_bottom.
13024 (initialize_node_lattices): Likewise.
13025 (propagate_bits_accross_jump_function): New function.
13026 (propagate_constants_accross_call): Call
13027 propagate_bits_accross_jump_function.
13028 (ipcp_propagate_stage): Store parameter types when in_lto_p is true.
13029 (ipcp_store_bits_results): New function.
13030 (ipcp_driver): Call ipcp_store_bits_results.
13031 * ipa-prop.h (ipa_bits): New struct.
13032 (ipa_jump_func): Add new member bits of type ipa_bits.
13033 (ipa_param_descriptor): Change decl to decl_or_type.
13034 (ipa_get_param): Change decl to decl_or_type and assert on
13036 (ipa_get_type): New function.
13037 (ipcp_transformation_summary): New member bits.
13038 * ipa-prop.c (ipa_get_param_decl_index_1): s/decl/decl_or_type.
13039 (ipa_populate_param_decls): Likewise.
13040 (ipa_dump_param): Likewise.
13041 (ipa_print_node_jump_functions_for_edge): Pretty-print ipa_bits jump
13043 (ipa_set_jf_unknown): Set ipa_bits::known to false.
13044 (ipa_compute_jump_functions_for_edge): Compute jump function for bits
13046 (ipa_node_params_t::duplicate): Copy src->bits into dst->bits.
13047 (ipa_write_jump_function): Add streaming for ipa_bits.
13048 (ipa_read_jump_function): Add support for reading streamed ipa_bits.
13049 (write_ipcp_transformation_info): Add streaming for ipa_bits
13050 summary for ltrans.
13051 (read_ipcp_transfomration_info): Add support for reading streamed
13053 (ipcp_update_bits): New function.
13054 (ipcp_transform_function): Call ipcp_update_bits.
13056 2016-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
13058 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Update.
13059 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Update.
13061 2016-08-25 David Edelsohn <dje.gcc@gmail.com>
13063 * multiple_target.c (pass_data_dispatcher_calls): Fix typo.
13065 2016-08-25 Richard Biener <rguenther@suse.de>
13067 * dwarf2out.c (gen_remaining_tmpl_value_param_die_attributes):
13068 Only add locations in late dwarf.
13069 (gen_scheduled_generic_parms_dies): Do not set early dwarf here.
13070 (dwarf2out_early_finish): But do it here.
13072 2016-08-24 Michael Collison <michael.collison@linaro.org>
13073 Michael Collison <michael.collison@arm.com>
13075 * config/arm/arm-modes.def: Add new condition code mode CC_V
13076 to represent the overflow bit.
13077 * config/arm/arm.c (maybe_get_arm_condition_code):
13078 Add support for CC_Vmode.
13079 (arm_gen_unlikely_cbranch): New function to generate common
13080 rtl conditional branches for overflow patterns.
13081 * config/arm/arm-protos.h: Add prototype for
13082 arm_gen_unlikely_cbranch.
13083 * config/arm/arm.md (addv<mode>4, add<mode>3_compareV,
13084 addsi3_compareV_upper): New patterns to support signed
13085 builtin overflow add operations.
13086 (uaddv<mode>4, add<mode>3_compareC, addsi3_compareV_upper):
13087 New patterns to support unsigned builtin add overflow operations.
13088 (subv<mode>4, sub<mode>3_compare1): New patterns to support signed
13089 builtin overflow subtract operations,
13090 (usubv<mode>4): New patterns to support unsigned builtin subtract
13091 overflow operations.
13092 (negvsi3, negvdi3, negdi2_compare, negsi2_carryin_compare): New patterns
13093 to support builtin overflow negate operations.
13095 2016-08-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13098 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
13100 * explow.c (get_dynamic_stack_size): Take known alignment of stack
13101 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
13104 2016-08-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
13106 * doc/fragments.texi (MULTILIB_REUSE): Mention that only options in
13107 MULTILIB_OPTIONS should be used. Small wording fixes.
13108 * genmultilib: Memorize set of all option combinations in
13109 combination_space. Detect if RHS of MULTILIB_REUSE uses an option not
13110 found in MULTILIB_OPTIONS by checking if option set is listed in
13111 combination_space. Output new and existing error message to stderr.
13113 2016-08-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
13115 * config/arm/t-aprofile (MULTILIB_MATCHES): Add mapping for
13116 -mcpu=cortex-a7, -mfpu=neon-fp16, -mfpu=fpv5-d16 and -mfpu=fp-armv8.
13117 Fix typo in -mfpu=vfpv3-d16-fp16 mapping.
13118 (MULTILIB_REUSE): Remove reuse rules for option set including
13119 -mfpu=fp-armv8 and -mfpu=vfpv4
13121 2016-08-24 Sebastian Huber <sebastian.huber@embedded-brains.de>
13123 * config/arm/t-rtems: Add vfp multilib.
13125 2016-08-23 Ian Lance Taylor <iant@golang.org>
13127 * config/s390/s390.c (s390_asm_file_start): Call
13128 default_file_start.
13130 2016-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
13132 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Set
13133 initialization of all 0's to the 0 constant, instead of directly
13134 generating XOR. Add support for V4SImode vector initialization on
13135 64-bit systems with direct move, and rework the ISA 3.0 V4SImode
13136 initialization. Change variables used in V4SFmode vector
13137 intialization. For V4SFmode vector splat on ISA 3.0, make sure
13138 any memory addresses are in index form. Add support for using
13139 VSPLTH/VSPLTB to initialize vector short and vector char vectors
13140 with all of the same element.
13141 (regno_or_subregno): New helper function to return a register
13142 number for either REG or SUBREG.
13143 (rs6000_adjust_vec_address): Do not generate ADDI <reg>,R0,<num>.
13144 Use regno_or_subregno where possible.
13145 (rs6000_split_v4si_init_di_reg): New helper function to build up a
13146 DImode value from two SImode values in order to generate V4SImode
13147 vector initialization on 64-bit systems with direct move.
13148 (rs6000_split_v4si_init): Split up the insns for a V4SImode vector
13150 (rtx_is_swappable_p): V4SImode vector initialization insn is not
13152 * config/rs6000/rs6000-protos.h (rs6000_split_v4si_init): Add
13154 * config/rs6000/vsx.md (VSX_SPLAT_I): New mode iterators and
13155 attributes to initialize V8HImode and V16QImode vectors with the
13157 (VSX_SPLAT_COUNT): Likewise.
13158 (VSX_SPLAT_SUFFIX): Likewise.
13159 (UNSPEC_VSX_VEC_INIT): New unspec.
13160 (vsx_concat_v2sf): Eliminate using 'preferred' register classes.
13161 Allow SFmode values to come from Altivec registers.
13162 (vsx_init_v4si): New insn/split for V4SImode vector initialization
13163 on 64-bit systems with direct move.
13164 (vsx_splat_<mode>, VSX_W iterator): Rework V4SImode and V4SFmode
13165 vector initializations, to allow V4SImode vector initializations
13166 on 64-bit systems with direct move.
13167 (vsx_splat_v4si): Likewise.
13168 (vsx_splat_v4si_di): Likewise.
13169 (vsx_splat_v4sf): Likewise.
13170 (vsx_splat_v4sf_internal): Likewise.
13171 (vsx_xxspltw_<mode>, VSX_W iterator): Eliminate using 'preferred'
13173 (vsx_xxspltw_<mode>_direct, VSX_W iterator): Likewise.
13174 (vsx_vsplt<VSX_SPLAT_SUFFIX>_di): New insns to support
13175 initializing V8HImode and V16QImode vectors with the same
13177 * config/rs6000/rs6000.h (TARGET_DIRECT_MOVE_64BIT): Disallow
13178 optimization if -maltivec=be.
13180 2016-08-23 Christophe Lyon <christophe.lyon@linaro.org>
13182 * config/arm/arm.md (arm_movqi_insn): Swap predicable_short_it
13183 attribute for alternatives 3 and 4.
13185 2016-08-23 David Malcolm <dmalcolm@redhat.com>
13187 * selftest.c (selftest::assert_str_contains): New function.
13188 (selftest::test_assertions): Verify ASSERT_STR_CONTAINS.
13189 * selftest.h (selftest::assert_str_contains): New decl.
13190 (ASSERT_STR_CONTAINS): New macro.
13192 2016-08-23 Richard Biener <rguenther@suse.de>
13194 PR tree-optimization/77286
13195 * tree-vect-loop.c (vect_analyze_loop_form_1): Do not modify
13197 (vect_transform_loop): Split exit edges of loop and scalar
13198 loop if required and at the appropriate time.
13200 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
13202 * explow.c (get_dynamic_stack_size): Take known alignment of stack
13203 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
13205 Correct a typo in a comment.
13207 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
13209 * config/s390/s390.md ("*andc_split"): New splitter for and with
13212 2016-08-23 Richard Biener <rguenther@suse.de>
13214 PR tree-optimization/27336
13215 * tree-vrp.c (infer_value_range): Handle stmts that can throw
13216 by looking for a non-EH edge.
13217 (process_assert_insertions_for): Likewise.
13219 2016-08-23 Richard Biener <rguenther@suse.de>
13221 PR middle-end/77305
13222 * statistics.c (statistics_counter_event): Robustify against
13225 2016-08-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
13227 * config/i386/i386.c (processor_alias_table): Enable PTA_PRFCHW
13228 for targets amdfam10 and barcelona.
13230 2016-08-22 Uros Bizjak <ubizjak@gmail.com>
13232 * config/i386/i386.md (*zero_extendsidi2): Add (*r,*k) alternative.
13233 (zero_extend<mode>di2): Ditto.
13234 (*zero_extend<mode>si2): Ditto.
13235 (*zero_extendqihi2): Ditto.
13237 2016-08-22 Joseph Myers <joseph@codesourcery.com>
13239 PR middle-end/77269
13240 * builtins.c (fold_builtin_classify): Use builtin_decl_explicit
13241 (BUILT_IN_SIGNBIT) to expand __builtin_isinf_sign.
13243 2016-08-22 Patrick Palka <ppalka@gcc.gnu.org>
13245 * print-tree.c (print_node) [VECTOR_CST]: Coalesce the output of
13246 identical consecutive elements.
13247 [SSA_NAME]: Print the name's def stmt on its own line. When printing
13248 the node's def stmt, avoid printing an unwanted trailing newline by
13249 replacing the call to print_gimple_stmt() with its inlined body and
13250 adjusting it to not set pp_needs_newline and to call pp_flush()
13251 instead of pp_newline_and_flush().
13253 2016-08-22 Joseph Myers <joseph@codesourcery.com>
13255 * tree.h (CASE_FLT_FN_FLOATN_NX, float16_type_node)
13256 (float32_type_node, float64_type_node, float32x_type_node)
13257 (float128x_type_node): New macros.
13258 * builtin-types.def (BT_FLOAT16, BT_FLOAT32, BT_FLOAT64)
13259 (BT_FLOAT128, BT_FLOAT32X, BT_FLOAT64X, BT_FLOAT128X)
13260 (BT_FN_FLOAT16, BT_FN_FLOAT32, BT_FN_FLOAT64, BT_FN_FLOAT128)
13261 (BT_FN_FLOAT32X, BT_FN_FLOAT64X, BT_FN_FLOAT128X)
13262 (BT_FN_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32)
13263 (BT_FN_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128)
13264 (BT_FN_FLOAT32X_FLOAT32X, BT_FN_FLOAT64X_FLOAT64X)
13265 (BT_FN_FLOAT128X_FLOAT128X, BT_FN_FLOAT16_CONST_STRING)
13266 (BT_FN_FLOAT32_CONST_STRING, BT_FN_FLOAT64_CONST_STRING)
13267 (BT_FN_FLOAT128_CONST_STRING, BT_FN_FLOAT32X_CONST_STRING)
13268 (BT_FN_FLOAT64X_CONST_STRING, BT_FN_FLOAT128X_CONST_STRING)
13269 (BT_FN_FLOAT16_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32_FLOAT32)
13270 (BT_FN_FLOAT64_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128_FLOAT128)
13271 (BT_FN_FLOAT32X_FLOAT32X_FLOAT32X)
13272 (BT_FN_FLOAT64X_FLOAT64X_FLOAT64X)
13273 (BT_FN_FLOAT128X_FLOAT128X_FLOAT128X): New type definitions.
13274 * builtins.def (DEF_GCC_FLOATN_NX_BUILTINS): New macro.
13275 (copysign, fabs, huge_val, inf, nan, nans): Use it.
13276 * builtins.c (expand_builtin): Use CASE_FLT_FN_FLOATN_NX for fabs
13278 (fold_builtin_0): Use CASE_FLT_FN_FLOATN_NX for inf and huge_val.
13279 (fold_builtin_1): Use CASE_FLT_FN_FLOATN_NX for fabs.
13280 * doc/extend.texi (Other Builtins): Document these built-in
13282 * fold-const-call.c (fold_const_call): Use CASE_FLT_FN_FLOATN_NX
13285 2016-08-22 Gerald Pfeifer <gerald@pfeifer.com>
13287 * doc/install.texi (Binaries): www.opencsw.org now uses https.
13289 2016-08-22 Richard Biener <rguenther@suse.de>
13291 * tree-ssa-forwprop.c (pass_forwprop::execute): Use RPO order.
13293 2016-08-21 Uros Bizjak <ubizjak@gmail.com>
13296 * config/i386/i386.md (prefetch): When TARGET_PRFCHW or
13297 TARGET_PREFETCHWT1 are disabled, emit 3dNOW! write prefetches for
13298 non-SSE2 athlons only, otherwise prefer SSE prefetches.
13300 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
13302 * tree-vrp.c (vrp_visit_assignment_or_call): Changed to Return VR.
13303 (vrp_visit_cond_stmt): Just sets TAKEN_EDGE_P.
13304 (vrp_visit_switch_stmt): Likewise.
13305 (extract_range_from_stmt): Factored out from vrp_visit_stmt.
13306 (extract_range_from_phi_node): Factored out from vrp_visit_phi_stmt.
13307 (vrp_visit_stmt): Use extract_range_from_stmt.
13308 (vrp_visit_phi_node): Use extract_range_from_phi_node.
13310 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
13312 * Makefile.in: Add tree-vrp.h to GTFILES.
13313 * gengtype.c (open_base_files): Add tree-vrp.h.
13314 * asan.c: Add tree-vrp.h which now has the definition value_range_type.
13315 * builtins.c: Likewise.
13316 * fold-const.c: Likewise.
13317 * gimple-builder.c: Likewise.
13318 * gimple-laddress.c: Likewise.
13319 * hsa-gen.c: Likewise.
13320 * internal-fn.c: Likewise.
13322 * targhooks.c: Liewise,
13323 * tree-ssa-address.c: Likewise.
13324 * tree-ssanames.h (value_range_type: Move to tree-vrp.h.
13325 * tree-vrp.c (struct value_range): Move to tree-vrp.h
13326 * tree-vrp.h: New file.
13328 2016-08-20 Kugan Vivekanandarajah <kuganv@linaro.org>
13330 PR tree-optimization/61839
13331 * tree-vrp.c (two_valued_val_range_p): New.
13332 (simplify_stmt_using_ranges): Convert CST BINOP VAR where VAR is
13333 two-valued to VAR == VAL1 ? (CST BINOP VAL1) : (CST BINOP VAL2).
13334 Also Convert VAR BINOP CST where VAR is two-valued to
13335 VAR == VAL1 ? (VAL1 BINOP CST) : (VAL2 BINOP CST).
13337 2016-08-19 David Malcolm <dmalcolm@redhat.com>
13339 * diagnostic-show-locus.c
13340 (layout::annotation_line_showed_range_p): New method.
13341 (layout::print_any_fixits): Remove case fixit_hint::REMOVE.
13342 Reimplement case fixit_hint::REPLACE to cover removals, and
13343 replacements where the range of the replacement isn't one
13344 of the ranges in the rich_location.
13345 (test_one_liner_fixit_replace): Likewise.
13346 (selftest::test_one_liner_fixit_replace_non_equal_range): New
13348 (selftest::test_one_liner_fixit_replace_equal_secondary_range):
13350 (selftest::test_diagnostic_show_locus_one_liner): Call the new
13352 * diagnostic.c (print_parseable_fixits): Remove case
13353 fixit_hint::REMOVE.
13355 2016-08-19 Uros Bizjak <ubizjak@gmail.com>
13358 * config/i386/i386.c (ix86_option_override_internal): Remove
13359 PTA_PRFCHW from entries that also have PTA_3DNOW flag.
13360 Enable SSE prefetch also for TARGET_PREFETCHWT1.
13361 Do not try to enable TARGET_PRFCHW ISA flag here.
13362 * config/i386/i386.md (prefetch): Enable also for TARGET_3DNOW.
13363 Rewrite expander function body.
13364 (*prefetch_3dnow): Enable for TARGET_3DNOW and TARGET_PREFETCHWT1.
13366 2016-08-19 Joseph Myers <joseph@codesourcery.com>
13369 * tree-core.h (TI_COMPLEX_FLOAT16_TYPE)
13370 (TI_COMPLEX_FLOATN_NX_TYPE_FIRST, TI_COMPLEX_FLOAT32_TYPE)
13371 (TI_COMPLEX_FLOAT64_TYPE, TI_COMPLEX_FLOAT128_TYPE)
13372 (TI_COMPLEX_FLOAT32X_TYPE, TI_COMPLEX_FLOAT64X_TYPE)
13373 (TI_COMPLEX_FLOAT128X_TYPE, TI_FLOAT16_TYPE, TI_FLOATN_TYPE_FIRST)
13374 (TI_FLOATN_NX_TYPE_FIRST, TI_FLOAT32_TYPE, TI_FLOAT64_TYPE)
13375 (TI_FLOAT128_TYPE, TI_FLOATN_TYPE_LAST, TI_FLOAT32X_TYPE)
13376 (TI_FLOATNX_TYPE_FIRST, TI_FLOAT64X_TYPE, TI_FLOAT128X_TYPE)
13377 (TI_FLOATNX_TYPE_LAST, TI_FLOATN_NX_TYPE_LAST): New enum
13379 (NUM_FLOATN_TYPES, NUM_FLOATNX_TYPES, NUM_FLOATN_NX_TYPES): New
13381 (struct floatn_type_info): New structure type.
13382 (floatn_nx_types): New variable declaration.
13383 * tree.h (FLOATN_TYPE_NODE, FLOATN_NX_TYPE_NODE)
13384 (FLOATNX_TYPE_NODE, float128_type_node, float64x_type_node)
13385 (COMPLEX_FLOATN_NX_TYPE_NODE): New macros.
13386 * tree.c (floatn_nx_types): New variable.
13387 (build_common_tree_nodes): Initialize _FloatN, _FloatNx and
13388 corresponding complex types.
13389 * target.def (floatn_mode): New hook.
13390 * targhooks.c: Include "real.h".
13391 (default_floatn_mode): New function.
13392 * targhooks.h (default_floatn_mode): New prototype.
13393 * doc/extend.texi (Floating Types): Document _FloatN and _FloatNx
13395 * doc/sourcebuild.texi (float@var{n}, float@var{n}x): Document new
13396 effective-target and dg-add-options keywords.
13397 (float@var{n}_runtime, float@var{n}x_runtime, floatn_nx_runtime):
13398 Document new effective-target keywords.
13399 * doc/tm.texi.in (TARGET_FLOATN_MODE): New @hook.
13400 * doc/tm.texi: Regenerate.
13401 * ginclude/float.h (LDBL_DECIMAL_DIG): Define to
13402 __LDBL_DECIMAL_DIG__, not __DECIMAL_DIG__.
13403 [__STDC_WANT_IEC_60559_TYPES_EXT__]: Define macros from TS
13405 * real.h (struct real_format): Add field ieee_bits.
13406 * real.c (ieee_single_format, mips_single_format)
13407 (motorola_single_format, spu_single_format, ieee_double_format)
13408 (mips_double_format, motorola_double_format)
13409 (ieee_extended_motorola_format, ieee_extended_intel_96_format)
13410 (ieee_extended_intel_128_format)
13411 (ieee_extended_intel_96_round_53_format, ibm_extended_format)
13412 (mips_extended_format, ieee_quad_format, mips_quad_format)
13413 (vax_f_format, vax_d_format, vax_g_format, decimal_single_format)
13414 (decimal_double_format, decimal_quad_format, ieee_half_format)
13415 (arm_half_format, real_internal_format: Initialize ieee_bits
13417 * config/i386/i386.c (ix86_init_builtin_types): Do not initialize
13418 float128_type_node. Set float80_type_node to float64x_type_node
13419 if appropriate and long_double_type_node not appropriate.
13420 * config/ia64/ia64.c (ia64_init_builtins): Likewise.
13421 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format):
13422 Initialize ieee_bits field.
13423 * config/rs6000/rs6000.c (TARGET_FLOATN_MODE): New macro.
13424 (rs6000_init_builtins): Set ieee128_float_type_node to
13425 float128_type_node.
13426 (rs6000_floatn_mode): New function.
13428 2016-08-19 Jakub Jelinek <jakub@redhat.com>
13430 * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
13431 _rdseed64_step): Uglify argument names and/or local variable names
13432 in inline functions.
13433 * config/i386/rtmintrin.h (_xabort): Likewise.
13434 * config/i386/avx512vlintrin.h (_mm256_ternarylogic_epi64,
13435 _mm256_mask_ternarylogic_epi64, _mm256_maskz_ternarylogic_epi64,
13436 _mm256_ternarylogic_epi32, _mm256_mask_ternarylogic_epi32,
13437 _mm256_maskz_ternarylogic_epi32, _mm_ternarylogic_epi64,
13438 _mm_mask_ternarylogic_epi64, _mm_maskz_ternarylogic_epi64,
13439 _mm_ternarylogic_epi32, _mm_mask_ternarylogic_epi32,
13440 _mm_maskz_ternarylogic_epi32): Likewise.
13441 * config/i386/lwpintrin.h (__llwpcb, __lwpval32, __lwpval64,
13442 __lwpins32, __lwpins64): Likewise.
13443 * config/i386/avx2intrin.h (_mm_i32gather_pd, _mm_mask_i32gather_pd,
13444 _mm256_i32gather_pd, _mm256_mask_i32gather_pd, _mm_i64gather_pd,
13445 _mm_mask_i64gather_pd, _mm256_i64gather_pd, _mm256_mask_i64gather_pd,
13446 _mm_i32gather_ps, _mm_mask_i32gather_ps, _mm256_i32gather_ps,
13447 _mm256_mask_i32gather_ps, _mm_i64gather_ps, _mm_mask_i64gather_ps,
13448 _mm256_i64gather_ps, _mm256_mask_i64gather_ps, _mm_i32gather_epi64,
13449 _mm_mask_i32gather_epi64, _mm256_i32gather_epi64,
13450 _mm256_mask_i32gather_epi64, _mm_i64gather_epi64,
13451 _mm_mask_i64gather_epi64, _mm256_i64gather_epi64,
13452 _mm256_mask_i64gather_epi64, _mm_i32gather_epi32,
13453 _mm_mask_i32gather_epi32, _mm256_i32gather_epi32,
13454 _mm256_mask_i32gather_epi32, _mm_i64gather_epi32,
13455 _mm_mask_i64gather_epi32, _mm256_i64gather_epi32,
13456 _mm256_mask_i64gather_epi32): Likewise.
13457 * config/i386/pmm_malloc.h (_mm_malloc, _mm_free): Likewise.
13458 * config/i386/ia32intrin.h (__writeeflags): Likewise.
13459 * config/i386/pkuintrin.h (_wrpkru): Likewise.
13460 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd,
13461 _mm512_mask_prefetch_i32gather_ps, _mm512_mask_prefetch_i64gather_pd,
13462 _mm512_mask_prefetch_i64gather_ps, _mm512_prefetch_i32scatter_pd,
13463 _mm512_prefetch_i32scatter_ps, _mm512_mask_prefetch_i32scatter_pd,
13464 _mm512_mask_prefetch_i32scatter_ps, _mm512_prefetch_i64scatter_pd,
13465 _mm512_prefetch_i64scatter_ps, _mm512_mask_prefetch_i64scatter_pd,
13466 _mm512_mask_prefetch_i64scatter_ps): Likewise.
13467 * config/i386/gmm_malloc.h (_mm_malloc, _mm_free): Likewise.
13468 * config/i386/avx512fintrin.h (_mm512_ternarylogic_epi64,
13469 _mm512_mask_ternarylogic_epi64, _mm512_maskz_ternarylogic_epi64,
13470 _mm512_ternarylogic_epi32, _mm512_mask_ternarylogic_epi32,
13471 _mm512_maskz_ternarylogic_epi32, _mm512_i32gather_ps,
13472 _mm512_mask_i32gather_ps, _mm512_i32gather_pd, _mm512_i64gather_ps,
13473 _mm512_i64gather_pd, _mm512_i32gather_epi32, _mm512_i32gather_epi64,
13474 _mm512_i64gather_epi32, _mm512_i64gather_epi64): Likewise.
13476 * config/i386/fxsrintrin.h (_fxsave): Remove return keyword in inlines
13478 (_fxrstor, _fxsave64, _fxrstor64): Likewise.
13479 * config/i386/xsaveintrin.h (_xsave, _xrstor, _xsave64, _xrstor64):
13481 * config/i386/xsaveoptintrin.h (_xsaveopt, _xsaveopt64): Likewise.
13482 * config/i386/pkuintrin.h (_wrpkru): Likewise. Add space after
13484 (_rdpkru_u32): Add space after function name.
13486 * config/i386/t-i386 (i386-c.o): Don't depend on
13487 i386-builtin-types.inc.
13488 (i386.o): Depend on i386-builtin-types.inc.
13490 2016-08-19 Matthew Wahab <matthew.wahab@arm.com>
13493 * config/arm/arm.c (neon_valid_immediate): Delete declaration.
13494 Use const_vec_duplicate to check for duplicated elements.
13496 2016-08-19 Richard Biener <rguenther@suse.de>
13498 PR tree-optimization/77290
13499 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
13500 Fix flag_tree_parallelize_loops check.
13502 2016-08-19 Richard Biener <rguenther@suse.de>
13504 * match.pd (x | 0 -> x): Add.
13506 2016-08-19 Richard Biener <rguenther@suse.de>
13508 PR tree-optimization/77286
13509 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
13510 Deal with virtual PHIs being out-of-order.
13512 2016-08-18 David Malcolm <dmalcolm@redhat.com>
13514 * doc/invoke.texi (fverbose-asm): Note that source code lines
13515 are emitted, and provide an example.
13516 * final.c (asm_show_source): New function.
13517 (final_scan_insn): Call asm_show_source.
13519 2016-08-18 David Malcolm <dmalcolm@redhat.com>
13521 * diagnostic-show-locus.c (colorizer::colorizer): Replace diagnostic
13522 param with diagnostic_kind.
13523 (class colorizer): Similarly replace field m_diagnostic with
13525 (colorizer::colorizer): Replace diagnostic
13526 param with diagnostic_kind.
13527 (colorizer::begin_state): Update for above field change.
13528 (layout::layout): Replace diagnostic param with rich_location *
13529 and diagnostic_kind.
13530 (diagnostic_show_locus): Replace diagnostic param with richloc
13531 and diagnostic_kind.
13532 (class selftest::test_diagnostic_context): New class.
13533 (selftest::test_diagnostic_show_locus_unknown_location): New
13535 (selftest::test_one_liner_simple_caret): New function.
13536 (selftest::test_one_liner_caret_and_range): New function.
13537 (selftest::test_one_liner_multiple_carets_and_ranges): New
13539 (selftest::test_one_liner_fixit_remove): New function.
13540 (selftest::test_one_liner_fixit_replace): New function.
13541 (selftest::test_diagnostic_show_locus_one_liner): New function.
13542 (selftest::diagnostic_show_locus_c_tests): Call the new test
13544 * diagnostic.c (diagnostic_initialize): Initialize
13545 colorize_source_p, show_ruler_p and parseable_fixits_p.
13546 (default_diagnostic_finalizer): Update for change to
13547 diagnostic_show_locus.
13548 (diagnostic_append_note): Likewise.
13549 * diagnostic.h (diagnostic_show_locus): Replace
13550 const diagnostic_info * param with location * and diagnostic_t.
13552 2016-08-18 David Malcolm <dmalcolm@redhat.com>
13554 * input.c (saved_line_table): New global.
13555 (class selftest::temp_line_table): Rename to line_table_test and
13556 move declaration to selftest.h, and drop field m_old_line_table.
13557 (selftest::temp_line_table::temp_line_table): Rename ctor to...
13558 (selftest::line_table_test::line_table_test): ...this. Add a
13559 default ctor. Store current value of line_table within
13561 (selftest::temp_line_table::~temp_line_table): Rename dtor to...
13562 (selftest::line_table_test::~line_table_test): ...this, and
13563 restore line_table from the saved_line_table, rather than
13565 (selftest::test_accessing_ordinary_linemaps): Update for above
13567 (selftest::test_lexer): Likewise.
13568 (struct selftest::lexer_test): Likewise.
13569 (selftest::lexer_test::lexer_test): Likewise.
13570 (selftest::input_c_tests): Move the looping over test cases from
13572 (selftest::for_each_line_table_case): New function.
13573 * input.h (saved_line_table): New decl.
13574 * selftest.h (struct selftest::line_table_case): New forward decl.
13575 (class selftest::line_table_test): New class, moved here from
13576 selftest::temp_line_table in input.c, and renamed.
13577 (selftest::for_each_line_table_case): New decl.
13579 2015-08-18 H.J. Lu <hongjiu.lu@intel.com>
13582 * config/i386/i386.c (lakemont_cost): Set MOVE_RATIO to 17.
13584 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
13586 PR middle-end/70895
13587 * gimplify.c (omp_add_variable): Adjust/add variable mapping on
13588 enclosing parallel construct for reduction variables on OpenACC loop
13591 2016-08-18 Pierre-Marie de Rodat <derodat@adacore.com>
13593 * dwarf2out.c (copy_dwarf_procedure): Remove obsolete comment.
13594 (new_dwarf_proc_die): Emit DW_TAG_dwarf_procedure DIEs even for
13596 (function_to_dwarf_procedure): Update comment.
13598 2016-08-18 David Malcolm <dmalcolm@redhat.com>
13600 * input.c (diagnostics_file_cache_forcibly_evict_file): New
13602 * input.h (diagnostics_file_cache_forcibly_evict_file): New
13604 * selftest.c (selftest::temp_source_file::~temp_source_file):
13605 Evict m_filename from the diagnostic file cache.
13607 2016-08-18 Richard Biener <rguenther@suse.de>
13609 * tree-pass.h (make_pass_materialize_all_clones): Declare.
13610 * ipa.c (pass_data_materialize_all_clones, pass_materialize_all_clones,
13611 make_pass_materialize_all_clones): New simple IPA pass encapsulating
13612 clone materialization.
13613 * passes.def (all_late_ipa_passes): Start with
13614 pass_materialize_all_clones.
13615 * cgraphunit.c (symbol_table::compile): Remove call to
13616 materialize_all_clones.
13617 * tree-into-ssa.c: Include statistics.h.
13618 (update_ssa): Count number of times we do incremental/rewrite
13621 2016-08-18 Richard Biener <rguenther@suse.de>
13623 PR tree-optimization/77282
13624 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
13625 When doing auto-parallelizing also prevent use of PHIs that
13626 carry dependences across loop backedges.
13628 2016-08-18 Tamar Christina <tamar.christina@arm.com>
13629 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13631 * varasm.c (default_use_anchors_for_symbol_p): Reject too large decls.
13633 2016-08-18 Richard Biener <rguenther@suse.de>
13635 * ssa-iterators.h (ssa_vuse_operand): New inline.
13636 * tree-if-conv.c (ifc_temp_var): Update virtual operand.
13637 (predicate_all_scalar_phis): Use remove_phi_node to remove
13638 phi nodes predicated. Delay removing virtual PHIs.
13639 (predicate_mem_writes): Update virtual operands.
13640 (combine_blocks): Likewise. Propagate out remaining virtual PHIs.
13641 (tree_if_conversion): Do not rewrite virtual SSA form.
13642 * tree-phinodes.c (release_phi_node): Make static.
13643 * tree-phinodes.h (release_phi_node): Remove.
13645 2016-08-18 Jakub Jelinek <jakub@redhat.com>
13647 * config/i386/i386.c (enum ix86_builtins): Remove IX86_BUILTIN_*
13648 codes that appear in bdesc_* arrays, instead include i386-builtin.def
13649 twice to define those.
13650 (bdesc_comi, bdesc_pcmpestr, bdesc_pcmpistr, bdesc_special_args,
13651 bdesc_args, bdesc_round_args, bdesc_mpx, bdesc_mpx_const,
13652 bdesc_multi_arg): Define by including i386-builtin.def the third time.
13653 * config/i386/i386-builtin.def: New file.
13655 2016-08-17 David Malcolm <dmalcolm@redhat.com>
13657 * input.c (get_source_range_for_char): Rename to...
13658 (selftest::get_source_range_for_char): ...this, and move within
13659 the #if CHECKING_P guard.
13660 (get_num_source_ranges_for_substring): Rename to...
13661 (selftest::get_num_source_ranges_for_substring): ...this, move
13662 within the #if CHECKING_P guard, and make static.
13663 (selftest::assert_num_substring_ranges): Initialize
13666 2016-08-18 Alan Modra <amodra@gmail.com>
13668 PR rtl-optimization/72771
13669 * reload.c (find_reloads): Don't assume that a subreg mem is OK
13670 when find_reloads_toplev returns address_reloaded==-1.
13671 (alternative_allows_const_pool_ref): Update comment.
13673 2015-08-17 Alan Hayward <alan.hayward@arm.com>
13675 PR tree-optimization/71752
13676 * tree-vect-loop.c (vectorizable_reduction): Keep SLP operand ordering.
13677 * tree-vect-slp.c (vect_get_slp_defs): Handle null operands.
13679 2016-08-17 Jakub Jelinek <jakub@redhat.com>
13681 * gimple-fold.c (gimple_fold_call): Use gimple_call_noreturn_p
13682 instead of testing ECF_NORETURN bit in gimple_call_flags.
13683 * tree-cfg.c (make_edges_bb, execute_fixup_cfg): Likewise.
13684 * predict.c (tree_bb_level_predictions): Likewise.
13685 * gimple-low.c (gimple_stmt_may_fallthru): Likewise.
13687 PR middle-end/77259
13688 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): If
13689 turning a call into __builtin_unreachable-like noreturn call, adjust
13690 gimple_call_set_fntype.
13691 * tree-cfgcleanup.c (fixup_noreturn_call): Remove lhs also if
13692 gimple_call_fntype has void return type.
13694 2016-08-17 Chung-Lin Tang <cltang@codesourcery.com>
13696 * omp-low.c (lower_oacc_reductions): Adjust variable lookup to use
13697 maybe_lookup_decl, to handle nested acc loop directives.
13699 2016-08-17 Richard Biener <rguenther@suse.de>
13701 PR tree-optimization/76490
13702 * tree-vrp.c (update_value_range): Preserve overflow infinities
13703 when intersecting with ranges from get_range_info.
13704 (operand_less_p): Handle overflow infinities correctly.
13705 (value_range_constant_singleton): Use vrp_operand_equal_p
13706 to handle overflow max/min correctly.
13707 (vrp_valueize): Likewise.
13708 (union_ranges): Likewise.
13709 (intersect_ranges): Likewise.
13710 (vrp_visit_phi_node): Improve iteration limitation to only
13711 apply when we'll possibly re-visit the PHI via a changed argument
13714 2016-08-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
13716 * config/arm/t-aprofile (MULTILIB_EXCEPTIONS): Rewrite into ...
13717 (MULTILIB_REQUIRED): This by specifying multilib needing to be built
13718 rather than those that should not be built.
13720 2016-08-17 Stanislaw Halik <sthalik@misaki.pl>
13723 * config/i386/xm-mingw32.h (HOST_BITS_PER_PTR): Define if __x86_64__.
13725 2016-08-17 Richard Biener <rguenther@suse.de>
13727 * tree-ssa.c: Include tree-cfg.h and tree-dfa.h.
13728 (verify_vssa): New function verifying virtual SSA form.
13729 (verify_ssa): Call it.
13730 * tree-ssa-loop-manip.c (slpeel_update_phi_nodes_for_guard2):
13731 Do not apply loop-closed SSA handling to virtuals.
13732 * ssa-iterators.h (op_iter_init): Handle GIMPLE_TRANSACTION.
13733 * tree-into-ssa.c (prepare_use_sites_for): Skip virtual SSA names
13734 when rewriting their symbol.
13735 (prepare_def_site_for): Likewise.
13736 * tree-chkp-opt.c (chkp_reduce_bounds_lifetime): Clear virtual
13737 operands of moved stmts.
13739 2016-08-17 Richard Biener <rguenther@suse.de>
13741 PR tree-optimization/23855
13742 * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h.
13743 (tree_unswitch_outer_loop): Iterate find_loop_guard as long as we
13744 find guards to hoist. Do not update SSA form but rewrite virtuals
13745 into loop closed SSA.
13746 (find_loop_guard): Adjust to skip already hoisted guards. Do
13747 not mark virtuals for renaming or update SSA form.
13749 2016-08-17 Martin Liska <mliska@suse.cz>
13751 * coverage.c (get_gcov_type): Replace GCOV_TYPE_SIZE with
13752 a LONG_LONG_TYPE_SIZE comparison.
13753 * gcov-io.h: Remove macro definitions.
13754 * tree-profile.c (gimple_gen_edge_profiler): Replace usage
13755 of GCOV_TYPE_ATOMIC_FETCH_ADD with a LONG_LONG_TYPE_SIZE
13758 2016-08-16 Jakub Jelinek <jakub@redhat.com>
13760 * config/i386/i386.c (enum ix86_builtins): Reorder enumerators, so
13761 that builtins not mentioned in bdesc_* arrays come first, then
13762 the ones mentioned in bdesc_* arrays in the order they appear in
13763 the arrays in between IX86_BUILTIN__BDESC_*_FIRST and
13764 IX86_BUILTIN__BDESC_*_LAST enumerator.
13765 (bdesc_mpx): Fix up a comment typo.
13766 (bdesc_multi_arg): Remove __builtin_ia32_vpcomne[bwdq] and
13767 __builtin_ia32_vpcomneu[bwdq] builtins.
13768 (BDESC_VERIFY, BDESC_VERIFYS): Define.
13769 (ix86_init_mmx_sse_builtins, ix86_init_mpx_builtins): Verify
13770 enum ix86_builtins ordering.
13771 (ix86_expand_builtin): Use enum ix86_builtins ordering assumption
13772 for direct bdesc_* array member access instead of searching all the
13773 arrays until an fcode match is found.
13775 2016-08-16 Uros Bizjak <ubizjak@gmail.com>
13777 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite define_insn
13778 pattern as define_insn_and_split. Split insn before reload to
13780 (*<shift_insn><mode>3_mask): Ditto. Split insn before reload to
13781 <shift_insn><mode>3_1.
13782 (*<rotate_insn><mode>3_mask): Ditto. Split insn before reload to
13783 <rotate_insn><mode>3_1.
13785 2016-08-16 David Malcolm <dmalcolm@redhat.com>
13788 * input.c (get_source_range_for_substring): Rename to...
13789 (get_source_location_for_substring): ...this, adding param
13790 "caret_idx", and converting output param from source_range * to
13792 (get_source_range_for_char): New function.
13793 (get_num_source_ranges_for_substring): Update comment to reflect
13795 (assert_char_at_range): Update to use get_source_range_for_char
13796 rather than get_source_range_for_substring.
13797 (test_lexer_string_locations_concatenation_2): Likewise.
13798 * substring-locations.h (get_source_range_for_substring): Rename
13800 (get_source_location_for_substring): ...this, and adding param
13801 "caret_idx", and converting output param from source_range * to
13804 2016-08-16 David Malcolm <dmalcolm@redhat.com>
13806 * input.c (class selftest::temp_source_file): Move to
13808 (selftest::temp_source_file::temp_source_file): Move to
13810 (selftest::temp_source_file::~temp_source_file): Likewise.
13811 * selftest.c (selftest::temp_source_file::temp_source_file): Move
13813 (selftest::temp_source_file::~temp_source_file): Likewise.
13814 * selftest.h (class selftest::temp_source_file): Move here from
13817 2016-08-16 Jakub Jelinek <jakub@redhat.com>
13820 * tree-cfg.c (execute_fixup_cfg): Add node variable, use it. Before
13821 inlining, add cgraph edge for the added __builtin_unreachable call.
13823 PR middle-end/67485
13824 * expmed.c (expand_mult_const): Change val_so_far's type to UHWI,
13825 only cast it to SHWI for the final comparison.
13827 2016-08-16 Martin Liska <mliska@suse.cz>
13829 PR gcov-profile/36412
13830 * doc/gcov.texi: Document --hash-filenames(-x).
13831 * gcov.c (print_usage): Add the option.
13832 (process_args): Process the option, sort options alphabetically.
13833 (md5sum_to_hex): New function.
13834 (make_gcov_file_name): Do the md5sum and append it to a
13837 2016-08-16 Bin Cheng <bin.cheng@arm.com>
13839 PR tree-optimization/69848
13840 * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Invert NE
13841 and swtich operands to avoid additional NOT instruction.
13842 (vcond<v_cmp_mixed><mode>): Ditto.
13843 (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
13845 2016-08-16 Eric Botcazou <ebotcazou@adacore.com>
13847 * doc/install.texi (*-*-solaris2*): Adjust latest change.
13849 2016-08-16 Richard Biener <rguenther@suse.de>
13851 PR tree-optimization/76783
13852 * tree-ssa-propagate.c (ssa_prop_init): Use RPO order. Clear
13853 BB visited flags at start.
13855 2016-08-16 Bin Cheng <bin.cheng@arm.com>
13857 PR tree-optimization/72817
13858 PR tree-optimization/73450
13859 * tree-ssa-loop-niter.c (number_of_iterations_ne): Check
13860 multiple_of_p for adjusted IV.base.
13862 2016-08-15 Uros Bizjak <ubizjak@gmail.com>
13865 * config/i386/sse.md (<code><mode>3<mask_name><round_saeonly_name>):
13866 Emit ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>
13867 for !flag_finite_math_only or flag_signed_zeros.
13868 (*<code><mode>3<mask_name><round_saeonly_name>): Rename from
13869 *<code><mode>3_finite<mask_name><round_saeonly_name>. Do not
13870 depend on flag_finite_math_only.
13871 (ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>):
13873 (*<code><mode>3<mask_name><round_saeonly_name>): Remove.
13874 (*ieee_smin<mode>3): Ditto.
13875 (*ieee_smax<mode>3): Ditto.
13876 * config/i386/mmx.md (mmx_<code>v2sf3): Emit
13877 mmx_ieee_<ieee_maxmin>v2sf3 for !flag_finite_math_only or
13879 (*mmx_<code>v2sf3): Rename from *mmx_<code>v2sf3_finite. Do not
13880 depend on flag_finite_math_only.
13881 (mmx_ieee_<ieee_maxmin>v2sf3): New insn pattern.
13882 (*mmx_<code>v2sf3): Remove.
13883 * config/i386/subst.md (round_saeonly_mask_arg3): New subst attribute.
13884 * config/i386/i386.c (ix86_expand_sse_fp_mimnax): Check
13885 flag_signed_zeros instead of !flag_unsafe_math_optimizations.
13887 2016-08-15 Segher Boessenkool <segher@kernel.crashing.org>
13889 PR rtl-optimization/73650
13890 * lra-constraints.c (simple_move_p): If the insn is multiple_sets
13891 it is not a simple move.
13893 2016-08-15 Martin Liska <mliska@suse.cz>
13896 * gcc.c (do_spec_1): Call save_string with the right size.
13897 (save_string): Do an assert about string we copy.
13899 2016-08-15 Richard Biener <rguenther@suse.de>
13901 * ree.c (rest_of_handle_ree): Remove redundant timevar push/pop.
13902 * config/i386/i386.c (pass_data_insert_vzeroupper): Account to
13904 (pass_data_stv): Likewise.
13906 2016-08-15 Richard Biener <rguenther@suse.de>
13908 PR tree-optimization/73434
13909 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Preserve
13910 TBAA info on the base when forwarding a non-invariant address.
13912 2016-08-15 Jakub Jelinek <jakub@redhat.com>
13914 * dwarf2out.c (struct checksum_attributes): Add
13915 at_string_length_bit_size and at_string_length_byte_size fields.
13916 (collect_checksum_attributes): Handle DW_AT_string_length_bit_size
13917 and DW_AT_string_length_byte_size.
13918 (die_checksum_ordered): Handle at_string_length_bit_size and
13919 at_string_length_byte_size.
13920 (gen_array_type_die): For dwarf_version >= 5 emit
13921 DW_AT_string_length_byte_size instead of DW_AT_byte_size.
13922 (adjust_string_types): For dwarf_version >= 5 remove
13923 DW_AT_string_length_byte_size instead of DW_AT_byte_size.
13924 (resolve_addr): Likewise.
13927 * dwarf2out.c (string_types): New variable.
13928 (gen_array_type_die): Change early_dwarf handling of
13929 DW_AT_string_length, create DW_OP_call4 referencing the
13930 length var temporarily. Handle parameters that are pointers
13932 (adjust_string_types): New function.
13933 (gen_subprogram_die): Temporarily set string_types to local var,
13934 call adjust_string_types if needed.
13935 (non_dwarf_expression, copy_deref_exprloc, optimize_string_length):
13937 (resolve_addr): Adjust DW_AT_string_length if it is DW_OP_call4.
13939 2016-08-15 Eric Botcazou <ebotcazou@adacore.com>
13941 * doc/install.texi (*-*-solaris2*): Fix version number and document
13942 requirement on GNU make for building libjava with the Solaris linker.
13944 2016-08-15 Martin Liska <mliska@suse.cz>
13945 Jakub Jelinek <jakub@redhat.com>
13947 PR tree-optimization/72824
13948 * tree-loop-distribution.c (const_with_all_bytes_same)
13949 <case VECTOR_CST>: Fix a typo.
13951 2016-08-14 Uros Bizjak <ubizjak@gmail.com>
13954 * config/i386/avx512fintrin.h (_mm512_undefined_epi32):
13955 Renamed from _mm512_undefined_si512.
13956 (_mm_undefined_si512): New definition.
13958 2016-08-13 Richard Biener <rguenther@suse.de>
13960 * tree-ssa-forwprop.c (pass_forwprop::execute): Propagate
13961 into PHIs and update the lattice for its def.
13963 2016-08-12 Jakub Jelinek <jakub@redhat.com>
13966 * ubsan.c (instrument_si_overflow): Pass true instead of false
13968 (pass_ubsan::execute): Call gimple_purge_dead_eh_edges at the end
13969 of bbs. Return TODO_cleanup_cfg if any returned true.
13971 2016-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
13973 * config/rs6000/vsx.md (vsx_concat_<mode>): Add support for the
13974 ISA 3.0 MTVSRDD instruction.
13975 (vsx_splat_<mode>): Change cpu type of MTVSRDD instruction to
13978 2016-08-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
13980 PR tree-optimization/71083
13981 * tree-predcom.c (ref_at_iteration): Use a COMPONENT_REF for the
13982 bitfield access when possible.
13984 2016-08-12 Patrick Palka <ppalka@gcc.gnu.org>
13986 PR middle-end/71654
13987 * match.pd ((T)A CMP (T)B -> A CMP B): Allow (T)A to be a
13988 sign-changing cast from a shorter unsigned type to a wider
13991 2016-08-12 Jakub Jelinek <jakub@redhat.com>
13993 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm,
13994 vec_extract_hi_<mode>_mask, vec_extract_lo_<mode>_mask,
13995 vec_extract_hi_<mode>_mask): Use Yk constraint instead of k.
13997 2016-08-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13999 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
14000 Correct costs for vec_construct.
14002 2016-08-12 Bin Cheng <bin.cheng@arm.com>
14004 PR tree-optimization/69848
14005 * tree-vectorizer.h (enum vect_def_type): New condition reduction
14006 type CONST_COND_REDUCTION.
14007 * tree-vect-loop.c (vectorizable_reduction): Support new condition
14008 reudction type CONST_COND_REDUCTION.
14010 2016-08-12 Richard Biener <rguenther@suse.de>
14012 PR tree-optimization/57326
14013 * tree-ssa-pre.c (fully_constant_expression): Handle simplification
14014 returning an SSA name.
14015 (phi_translate_1): When fully_constant_expression returns a NAME
14016 make sure we have a leader for it.
14018 2016-08-12 Martin Liska <mliska@suse.cz>
14019 Adam Fineman <afineman@afineman.com>
14021 * gcov.c (process_file): Create .gcov file when .gcda
14024 2016-08-12 Marek Polacek <polacek@redhat.com>
14027 * alias.c (find_base_value): Adjust fall through comment.
14028 * cfgexpand.c (expand_debug_expr): Likewise.
14029 * combine.c (find_split_point): Likewise.
14030 (expand_compound_operation): Likewise. Add FALLTHRU.
14031 (make_compound_operation): Adjust fall through comment.
14032 (canon_reg_for_combine): Add FALLTHRU.
14033 (force_to_mode): Adjust fall through comment.
14034 (simplify_shift_const_1): Likewise.
14035 (simplify_comparison): Likewise.
14036 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Add
14038 * config/aarch64/predicates.md: Likewise.
14039 * config/i386/i386.c (function_arg_advance_32): Likewise.
14040 (ix86_gimplify_va_arg): Likewise.
14041 (print_reg): Likewise.
14042 (ix86_print_operand): Likewise.
14043 (ix86_build_const_vector): Likewise.
14044 (ix86_expand_branch): Likewise.
14045 (ix86_sched_init_global): Adjust fall through comment.
14046 (ix86_expand_args_builtin): Add FALLTHRU.
14047 (ix86_expand_builtin): Likewise.
14048 (ix86_expand_vector_init_one_var): Likewise.
14049 * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
14050 (rs6000_adjust_cost): Likewise.
14051 (insn_must_be_first_in_group): Likewise.
14052 * config/rs6000/rs6000.md: Likewise. Adjust fall through comment.
14053 * dbxout.c (dbxout_symbol): Adjust fall through comment.
14054 * df-scan.c (df_uses_record): Likewise.
14055 * dojump.c (do_jump): Add FALLTHRU.
14056 * dwarf2out.c (mem_loc_descriptor): Likewise. Adjust fall through
14058 (resolve_args_picking_1): Adjust fall through comment.
14059 (loc_list_from_tree_1): Likewise.
14060 * expmed.c (make_tree): Likewise.
14061 * expr.c (expand_expr_real_2): Add FALLTHRU.
14062 (expand_expr_real_1): Likewise. Adjust fall through comment.
14063 * fold-const.c (const_binop): Adjust fall through comment.
14064 (fold_truth_not_expr): Likewise.
14065 (fold_cond_expr_with_comparison): Add FALLTHRU.
14066 (fold_binary_loc): Likewise.
14067 (contains_label_1): Adjust fall through comment.
14068 (multiple_of_p): Likewise.
14069 * gcov-tool.c (process_args): Add FALLTHRU.
14070 * genattrtab.c (check_attr_test): Likewise.
14071 (write_test_expr): Likewise.
14072 * genconfig.c (walk_insn_part): Likewise.
14073 * genpreds.c (validate_exp): Adjust fall through comment.
14074 (needs_variable): Likewise.
14075 * gensupport.c (get_alternatives_number): Add FALLTHRU.
14076 (subst_dup): Likewise.
14077 * gimple-pretty-print.c (dump_gimple_assign): Likewise.
14078 * gimplify.c (gimplify_addr_expr): Adjust fall through comment.
14079 (gimplify_scan_omp_clauses): Add FALLTHRU.
14080 (goa_stabilize_expr): Likewise.
14081 * graphite-isl-ast-to-gimple.c (substitute_ssa_name): Adjust fall
14083 * hsa-gen.c (get_address_from_value): Likewise.
14084 * ipa-icf.c (sem_function::hash_stmt): Likewise.
14085 * ira.c (ira_setup_alts): Add FALLTHRU.
14086 * lra-eliminations.c (lra_eliminate_regs_1): Adjust fall through
14088 * lto-streamer-out.c (lto_output_tree_ref): Add FALLTHRU.
14089 * opts.c (common_handle_option): Likewise.
14090 * read-rtl.c (read_rtx_code): Likewise.
14091 * real.c (round_for_format): Likewise.
14092 * recog.c (asm_operand_ok): Likewise.
14093 * reginfo.c (reg_scan_mark_refs): Adjust fall through comment.
14094 * reload1.c (set_label_offsets): Likewise.
14095 (eliminate_regs_1): Likewise.
14096 (reload_reg_reaches_end_p): Likewise.
14097 * rtlanal.c (commutative_operand_precedence): Add FALLTHRU.
14098 (rtx_cost): Likewise.
14099 * sched-rgn.c (is_exception_free): Likewise.
14100 * simplify-rtx.c (simplify_rtx): Adjust fall through comment.
14101 * stor-layout.c (int_mode_for_mode): Likewise.
14102 * toplev.c (print_to_asm_out_file): Likewise.
14103 (print_to_stderr): Likewise.
14104 * tree-cfg.c (gimple_verify_flow_info): Likewise.
14105 * tree-chrec.c (chrec_fold_plus_1): Add FALLTHRU.
14106 (chrec_fold_multiply): Likewise.
14107 (evolution_function_is_invariant_rec_p): Likewise.
14108 (for_each_scev_op): Likewise.
14109 * tree-data-ref.c (siv_subscript_p): Likewise.
14110 (get_references_in_stmt): Likewise.
14111 * tree.c (find_placeholder_in_expr): Adjust fall through comment.
14112 (substitute_in_expr): Likewise.
14113 (type_cache_hasher::equal): Likewise.
14114 (walk_type_fields): Likewise.
14115 * var-tracking.c (adjust_mems): Add FALLTHRU.
14116 (set_dv_changed): Adjust fall through comment.
14117 * varasm.c (default_function_section): Add FALLTHRU.
14119 2016-08-12 Marek Polacek <polacek@redhat.com>
14122 * tree-complex.c (expand_complex_division): Add missing break.
14124 2016-08-12 Richard Biener <rguenther@suse.de>
14126 * passes.c (execute_todo): Do not push/pop TV_TODO.
14127 (execute_one_ipa_transform_pass): Move timevar push/pop TODO execution.
14128 (execute_one_pass): Likewise.
14129 * common.opt (ftime-report-details): New switch.
14130 * doc/invoke.texi (ftime-report-details): Document.
14131 * timevar.h (timer::print_row): Adjust signature.
14132 (timer::all_zero): New static helper.
14133 (timer::child_map_t): New typedef.
14134 (timer::time_var_def): Add children field.
14135 * timevar.c (timer::named_items::print): Adjust.
14136 (timer::~timer): Free timevar recorded children.
14137 (timer::pop_internal): When -ftime-report-details record
14138 time spent in sub-timevars.
14139 (timer::print_row): Adjust.
14140 (timer::print): Print sub-timevar stats, use all_zero.
14141 * timevar.def (TV_TODO): Remove.
14143 2016-08-12 Richard Biener <rguenther@suse.de>
14145 PR tree-optimization/72851
14146 * tree-ssa-propagate.c: Include cfganal.h. Rewrite block and stmt
14147 worklists to use bitmaps indexed in execution order.
14148 (executable_blocks, cfg_blocks_num, cfg_blocks_tail, cfg_blocks_head,
14149 bb_in_list, interesting_ssa_edges, varying_ssa_edges): Remove.
14150 (cfg_blocks): Make a bitmap.
14151 (bb_to_cfg_order, cfg_order_to_bb, ssa_edge_worklist, uid_to_stmt):
14153 (cfg_blocks_empty_p): Adjust.
14154 (cfg_blocks_add): Likewise.
14155 (cfg_blocks_get): Likewise.
14156 (add_ssa_edge): Likewise.
14157 (add_control_edge): Likewise.
14158 (simulate_stmt): Likewise.
14159 (process_ssa_edge_worklist): Likewise.
14160 (simulate_block): Likewise.
14161 (ssa_prop_init): Compute PRE order and stmt UIDs.
14162 (ssa_prop_fini): Adjust.
14163 (ssa_propagate): Adjust.
14165 2016-08-12 Richard Biener <rguenther@suse.de>
14167 * tree-vrp.c (vrp_visit_phi_node): Allow a last iteration if
14168 the currently executable edges have fixed ranges. Always
14169 go through update_value_range.
14171 2016-08-12 Alexandre Oliva <aoliva@redhat.com>
14175 (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Const_tree-ify.
14176 (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Likewise.
14177 (LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Set default.
14178 (LANG_HOOKS_DECLS): Add it.
14179 * langhooks.h (struct lang_hooks_for_decls): Add
14180 function_decl_defaulted. Const_tree-ify
14181 function_decl_explicit_p and function_decl_deleted_p.
14182 * dwarf2out.c (gen_subprogram_die): Add DW_AT_defaulted
14183 attribute. Add DW_AT_deleted instead of DW_AT_GNU_deleted,
14184 also at strict DWARF v5.
14187 * dwarf2out.c (decl_quals): Don't map TREE_READONLY to
14188 TYPE_QUAL_CONST in reference-typed decls.
14191 * dwarf2out.c (loc_list_from_tree_1): Expand some CONSTRUCTORs
14192 in DW_OP_pieces, just enough to handle pointers to member
14194 (gen_remaining_tmpl_value_param_die_attribute): Use a location
14195 expression on DWARFv5 if a constant value doesn't work.
14197 2016-08-11 David Malcolm <dmalcolm@redhat.com>
14199 * selftest-run-tests.c (selftest::run_tests): Call selftest_c_tests.
14200 * selftest.c (selftest::test_assertions): New function.
14201 (selftest::selftest_c_tests): New function.
14202 * selftest.h (selftest::selftest_c_tests): New declaration.
14204 2016-08-11 Richard Biener <rguenther@suse.de>
14205 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14207 PR rtl-optimization/72855
14208 * df-core.c (df_verify): Turn off DF_VERIFY_SCHEDULED at end.
14210 2016-08-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14213 * vsx.md (vsx_load_<mode>): For P8LE, emit swaps at expand time.
14214 (vsx_store_<mode>): Likewise.
14216 2015-08-11 H.J. Lu <hongjiu.lu@intel.com>
14218 * config/i386/i386.c (timode_scalar_to_vector_candidate_p): Allow
14219 TImode CONST_WIDE_INT store.
14220 (timode_scalar_chain::convert_insn): Handle CONST_WIDE_INT store.
14222 2015-08-11 H.J. Lu <hongjiu.lu@intel.com>
14224 * config/i386/i386.h (MOVE_MAX_PIECES): Use TImode in 64-bit
14225 mode if unaligned SSE load and store are optimal.
14227 2016-08-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
14229 PR tree-optimization/71083
14230 * tree-predcom.c (ref_at_iteration): Correctly align the
14233 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14235 * config/s390/s390-builtin-types.def: Add INT128 types.
14236 * config/s390/s390-builtins.def: Add INT128 variants for the add
14237 sub low-level builtins dealing with TImode.
14238 * config/s390/s390.c (s390_expand_builtin): Allow mode conversions
14239 via subreg when expanding a builtin.
14240 * config/s390/s390.md: Remove UNSPEC_VEC_ADDC_U128,
14241 UNSPEC_VEC_SUB_U128, and UNSPEC_VEC_SUBC_U128 constants.
14243 * config/s390/vecintrin.h: Adjust builtin names accordingly.
14244 * config/s390/vx-builtins.md ("vec_add_u128"): Remove expander.
14245 ("vec_addc<mode>", "vec_addc_u128"): Merge to
14246 "vacc<bhfgq>_<mode>".
14247 ("vec_adde_u128"): Rename to "vacq". Change mode to TImode.
14248 ("vec_addec_u128"): Rename to "vacccq". Change mode to TImode.
14249 ("vec_subc<mode>", "vec_subc_u128"): Merge to
14250 "vscbi<bhfgq>_<mode>".
14251 ("vec_sube_u128"): Rename to "vsbiq". Change mode to TImode.
14252 ("vec_subec_u128"): Rename to "vsbcbiq". Change mode to TImode.
14254 2016-08-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14256 * config/s390/s390-builtins.def: Mark last operand of s390_vlvg*
14258 2016-08-11 Bin Cheng <bin.cheng@arm.com>
14260 * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Delete
14261 unused declaration.
14262 (vcond<v_cmp_mixed><mode>): Ditto.
14263 (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
14265 2016-08-11 Bin Cheng <bin.cheng@arm.com>
14267 * config/aarch64/aarch64-simd.md (vec_cmp<mode><v_cmp_result>): Init
14268 variable explicitly, also assert on it before use.
14270 2016-08-11 Richard Biener <rguenther@suse.de>
14272 PR tree-optimization/72772
14273 * cfgloopmanip.c (create_preheader): Use split_edge if there
14274 is a single loop entry, avoiding degenerate PHIs.
14276 2016-08-11 Richard Biener <rguenther@suse.de>
14278 * tree-ssa-threadbackward.c (pass_data_thread_jumps): Remove
14279 unconditional TODO_cleanup_cfg.
14280 (pass_thread_jumps::execute): Initialize loops, perform a CFG
14281 cleanup only if we threaded a jump.
14283 2016-08-11 Alan Modra <amodra@gmail.com>
14286 * lra-constraints.c (simplify_operand_subreg): Allow subreg
14287 mode for mem when SLOW_UNALIGNED_ACCESS if inner mode is also
14288 slow. Emit two reloads for slow mem case, first loading in
14289 fast innermode, then converting to required mode.
14291 2016-08-10 Kelvin Nilsen <kelvin@gcc.gnu.org>
14293 * config/rs6000/altivec.h (vec_extract_exp): New macro.
14294 (vec_extract_sig): New macro.
14295 (vec_insert_exp): New macro.
14296 (vec_test_data_class): New macro.
14297 (scalar_extract_exp): New macro.
14298 (scalar_extract_sig): New macro.
14299 (scalar_insert_exp): New macro.
14300 (scalar_test_data_class): New macro.
14301 (scalar_test_neg): New macro.
14302 (scalar_cmp_exp_gt): New macro.
14303 (scalar_cmp_exp_lt): New macro.
14304 (scalar_cmp_exp_eq): New macro.
14305 (scalar_cmp_exp_unordered): New macro.
14306 * config/rs6000/predicates.md (u7bit_cint_operand): New predicate
14307 to enforce constraint that operand is a 7-bit unsigned literal.
14308 * config/rs6000/rs6000-builtin.def (BU_P9V_64BIT_VSX_1): New macro
14309 for power9 built-ins.
14310 (BU_P9V_VSX_2): Likewise.
14311 (BU_P9V_64BIT_VSX_2): Likewise.
14312 (VSEEDP): Add scalar extract exponent support.
14313 (VSEESP): Add scalar extract signature support.
14314 (VSTDCNDP): Add scalar test negative support.
14315 (VSTDCNSP): Likewise.
14316 (VSIEDP): Add scalar insert exponent support.
14317 (VSCEDPGT): Add scalar compare exponent greater than support.
14318 (VSCEDPLT): Add scalar compare exponent less than support.
14319 (VSCEDPEQ): Add scalar compare exponent test-for-equality support.
14320 (VSCEDPUO): Add scalar compare exponent test-for-unordered support.
14321 (VSTDCDP): Add scalar test data class support.
14322 (VSTDCSP): Likewise.
14323 (VSEEDP): Add overload support for scalar extract exponent
14325 (VSESDP): Add overload support for scalar extract signature
14327 (VSTDCN): Add overload support for scalar test negative
14329 (VSTDCNDP): Add overload support for scalar test negative
14331 (VSTDCNSP): Add overload support for scalar test negative
14333 (VSIEDP): Add overload support for scalar insert exponent
14335 (VSTDC): Add overload support for scalar test data class
14337 (VSTDCDP): Add overload support for scalar test data class
14339 (VSTDCSP): Add overload support for scalar test data class
14341 (VSCEDPGT): Add overload support for scalar compare exponent
14342 greater than operation.
14343 (VSCEDPLT): Add overload support for scalar compare exponent
14344 less than operation.
14345 (VSCEDPEQ): Add overload support for scalar compare exponent
14346 test-for-equality operation.
14347 (VSCEDPUO): Add overload support for scalar compare exponent
14348 test-for-unordered operation.
14349 (VEEDP): Add vector extract exponent support.
14351 (VESDP): Add vector extract significand support.
14353 (VIEDP): Add vector insert exponent support.
14355 (VTDCDP): Add vector test data class support.
14356 (VTDCSP): Likewise.
14357 (VES): Add overload support for vector extract significand operation.
14360 (VEE): Add overload support for vector extract exponent operation.
14363 (VTDC): Add overload support for vector test data class operation.
14364 (VTDCDP): Likewise.
14365 (VTDCSP): Likewise.
14366 (VIE): Add overload support for vector insert exponent operation.
14369 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
14370 overloaded binary floating point functions.
14371 (altivec_resolve_overloaded_builtin): Improve error messages to
14372 distinguish between functions not supported in the current
14373 compiler configuration and functions that were invoked with an
14374 invalid parameter combination, and include the built-in function
14375 name in both error messages.
14376 * config/rs6000/rs6000-protos.h (rs6000_overloaded_builtin_name):
14378 * config/rs6000/rs6000.c (rs6000_overloaded_builtin_name): New
14380 (rs6000_expand_binop_builtin): Add check to enforce that argument
14381 2 of the test data class operations is a 7-bit unsigned literal.
14382 (rs6000_invalid_builtin): Add code to issue an error message if a
14383 built-in function that requires the power9_vector and -m32
14384 command-line options is compiled without these options.
14385 * config/rs6000/vsx.md (UNSPEC_VSX_SXEXPDP): New value.
14386 (UNSPEC_VSX_SXSIGDP): New value.
14387 (UNSPEC_VSX_SXSIGPDP): New value.
14388 (UNSPEC_VSX_SIEXPDP): New value.
14389 (UNSPEC_VSX_SCMPEXPDP): New value.
14390 (UNSPEC_VSX_STSTDC): New value.
14391 (UNSPEC_VSX_VXEXP): New value.
14392 (UNSPEC_VSX_VXSIG): New value.
14393 (UNSPEC_VSX_VIEXP): New value.
14394 (UNSPEC_VSX_VTSTDC): New value.
14395 (xsxexpdp): New insn for scalar extract exponent.
14396 (xsxsigdp): New insn for scalar extract significand.
14397 (xsiexpdp): New insn for scalar insert exponent.
14398 (xscmpexpdp_<code>): New expansion for scalar compare exponents.
14399 (*xscmpexpdp): New insn for scalar compare exponents.
14400 (xststdc<Fvsx): New expansion for both single- and
14401 double-precision scalar test data class operations.
14402 (xststdcneg<Fvsx>): New expansion for both single- and
14403 double-precision scalar test for negative value operations.
14404 (*xststdc<Fvsx>): New insn for scalar test data class
14406 (xvxexp<VSs>): New insn for single- and double-precision
14407 vector extract exponent operation.
14408 (xvxsig<VSs>): New insn for single- and double-precision
14409 vector extract significand operation.
14410 (xviexp<VSs>): New insn for single- and double-precision
14411 vector insert exponent operation.
14412 (xvtstdc<VSs>): New insn for single- and double-precision
14413 vector test data class operation.
14414 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
14415 built-in functions to represent the Power9 binary floating-point
14416 support instructions.
14418 2016-08-10 bin cheng <bin.cheng@arm.com>
14420 * doc/sourcebuild.texi (@item vect_cond_mixed): New item.
14422 2016-08-10 Alan Lawrence <alan.lawrence@arm.com>
14423 Renlin Li <renlin.li@arm.com>
14424 Bin Cheng <bin.cheng@arm.com>
14426 * config/aarch64/iterators.md (V_cmp_mixed, v_cmp_mixed): New.
14427 * config/aarch64/aarch64-simd.md (<su><maxmin>v2di3): Call
14428 gen_vcondv2div2di instead of gen_aarch64_vcond_internalv2div2di.
14429 (aarch64_vcond_internal<mode><mode>): Delete pattern.
14430 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): Ditto.
14431 (vcond<v_cmp_result><mode>): Ditto.
14432 (vcond<mode><mode>): Re-implement using vec_cmp and vcond_mask.
14433 (vcondu<mode><mode>): Ditto.
14434 (vcond<v_cmp_mixed><mode>): New pattern.
14435 (vcondu<mode><v_cmp_mixed>): New pattern.
14436 (aarch64_cmtst<mode>): Revise comment using aarch64_vcond instead
14437 of aarch64_vcond_internal.
14439 2016-08-10 Alan Lawrence <alan.lawrence@arm.com>
14440 Renlin Li <renlin.li@arm.com>
14441 Bin Cheng <bin.cheng@arm.com>
14443 * config/aarch64/aarch64-simd.md (vec_cmp<mode><mode>): New pattern.
14444 (vec_cmp<mode><v_cmp_result>): New pattern.
14445 (vec_cmpu<mode><mode>): New pattern.
14446 (vcond_mask_<mode><v_cmp_result>): New pattern.
14448 2016-08-10 Yuri Rumyantsev <ysrumyan@gmail.com>
14450 PR tree-optimization/71734
14451 * tree-ssa-loop-im.c (ref_indep_loop_p): Add new argument
14452 REF_LOOP, invoke ref_indep_loop_p_1.
14453 (outermost_indep_loop): Pass LOOP argumnet where REF was defined
14454 to ref_indep_loop_p.
14455 (ref_indep_loop_p_1): Fix commentary, add argument REF_LOOP,
14456 combine it with ref_indep_lopp_p_2, update SAFELEN if only REF
14457 is inside LOOP, do not cache dpendence value for loops with
14459 (ref_indep_loop_p_2): Delete function.
14460 (can_sm_ref_p): Pass LOOP as additional argument to
14463 2016-08-10 Michael Meissner <meissner@linux.vnet.ibm.com>
14466 * config/rs6000/rs6000.c (mem_operand_ds_form): Add check for op
14467 being an offsettable address.
14469 2016-08-10 Martin Liska <mliska@suse.cz>
14471 PR gcov-profile/58306
14472 * tree-profile.c (gimple_init_edge_profiler): Create conditionally
14473 atomic variants of profile update functions.
14475 2016-08-10 Martin Liska <mliska@suse.cz>
14477 Cherry picked (and modified) from google-4_7 branch
14478 2012-12-26 Rong Xu <xur@google.com>
14479 * common.opt (fprofile-update): Add new flag.
14480 * coretypes.h: Define enum profile_update.
14481 * doc/invoke.texi: Document -fprofile-update.
14482 * gcov-io.h: Declare GCOV_TYPE_ATOMIC_FETCH_ADD and
14483 GCOV_TYPE_ATOMIC_FETCH_ADD_FN.
14484 * tree-profile.c (gimple_init_edge_profiler): Generate
14485 also atomic profiler update.
14486 (gimple_gen_edge_profiler): Likewise.
14488 2016-08-10 David Malcolm <dmalcolm@redhat.com>
14490 * toplev.c (finalize): Set aux_info_file, asm_out_file, and
14491 stack_usage_file to NULL after fclose calls.
14493 2016-08-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
14496 * reload.c (push_reload): Compute subreg_in_class for
14497 subregs of constants and plus expressions. Remove special
14498 handling of SYMBOL_REFs.
14500 2016-08-10 Alan Modra <amodra@gmail.com>
14503 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Return
14504 SImode for TARGET_E500_DOUBLE when given SImode.
14506 2016-08-09 David Wohlferd <dw@LimeGreenSocks.com>
14508 * config/i3836/avx512fintrin.h (_mm512_cvtsepi64_epi32): Remove
14509 unused variable __O.
14511 2016-08-09 Martin Liska <mliska@suse.cz>
14513 * doc/gcov.texi: Change _gcov_dump to __gcov_dump and
14514 _gcov_reset to __gcov_reset.
14515 * doc/gcov-tool.texi: Fix typo.
14517 2016-08-09 Martin Liska <mliska@suse.cz>
14519 * value-prof.c (gimple_divmod_values_to_profile): Do not
14520 instrument MOD histogram if a value is not a SSA name.
14522 2016-08-09 Martin Liska <mliska@suse.cz>
14524 * value-prof.c (dump_histogram_value): Swap pow2 and non-pow2
14527 2016-08-09 Renlin Li <renlin.li@arm.com>
14529 PR middle-end/64971
14530 * calls.c (prepare_call_address): Convert funexp to Pmode when
14532 * config/aarch64/aarch64.md (sibcall): Remove fix for PR 64971.
14533 (sibcall_value): Likewise.
14535 2016-08-09 Marek Polacek <polacek@redhat.com>
14538 * cselib.c (cselib_expand_value_rtx_1): Add return.
14539 * gengtype.c (dbgprint_count_type_at): Likewise.
14540 * hsa-gen.c (gen_hsa_insn_for_internal_fn_call): Likewise.
14541 * reg-stack.c (get_true_reg): Restructure to avoid fallthrough warning.
14543 2016-08-09 Martin Jambor <mjambor@suse.cz>
14546 * ipa-polymorphic-call.c (get_dynamic_type): Bail out gracefully
14547 if instance is a MEM_REF.
14549 2016-08-09 Uros Bizjak <ubizjak@gmail.com>
14552 * config/i386/i386.md (*movtf_internal): Use
14553 lra_in_progress || reload_completed instead of !can_create_pseudo_p
14554 in the insn constraint.
14555 (*movxf_internal): Ditto.
14556 (*movdf_internal): Ditto.
14557 (*movsf_internal): Ditto.
14559 2016-08-09 Bin Cheng <bin.cheng@arm.com>
14561 PR tree-optimization/72772
14562 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
14565 2016-08-09 Bin Cheng <bin.cheng@arm.com>
14567 PR tree-optimization/72772
14568 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): Delete
14570 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Delete
14571 parameter STOP and update calls. Move expand_simple_operations
14572 function call from here...
14573 (simplify_using_initial_conditions): ...to here. Delete parameter
14575 (tree_simplify_using_condition): Delete parameter STOP.
14576 * tree-scalar-evolution.c (simple_iv_with_niters): Update call to
14577 simplify_using_initial_conditions.
14579 2016-08-09 Matthew Fortune <matthew.fortune@imgtec.com>
14582 * config/mips/mips.c (mips_atomic_assign_expand_fenv):
14583 Use create_tmp_var_raw instead of create_tmp_var.
14585 2016-08-09 Richard Biener <rguenther@suse.de>
14587 * tree-ssa-threadbackward.c (profitable_jump_thread_path):
14588 Treat same SSA names related.
14590 2016-08-09 Jakub Jelinek <jakub@redhat.com>
14592 PR tree-optimization/72824
14593 * tree-loop-distribution.c (const_with_all_bytes_same): Verify
14594 real_zerop is not negative.
14596 2016-08-09 Richard Biener <rguenther@suse.de>
14598 PR tree-optimization/71802
14599 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Make sure to catch
14600 all merge opportunities with the predecessor.
14602 2016-08-09 Richard Biener <rguenther@suse.de>
14605 * ipa-prop.c (ipa_modify_formal_parameters): Build
14606 parameter types with natural alignment also for the
14609 2016-08-08 Andi Kleen <ak@linux.intel.com>
14611 * tree-vrp.c (get_single_symbol): Always initialize inv and neg.
14613 2016-08-08 David Malcolm <dmalcolm@redhat.com>
14616 * langhooks-def.h (LANG_HOOKS_RUN_LANG_SELFTESTS): New default
14617 do-nothing langhook.
14618 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_RUN_LANG_SELFTESTS.
14619 * langhooks.h (struct lang_hooks): Add run_lang_selftests.
14620 * selftest-run-tests.c: Include "tree.h" and "langhooks.h".
14621 (selftest::run_tests): Call lang_hooks.run_lang_selftests.
14623 2016-08-08 David Malcolm <dmalcolm@redhat.com>
14626 * input.c: Ensure that HAVE_ICONV is defined.
14628 2016-08-08 Jakub Jelinek <jakub@redhat.com>
14630 PR middle-end/72781
14631 * omp-low.c (lower_lastprivate_clauses): Set TREE_NO_WARNING on the
14632 private vars for lastprivate and for linear iterator.
14634 PR middle-end/68762
14635 * omp-simd-clone.c: Include varasm.h.
14636 (simd_clone_create): Copy over DECL_COMDAT, DECL_WEAK, DECL_EXTERNAL,
14637 DECL_VISIBILITY, DECL_VISIBILITY_SPECIFIED, DECL_DLLIMPORT_P and for
14638 DECL_ONE_ONLY call make_decl_one_only. Fix up spelling in comment and
14639 update function name.
14641 2016-07-29 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
14643 * config/avr/driver-avr.c (specfiles_doc_url): Remove.
14644 (avr_diagnose_devicespecs_error): Remove.
14645 (avr_devicespecs_file): Remove composing absolute path for specfile
14646 and its verbose info. Remove conditions to check specs-file,
14648 2016-08-08 Jakub Jelinek <jakub@redhat.com>
14650 PR rtl-optimization/72821
14651 * lra-spills.c (regno_in_use_p): Don't use BLOCK_FOR_INSN on barriers,
14652 just return false for them.
14654 2016-08-08 Alan Modra <amodra@gmail.com>
14657 * config/rs6000/rs6000.c (toc_relative_expr_p): Allow (lo_sum (high))
14658 toc refs created during reload. Update function comment.
14660 2016-08-08 Alan Modra <amodra@gmail.com>
14663 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Sort
14664 alternatives. Put loads first, then stores, and reg/reg moves
14665 within same class later. Delete attr length.
14667 2016-08-08 Alan Modra <amodra@gmail.com>
14670 * config/rs6000/rs6000.c (mem_operand_gpr): Remove vsx dform test.
14671 (mem_operand_ds_form): New predicate.
14672 * config/rs6000/rs6000-protos.h (mem_operand_ds_form): Declare.
14673 * config/rs6000/constraints.md (wY): Use mem_operand_df_form.
14674 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): Delete.
14675 * config/rs6000/rs6000.md (f32_lm2, f32_sm2): Use wY for SF.
14676 (extendsfdf2_fpr): Replace o constraint with wY.
14678 2016-08-07 Jan Hubicka <hubicka@ucw.cz>
14680 * tree-ssa-threadbackward.c: Include tree-inline.h
14681 (profitable_jump_thread_path): Use estimate_num_insns to estimate
14682 size of copied block; for cold paths reduce duplication.
14683 (find_jump_threads_backwards): Remove redundant tests.
14684 (pass_thread_jumps::gate): Enable for -Os.
14686 2016-08-07 Jakub Jelinek <jakub@redhat.com>
14689 * stor-layout.c (layout_decl): Fix up formatting.
14690 (relayout_decl): Allow DECL to be FIELD_DECL.
14692 2016-08-07 Alan Modra <amodra@gmail.com>
14694 * config/rs6000/rs6000.md (fix_trunc<mode>si2): Fix mode of reg.
14696 2016-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
14698 * data-streamer-in.c (streamer_read_wide_int): New.
14699 (streamer_read_widest_int): Renamed function.
14700 * data-streamer-out.c (streamer_write_wide_int): New
14701 (streamer_write_widest_int): Renamed function.
14702 * lto-streamer-in.c (streamer_read_wi): Renamed and moved to
14704 (input_cfg): Call renamed function.
14705 * lto-streamer-out.c (streamer_write_wi): Renamed and moved to
14707 (output_cfg): Call renamed function.
14708 * data-streamer.h: Add declarations.
14710 2016-08-08 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14712 * tree-ssa-ccp.c (extend_mask): New param sgn.
14713 Remove ORing with wi::mask.
14714 (get_default_value): Adjust call to extend_mask to pass sign.
14715 (evaluate_stmt): Likewise.
14717 2016-08-06 Jakub Jelinek <jakub@redhat.com>
14719 * gcov.c (handle_cycle): Use INTTYPE_MAXIMUM (int64_t) instead of
14722 2016-08-06 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14724 * match.pd ((intptr_t) x eq/ne CST to x eq/ne (typeof x) cst): Disable
14725 transform if operand's type is pointer to function or method.
14727 2016-08-05 Patrick Palka <ppalka@gcc.gnu.org>
14729 PR tree-optimization/18046
14730 * tree-ssa-threadedge.c: Include cfganal.h.
14731 (simplify_control_statement_condition): If simplifying a
14732 GIMPLE_SWITCH, replace the index operand of the GIMPLE_SWITCH
14733 with the dominating ASSERT_EXPR before handing it off to VRP.
14734 Mention that a CASE_LABEL_EXPR may be returned.
14735 (thread_around_empty_blocks): Adjust to handle
14736 simplify_control_statement_condition() returning a
14738 (thread_through_normal_block): Likewise.
14739 * tree-vrp.c (simplify_stmt_for_jump_threading): Simplify
14740 a switch statement by trying to determine which case label
14743 2016-08-05 Vladimir Makarov <vmakarov@redhat.com>
14745 PR rtl-optimization/69847
14746 * lra-constraints.c (process_invariant_for_inheritance): Save
14747 pattern instead of src.
14748 (remove_inheritance_pseudos): Use the pattern. Add assert.
14750 2016-08-05 David Malcolm <dmalcolm@redhat.com>
14752 * input.c (string_concat::string_concat): New constructor.
14753 (string_concat_db::string_concat_db): New constructor.
14754 (string_concat_db::record_string_concatenation): New method.
14755 (string_concat_db::get_string_concatenation): New method.
14756 (string_concat_db::get_key_loc): New method.
14757 (class auto_cpp_string_vec): New class.
14758 (get_substring_ranges_for_loc): New function.
14759 (get_source_range_for_substring): New function.
14760 (get_num_source_ranges_for_substring): New function.
14761 (class selftest::lexer_test_options): New class.
14762 (struct selftest::lexer_test): New struct.
14763 (class selftest::ebcdic_execution_charset): New class.
14764 (selftest::ebcdic_execution_charset::s_singleton): New variable.
14765 (selftest::lexer_test::lexer_test): New constructor.
14766 (selftest::lexer_test::~lexer_test): New destructor.
14767 (selftest::lexer_test::get_token): New method.
14768 (selftest::assert_char_at_range): New function.
14769 (ASSERT_CHAR_AT_RANGE): New macro.
14770 (selftest::assert_num_substring_ranges): New function.
14771 (ASSERT_NUM_SUBSTRING_RANGES): New macro.
14772 (selftest::assert_has_no_substring_ranges): New function.
14773 (ASSERT_HAS_NO_SUBSTRING_RANGES): New macro.
14774 (selftest::test_lexer_string_locations_simple): New function.
14775 (selftest::test_lexer_string_locations_ebcdic): New function.
14776 (selftest::test_lexer_string_locations_hex): New function.
14777 (selftest::test_lexer_string_locations_oct): New function.
14778 (selftest::test_lexer_string_locations_letter_escape_1): New function.
14779 (selftest::test_lexer_string_locations_letter_escape_2): New function.
14780 (selftest::test_lexer_string_locations_ucn4): New function.
14781 (selftest::test_lexer_string_locations_ucn8): New function.
14782 (selftest::uint32_from_big_endian): New function.
14783 (selftest::test_lexer_string_locations_wide_string): New function.
14784 (selftest::uint16_from_big_endian): New function.
14785 (selftest::test_lexer_string_locations_string16): New function.
14786 (selftest::test_lexer_string_locations_string32): New function.
14787 (selftest::test_lexer_string_locations_u8): New function.
14788 (selftest::test_lexer_string_locations_utf8_source): New function.
14789 (selftest::test_lexer_string_locations_concatenation_1): New
14791 (selftest::test_lexer_string_locations_concatenation_2): New
14793 (selftest::test_lexer_string_locations_concatenation_3): New
14795 (selftest::test_lexer_string_locations_macro): New function.
14796 (selftest::test_lexer_string_locations_stringified_macro_argument):
14798 (selftest::test_lexer_string_locations_non_string): New function.
14799 (selftest::test_lexer_string_locations_long_line): New function.
14800 (selftest::test_lexer_char_constants): New function.
14801 (selftest::input_c_tests): Call the new test functions once per
14802 case within the line_table test matrix.
14803 * input.h (struct string_concat): New struct.
14804 (struct location_hash): New struct.
14805 (class string_concat_db): New class.
14806 * substring-locations.h: New header.
14808 2016-08-05 Patrick Palka <ppalka@gcc.gnu.org>
14810 PR tree-optimization/72810
14811 * tree-vrp.c (simplify_switch_using_ranges): Avoid changing
14812 the type of the case labels when truncating.
14814 2016-08-05 James Greenhalgh <james.greenhalgh@arm.com>
14817 * config/aarch64/aarch64.h (aarch64_fp16_type_node): Declare.
14818 (aarch64_fp16_ptr_type_node): Likewise.
14819 * config/aarch64/aarch64-simd-builtins.c
14820 (aarch64_fp16_ptr_type_node): Define.
14821 (aarch64_init_fp16_types): New, refactored out of...
14822 (aarch64_init_builtins): ...here, update to call
14823 aarch64_init_fp16_types.
14824 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Handle
14826 (aapcs_vfp_sub_candidate): Likewise.
14828 2016-08-05 Martin Liska <mliska@suse.cz>
14829 Joshua Cranmer <Pidgeot18@gmail.com>
14831 * gcov.c (line_t::has_block): New function.
14832 (enum loop_type): New enum.
14833 (handle_cycle): New function.
14834 (unblock): Likewise.
14835 (circuit): Likewise.
14836 (get_cycles_count): Likewise.
14837 (accumulate_line_counts): Use new loop detection algorithm.
14839 2016-08-05 Martin Liska <mliska@suse.cz>
14841 * gcov.c (output_intermediate_file): Rename
14842 function_info::line_next to next_file_fn.
14843 (process_file): Likewise.
14844 (read_graph_file): Likewise.
14845 (accumulate_line_counts): Likewise.
14846 (output_lines): Likewise.
14848 2016-08-05 Richard Biener <rguenther@suse.de>
14850 * tree-ssa-threadupdate.c (thread_block_1): Remove unnecessary
14851 restriction on threading to a loop header.
14853 2016-08-05 Richard Biener <rguenther@suse.de>
14855 * tree-cfgcleanup.c (tree_forwarder_block_p): Use bb_loop_header_p.
14856 * cfghooks.c (force_nonfallthru): If we ended up splitting a latch
14857 adjust loop info accordingly.
14859 2016-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
14861 * tree-vrp.c (extract_range_basic): Check cfun->after_inlining
14862 before folding call to __builtin_constant_p with parameters to false.
14864 2016-08-05 Alan Modra <amodra@gmail.com>
14866 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Delete
14867 code accidentally committed 2016-05-02 providing class when given
14870 2016-08-04 Patrick Palka <ppalka@gcc.gnu.org>
14872 * tree-vrp.c (simplify_switch_using_ranges): Try to truncate
14873 the case label ranges that partially overlap with OP's value
14876 2016-08-04 Uros Bizjak <ubizjak@gmail.com>
14879 * config/i386/avx512fintrin.h (_mm512_cmp_epi32_mask) [!__OPTIMIZE__]:
14880 Cast builtin function result to __mmask16 instead of __mmask8.
14881 (_mm512_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
14882 (_mm512_mask_cmp_epi32_mask) [!__OPTIMIZE__]: Ditto.
14883 (_mm512_mask_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
14885 2016-08-04 David Malcolm <dmalcolm@redhat.com>
14887 * selftest.h (ASSERT_TRUE): Reimplement in terms of...
14888 (ASSERT_TRUE_AT): New macro.
14889 (ASSERT_FALSE): Reimplement in terms of...
14890 (ASSERT_FALSE_AT): New macro.
14891 (ASSERT_STREQ_AT): Fix typo in comment.
14893 2016-08-04 Patrick Palka <ppalka@gcc.gnu.org>
14895 * gimple.c (preprocess_case_label_vec_for_gimple): When the case
14896 labels are exhaustive, designate the label with the widest
14897 range to be the default label.
14899 2016-08-04 Andrew Pinski <apinski@cavium.com>
14901 * config/aarch64/aarch64.c (thunderx_vector_cost): New variable.
14902 (thunderx_tunings): Use thunderx_vector_cost instead of
14903 generic_vector_cost.
14905 2016-08-04 Martin Liska <mliska@suse.cz>
14907 * gcov.c (main): Fix GNU coding style.
14908 (output_intermediate_file): Likewise.
14909 (process_file): Likewise.
14910 (generate_results): Likewise.
14911 (release_structures): Likewise.
14912 (create_file_names): Likewise.
14913 (find_source): Likewise.
14914 (read_graph_file): Likewise.
14915 (find_exception_blocks): Likewise.
14916 (canonicalize_name): Likewise.
14917 (make_gcov_file_name): Likewise.
14918 (mangle_name): Likewise.
14919 (accumulate_line_counts): Likewise.
14920 (output_branch_count): Likewise.
14921 (read_line): Likewise.
14923 2016-08-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
14925 PR rtl-optimization/71779
14926 * emit-rtl.c (set_reg_attrs_from_value): Only propagate REG_POINTER,
14927 if the value was sign-extended according to POINTERS_EXTEND_UNSIGNED
14928 or if it was truncated.
14930 PR rtl-optimization/70903
14931 * cse.c (cse_insn): If DEST is a paradoxical SUBREG, don't record DEST.
14933 2016-08-04 Kugan Vivekanandarajah <kuganv@linaro.org>
14935 * tree-inline.c (remap_ssa_name): Check for POINTER_TYPE_P before
14936 accessing SSA_NAME_PTR_INFO.
14938 2016-08-04 Georg-Johann Lay <avr@gjlay.de>
14941 * common/config/avr/avr-common.c (avr_option_optimization_table)
14942 [OPT_LEVELS_ALL]: Turn off -fcaller-saves.
14944 2016-08-04 Georg-Johann Lay <avr@gjlay.de>
14947 * config/avr/avr.md: New pattern to work around do_store_flag
14948 generating shift instructions for bit extractions.
14950 2016-08-04 Kugan Vivekanandarajah <kuganv@linaro.org>
14952 * tree-vrp.c (set_value_range): Use vrp_equiv_obstack with
14954 (add_equivalence): Likewise.
14955 (get_value_range): Allocate value range with vrp_value_range_pool.
14956 (vrp_initialize): Initialize vrp_equiv_obstack for equiv allocation.
14957 (vrp_finalize): Relase vrp_equiv_obstack and vrp_value_range_pool.
14959 2016-08-03 Peter Bergner <bergner@vnet.ibm.com>
14961 * config/rs6000/rs6000.c (rs6000_option_override_internal): Make LRA
14962 the default for the rs6000 port.
14964 2016-08-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
14966 PR middle-end/71876
14967 * calls.c (special_function_p): Remove special handling of
14968 "setjmp_syscall", "qsetjmp", "longjmp", "siglongjmp" and the
14969 prefix "__x". Recognize "savectx", "vfork" and "getcontext" only
14970 without prefix. Remove potentially unsafe ECF_LEAF and ECF_NORETURN.
14972 2016-08-03 Vladimir Makarov <vmakarov@redhat.com>
14974 PR middle-end/72778
14975 * lra-spills.c (regno_in_use_p): Check bb and regno modification.
14976 Don't stop on regular insns.
14978 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
14980 * config/nvptx/nvptx.c (nvptx_declare_function_name): Round frame
14981 size to DImode boundary.
14982 (nvptx_propagate): Likewise.
14984 2016-08-03 Alan Modra <amodra@gmail.com>
14986 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Make scalar
14987 float access depend on TARGET_EFFICIENT_UNALIGNED_VSX.
14988 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Renamed
14989 from -mefficient-unaligned-vector. Note that this affects fp too.
14991 2016-08-03 Alan Modra <amodra@gmail.com>
14993 * config/rs6000/rs6000.c (rs6000_rtx_costs): Make unaligned mem
14996 2016-08-03 Alan Modra <amodra@gmail.com>
14998 * config/rs6000/rs6000.md (fix_trunc<mode>si2): Force source operand
14999 to a reg. Localize vars.
15001 2016-08-03 Alan Modra <amodra@gmail.com>
15003 * config/rs6000/rs6000.opt: Remove negatives from help strings
15006 2016-08-03 Alan Modra <amodra@gmail.com>
15008 * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
15009 Delete duplicated code.
15011 2016-08-02 Vladimir Makarov <vmakarov@redhat.com>
15013 PR middle-end/72778
15014 * lra-spills.c (regno_in_use_p): New.
15015 (lra_final_code_change): Use it.
15017 2016-08-02 Vladimir Makarov <vmakarov@redhat.com>
15019 PR rtl-optimization/69847
15020 * lra-int.h (struct lra-reg): Use restore_rtx instead of
15022 (lra_rtx_hash): New.
15023 * lra.c (initialize_lra_reg_info_element): Use restore_rtx instead
15025 (lra_rtx_hash): Rename and move lra-remat.c::rtx_hash.
15026 * lra-remat.c (rtx_hash): Rename and Move to lra.c.
15027 * lra-spills.c (lra_final_code_change): Don't delete insn when the
15028 next insn is USE with the same reg as the current insn source.
15029 * lra-constraints.c (curr_insn_transform): Use restore_rtx instead
15031 (lra_constraints_init): Call initiate_invariants.
15032 (lra_constraints_finish): Call finish_invariants.
15033 (struct invariant, invariant_t, invariant_ptr_t): New.
15034 (const_invariant_ptr_t, invariants, invariants_pool): New.
15035 (invariant_table, invariant_hash, invariant_eq_p): New.
15036 (insert_invariant, initiate_invariants, finish_invariants): New.
15037 (clear_invariants, invalid_invariant_regs): New.
15038 (inherit_reload_reg, split_reg, fix_bb_live_info): Use restore_rtx
15039 instead of restore_regno.
15040 (invariant_p, process_invariant_for_inheritance): New.
15041 (inherit_in_ebb): Implement invariant inheritance.
15042 (lra_inheritance): Initialize and finalize invalid_invariant_regs.
15043 (remove_inheritance_pseudos): Implement undoing invariant
15045 (undo_optional_reloads, lra_undo_inheritance): Use restore_rtx
15046 instead of restore_regno.
15047 * lra-assigns.c (regno_live_length): New.
15048 (reload_pseudo_compare_func): Use regno_live_length.
15049 (assign_by_spills): Use restore_rtx instead of restore_regno.
15050 (lra_assign): Ditto. Initiate regno_live_length.
15052 2016-02-08 James Greenhalgh <james.greenhalgh@arm.com>
15054 * config/aarch64/arm_neon.h (vminnm_f64): Add back missing 'f' from
15055 __builtin_aarch64_fmindf.
15057 2016-08-02 Bin Cheng <bin.cheng@arm.com>
15059 PR tree-optimization/34114
15060 * tree-ssa-loop-niter.c (number_of_iterations_ne): Prove no-overflow
15061 information for more control IVs.
15063 2016-08-02 Bin Cheng <bin.cheng@arm.com>
15065 PR tree-optimization/34114
15066 * fold-const.c (multiple_of_p): Improve MULT_EXPR, PLUS_EXPR,
15067 PLUS_EXPR case. Handle SSA_NAME case.
15069 2016-08-02 Tamar Christina <tamar.christina@arm.com>
15071 * config/aarch64/aarch64-simd-builtins.def
15072 (__builtin_aarch64_fmindf): Change BUILTIN_VDQF to BUILTIN_VDQF_DF.
15073 (__builtin_aarch64_fmaxdf): Likewise.
15074 (__builtin_aarch64_smin_nandf): Likewise.
15075 (__builtin_aarch64_smax_nandf): Likewise.
15076 * config/aarch64/aarch64-simd.md (<fmaxmin><mode>3): Remove.
15077 * config/aarch64/aarch64.md (<fmaxmin><mode>3): Rename to...
15078 (<fmaxmin><mode>3): ...this.
15079 * config/aarch64/arm_neon.h (vmaxnm_f64): New.
15080 (vminnm_f64): Likewise.
15081 (vmin_f64): Likewise.
15082 (vmax_f64): Likewise.
15083 * config/aarch64/iterators.md (FMAXMIN): Merge with...
15084 (FMAXMIN_UNS): ...this.
15085 (fmaxmin): Merged with
15086 (fmaxmin_op): ...this...
15087 (maxmin_uns_op): ...in to this.
15089 2016-08-01 Michael Meissner <meissner@linux.vnet.ibm.com>
15091 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
15092 Add support for vec_extract on vector float, vector int, vector
15093 short, and vector char vector types.
15094 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
15095 vector float, vector int, vector short, and vector char
15096 optimizations on 64-bit ISA 2.07 systems for both constant and
15097 variable element numbers.
15098 (rs6000_split_vec_extract_var): Likewise.
15099 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): Allow SFmode to be
15100 Altivec registers on ISA 2.07 and above.
15101 (vsx_extract_v4sf): Delete alternative that hard coded element 0,
15102 which never was matched due to the split occuring before register
15103 allocation (and the code would not have worked on little endian
15104 systems if it did match). Allow extracts to go to the Altivec
15105 registers if ISA 2.07 (power8). Change from using "" around the
15106 C++ code to using {}'s.
15107 (vsx_extract_v4sf_<mode>_load): New insn to optimize vector float
15108 vec_extracts when the vector is in memory.
15109 (vsx_extract_v4sf_var): New insn to optimize vector float
15110 vec_extracts when the element number is variable on 64-bit ISA
15112 (vsx_extract_<mode>, VSX_EXTRACT_I iterator): Add optimizations
15113 for 64-bit ISA 2.07 as well as ISA 3.0.
15114 (vsx_extract_<mode>_p9, VSX_EXTRACT_I iterator): Likewise.
15115 (vsx_extract_<mode>_p8, VSX_EXTRACT_I iterator): Likewise.
15116 (vsx_extract_<mode>_load, VSX_EXTRACT_I iterator): New insn to
15117 optimize vector int, vector short, and vector char vec_extracts
15118 when the vector is in memory.
15119 (vsx_extract_<mode>_var, VSX_EXTRACT_I iterator): New insn to
15120 optimize vector int, vector short, and vector char vec_extracts
15121 when the element number is variable.
15123 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
15126 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): Use a value that
15127 does not overlap with other symbol flags.
15129 2016-08-01 Wilco Dijkstra <wdijkstr@arm.com>
15131 * config/aarch64/aarch64.h (aarch64_frame):
15132 Remove padding0 and hardfp_offset. Add locals_offset,
15133 initial_adjust, callee_adjust, callee_offset and final_adjust.
15134 * config/aarch64/aarch64.c (aarch64_layout_frame):
15135 Remove unused padding0 and hardfp_offset initializations.
15136 Choose frame layout and set frame variables accordingly.
15137 Use INVALID_REGNUM instead of FIRST_PSEUDO_REGISTER.
15138 (aarch64_push_regs): Use INVALID_REGNUM, not FIRST_PSEUDO_REGISTER.
15139 (aarch64_pop_regs): Likewise.
15140 (aarch64_expand_prologue): Remove all decision code, just emit
15141 prolog according to frame variables.
15142 (aarch64_expand_epilogue): Remove all decision code, just emit
15143 epilog according to frame variables.
15144 (aarch64_initial_elimination_offset): Use offset to local/arg area.
15146 2015-08-01 H.J. Lu <hongjiu.lu@intel.com>
15149 * config/i386/i386.c (timode_scalar_chain::convert_insn): Call
15150 fix_debug_reg_uses after changing source register mode to
15151 V1TImode if source register is undefined.
15153 2015-08-01 Alan Hayward <alan.hayward@arm.com>
15155 PR tree-optimization/71818
15156 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Don't advance IVs
15157 with non invariant evolutions
15159 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
15162 * config/avr/avr.md (length) [branch]: Correct insn length
15163 attribute for forward branches.
15165 2016-08-01 Georg-Johann Lay <avr@gjlay.de>
15167 * doc/extend.texi (AVR Built-in Functions): Document
15168 __builtin_avr_nops.
15169 * config/avr/builtins.def (NOPS): New.
15170 * config/avr/avr.c (avr_expand_nops): New static function.
15171 (avr_expand_builtin): Use it to handle AVR_BUILTIN_NOPS.
15173 2016-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15175 * config/aarch64/aarch64.c (aarch64_classify_address): Use DImode when
15176 performing aarch64_offset_7bit_signed_scaled_p check for TImode LDP/STP
15179 2016-08-01 Virendra Pathak <virendra.pathak@broadcom.com>
15181 * config/aarch64/aarch64.c (vulcan_tunings): Update
15182 vulcan L1 cache_line_size.
15184 2016-07-30 Michael Meissner <meissner@linux.vnet.ibm.com>
15186 * config/rs6000/rs6000-protos.h (rs6000_adjust_vec_address): New
15187 function that takes a vector memory address, a hard register, an
15188 element number and a temporary base register, and recreates an
15189 address that points to the appropriate element within the vector.
15190 * config/rs6000/rs6000.c (rs6000_adjust_vec_address): Likewise.
15191 (rs6000_split_vec_extract_var): Add support for the target of a
15192 vec_extract with variable element number being a scalar memory
15194 (rtx_is_swappable_p): VLSO insns (UNSPEC_VSX_VSLOW) are not
15196 * config/rs6000/vsx.md (vsx_extract_<mode>_load): Replace
15197 vsx_extract_<mode>_load insn with a new insn that optimizes
15198 storing either element to a memory location, using scratch
15199 registers to pick apart the vector and reconstruct the address.
15200 (vsx_extract_<P:mode>_<VSX_D:mode>_load): Likewise.
15201 (vsx_extract_<mode>_store): Rework alternatives to more correctly
15202 support Altivec registers. Add support for ISA 3.0 Altivec d-form
15204 (vsx_extract_<mode>_var): Add support for extracting a variable
15205 element number from memory.
15207 2016-07-29 Georg-Johann Lay <avr@gjlay.de>
15209 * config/avr/avr.c (avr_out_compare): Use const0_rtx instead of 0
15210 when testing for compares against constants of the form 0xabab.
15212 2016-07-29 Bin Cheng <bin.cheng@arm.com>
15214 PR tree-optimization/57558
15215 * tree-vect-loop-manip.c (vect_create_cond_for_niters_checks): New
15217 (vect_loop_versioning): Support versioning with niter assumptions.
15218 * tree-vect-loop.c (tree-ssa-loop.h): Include header file.
15219 (vect_get_loop_niters): New parameter. Reimplement to support
15220 assumptions in loop niter info.
15221 (vect_analyze_loop_form_1, vect_analyze_loop_form): Ditto.
15222 (new_loop_vec_info): Init LOOP_VINFO_NITERS_ASSUMPTIONS.
15223 (vect_estimate_min_profitable_iters): Use LOOP_REQUIRES_VERSIONING.
15224 Support loop versioning for niters.
15225 * tree-vectorizer.c (tree-ssa-loop-niter.h): Include header file.
15226 (vect_free_loop_info_assumptions): New function.
15227 (vectorize_loops): Free loop niter info for loops with flag
15228 LOOP_F_ASSUMPTIONS set if vectorization failed.
15229 * tree-vectorizer.h (struct _loop_vec_info): New field
15230 num_iters_assumptions.
15231 (LOOP_VINFO_NITERS_ASSUMPTIONS): New macro.
15232 (LOOP_REQUIRES_VERSIONING_FOR_NITERS): New macro.
15233 (LOOP_REQUIRES_VERSIONING): New macro.
15234 (vect_free_loop_info_assumptions): New decl.
15236 2016-07-29 Bin Cheng <bin.cheng@arm.com>
15238 * cfgloop.h (struct loop): New field constraints.
15239 (LOOP_C_INFINITE, LOOP_C_FINITE): New macros.
15240 (loop_constraint_set, loop_constraint_clr, loop_constraint_set_p): New
15242 * cfgloop.c (alloc_loop): Initialize new field.
15243 * cfgloopmanip.c (copy_loop_info): Copy constraints.
15244 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
15245 Adjust niter analysis wrto loop constraints.
15246 * doc/loop.texi (@node Number of iterations): Add description for loop
15249 2016-07-29 Marek Polacek <polacek@redhat.com>
15252 * config/i386/i386.c (ix86_expand_args_builtin): Add break.
15253 (ix86_expand_round_builtin): Likewise.
15255 2016-07-29 Segher Boessenkool <segher@kernel.crashing.org>
15256 Georg-Johann Lay <avr@gjlay.de>
15258 PR rtl-optimization/71976
15259 * combine.c (get_last_value): Return 0 if the argument for which
15260 the function is called has a wider mode than the recorded value.
15262 2016-07-29 Marek Polacek <polacek@redhat.com>
15265 * config/rs6000/rs6000.c (altivec_expand_ld_builtin): Add break.
15266 (altivec_expand_st_builtin): Likewise.
15268 2016-07-29 Georg-Johann Lay <avr@gjlay.de>
15270 * config/avr/avr.md (addqi3) [cc]: Revert glitch in insn attribute
15271 introduced in r238381.
15273 2016-07-29 Kugan Vivekanandarajah <kuganv@linaro.org>
15275 PR middle-end/68217
15276 * tree-vrp.c (extract_range_from_binary_expr_1): In case of signed
15277 & sign-bit-CST, generate [-INF, 0] instead of [-INF, INF].
15279 2016-07-28 Michael Meissner <meissner@linux.vnet.ibm.com>
15281 * config/rs6000/rs6000-protos.h (rs6000_split_vec_extract_var):
15283 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
15284 Add support for vec_extract of vector double or vector long having
15285 a variable element number on 64-bit ISA 2.07 systems or newer.
15286 * config/rs6000/rs6000.c (rs6000_expand_vector_extract):
15288 (rs6000_split_vec_extract_var): New function to split a
15289 vec_extract built-in function with variable element number.
15290 (rtx_is_swappable_p): Variable vec_extracts and shifts are not
15292 * config/rs6000/vsx.md (UNSPEC_VSX_VSLO): New unspec.
15293 (UNSPEC_VSX_EXTRACT): Likewise.
15294 (vsx_extract_<mode>, VSX_D iterator): Fix constraints to allow
15295 direct move instructions to be generated on 64-bit ISA 2.07
15296 systems and newer, and to take advantage of the ISA 3.0 MFVSRLD
15298 (vsx_vslo_<mode>): New insn to do VSLO on V2DFmode and V2DImode
15299 arguments for vec_extract variable element.
15300 (vsx_extract_<mode>_var, VSX_D iterator): New insn to support
15301 vec_extract with variable element on V2DFmode and V2DImode
15303 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): Remove
15304 -mupper-regs-df requirement, since it isn't needed.
15305 (TARGET_DIRECT_MOVE_64BIT): New macro to say whether we can
15306 do direct moves on 64-bit systems, which allows optimization of
15307 vec_extract on 64-bit ISA 2.07 systems and newer.
15309 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
15310 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
15312 * config/aarch64/aarch64.md
15313 (zero_extend<SHORT:mode><GPI:mode>2_aarch64): Change output
15314 statement and type.
15315 (<optab>qihi2_aarch64): Likewise, and split into two.
15316 (extendqihi2_aarch64): New.
15317 (zero_extendqihi2_aarch64): New.
15318 * config/aarch64/iterators.md (ldrxt): Remove.
15319 * config/aarch64/aarch64.c (aarch64_rtx_costs): Change cost of
15322 2016-07-28 Kristina Martsenko <kristina.martsenko@arm.com>
15324 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix cost of zero extend.
15326 2016-07-28 Wilco Dijkstra <wdijkstr@arm.com>
15328 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg): Rename.
15329 (aarch64_push_reg): New function to push 1 or 2 registers.
15330 (aarch64_pop_reg): New function to pop 1 or 2 registers.
15331 (aarch64_expand_prologue): Use aarch64_push_regs.
15332 (aarch64_expand_epilogue): Use aarch64_pop_regs.
15334 2016-07-28 Yuri Rumyantsev <ysrumyan@gmail.com>
15336 PR tree-optimization/71734
15337 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Pass value of safelen
15338 attribute instead of REF_LOOP and use it.
15339 (ref_indep_loop_p_2): Use SAFELEN argument instead of REF_LOOP and
15340 set it for Loops having non-zero safelen attribute.
15341 (ref_indep_loop_p): Pass zero as initial value for safelen.
15343 2016-07-28 Ilya Enkovich <ilya.enkovich@intel.com>
15345 PR middle-end/72657
15347 * tree-chkp.c (chkp_retbnd_call_by_val): Check for instrumentation
15348 call using chkp_gimple_call_builtin_p.
15349 (chkp_copy_bounds_for_assign): Likewise.
15351 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15353 * config/alpha/alpha.c (alpha_adjust_cost): Adjust.
15354 * config/arm/arm-protos.h (struct tune_params): Likewise.
15355 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
15356 (cortex_a9_sched_adjust_cost): Likewise.
15357 (fa726te_sched_adjust_cost): Likewise.
15358 (arm_adjust_cost): Likewise.
15359 * config/bfin/bfin.c (bfin_adjust_cost): Likewise.
15360 * config/c6x/c6x.c (c6x_adjust_cost): Likewise.
15361 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise.
15362 * config/i386/i386.c (ix86_adjust_cost): Likewise.
15363 * config/ia64/ia64.c: Likewise.
15364 * config/m68k/m68k.c: Likewise.
15365 * config/mep/mep.c (mep_adjust_cost): Likewise.
15366 * config/microblaze/microblaze.c (microblaze_adjust_cost):
15368 * config/mips/mips.c (mips_adjust_cost): Likewise.
15369 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost):
15371 * config/pa/pa.c (pa_adjust_cost): Likewise.
15372 * config/rs6000/rs6000.c (rs6000_adjust_cost): Likewise.
15373 (rs6000_debug_adjust_cost): Likewise.
15374 * config/sh/sh.c (sh_adjust_cost): Likewise.
15375 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise.
15376 (hypersparc_adjust_cost): Likewise.
15377 (sparc_adjust_cost): Likewise.
15378 * config/spu/spu.c (spu_sched_adjust_cost): Likewise.
15379 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Likewise.
15380 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost):
15382 * config/visium/visium.c (visium_adjust_cost): Likewise.
15383 * doc/tm.texi: Regenerate.
15384 * haifa-sched.c (dep_cost_1): Adjust.
15385 * target.def: Merge adjust_cost and adjust_cost_2.
15387 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15389 * haifa-sched.c (add_to_speculative_block): Make twins a vector.
15391 2016-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15393 * store-motion.c (struct st_expr): Make pattern_regs a vector.
15394 (extract_mentioned_regs): Append to a vector instead of
15395 returning a rtx_expr_list.
15396 (st_expr_entry): Adjust.
15397 (free_st_expr_entry): Likewise.
15398 (store_ops_ok): Likewise.
15399 (store_killed_in_insn): Likewise.
15400 (find_moveable_store): Likewise.
15402 2016-07-28 Martin Liska <mliska@suse.cz>
15404 PR gcov-profile/68025
15405 * tree-profile.c (tree_profiling): Respect
15406 no_profile_instrument_function attribute.
15407 * doc/extend.texi: Document no_profile_instrument_function
15410 2016-07-28 Martin Liska <mliska@suse.cz>
15412 PR rtl-optimization/70944
15413 * combine.c (make_compound_operation):
15414 Do not allow make_compound_operation for vector mode
15416 2016-07-28 Kugan Vivekanandarajah <kuganv@linaro.org>
15418 PR middle-end/71994
15419 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Check tcc_comparison
15420 before calling get_ops.
15422 2016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
15424 * defaults.h (LOG2_BITS_PER_UNIT): Move from here...
15425 * tree.h (LOG2_BITS_PER_UNIT): ...to here.
15426 (BITS_PER_UNIT_LOG): Remove.
15427 (int_bit_position): Use LOG2_BITS_PER_UNIT instead of BITS_PER_UNIT_LOG.
15428 * expr.c (expand_assignment): Likewise.
15429 * stor-layout.c (initialize_sizetypes): Likewise.
15431 2016-07-27 Michael Meissner <meissner@linux.vnet.ibm.com>
15433 * config/rs6000/vector.md (vec_extract<mode>): Change the calling
15434 signature of rs6000_expand_vector_extract so that the element
15435 number is a RTX instead of a constant integer.
15436 * config/rs6000/rs6000-protos.h (rs6000_expand_vector_extract):
15438 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Likewise.
15439 (altivec_expand_vec_ext_builtin): Likewise.
15440 * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Likewise.
15441 * config/rs6000/vsx.md (vsx_extract_<mode>): Fix spelling of the
15442 MFVSRLD instruction.
15444 2016-07-27 David Malcolm <dmalcolm@redhat.com>
15446 * input.c (get_pure_location): Move here from tree.c.
15447 (make_location): Likewise. Add header comment.
15448 (selftest::test_accessing_ordinary_linemaps): Verify
15449 pure_location_p, make_location, get_location_from_adhoc_loc and
15450 get_range_from_loc.
15451 * input.h (get_pure_location): Move declaration here from tree.h.
15452 (get_finish): Likewise for inline function.
15453 (make_location): Likewise for declaration.
15454 * tree.c (get_pure_location): Move to input.c.
15455 (make_location): Likewise.
15456 * tree.h (get_pure_location): Move declaration to tree.h.
15457 (get_finish): Likewise for inline function.
15458 (make_location): Likewise for declaration.
15460 2016-07-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15462 PR middle-end/71078
15463 * match.pd (x / abs(x) -> copysign(1.0, x)): New pattern.
15465 2016-07-27 David Malcolm <dmalcolm@redhat.com>
15467 * system.h (STATIC_ASSERT): Use static_assert if building
15468 with C++11 onwards.
15470 2016-07-27 Richard Biener <rguenther@suse.de>
15472 PR tree-optimization/72517
15473 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
15474 Revert change to not compute read-read dependences.
15476 2016-07-27 Richard Biener <rguenther@suse.de>
15478 * predict.c (set_even_probabilities): Make nedges unsigned.
15480 2016-07-27 Martin Liska <mliska@suse.cz>
15482 * predict.c (set_even_probabilities): Handle unlikely edges.
15483 (combine_predictions_for_bb): Likewise.
15485 2016-07-26 Michael Meissner <meissner@linux.vnet.ibm.com>
15488 * config/rs6000/rs6000.c (rs6000_generate_compare): Rework
15489 __float128 support when we don't have hardware support, so that
15490 the IEEE built-in functions like isgreater, first call __unordkf3
15491 to make sure neither operand is a NaN, and if both operands are
15492 ordered, do the normal comparison.
15494 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
15496 * tree-vrp.c (dump_asserts_for): Print loc->expr instead of
15498 (extract_code_and_val_from_cond_with_ops): Verify that name is
15499 either cond_op0 or cond_op1.
15501 2016-07-26 Patrick Palka <ppalka@gcc.gnu.org>
15503 PR tree-optimization/18046
15504 * genmodes.c (emit_mode_size_inline): Emit an assert that
15505 verifies that mode is a valid array index.
15506 (emit_mode_nuinits_inline): Likewise.
15507 (emit_mode_inner_inline): Likewise.
15508 (emit_mode_unit_size_inline): Likewise.
15509 (emit_mode_unit_precision_inline): Likewise.
15510 * tree-vrp.c: Include params.h.
15511 (find_switch_asserts): Register edge assertions for the default
15512 label which correspond to the anti-ranges of each case label.
15513 * params.def (PARAM_MAX_VRP_SWITCH_ASSERTIONS): New.
15514 * doc/invoke.texi: Document it.
15516 2016-07-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15518 * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove dead
15519 and unnecessary call to gimple_bb.
15521 2016-07-26 Richard Biener <rguenther@suse.de>
15523 PR rtl-optimization/71984
15524 * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE and prepare
15527 2016-07-26 Richard Biener <rguenther@suse.de>
15529 PR middle-end/72517
15530 * expmed.c (extract_bit_field_1): Constrain the vector mode
15531 with element size matching the extraction mode size when
15532 choosing a better vector mode to do the extraction from.
15534 2016-07-26 Richard Biener <rguenther@suse.de>
15535 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15537 PR middle-end/70920
15538 * match.pd ((intptr)x eq/ne CST to x eq/ne (typeof x) CST): New
15541 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15543 * tree-ssa-structalias.c (struct scc_info): Change types of
15544 members to auto_sbitmap and auto_vec.
15545 (scc_info::scc_info): New constructor.
15546 (scc_info::~scc_info): New destructor.
15547 (init_scc_info): Remove.
15548 (free_scc_info): Remove.
15549 (find_indirect_cycles): Adjust.
15550 (perform_var_substitution): Likewise.
15551 (free_var_substitution_info): Likewise.
15553 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15555 * tree-outof-ssa.c (struct elim_graph): Change type of members
15556 to auto_vec and auto_sbitmap.
15557 (elim_graph::elim_graph): New constructor.
15558 (delete_elim_graph): Remove.
15559 (expand_phi_nodes): Adjust.
15561 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15563 * tree-outof-ssa.c (struct elim_graph): Remove typedef.
15564 (new_elim_graph): Adjust.
15565 (clear_elim_graph): Likewise.
15566 (delete_elim_graph): Likewise.
15567 (elim_graph_size): Likewise.
15568 (elim_graph_add_node): Likewise.
15569 (elim_graph_add_edge): Likewise.
15570 (elim_graph_remove_succ_edge): Likewise.
15571 (eliminate_name): Likewise.
15572 (eliminate_build): Likewise.
15573 (elim_forward): Likewise.
15574 (elim_unvisited_predecessor): Likewise.
15575 (elim_backward): Likewise.
15576 (elim_create): Likewise.
15577 (eliminate_phi): Likewise.
15578 (expand_phi_nodes): Likewise.
15580 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15582 * bt-load.c (compute_out): Use auto_sbitmap class.
15583 (link_btr_uses): Likewise.
15584 * cfganal.c (mark_dfs_back_edges): Likewise.
15585 (post_order_compute): Likewise.
15586 (inverted_post_order_compute): Likewise.
15587 (pre_and_rev_post_order_compute_fn): Likewise.
15588 (single_pred_before_succ_order): Likewise.
15589 * cfgexpand.c (pass_expand::execute): Likewise.
15590 * cfgloop.c (verify_loop_structure): Likewise.
15591 * cfgloopmanip.c (fix_bb_placements): Likewise.
15592 (remove_path): Likewise.
15593 (update_dominators_in_loop): Likewise.
15594 * cfgrtl.c (break_superblocks): Likewise.
15595 * ddg.c (check_sccs): Likewise.
15596 (create_ddg_all_sccs): Likewise.
15597 * df-core.c (df_worklist_dataflow): Likewise.
15598 * dse.c (dse_step3): Likewise.
15599 * except.c (eh_region_outermost): Likewise.
15600 * function.c (thread_prologue_and_epilogue_insns): Likewise.
15601 * gcse.c (prune_expressions): Likewise.
15602 (prune_insertions_deletions): Likewise.
15603 * gimple-ssa-backprop.c (backprop::~backprop): Likewise.
15604 * graph.c (draw_cfg_nodes_no_loops): Likewise.
15605 * ira-lives.c (remove_some_program_points_and_update_live_ranges): Likewise.
15606 * lcm.c (compute_earliest): Likewise.
15607 (compute_farthest): Likewise.
15608 * loop-unroll.c (unroll_loop_constant_iterations): Likewise.
15609 (unroll_loop_runtime_iterations): Likewise.
15610 (unroll_loop_stupid): Likewise.
15611 * lower-subreg.c (decompose_multiword_subregs): Likewise.
15612 * lra-lives.c: Likewise.
15613 * lra.c (lra): Likewise.
15614 * modulo-sched.c (schedule_reg_moves): Likewise.
15615 (optimize_sc): Likewise.
15616 (get_sched_window): Likewise.
15617 (sms_schedule_by_order): Likewise.
15618 (check_nodes_order): Likewise.
15619 (order_nodes_of_sccs): Likewise.
15620 (order_nodes_in_scc): Likewise.
15621 * recog.c (split_all_insns): Likewise.
15622 * regcprop.c (pass_cprop_hardreg::execute): Likewise.
15623 * reload1.c (reload): Likewise.
15624 * sched-rgn.c (haifa_find_rgns): Likewise.
15625 (split_edges): Likewise.
15626 (compute_trg_info): Likewise.
15627 * sel-sched.c (init_seqno): Likewise.
15628 * store-motion.c (remove_reachable_equiv_notes): Likewise.
15629 * tree-into-ssa.c (update_ssa): Likewise.
15630 * tree-ssa-live.c (live_worklist): Likewise.
15631 * tree-ssa-loop-im.c (fill_always_executed_in): Likewise.
15632 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
15634 (try_peel_loop): Likewise.
15635 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
15637 * tree-ssa-pre.c (compute_antic): Likewise.
15638 * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
15639 * tree-stdarg.c (reachable_at_most_once): Likewise.
15640 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Likewise.
15641 * var-tracking.c (vt_find_locations): Likewise.
15643 2016-07-26 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15645 * sbitmap.h (auto_sbitmap): New class.
15647 2016-07-26 Alan Modra <amodra@gmail.com>
15650 * config/rs6000/rs6000.c (rs6000_secondary_reload): Initialize
15653 2016-07-25 David Malcolm <dmalcolm@redhat.com>
15655 * input.c (selftest::temp_source_file::temp_source_file): Fix
15656 missing "%s" in fprintf.
15658 2016-07-25 John David Anglin <danglin@gcc.gnu.org>
15660 PR middle-end/71732
15661 * cselib.c (cselib_process_insn): Invalidate argument slots for
15664 2016-07-25 Jiong Wang <jiong.wang@arm.com>
15666 * config/aarch64/arm_neon.h (vfmah_lane_f16, vfmah_laneq_f16,
15667 vfmsh_lane_f16, vfmsh_laneq_f16, vmulh_lane_f16, vmulh_laneq_f16,
15668 vmulxh_lane_f16, vmulxh_laneq_f16): New.
15670 2016-07-25 Jiong Wang <jiong.wang@arm.com>
15672 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
15673 * config/aarch64/aarch64.md (fma, fnma): Support HF.
15674 * config/aarch64/arm_fp16.h (vfmah_f16, vfmsh_f16): New.
15676 2016-07-25 Jiong Wang <jiong.wang@arm.com>
15678 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
15679 * config/aarch64/aarch64.md (<FCVT_F2FIXED:fcvt_fixed_insn>hf<mode>3):
15681 (<FCVT_FIXED2F:fcvt_fixed_insn><mode>hf3): Likewise.
15682 (add<mode>3): Likewise.
15683 (sub<mode>3): Likewise.
15684 (mul<mode>3): Likewise.
15685 (div<mode>3): Likewise.
15686 (*div<mode>3): Likewise.
15687 (<fmaxmin><mode>3): Extend to HF.
15688 * config/aarch64/aarch64-simd.md (aarch64_rsqrts<mode>): Likewise.
15689 (fabd<mode>3): Likewise.
15690 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_HSDF:mode>3): Likewise.
15691 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_HSDI:mode>3): Likewise.
15692 (aarch64_fmulx<mode>): Likewise.
15693 (aarch64_fac<optab><mode>): Likewise.
15694 (aarch64_frecps<mode>): Likewise.
15695 (<FCVT_F2FIXED:fcvt_fixed_insn>hfhi3): New.
15696 (<FCVT_FIXED2F:fcvt_fixed_insn>hihf3): Likewise.
15697 * config/aarch64/iterators.md (VHSDF_SDF): Delete.
15698 (VSDQ_HSDI): Support HI.
15699 (fcvt_target, FCVT_TARGET): Likewise.
15700 * config/aarch64/arm_fp16.h (vaddh_f16, vsubh_f16, vabdh_f16,
15701 vcageh_f16, vcagth_f16, vcaleh_f16, vcalth_f16, vceqh_f16, vcgeh_f16,
15702 vcgth_f16, vcleh_f16, vclth_f16, vcvth_n_f16_s16, vcvth_n_f16_s32,
15703 vcvth_n_f16_s64, vcvth_n_f16_u16, vcvth_n_f16_u32, vcvth_n_f16_u64,
15704 vcvth_n_s16_f16, vcvth_n_s32_f16, vcvth_n_s64_f16, vcvth_n_u16_f16,
15705 vcvth_n_u32_f16, vcvth_n_u64_f16, vdivh_f16, vmaxh_f16, vmaxnmh_f16,
15706 vminh_f16, vminnmh_f16, vmulh_f16, vmulxh_f16, vrecpsh_f16,
15707 vrsqrtsh_f16): New.
15709 2016-07-25 Jiong Wang <jiong.wang@arm.com>
15711 * config.gcc (aarch64*-*-*): Install arm_fp16.h.
15712 * config/aarch64/aarch64-builtins.c (hi_UP): New.
15713 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
15714 * config/aarch64/aarch64-simd.md (aarch64_frsqrte<mode>): Extend to HF
15716 (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
15717 (aarch64_cm<optab><mode>): Likewise.
15718 * config/aarch64/aarch64.md (<frint_pattern><mode>2): Likewise.
15719 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Likewise.
15720 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
15721 (sqrt<mode>2): Likewise.
15722 (*sqrt<mode>2): Likewise.
15723 (abs<mode>2): Likewise.
15724 (<optab><mode>hf2): New pattern for HF mode.
15725 (<optab>hihf2): Likewise.
15726 * config/aarch64/arm_neon.h: Include arm_fp16.h.
15727 * config/aarch64/iterators.md (GPF_F16, GPI_F16, VHSDF_HSDF): New.
15728 (w1, w2, v, s, q, Vmtype, V_cmp_result, fcvt_iesize, FCVT_IESIZE):
15730 * config/aarch64/arm_fp16.h: New file.
15731 (vabsh_f16, vceqzh_f16, vcgezh_f16, vcgtzh_f16, vclezh_f16, vcltzh_f16,
15732 vcvth_f16_s16, vcvth_f16_s32, vcvth_f16_s64, vcvth_f16_u16,
15733 vcvth_f16_u32, vcvth_f16_u64, vcvth_s16_f16, vcvth_s32_f16,
15734 vcvth_s64_f16, vcvth_u16_f16, vcvth_u32_f16, vcvth_u64_f16,
15735 vcvtah_s16_f16, vcvtah_s32_f16, vcvtah_s64_f16, vcvtah_u16_f16,
15736 vcvtah_u32_f16, vcvtah_u64_f16, vcvtmh_s16_f16, vcvtmh_s32_f16,
15737 vcvtmh_s64_f16, vcvtmh_u16_f16, vcvtmh_u32_f16, vcvtmh_u64_f16,
15738 vcvtnh_s16_f16, vcvtnh_s32_f16, vcvtnh_s64_f16, vcvtnh_u16_f16,
15739 vcvtnh_u32_f16, vcvtnh_u64_f16, vcvtph_s16_f16, vcvtph_s32_f16,
15740 vcvtph_s64_f16, vcvtph_u16_f16, vcvtph_u32_f16, vcvtph_u64_f16,
15741 vnegh_f16, vrecpeh_f16, vrecpxh_f16, vrndh_f16, vrndah_f16, vrndih_f16,
15742 vrndmh_f16, vrndnh_f16, vrndph_f16, vrndxh_f16, vrsqrteh_f16,
15745 2016-07-25 Jiong Wang <jiong.wang@arm.com>
15747 * config/aarch64/aarch64-simd-builtins.def (reduc_smax_scal_,
15748 reduc_smin_scal_): Use VDQIF_F16.
15749 (reduc_smax_nan_scal_, reduc_smin_nan_scal_): Use VHSDF.
15750 * config/aarch64/aarch64-simd.md (reduc_<maxmin_uns>_scal_<mode>):
15752 (aarch64_reduc_<maxmin_uns>_internal<mode>): Likewise.
15753 * config/aarch64/iterators.md (VDQIF_F16): New.
15754 (vp): Support HF modes.
15755 * config/aarch64/arm_neon.h (vmaxv_f16, vmaxvq_f16, vminv_f16,
15756 vminvq_f16, vmaxnmv_f16, vmaxnmvq_f16, vminnmv_f16, vminnmvq_f16): New.
15758 2016-07-25 Jiong Wang <jiong.wang@arm.com>
15760 * config/aarch64/aarch64-simd.md (*aarch64_mulx_elt_to_64v2df): Rename to
15761 "*aarch64_mulx_elt_from_dup<mode>".
15762 (*aarch64_mul3_elt<mode>): Update schedule type.
15763 (*aarch64_mul3_elt_from_dup<mode>): Likewise.
15764 (*aarch64_fma4_elt_from_dup<mode>): Likewise.
15765 (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
15766 * config/aarch64/iterators.md (VMUL): Supprt half precision float modes.
15767 (f, fp): Support HF modes.
15768 * config/aarch64/arm_neon.h (vfma_lane_f16, vfmaq_lane_f16,
15769 vfma_laneq_f16, vfmaq_laneq_f16, vfma_n_f16, vfmaq_n_f16, vfms_lane_f16,
15770 vfmsq_lane_f16, vfms_laneq_f16, vfmsq_laneq_f16, vfms_n_f16,
15771 vfmsq_n_f16, vmul_lane_f16, vmulq_lane_f16, vmul_laneq_f16,
15772 vmulq_laneq_f16, vmul_n_f16, vmulq_n_f16, vmulx_lane_f16,
15773 vmulxq_lane_f16, vmulx_laneq_f16, vmulxq_laneq_f16): New.
15775 2016-07-25 Jiong Wang <jiong.wang@arm.com>
15777 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
15778 * config/aarch64/aarch64-simd.md (fma<mode>4, fnma<mode>4): Extend to HF
15780 * config/aarch64/arm_neon.h (vfma_f16, vfmaq_f16, vfms_f16,
15783 2016-07-25 Jiong Wang <jiong.wang@arm.com>
15785 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
15786 * config/aarch64/aarch64-simd.md
15787 (aarch64_rsqrts<mode>): Extend to HF modes.
15788 (fabd<mode>3): Likewise.
15789 (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_SDF:mode>3): Likewise.
15790 (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_SDI:mode>3): Likewise.
15791 (aarch64_<maxmin_uns>p<mode>): Likewise.
15792 (<su><maxmin><mode>3): Likewise.
15793 (<maxmin_uns><mode>3): Likewise.
15794 (<fmaxmin><mode>3): Likewise.
15795 (aarch64_faddp<mode>): Likewise.
15796 (aarch64_fmulx<mode>): Likewise.
15797 (aarch64_frecps<mode>): Likewise.
15798 (*aarch64_fac<optab><mode>): Rename to aarch64_fac<optab><mode>.
15799 (add<mode>3): Extend to HF modes.
15800 (sub<mode>3): Likewise.
15801 (mul<mode>3): Likewise.
15802 (div<mode>3): Likewise.
15803 (*div<mode>3): Likewise.
15804 * config/aarch64/aarch64.c (aarch64_emit_approx_div): Return false for
15806 * config/aarch64/iterators.md (VDQ_HSDI, VSDQ_HSDI): New mode iterator.
15807 * config/aarch64/arm_neon.h (vadd_f16, vaddq_f16, vabd_f16, vabdq_f16,
15808 vcage_f16, vcageq_f16, vcagt_f16, vcagtq_f16, vcale_f16, vcaleq_f16,
15809 vcalt_f16, vcaltq_f16, vceq_f16, vceqq_f16, vcge_f16, vcgeq_f16,
15810 vcgt_f16, vcgtq_f16, vcle_f16, vcleq_f16, vclt_f16, vcltq_f16,
15811 vcvt_n_f16_s16, vcvtq_n_f16_s16, vcvt_n_f16_u16, vcvtq_n_f16_u16,
15812 vcvt_n_s16_f16, vcvtq_n_s16_f16, vcvt_n_u16_f16, vcvtq_n_u16_f16,
15813 vdiv_f16, vdivq_f16, vdup_lane_f16, vdup_laneq_f16, vdupq_lane_f16,
15814 vdupq_laneq_f16, vdups_lane_f16, vdups_laneq_f16, vmax_f16, vmaxq_f16,
15815 vmaxnm_f16, vmaxnmq_f16, vmin_f16, vminq_f16, vminnm_f16, vminnmq_f16,
15816 vmul_f16, vmulq_f16, vmulx_f16, vmulxq_f16, vpadd_f16, vpaddq_f16,
15817 vpmax_f16, vpmaxq_f16, vpmaxnm_f16, vpmaxnmq_f16, vpmin_f16, vpminq_f16,
15818 vpminnm_f16, vpminnmq_f16, vrecps_f16, vrecpsq_f16, vrsqrts_f16,
15819 vrsqrtsq_f16, vsub_f16, vsubq_f16): New.
15821 2016-07-25 Jiong Wang <jiong.wang@arm.com>
15823 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New.
15824 * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
15825 * config/aarch64/aarch64-simd.md (aarch64_rsqrte<mode>): Extend to HF modes.
15826 (neg<mode>2): Likewise.
15827 (abs<mode>2): Likewise.
15828 (<frint_pattern><mode>2): Likewise.
15829 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
15830 (<optab><VDQF:mode><fcvt_target>2): Likewise.
15831 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): Likewise.
15832 (ftrunc<VDQF:mode>2): Likewise.
15833 (<optab><fcvt_target><VDQF:mode>2): Likewise.
15834 (sqrt<mode>2): Likewise.
15835 (*sqrt<mode>2): Likewise.
15836 (aarch64_frecpe<mode>): Likewise.
15837 (aarch64_cm<optab><mode>): Likewise.
15838 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Return false for
15840 * config/aarch64/iterators.md (VHSDF, VHSDF_DF, VHSDF_SDF): New.
15841 (VDQF_COND, fcvt_target, FCVT_TARGET, hcon): Extend mode attribute to HF modes.
15843 * config/aarch64/arm_neon.h (vdup_n_f16): New.
15844 (vdupq_n_f16): Likewise.
15845 (vld1_dup_f16): Use vdup_n_f16.
15846 (vld1q_dup_f16): Use vdupq_n_f16.
15847 (vabs_f16, vabsq_f16, vceqz_f16, vceqzq_f16, vcgez_f16, vcgezq_f16,
15848 vcgtz_f16, vcgtzq_f16, vclez_f16, vclezq_f16, vcltz_f16, vcltzq_f16,
15849 vcvt_f16_s16, vcvtq_f16_s16, vcvt_f16_u16, vcvtq_f16_u16, vcvt_s16_f16,
15850 vcvtq_s16_f16, vcvt_u16_f16, vcvtq_u16_f16, vcvta_s16_f16,
15851 vcvtaq_s16_f16, vcvta_u16_f16, vcvtaq_u16_f16, vcvtm_s16_f16,
15852 vcvtmq_s16_f16, vcvtm_u16_f16, vcvtmq_u16_f16, vcvtn_s16_f16,
15853 vcvtnq_s16_f16, vcvtn_u16_f16, vcvtnq_u16_f16, vcvtp_s16_f16,
15854 vcvtpq_s16_f16, vcvtp_u16_f16, vcvtpq_u16_f16, vneg_f16, vnegq_f16,
15855 vrecpe_f16, vrecpeq_f16, vrnd_f16, vrndq_f16, vrnda_f16, vrndaq_f16,
15856 vrndi_f16, vrndiq_f16, vrndm_f16, vrndmq_f16, vrndn_f16, vrndnq_f16,
15857 vrndp_f16, vrndpq_f16, vrndx_f16, vrndxq_f16, vrsqrte_f16, vrsqrteq_f16,
15858 vsqrt_f16, vsqrtq_f16): New.
15860 2016-07-25 Jiong Wang <jiong.wang@arm.com>
15862 * config/aarch64/aarch64-simd.md
15863 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Use VALL_F16.
15864 (aarch64_ext<mode>): Likewise.
15865 (aarch64_rev<REVERSE:rev_op><mode>): Likewise.
15866 * config/aarch64/aarch64.c (aarch64_evpc_trn, aarch64_evpc_uzp,
15867 aarch64_evpc_zip, aarch64_evpc_ext, aarch64_evpc_rev): Support V4HFmode
15869 * config/aarch64/arm_neon.h (__INTERLEAVE_LIST): Support float16x4_t,
15871 (__aarch64_vdup_lane_f16, __aarch64_vdup_laneq_f16,
15872 __aarch64_vdupq_lane_f16, __aarch64_vdupq_laneq_f16, vbsl_f16,
15873 vbslq_f16, vdup_n_f16, vdupq_n_f16, vdup_lane_f16, vdup_laneq_f16,
15874 vdupq_lane_f16, vdupq_laneq_f16, vduph_lane_f16, vduph_laneq_f16,
15875 vext_f16, vextq_f16, vmov_n_f16, vmovq_n_f16, vrev64_f16, vrev64q_f16,
15876 vtrn1_f16, vtrn1q_f16, vtrn2_f16, vtrn2q_f16, vtrn_f16, vtrnq_f16,
15877 vuzp1_f16, vuzp1q_f16, vuzp2_f16, vuzp2q_f16, vzip1_f16, vzip2q_f16):
15879 (vmov_n_f16): Reimplement using vdup_n_f16.
15880 (vmovq_n_f16): Reimplement using vdupq_n_f16..
15882 2016-07-25 Jiong Wang <jiong.wang@arm.com>
15884 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter
15885 "frame_related_p". Generate CFA annotation when it's necessary.
15886 (aarch64_expand_prologue): Use aarch64_add_constant.
15887 (aarch64_expand_epilogue): Likewise.
15888 (aarch64_output_mi_thunk): Pass "false" when calling
15889 aarch64_add_constant.
15891 2016-07-25 Jiong Wang <jiong.wang@arm.com>
15893 * config/aarch64/aarch64.c (aarch64_add_constant): Optimize instruction
15896 2016-07-25 Jiong Wang <jiong.wang@arm.com>
15898 * config/aarch64/aarch64.c (aarch64_add_constant): New parameter "mode".
15899 Use aarch64_internal_mov_immediate instead of aarch64_build_constant.
15900 (aarch64_output_mi_thunk): Pass Pmode when calling aarch64_add_constant.
15901 (aarch64_build_constant): Delete.
15903 2016-07-25 Alexander Monakov <amonakov@ispras.ru>
15906 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
15908 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
15909 flag_toplevel_reorder.
15911 2016-07-25 Richard Biener <rguenther@suse.de>
15913 * cgraph.c (cgraph_node::verify_node): Compare against builtin
15914 by using DECL_BUILT_IN_CLASS and DECL_FUNCTION_CODE.
15915 * tree-chkp.c (chkp_gimple_call_builtin_p): Likewise.
15916 * tree-streamer.h (streamer_handle_as_builtin_p): Remove.
15917 (streamer_get_builtin_tree): Likewise.
15918 (streamer_write_builtin): Likewise.
15919 * lto-streamer.h (LTO_builtin_decl): Remove.
15920 * lto-streamer-in.c (lto_read_tree_1): Remove assert.
15921 (lto_input_scc): Remove LTO_builtin_decl handling.
15922 (lto_input_tree_1): Liekwise.
15923 * lto-streamer-out.c (lto_output_tree_1): Remove special
15924 handling of builtins.
15925 (DFS::DFS): Likewise.
15926 * tree-streamer-in.c (streamer_get_builtin_tree): Remove.
15927 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Remove
15929 (streamer_write_builtin): Remove.
15931 2016-07-25 Martin Liska <mliska@suse.cz>
15933 * lto-cgraph.c (input_symtab): Don't call get_working_sets
15934 if flag_auto_profile is set to true.
15936 2016-07-25 Martin Liska <mliska@suse.cz>
15938 PR gcov-profile/71868
15939 * cfgloopanal.c (expected_loop_iterations_unbounded): When we
15940 have a function with multiple latches, count them all.
15942 2016-07-25 Martin Liska <mliska@suse.cz>
15944 * tree-ssa-loop-niter.c (loop_only_exit_p): Release body array.
15946 2016-07-25 Martin Liska <mliska@suse.cz>
15948 PR tree-optimization/71987
15949 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Call get_ops
15950 just for SSA_NAMEs. Fix GNU coding style.
15952 2016-07-25 Martin Liska <mliska@suse.cz>
15954 PR gcov-profile/64874
15955 * gcov-io.h: Update command about file format.
15956 * gcov-iov.c (main): Adapt the numbering scheme.
15958 2016-07-24 Kugan Vivekanandarajah <kuganv@linaro.org>
15960 PR middle-end/66726
15961 * tree-ssa-reassoc.c (optimize_vec_cond_expr): Handle tcc_compare stmt
15962 whose result is used in PHI.
15963 (final_range_test_p): Likewise.
15964 (maybe_optimize_range_tests): Likewise.
15966 2016-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
15968 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
15969 Reformat two multi-line strings.
15971 2016-07-22 Martin Sebor <msebor@redhat.com>
15973 * doc/extend.texi (Compound Literals): Add '@' missed in last commit.
15975 2016-07-22 Martin Sebor <msebor@redhat.com>
15978 * doc/extend.texi (Compound Literals): Correct and clarify.
15979 (Cast to Union): Same.
15981 2016-07-22 Kelvin Nilsen <kelvin@gcc.gnu.org>
15983 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
15984 comments to explain why certain error messages make mention of
15985 undocumented options.
15986 (rs6000_invalid_builtin): Change error messages to replace mention
15987 of undocumented options with mention of the -mcpu=power9 option
15988 that enables those undocumented options.
15989 * config/rs6000/rs6000.h (MASK_FLOAT128): New macro.
15990 (RS6000_BTM_FLOAT128): Use the new MASK_FLOAT128 macro in the
15991 definition of this macro to correct an existing error.
15992 * config/rs6000/rs6000.opt: Add the Undocumented qualifier to the
15993 mpower9-fusion, mpower9-vector, mpower9-dform, and mmodulo entries.
15994 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Modify
15995 descriptions of built-in functions so that they depend on
15996 -mcpu=power9 instead of on the corresponding undocumented flags.
15997 * doc/invoke.texi (Option Summary): Remove all mention of newly
15998 undocumented flags.
15999 (IBM RS/6000 and PowerPC Options): Likewise.
16000 * doc/md.texi (Constraints for Particuliar Machines): Remove all
16001 mention of newly undocumented flags.
16003 2016-07-22 Evgeny Stupachenko <evstupac@gmail.com>
16005 * ipa-cp.c (determine_versionability): Do not create constprop clones,
16006 when target_clones attribute is set.
16008 2016-07-22 Bin Cheng <bin.cheng@arm.com>
16010 * common.opt (funsafe-loop-optimizations): Mark ignore.
16011 * doc/invoke.texi (funsafe-loop-optimizations): Remove.
16012 * loop-iv.c (get_simple_loop_desc): Remove unsafe-loop-optimizations
16014 * tree-ssa-loop-niter.c (finite_loop_p): Ditto.
16015 * config/bfin/bfin.c (bfin_can_use_doloop_p): Ditto.
16017 2016-07-22 Bin Cheng <bin.cheng@arm.com>
16019 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
16021 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
16023 (number_of_iterations_exit): Warn missed loop optimization for
16024 possible infinite loops.
16026 2016-07-22 Segher Boessenkool <segher@kernel.crashing.org>
16029 * config/rs6000/rs6000.c (rs6000_file_start): Fix condition for
16030 when to emit a ".machine" pseudo-op.
16032 2016-07-22 Martin Liska <mliska@suse.cz>
16034 PR gcov-profile/69028
16035 PR gcov-profile/62047
16036 * coverage.c (coverage_compute_lineno_checksum): Do not
16037 calculate checksum for fns w/o xloc.file.
16038 (coverage_compute_profile_id): Likewise.
16040 2016-07-22 Georg-Johann Lay <avr@gjlay.de>
16042 * config/avr/avr.c (TARGET_SECONDARY_RELOAD): Remove hook define...
16043 (avr_secondary_reload): ...and implementation.
16044 (avr_adjust_insn_length) [ADJUST_LEN_LPM]: Remove handling.
16045 * config/avr/avr.md (reload_in<mode>): Remove insns.
16046 (adjust_len) [lpm]: Remove insn attribute value.
16047 * config/avr/predicates.md (flash_operand): Remove insn predicate.
16049 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
16051 PR middle-end/71876
16052 * builtin-attrs.def (ATTR_RT_NOTHROW_LEAF_LIST): New return twice
16054 * builtins.def (BUILT_IN_SETJMP): Use ATTR_RT_NOTHROW_LEAF_LIST here.
16055 * calls.c (special_function_p): Remove the special handling of the
16056 "__builtin_" prefix.
16058 2016-07-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
16060 PR middle-end/71876
16061 * calls.c (gimple_maybe_alloca_call_p): New function. Return true
16062 if STMT may be an alloca call.
16063 (gimple_alloca_call_p, alloca_call_p): Return only true for the
16064 builtin alloca call.
16065 * calls.h (gimple_maybe_alloca_call_p): New function.
16066 * tree-inline.c (inline_forbidden_p_stmt): Use
16067 gimple_maybe_alloca_call_p here.
16069 2016-07-21 David Malcolm <dmalcolm@redhat.com>
16071 * spellcheck-tree.c (best_macro_match::best_macro_match):
16072 Explictly specify the template arguments when invoking the base
16073 class constructor, to help older C++ compilers.
16075 2016-07-21 Jakub Jelinek <jakub@redhat.com>
16078 * asan.c (asan_dynamic_init_call): Call asan_init_shadow_ptr_types
16079 before builtin_decl_implicit.
16081 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
16083 * optabs.c (emit_condiitonal_move): Short circuit for identical
16086 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
16088 * ifcvt.c (noce_if_info): New fields: speed_p, original_cost,
16089 max_seq_cost. Removed fields: then_cost, else_cost, branch_cost.
16090 (noce_conversion_profitable_p): New.
16091 (noce_try_store_flag_constants): Use it.
16092 (noce_try_addcc): Likewise.
16093 (noce_try_store_flag_mask): Likewise.
16094 (noce_try_cmove): Likewise.
16095 (noce_try_cmove_arith): Likewise.
16096 (bb_valid_for_noce_process_p): Add to the cost parameter rather than
16098 (noce_convert_multiple_sets): Move cost model to here, from...
16099 (bb_ok_for_noce_convert_multiple_sets) ...here.
16100 (noce_process_if_block): Update calls for above changes.
16101 (noce_find_if_block): Record new noce_if_info parameters.
16103 2016-07-21 James Greenhalgh <james.greenhalgh@arm.com>
16105 * target.def (max_noce_ifcvt_seq_cost): New.
16106 * doc/tm.texi.in (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Document it.
16107 * doc/tm.texi: Regenerate.
16108 * targhooks.h (default_max_noce_ifcvt_seq_cost): New.
16109 * targhooks.c (default_max_noce_ifcvt_seq_cost): New.
16110 * params.def (PARAM_MAX_RTL_IF_CONVERSION_PREDICTABLE_COST): New.
16111 (PARAM_MAX_RTL_IF_CONVERSION_UNPREDICTABLE_COST): Likewise.
16112 * doc/invoke.texi: Document new params.
16114 2016-07-21 Richard Biener <rguenther@suse.de>
16116 PR tree-optimization/71947
16117 * tree-vrp.c (extract_range_from_assert): Singleton symbolic
16118 ranges have useful limit_vr information.
16120 2016-07-21 Richard Biener <rguenther@suse.de>
16122 * function-tests.c (build_trivial_generic_function): Set
16123 BLOCK_SUPERCONTEXT of DECL_INITIAL.
16124 * omp-low.c (create_omp_child_function): Likewise.
16125 (grid_expand_target_grid_body): Likewise.
16126 * cgraphunit.c (init_lowered_empty_function): Likewise.
16127 (cgraph_node::expand_thunk): Likewise.
16128 * tree-parloops.c (create_loop_fn): Likewise.
16129 * ipa.c (cgraph_build_static_cdtor_1): Likewise.
16131 2016-07-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16133 * tree-ssa-strlen.c (strlen_dom_walker::before_dom_children): Fix typo
16136 2016-07-21 Georg-Johann Lay <avr@gjlay.de>
16138 * config/avr/avr.md (any_extract, any_shiftrt): New code iterators.
16139 (*insv.extract, *insv.shiftrt, *insv.not-bit.0, *insv.not-bit.7)
16140 (*insv.xor-extract, *insv.xor1-bit.0): New insns.
16141 (adjust_len) [insv_notbit, insv_notbit_0, insv_notbit_7]: New
16142 values for insn attribute.
16143 * config/avr/avr.c (avr_out_insert_notbit): New function.
16144 (avr_adjust_insn_length): Handle ADJUST_LEN_INSV_NOTBIT,
16145 ADJUST_LEN_INSV_NOTBIT_0/_7.
16146 * config/avr/avr-protos.h (avr_out_insert_notbit): New proto.
16148 2016-07-21 Bin Cheng <bin.cheng@arm.com>
16150 * tree-chrec.c (convert_affine_scev): New parameter. Pass new arg.
16151 (chrec_convert_1, chrec_convert): Ditto.
16152 * tree-chrec.h (chrec_convert, convert_affine_scev): New parameter.
16153 * tree-scalar-evolution.c (interpret_rhs_expr): Pass new arg.
16154 * tree-vrp.c (adjust_range_with_scev): Ditto.
16155 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Ditto.
16156 (scev_var_range_cant_overflow): New function.
16157 (scev_probably_wraps_p): New parameter. Call above function.
16158 * tree-ssa-loop-niter.h (scev_probably_wraps_p): New parameter.
16160 2016-07-21 Bin Cheng <bin.cheng@arm.com>
16162 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Clean up
16163 by removing computation of may_be_zero.
16165 2016-07-21 Jakub Jelinek <jakub@redhat.com>
16167 * tree-object-size.c (unknown): Use HOST_WIDE_INT_M1U instead of -1.
16169 2016-07-21 Andrew Sutton <andrew.n.sutton@gmail.com>
16171 Improving concepts performance and diagnostics.
16172 * timevar.def (TV_CONSTRAINT_SAT, TV_CONSTRAINT_SUB): New time vars
16173 for constraint satisfaction and subsumption.
16174 * timevar.h (auto_timevar): New constructor that matches the push/pop
16175 pattern of usage in pt.c.
16177 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
16179 * hwint.h (HOST_WIDE_INT_0): New define.
16180 (HOST_WIDE_INT_0U): Ditto.
16181 * double-int.c: Use HOST_WIDE_INT_0 instead of (HOST_WIDE_INT) 0.
16182 * dse.c: Use HOST_WIDE_INT_0U instead of (unsigned HOST_WIDE_INT) 0.
16183 * simplify-rtx.c: Ditto.
16184 * tree-object-size.c: Ditto.
16186 2016-07-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16188 * config/s390/s390.c (s390_encode_section_info): Remove mode size
16191 2016-07-20 Uros Bizjak <ubizjak@gmail.com>
16193 * cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0.
16194 * combine.c: Use HOST_WIDE_INT_M1U instead of
16195 ~(unsigned HOST_WIDE_INT) 0.
16196 * double-int.h: Ditto.
16198 * dwarf2asm.c:Ditto.
16200 * genmodes.c: Ditto.
16202 * read-rtl.c: Ditto.
16203 * tree-ssa-loop-ivopts.c: Ditto.
16204 * tree-ssa-loop-prefetch.c: Ditto.
16205 * tree-vect-generic.c: Ditto.
16206 * tree-vect-patterns.c: Ditto.
16209 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
16211 * config/avr.c (avr_legitimize_address) [AVR_TINY]: Force
16212 constant addresses outside [0,0xc0] into a register.
16213 (avr_out_movhi_r_mr_reg_no_disp_tiny): Pass insn. And handle
16214 cases where the base address register is unused after.
16215 (avr_out_movhi_r_mr_reg_disp_tiny): Same.
16216 (avr_out_movhi_mr_r_reg_disp_tiny): Same.
16217 (avr_out_store_psi_reg_disp_tiny): Same.
16219 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
16221 Implement attribute progmem on reduced Tiny cores by adding
16222 flash offset 0x4000 to respective symbols.
16225 * doc/extend.texi (AVR Variable Attributes) [progmem]: Add
16226 documentation how it works on reduced Tiny cores.
16227 (AVR Named Address Spaces): No support for reduced Tiny.
16228 * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): New macro.
16229 (avr_address_tiny_pm_p): New static function.
16230 (avr_print_operand_address) [AVR_TINY]: Add AVR_TINY_PM_OFFSET
16231 if the address is in progmem.
16232 (avr_assemble_integer): Same.
16233 (avr_encode_section_info) [AVR_TINY]: Set AVR_SYMBOL_FLAG_TINY_PM
16234 for symbol_ref in progmem.
16235 * config/avr/avr.h (AVR_TINY_PM_OFFSET): New macro.
16236 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it instead of
16237 magic 0x4000 when built-in def'ing __AVR_TINY_PM_BASE_ADDRESS__.
16239 2016-07-20 Patrick Palka <ppalka@gcc.gnu.org>
16241 * configure.ac (thin_archive_support): New variable. AC_SUBST it.
16242 * configure: Regenerate.
16243 * Makefile.in (THIN_ARCHIVE_SUPPORT): New variable.
16244 (USE_THIN_ARCHIVES): New variable.
16245 (libbackend.a): If USE_THIN_ARCHIVES then pass T to ar to build
16246 this archive as a thin archive.
16248 2016-07-20 David Malcolm <dmalcolm@redhat.com>
16250 * diagnostic-show-locus.c (diagnostic_show_locus): If this is the
16251 same location as last time, don't skip if we have fix-it hints.
16252 Clarify the skipping logic by converting it from one "if" clause
16253 to repeated "if" clauses.
16254 * spellcheck-tree.c: Include "cpplib.h".
16255 (find_closest_macro_cpp_cb): Move here from c/c-decl.c.
16256 (best_macro_match::best_macro_match): New constructor.
16257 * spellcheck-tree.h (struct edit_distance_traits<cpp_hashnode *>):
16258 Move here from c/c-decl.c.
16259 (class best_macro_match): Move here from c/c-decl.c, converting
16260 from a typedef to a subclass, gaining a ctor.
16262 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
16264 * config/avr/avr-protos.h (avr_addr_space_supported_p): New prototype.
16265 * config/avr/avr.c (TARGET_ADDR_SPACE_DIAGNOSE_USAGE): New hook
16267 (avr_addr_space_diagnose_usage): ...and implementation.
16268 (avr_addr_space_supported_p): New function.
16269 (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Only
16270 report bad address space usage if that space is supported.
16271 (avr_insert_attributes): Same. No more complain about unsupported
16273 * config/avr/avr-c.c (tm_p.h): Include it.
16274 (avr_cpu_cpp_builtins): Only define addr-space related built-in
16275 macro if avr_addr_space_supported_p.
16277 2016-07-20 Alexander Monakov <amonakov@ispras.ru>
16279 * config/nvptx/nvptx.c (nvptx_option_override): Do not set
16280 flag_toplevel_reorder.
16282 2016-07-20 David Malcolm <dmalcolm@redhat.com>
16284 * gcc-rich-location.c
16285 (gcc_rich_location::add_fixit_misspelled_id): New overload, taking
16287 * gcc-rich-location.h
16288 (gcc_rich_location::add_fixit_misspelled_id): Likewise.
16290 2016-07-20 Georg-Johann Lay <avr@gjlay.de>
16292 * target.def (addr_space): Add new diagnose_usage to hook vector.
16293 * targhooks.c (default_addr_space_diagnose_usage): Add default
16294 implementation and...
16295 * targhooks.h (default_addr_space_diagnose_usage): ... its prototype.
16296 * c/c-parser.c (c_lex_one_token) [CPP_NAME]: If the token
16297 is some address space, call targetm.addr_space.diagnose_usage.
16298 * doc/tm.texi.in (Named Address Spaces): Add anchor for
16299 TARGET_ADDR_SPACE_DIAGNOSE_USAGE documentation.
16300 * doc/tm.texi: Regenerate.
16302 2016-07-20 Martin Liska <mliska@suse.cz>
16304 PR middle-end/71898
16305 * graphite-isl-ast-to-gimple.c (later_of_the_two):
16306 Properly handly PHI stmts.
16308 2016-07-20 Bin Cheng <bin.cheng@arm.com>
16310 PR tree-optimization/71503
16311 PR tree-optimization/71683
16312 * tree-if-conv.c (gen_phi_arg_condition): Record true predicate
16315 2016-07-20 Martin Liska <mliska@suse.cz>
16317 * doc/invoke.texi (-fipa-ra): Document when the option is
16318 disabled. Fix a typo.
16320 2016-07-20 Martin Liska <mliska@suse.cz>
16322 * Makefile.in: Include fibonacci_heap.c
16323 * fibonacci_heap.c: New file.
16324 * fibonacci_heap.h (fibonacci_heap::insert): Use insert_node.
16325 (fibonacci_heap::union_with): Fix deletion of the second heap.
16326 * selftest-run-tests.c (selftest::run_tests): Incorporate
16327 fibonacci heap tests.
16328 * selftest.h: Declare fibonacci_heap_c_tests.
16330 2016-07-20 Martin Liska <mliska@suse.cz>
16332 * selftest-run-tests.c (selftest::run_tests): New function.
16333 * selftest.h (sreal_c_tests): Declare.
16334 * sreal.c (sreal_verify_basics): New function.
16335 (verify_aritmetics): Likewise.
16336 (sreal_verify_arithmetics): Likewise.
16337 (verify_shifting): Likewise.
16338 (sreal_verify_shifting): Likewise.
16339 (void sreal_c_tests): Likewise.
16341 2016-07-19 Jakub Jelinek <jakub@redhat.com>
16343 PR rtl-optimization/71916
16344 * cfgrtl.c (contains_no_active_insn_p): Return false also for
16345 bb which have a single succ fake edge.
16347 2016-07-19 Aldy Hernandez <aldyh@redhat.com>
16350 * dwarf2out.c (gen_subprogram_die): Only call
16351 gen_unspecified_parameters_die while dumping early dwarf.
16353 2016-07-19 Jakub Jelinek <jakub@redhat.com>
16355 PR middle-end/71874
16356 * gimple-fold.c (fold_builtin_memory_op): Use
16357 get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
16359 2016-07-19 Uros Bizjak <ubizjak@gmail.com>
16361 * builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1,
16362 HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1,
16363 HOST_WIDE_INT_M1 instead of (HOST_WIDE_INT) -1 and
16364 HOST_WIDE_INT_M1U instead of (unsigned HOST_WIDE_INT) -1.
16365 * combine.c: Ditto.
16368 * double-int.c: Ditto.
16370 * dwarf2out.c: Ditto.
16373 * fold-const.c: Ditto.
16374 * function.c: Ditto.
16376 * genmodes.c: Ditto.
16380 * loop-doloop.c: Ditto.
16381 * loop-invariant.c: Ditto.
16382 * loop-iv.c: Ditto.
16387 * rtlanal.c: Ditto.
16388 * simplify-rtx.c: Ditto.
16389 * stor-layout.c: Ditto.
16391 * tree-ssa-loop-ivopts.c: Ditto.
16392 * tree-vect-generic.c: Ditto.
16393 * tree-vect-patterns.c: Ditto.
16398 * wide-int-print.cc: Ditto.
16399 * wide-int.cc: Ditto.
16400 * wide-int.h: Ditto.
16402 2016-07-19 David Malcolm <dmalcolm@redhat.com>
16404 * selftest.c (selftest::assert_streq): Handle NULL values of
16405 val_actual and val_expected.
16407 2016-07-19 Martin Jambor <mjambor@suse.cz>
16410 * trans-decl.c (gfc_generate_function_code): Use cgraph_get_create_node
16411 rather than cgraph_create_node to get a call graph node.
16413 2016-07-19 Richard Biener <rguenther@suse.de>
16415 * gimple-fold.c (get_base_constructor): Add VIEW_CONVERT case,
16416 handle all tcc_constant bases and valueize SSA names.
16417 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Handle
16418 tcc_constant bases.
16420 2016-07-19 David Malcolm <dmalcolm@redhat.com>
16422 * function-tests.c (selftest::verify_three_block_rtl_cfg): Verify
16423 the flags of the exit block and bb2, not just the entry block.
16425 2016-07-19 Richard Biener <rguenther@suse.de>
16427 PR tree-optimization/71901
16428 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
16429 align member, group stuff with the bitfield.
16430 (vn_ref_op_align_unit): New inline.
16431 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): For ARRAY_REFs
16432 record element alignment and operand 3 unchanged.
16433 (ao_ref_init_from_vn_reference): Adjust.
16434 (valueize_refs_1): Likewise.
16435 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
16437 2016-07-19 Richard Biener <rguenther@suse.de>
16439 PR tree-optimization/71908
16440 * tree-ssa-structalias.c (get_constraint_for_component_ref): Handle
16441 symbolic constants in a more reliable way.
16443 2016-07-19 Ilya Enkovich <ilya.enkovich@intel.com>
16445 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Update
16447 (vect_update_inits_of_drs): Likewise.
16448 (vect_create_cond_for_alias_checks): Likewise.
16449 * tree-vect-loop.c (vect_get_known_peeling_cost): Likewise.
16451 2016-07-19 Richard Biener <rguenther@suse.de>
16454 * lto-streamer-out.c (DFS::DFS_write_tree_body): For blocks
16455 with an abstract origin that is not an inlined function outer
16456 scope add a self-reference as abstract origin.
16457 * tree-streamer-out.c (write_ts_block_tree_pointers): Likewise.
16459 2016-07-18 Michael Meissner <meissner@linux.vnet.ibm.com>
16462 * config/rs6000/rs6000.c (rs6000_function_value): Fix
16463 unintentional System V.4 structure return breakage for structures
16464 with a single floating point element.
16466 2016-07-18 Yuri Rumyantsev <ysrumyan@gmail.com>
16468 PR tree-optimization/71734
16469 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Add REF_LOOP argument which
16470 contains REF, use it to check safelen, assume that safelen value
16471 must be greater 1, fix style.
16472 (ref_indep_loop_p_2): Add REF_LOOP argument.
16473 (ref_indep_loop_p): Pass LOOP as additional argument to
16474 ref_indep_loop_p_2.
16476 2016-07-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
16478 * cfgexpand.c (expand_stack_vars): Implement synamic stack space
16479 allocation in the prologue.
16480 * explow.c (get_dynamic_stack_base): New function to return an address
16481 expression for the dynamic stack base.
16482 (get_dynamic_stack_size): New function to do the required dynamic stack
16483 space size calculations.
16484 (allocate_dynamic_stack_space): Use new functions.
16485 (align_dynamic_address): Move some code from
16486 allocate_dynamic_stack_space to new function.
16487 * explow.h (get_dynamic_stack_base, get_dynamic_stack_size): Export.
16489 2016-07-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16491 * config/s390/s390.c (s390_encode_section_info): Always set
16492 notaligned marker if mode size is 0 or no MEM_ALIGN info could be
16495 2016-07-18 Richard Biener <rguenther@suse.de>
16497 PR tree-optimization/71893
16498 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Compensate
16499 for sizetype cast added by array_ref_element_size.
16500 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
16502 2016-07-16 John David Anglin <danglin@gcc.gnu.org>
16504 * config/pa/pa.c (hppa_profile_hook): Allocate stack space for
16505 register parameters. Remove code to initialize argument pointer
16506 on TARGET_64BIT. Optimize call to _mcount when it can be reached
16507 using a pc-relative branch. Cleanup conditional code.
16508 * config/pa/pa.md (call_mcount): New expander.
16509 (call_mcount_nonpic): New insn.
16510 (call_mcount_pic): New insn and split.
16511 (call_mcount_pic_post_reload): New insn.
16512 (call_mcount_64bit): New insn and split.
16513 (call_mcount_64bit_post_reload): New insn.
16515 2016-07-15 Georg-Johann Lay <avr@gjlay.de>
16517 * config/avr/predicates.md (const_m255_to_m1_operand): New.
16518 * config/avr/constraints.md (Cn8, Ca1, Co1, Yx2): New constraints.
16519 * config/avr/avr.md (add<mode>3) <ALL1>: Fix set_vzn for +/-2.
16520 (*cmphi.zero-extend.0, *cmphi.zero-extend.1)
16521 (*usum_widenqihi3, *udiff_widenqihi3)
16522 (*addhi3_zero_extend.const): New combiner insns.
16523 (andqi3, iorqi3): Provide "l" (NO_LD_REGS) alternative if
16524 just 1 bit is affected.
16525 * config/avr/avr.c (avr_out_bitop) <QImode>: Don't access xop[3].
16526 (avr_out_compare) [EQ,NE]: Tweak comparing d-regs against -1.
16528 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
16530 * omp-low.c (lower_omp_target): Mark data clauses with
16531 GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having
16532 zero-length subarrays.
16534 2016-07-15 Richard Biener <rguenther@suse.de>
16536 PR tree-optimization/71881
16537 * tree-loop-distribution.c (destroy_loop): Remove blocks in
16538 reverse DOM order to make debug temp generation happy.
16540 2016-07-15 Richard Biener <rguenther@suse.de>
16542 PR tree-optimization/71887
16543 * tree-ssa-phiopt.c (absorbing_element_p): Add rhs arg and
16544 verify it is not zero for division / modulo handling.
16545 (value_replacement): Adjust.
16547 2016-07-15 Virendra Pathak <virendra.pathak@broadcom.com>
16548 Julian Brown <julian@codesourcery.com>
16550 * config/aarch64/aarch64-cores.def: Update vulcan COSTS.
16551 * config/aarch64/aarch64-cost-tables.h
16552 (vulcan_extra_costs): New variable.
16553 * config/aarch64/aarch64.c
16554 (vulcan_addrcost_table): Likewise.
16555 (vulcan_regmove_cost): Likewise.
16556 (vulcan_vector_cost): Likewise.
16557 (vulcan_branch_cost): Likewise.
16558 (vulcan_tunings): Likewise.
16560 2016-07-15 Alexander Monakov <amonakov@ispras.ru>
16562 * cgraphunit.c (cgraph_order_sort_kind): New entry ORDER_VAR_UNDEF.
16563 (output_in_order): Loop over undefined variables too. Output them
16564 via assemble_undefined_decl. Skip variables that correspond to hard
16565 registers or have value-exprs.
16566 * varpool.c (symbol_table::output_variables): Handle undefined
16567 variables together with defined ones.
16569 2016-07-15 Richard Biener <rguenther@suse.de>
16571 * tree-ssa-pre.c (get_representative_for): Make sure to return
16572 the value number of SSA names.
16573 (phi_translate_1): get_representative_for cannot return NULL.
16574 (do_pre_regular_insertion): Remove redundant call to
16575 fully_constant_expression.
16576 (do_pre_partial_partial_insertion): Likewise.
16578 2016-07-15 Bin Cheng <bin.cheng@arm.com>
16580 * tree-scalar-evolution.c (simple_iv_with_niters): New funcion.
16581 (derive_simple_iv_with_niters): New function.
16582 (simple_iv): Rewrite using simple_iv_with_niters.
16583 * tree-scalar-evolution.h (simple_iv_with_niters): New decl.
16584 * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
16586 (number_of_iterations_exit): Rewrite using above function.
16587 * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
16590 2016-07-15 Richard Biener <rguenther@suse.de>
16592 * config/i386/i386.c (ix86_builtin_vectorization_cost): Adjust
16593 vec_construct cost.
16595 2016-07-14 Jakub Jelinek <jakub@redhat.com>
16597 PR tree-optimization/71872
16598 * tree-data-ref.c (get_references_in_stmt): Ignore references
16599 with is_gimple_constant get_base_address.
16601 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
16603 * config/arm/arm.h (TARGET_HAVE_LDACQ): Enable for ARMv8-M Mainline.
16604 (TARGET_HAVE_LDACQD): New macro.
16605 * config/arm/sync.md (atomic_loaddi): Use TARGET_HAVE_LDACQD rather
16606 than TARGET_HAVE_LDACQ.
16607 (arm_load_acquire_exclusivedi): Likewise.
16608 (arm_store_release_exclusivedi): Likewise.
16610 2016-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
16612 PR rtl-optimization/71878
16613 * lra-constraints.c (match_reload): Pass information about other
16614 output operands. Create new unique register value if matching input
16615 operand shares same register value as output operand being considered.
16616 (curr_insn_transform): Record output operands already processed.
16618 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16621 PR tree-optimization/70923
16622 * tree-vect-patterns.c: Include mult-synthesis.h.
16623 (target_supports_mult_synth_alg): New function.
16624 (synth_lshift_by_additions): Likewise.
16625 (apply_binop_and_append_stmt): Likewise.
16626 (vect_synth_mult_by_constant): Likewise.
16627 (target_has_vecop_for_code): Likewise.
16628 (vect_recog_mult_pattern): Use above functions to synthesize vector
16629 multiplication by integer constants.
16631 2016-07-14 Alan Modra <amodra@gmail.com>
16633 * config/rs6000/altivec.md (altivec_mov<mode>): Disparage
16634 gpr alternatives. Correct '*' placement on Y,r alternative.
16635 Add '*' on operand 1 of r,r alternative.
16637 2016-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16639 * expmed.c (mult_variant, choose_mult_variant): Move declaration to...
16640 * expmed.h: ... Here.
16642 2016-07-14 Jan Hubicka <hubicka@ucw.cz>
16644 * gimple.h (stmt_can_terminate_bb_p): New function.
16645 * tree-cfg.c (need_fake_edge_p): Rename to ...
16646 (stmt_can_terminate_bb_p): ... this; return true if stmt can
16647 throw external; handle const and pure calls.
16648 * tree-ssa-loop-niter.c (loop_only_exit_p): Use it.
16650 2016-07-14 Richard Biener <rguenther@suse.de>
16652 PR tree-optimization/71866
16653 * tree-ssa-pre.c (get_constant_for_value_id): Remove.
16654 (do_hoist_insertion): Avoid endless recursion when we
16655 didn't insert anything because we managed to simplify
16656 things down to a constant or SSA name.
16657 (fully_constant_expression): Re-write in terms of ...
16658 * tree-ssa-sccvn.h (vn_nary_simplify): ... this. Declare.
16659 * tree-ssa-sccvn.c (vn_nary_simplify): New wrapper around
16660 vn_nary_build_or_lookup_1.
16661 (vn_nary_build_or_lookup_1): Added flag and renamed from ...
16662 (vn_nary_build_or_lookup): ... this which now wraps it.
16664 2016-07-14 Alan Modra <amodra@gmail.com>
16667 * config/rs6000/rs6000.c (rs6000_option_override_internal): Deal
16668 with p9_vector override before power9-dform override.
16670 2016-07-13 Andi Kleen <ak@linux.intel.com>
16672 * value-prof.c (gimple_value_profile_transformations): Don't run
16673 when auto_profile is on.
16675 2016-07-13 Andi Kleen <ak@linux.intel.com>
16677 * auto-profile.c (update_inlined_ind_target,
16678 afdo_indirect_call): Print information to dump file.
16680 2016-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
16682 * genrecog.c (special_predicate_operand_p): New function.
16683 (predicate_name): Move function.
16684 (validate_pattern): Don't warn about missing mode for all
16685 define_special_predicate predicates.
16687 2016-07-13 Bin Cheng <bin.cheng@arm.com>
16689 * tree-vect-data-refs.c (vect_no_alias_p): New function.
16690 (vect_prune_runtime_alias_test_list): Call vect_no_alias_p to
16691 resolve alias checks which are known at compilation time.
16692 Truncate vector LOOP_VINFO_MAY_ALIAS_DDRS(loop_vinfo) if all
16693 alias checks are resolved. Move dump info for too many runtime
16694 alias checks to here...
16695 * tree-vect-loop.c (vect_analyze_loop_2): ...From here.
16697 2016-07-13 Richard Biener <rguenther@suse.de>
16699 PR tree-optimization/24574
16700 * tree-ssa-phiopt.c (absorbing_element_p): Pass in argument
16701 position and add shift, rotate, divison and modulo support
16703 (value_replacement): Pass in argument position to absorbing_element_p.
16705 2016-07-13 Ilya Enkovich <ilya.enkovich@intel.com>
16708 * ipa-inline-transform.c (inline_call): Support
16709 instrumented thunks.
16711 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
16713 * config/arm/arm.h (TARGET_HAVE_CBZ): Define.
16714 (TARGET_IDIV): Set for all Thumb targets provided they have hardware
16716 * config/arm/arm.md (divsi3): New unpredicable alternative for ARMv8-M
16717 Baseline. Make initial alternative TARGET_32BIT only.
16718 (udivsi3): Likewise.
16719 * config/arm/thumb1.md (thumb1_cbz): New define_insn.
16720 * doc/sourcebuild.texi (arm_thumb1_cbz_ok): Document new effective
16723 2016-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
16725 * config/arm/arm.h (TARGET_HAVE_MOVT): Include ARMv8-M as having MOVT.
16726 * config/arm/arm.c (arm_arch_name): (const_ok_for_op): Check MOVT/MOVW
16727 availability with TARGET_HAVE_MOVT.
16728 (thumb_legitimate_constant_p): Strip the high part of a label_ref.
16729 (thumb1_rtx_costs): Also return 0 if setting a half word constant and
16730 MOVW is available and replace (unsigned HOST_WIDE_INT) INTVAL by
16732 (thumb1_size_rtx_costs): Make set of half word constant also cost 1
16733 extra instruction if MOVW is available. Use a cost variable
16734 incremented by COSTS_N_INSNS (1) when the condition match rather than
16735 returning an arithmetic expression based on COSTS_N_INSNS. Make
16736 constant with bottom half word zero cost 2 instruction if MOVW is
16738 * config/arm/arm.md (define_attr "arch"): Add v8mb.
16739 (define_attr "arch_enabled"): Set to yes if arch value is v8mb and
16740 target is ARMv8-M Baseline.
16741 (arm_movt): New unpredicable alternative for ARMv8-M Baseline.
16742 (arm_movtas_ze): Likewise.
16743 * config/arm/thumb1.md (thumb1_movdi_insn): Add ARMv8-M Baseline only
16744 alternative for constants satisfying j constraint.
16745 (thumb1_movsi_insn): Likewise.
16746 (movsi splitter for K alternative): Tighten condition to not trigger
16747 if movt is available and j constraint is satisfied.
16748 (Pe immediate splitter): Likewise.
16749 (thumb1_movhi_insn): Add ARMv8-M Baseline only alternative for
16750 constant fitting in an halfword to use MOVW.
16751 * doc/sourcebuild.texi (arm_thumb1_movt_ok): Document new ARM
16754 2016-07-13 Richard Biener <rguenther@suse.de>
16756 PR middle-end/71104
16757 * gimplify.c (gimplify_modify_expr): Gimplify the RHS before
16758 gimplifying the LHS. Make sure to gimplify a returning twice
16759 call LHS without using SSA names.
16761 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16763 * tree-data-ref.c (find_data_references_in_stmt): Remove
16764 unnecessary call to vec::release.
16765 (graphite_find_data_references_in_stmt): Likewise.
16766 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Likewise.
16767 * tree-vect-stmts.c (vectorizable_condition): Likewise.
16769 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16771 * cfgexpand.c (expand_used_vars): Make the type of a local
16773 * genmatch.c (lower_for): Likewise.
16774 * haifa-sched.c (haifa_sched_init): Likewise.
16775 (add_to_speculative_block): Likewise.
16776 (create_check_block_twin): Likewise.
16777 * predict.c (handle_missing_profiles): Likewise.
16778 * tree-data-ref.c (loop_nest_has_data_refs): Likewise.
16779 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Likewise.
16780 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
16782 (maybe_lower_iteration_bound): Likewise.
16783 * tree-ssa-sccvn.c (DFS): Likewise.
16784 * tree-stdarg.c (reachable_at_most_once): Likewise.
16785 * tree-vect-stmts.c (vectorizable_conversion): Likewise.
16786 (vectorizable_store): Likewise.
16788 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16790 * tree-ssa-sccvn.c (sccvn_dom_walker::~sccvn_dom_walker): remove.
16791 (sccvn_dom_walker): make cond_stack an auto_vec.
16793 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16795 * ree.c (struct ext_state): Make type of members auto_vec.
16796 (find_and_remove_re): Adjust.
16798 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16800 * cfgexpand.c (struct stack_vars_data): Make type of fields
16802 (expand_used_vars): Adjust.
16804 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16806 * ipa.c (record_cdtor_fn): Adjust.
16807 (build_cdtor_fns): Likewise.
16808 (ipa_cdtor_merge): Make static_ctors and static_dtors local
16811 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16813 * genextract.c (struct accum_extract): Add constructor and make
16815 (gen_insn): Adjust.
16817 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16819 * tree.c (struct free_lang_data_d): Add constructor and change
16820 types of members to ones that automatically manage resources.
16821 (fld_worklist_push): Adjust.
16822 (find_decls_types): Likewise.
16823 (find_decls_types_in_eh_region): Likewise.
16824 (free_lang_data_in_cgraph): Stop manually creating and
16825 destroying members of free_lang_data_d.
16827 2016-07-13 Uros Bizjak <ubizjak@gmail.com>
16829 PR rtl-optimization/68961
16830 * config/i386/sse.md (movsd/movhpd to movupd peephole2s): Add new
16831 peephole variant. Use sse_reg_operand predicates.
16833 2016-07-12 Uros Bizjak <ubizjak@gmail.com>
16835 * config/i386/predicates.md (x86_64_immediate_operand)
16836 <case CONST_INT>: Remove unneeded truncation to DImode.
16837 <case CONST>: Ditto.
16838 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
16840 2016-07-12 Michael Meissner <meissner@linux.vnet.ibm.com>
16843 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal):
16844 The xxperm and xxpermr instructions require that the 2nd input
16845 operand overlap with the output operand, and not the 1st.
16846 (altivec_vperm_v8hiv16qi): Likewise.
16847 (altivec_vperm_<mode>_uns_internal): Likewise.
16848 (altivec_vpermr_<mode>_internal): Likewise.
16849 (vperm_v8hiv4si): Likewise.
16850 (vperm_v16qiv8hi): Likewise.
16852 2016-07-12 Nathan Sidwell <nathan@acm.org>
16854 * config/arm/arm.c (arm_option_override): Set MASK_SINGLE_PIC_BASE
16855 when -mno-pic-data-is-text-relative is in effect, by default.
16856 * doc/invoke.texi (mpic-data-is-text-relative): Document new
16857 behavior and clarify.
16859 2016-07-12 Martin Liska <mliska@suse.cz>
16861 * params.def: Add avg-loop niter.
16862 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use the param.
16863 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
16864 * doc/invoke.texi: Document the new parameter.
16866 2016-07-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16868 PR middle-end/71700
16869 * expr.c (store_constructor): Mask sign-extended bits when widening
16870 sub-word constructor element at the start of a word.
16872 2016-07-12 Martin Liska <mliska@suse.cz>
16874 * Makefile.in: Append rule for params-options.h.
16875 * params-options.h: New file.
16877 2016-07-12 Martin Liska <mliska@suse.cz>
16879 * ira-build.c (mark_loops_for_removal): Properly iterate
16882 2016-07-12 Steven Bosscher <steven@gcc.gnu.org>
16883 Richard Biener <rguenther@suse.de>
16885 PR tree-optimization/23286
16886 PR tree-optimization/70159
16887 * doc/invoke.texi: Document -fcode-hoisting.
16888 * common.opt (fcode-hoisting): New flag.
16889 * opts.c (default_options_table): Enable -fcode-hoisting at -O2+.
16890 * tree-ssa-pre.c (pre_stats): Add hoist_insert.
16891 (do_regular_insertion): Rename to ...
16892 (do_pre_regular_insertion): ... this and amend general comments
16893 on insertion strathegy.
16894 (do_partial_partial_insertion): Rename to ...
16895 (do_pre_partial_partial_insertion): ... this.
16896 (do_hoist_insertion): New function.
16897 (insert_aux): Take flags on whether to do PRE and/or hoist insertion
16898 and call do_hoist_insertion properly.
16900 (pass_pre::gate): Enable also if -fcode-hoisting is enabled.
16901 (pass_pre::execute): Register hoist_insert stats.
16903 2016-07-12 Jakub Jelinek <jakub@redhat.com>
16905 PR middle-end/71716
16906 * gimple-fold.c (optimize_atomic_compare_exchange_p): Return false
16907 for SCALAR_FLOAT_TYPE_P type of expected var, or if TYPE_PRECISION
16908 is different from mode's bitsize. Small cleanup.
16910 2016-07-12 Richard Biener <rguenther@suse.de>
16912 PR rtl-optimization/68961
16913 * fwprop.c (propagate_rtx): Allow SUBREGs of VEC_CONCAT and CONCAT
16914 to simplify to a non-constant.
16916 2016-07-11 Jakub Jelinek <jakub@redhat.com>
16918 PR middle-end/71758
16919 * omp-low.c (expand_omp_target): Gimplify device.
16921 PR tree-optimization/71823
16922 * tree-vect-stmts.c (vectorizable_operation): Use vect_get_vec_defs
16923 to get vec_oprnds2 from op2.
16925 2016-07-11 Uros Bizjak <ubizjak@gmail.com>
16927 * config/i386/predicates.md (x86_64_immediate_operand) <case CONST>:
16928 Hoist common subexpressions.
16929 (x86_64_zext_immediate_operand) <case CONST>: Ditto.
16931 2016-07-11 Pat Haugen <pthaugen@us.ibm.com>
16934 * config/rs6000/rs6000.md (stfiwx): Change constraint to 'wu' to
16935 prevent generation of 'stxsiwx' on pre Power8 hardware.
16937 2016-07-11 David Malcolm <dmalcolm@redhat.com>
16939 * input.c: Include cpplib.h.
16940 (selftest::temp_source_file): New class.
16941 (selftest::temp_source_file::temp_source_file): New ctor.
16942 (selftest::temp_source_file::~temp_source_file): New dtor.
16943 (selftest::should_have_column_data_p): New function.
16944 (selftest::test_should_have_column_data_p): New function.
16945 (selftest::temp_line_table): New class.
16946 (selftest::temp_line_table::temp_line_table): New ctor.
16947 (selftest::temp_line_table::~temp_line_table): New dtor.
16948 (selftest::test_accessing_ordinary_linemaps): Add case_ param; use
16949 it to create a temp_line_table.
16950 (selftest::assert_loceq): Only verify LOCATION_COLUMN for
16951 locations that are known to have column data.
16952 (selftest::line_table_case): New struct.
16953 (selftest::test_reading_source_line): Move tempfile handling
16954 to class temp_source_file.
16955 (ASSERT_TOKEN_AS_TEXT_EQ): New macro.
16956 (selftest::assert_token_loc_eq): New function.
16957 (ASSERT_TOKEN_LOC_EQ): New macro.
16958 (selftest::test_lexer): New function.
16959 (selftest::boundary_locations): New array.
16960 (selftest::input_c_tests): Call test_should_have_column_data_p.
16961 Loop over a test matrix of interesting values of location and
16962 default_range_bits, calling test_lexer on each case in the matrix.
16963 Move call to test_accessing_ordinary_linemaps into the matrix.
16964 * selftest.h (ASSERT_EQ): Reimplement in terms of...
16965 (ASSERT_EQ_AT): New macro.
16967 2016-07-11 H.J. Lu <hongjiu.lu@intel.com>
16970 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
16971 Don't convert TImode in debug insn.
16973 2016-07-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
16975 Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG.
16976 * tree-core.h (tree_base::nothrow_flag): Adjust comment.
16977 (tree_type_common::lang_flag_7): New.
16978 (tree_type_common::spare): Reduce size.
16979 * tree.h (TYPE_ALIGN_OK): Remove.
16980 (TYPE_LANG_FLAG_7): New.
16981 (get_inner_reference): Adjust header.
16982 * print-tree.c (print_node): Adjust.
16983 * expr.c (get_inner_reference): Remove parameter keep_aligning.
16984 (get_bit_range, expand_assignment, expand_expr_addr_expr_1): Adjust
16985 calls to get_inner_reference.
16986 (expand_expr_real_1): Adjust call to get_inner_reference. Remove
16987 handling of TYPE_ALIGN_OK.
16988 * builtins.c (get_object_alignment_2): Adjust call to
16989 get_inner_reference. Remove handling of VIEW_CONVERT_EXPR.
16990 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove handling of
16992 * asan.c (instrument_derefs): Adjust calls to get_inner_reference.
16993 * cfgexpand.c (expand_debug_expr): Likewise.
16994 * dbxout.c (dbxout_expand_expr): Likewise.
16995 * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref,
16996 loc_list_from_tree, fortran_common): Likewise.
16997 * fold-const.c (optimize_bit_field_compare,
16998 decode_field_reference, fold_unary_loc, fold_comparison,
16999 split_address_to_core_and_offset): Likewise.
17000 * gimple-laddress.c (execute): Likewise.
17001 * gimple-ssa-strength-reduction.c (slsr_process_ref): Likewise.
17002 * gimplify.c (gimplify_scan_omp_clauses): Likewise.
17003 * hsa-gen.c (gen_hsa_addr): Likewise.
17004 * simplifx-rtx.c (delegitimize_mem_from_attrs): Likewise.
17005 * tsan.c (instrument_expr): Likewise.
17006 * ubsan.c (instrument_bool_enum_load, instrument_object_size): Likewise.
17007 * tree.c (verify_type_variant): Remove handling of TYPE_ALIGN_OK.
17008 * tree-affine.c (tree_to_aff_combination,
17009 get_inner_reference_aff): Adjust calls to get_inner_reference.
17010 * tree-data-ref.c (split_constant_offset_1,
17011 dr_analyze_innermost): Likewise.
17012 * tree-scalar-evolution.c (interpret_rhs_expr): Likewise.
17013 * tree-sra.c (ipa_sra_check_caller): Likewise.
17014 * tree-ssa-loop-ivopts.c (split_address_cost): Likewise.
17015 * tree-ssa-math-opts.c (find_bswap_or_nop_load,
17016 bswap_replace): Likewise.
17017 * tree-vect-data-refs.c (vect_check_gather,
17018 vect_analyze_data_refs): Likewise.
17019 * config/mips/mips.c (r10k_safe_mem_expr_p): Likewise.
17020 * config/pa/pa.c (pa_emit_move_sequence): Remove handling of
17023 2016-07-11 David Malcolm <dmalcolm@redhat.com>
17025 * Makefile.in (selftest-valgrind): New phony target.
17026 * function-tests.c (selftest::build_cfg): Delete pass instances
17027 created by the test.
17028 (selftest::convert_to_ssa): Likewise.
17029 (selftest::test_expansion_to_rtl): Likewise.
17030 * tree-cfg.c (selftest::test_linear_chain): Release dominator
17032 (selftest::test_diamond): Likewise.
17034 2016-07-11 Richard Biener <rguenther@suse.de>
17036 PR tree-optimization/71816
17037 * tree-ssa-pre.c (compute_avail): Adjust alignment of ref rather
17038 than replacing all of its operands.
17040 2016-07-11 Alan Modra <amodra@gmail.com>
17042 * config/rs6000/rs6000.md (UNSPEC_DOLOOP): New unspec.
17043 (ctr<mode>): Add unspec.
17044 (ctr<mode>_internal*): Likewise.
17046 2016-07-08 James Bowman <james.bowman@ftdichip.com>
17048 * config/ft32/ft32.c (ft32_elf_encode_section_info): New function.
17049 * config/ft32/ft32.h (ASM_OUTPUT_SYMBOL_REF): New function.
17051 2016-07-08 Vladimir Makarov <vmakarov@redhat.com>
17053 PR rtl-optimization/71621
17054 * lra-constraints.c (process_alt_operands): Check combination of
17055 reg class and mode.
17057 2016-07-08 Jason Merrill <jason@redhat.com>
17058 Richard Biener <rguenther@suse.de>
17060 P0145: Refining Expression Order for C++.
17061 * gimplify.c (initial_rhs_predicate_for): New.
17062 (gimplfy_modify_expr): Gimplify RHS before LHS.
17064 2016-07-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17067 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
17068 Allow standard error handling to take over when a wrong number
17069 of arguments is presented to __builtin_vec_ld () or
17070 __builtin_vec_st ().
17072 2016-07-08 Jiong Wang <jiong.wang@arm.com>
17074 * config/aarch64/aarch64-simd-builtins.def (smax): Remove float
17079 * config/aarch64/arm_neon.h (vmaxnm_f32): Use
17080 __builtin_aarch64_fmaxv2sf.
17081 (vmaxnmq_f32): Likewise.
17082 (vmaxnmq_f64): Likewise.
17083 (vminnm_f32): Likewise.
17084 (vminnmq_f32): Likewise.
17085 (vminnmq_f64): Likewise.
17087 2016-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
17090 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Do not
17091 enable -mfloat128-hardware by default.
17092 (ISA_3_0_MASKS_IEEE): New macro to give all of the VSX options
17093 that IEEE 128-bit hardware support needs.
17094 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
17095 -mcpu=power9 -mfloat128, enable -mfloat128-hardware by default.
17096 Use ISA_3_0_MASKS_IEEE as the set of options that IEEE 128-bit
17097 floating point requires.
17098 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
17099 -mfloat128 and -mfloat128-hardware changes.
17101 2016-07-08 Alan Hayward <alan.hayward@arm.com>
17103 PR tree-optimization/71667
17104 * tree-vect-loop.c (vectorizable_live_operation): ignore DEBUG stmts
17106 2016-07-08 Martin Liska <mliska@suse.cz>
17108 PR middle-end/71606
17109 * fold-const.c (fold_convertible_p): As COMPLEX_TYPE
17110 folding produces SAVE_EXPRs, thus return false for the type.
17112 2016-07-07 Martin Liska <mliska@suse.cz>
17114 * file-find.c (remove_prefix): New function.
17115 * file-find.h (remove_prefix): Declare the function.
17116 * gcc-ar.c (main): Skip a folder of the wrapper if
17117 a wrapped binary would point to the same file.
17119 2016-07-07 Jan Hubicka <jh@suse.cz>
17121 * tree-scalar-evolution.c (iv_can_overflow_p): export.
17122 * tree-scalar-evolution.h (iv_can_overflow_p): Declare.
17123 * tree-ssa-loop-ivopts.c (alloc_iv): Use it.
17125 2016-07-07 Ilya Enkovich <ilya.enkovich@intel.com>
17128 * ipa-inline-analysis.c (compute_inline_parameters): Set
17129 local.can_change_signature to false for intrumentation
17132 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
17134 * config/arm/arm.h (TARGET_USE_MOVT): Check MOVT/MOVW availability
17135 with TARGET_HAVE_MOVT.
17136 (TARGET_HAVE_MOVT): Define.
17137 * config/arm/arm.c (const_ok_for_op): Check MOVT/MOVW
17138 availability with TARGET_HAVE_MOVT.
17139 * config/arm/arm.md (arm_movt): Use TARGET_HAVE_MOVT to check MOVT
17141 (addsi splitter): Use TARGET_THUMB && TARGET_HAVE_MOVT rather than
17143 (symbol_refs movsi splitter): Remove TARGET_32BIT check.
17144 (arm_movtas_ze): Use TARGET_HAVE_MOVT to check MOVT availability.
17145 * config/arm/constraints.md (define_constraint "j"): Use
17146 TARGET_HAVE_MOVT to check MOVT availability.
17148 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
17150 * config/arm/arm-protos.h: Reindent FL_FOR_* macro definitions.
17152 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
17154 * config/arm/arm-arches.def (armv8-m.base): Define new architecture.
17155 (armv8-m.main): Likewise.
17156 (armv8-m.main+dsp): Likewise.
17157 * config/arm/arm-protos.h (FL_FOR_ARCH8M_BASE): Define.
17158 (FL_FOR_ARCH8M_MAIN): Likewise.
17159 * config/arm/arm-tables.opt: Regenerate.
17160 * config/arm/bpabi.h: Add armv8-m.base, armv8-m.main and
17161 armv8-m.main+dsp to BE8_LINK_SPEC.
17162 * config/arm/arm.h (TARGET_HAVE_LDACQ): Exclude ARMv8-M.
17163 (enum base_architecture): Add BASE_ARCH_8M_BASE and BASE_ARCH_8M_MAIN.
17164 * config/arm/arm.c (arm_arch_name): Increase size to work with ARMv8-M
17165 Baseline and Mainline.
17166 (arm_option_override_internal): Also disable arm_restrict_it when
17167 !arm_arch_notm. Update comment for -munaligned-access to also cover
17169 (arm_file_start): Increase buffer size for printing architecture name.
17170 * doc/invoke.texi: Document architectures armv8-m.base, armv8-m.main
17171 and armv8-m.main+dsp.
17172 (mno-unaligned-access): Clarify that this is disabled by default for
17173 ARMv8-M Baseline architectures as well.
17175 2016-07-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
17177 * config/arm/elf.h: Use __ARM_ARCH_ISA_THUMB and __ARM_ARCH_ISA_ARM to
17178 decide whether to prevent some libgcc routines being included for some
17179 multilibs rather than __ARM_ARCH_6M__ and add comment to indicate the
17180 link between this condition and the one in
17181 libgcc/config/arm/lib1func.S.
17183 2016-07-07 Richard Biener <rguenther@suse.de>
17185 * tree-ssa-pre.c: Include alias.h.
17186 (compute_avail): If we have multiple VN_REFERENCEs with the
17187 same hashtable entry adjust that to make it a valid replacement
17188 for all of them with respect to alignment and aliasing
17189 when doing insertion.
17190 * tree-ssa-sccvn.h (vn_reference_operands_for_lookup): Declare.
17191 * tree-ssa-sccvn.c (vn_reference_operands_for_lookup): New function.
17193 2016-07-06 Segher Boessenkool <segher@kernel.crashing.org>
17197 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
17198 *ctr<mode>_internal5, *ctr<mode>_internal6): Add *wi to the output
17201 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17203 * var-tracking.c (struct adjust_mem_data): Make side_effects a vector.
17204 (adjust_mems): Adjust.
17205 (adjust_insn): Likewise.
17206 (prepare_call_arguments): Likewise.
17208 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17210 * gcse.c (struct ls_expr): Make stores field a vector.
17211 (ldst_entry): Adjust.
17212 (free_ldst_entry): Likewise.
17213 (print_ldst_list): Likewise.
17214 (compute_ld_motion_mems): Likewise.
17215 (update_ld_motion_stores): Likewise.
17217 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17219 * gcse.c (struct ls_expr): Remove loads field.
17220 (ldst_entry): Adjust.
17221 (free_ldst_entry): Likewise.
17222 (print_ldst_list): Likewise.
17223 (compute_ld_motion_mems): Likewise.
17225 2016-07-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17227 * store-motion.c (struct st_expr): Make antic_stores a vector.
17228 (st_expr_entry): Adjust.
17229 (free_st_expr_entry): Likewise.
17230 (print_store_motion_mems): Likewise.
17231 (find_moveable_store): Likewise.
17232 (compute_store_table): Likewise.
17233 (remove_reachable_equiv_notes): Likewise.
17234 (replace_store_insn): Likewise.
17235 (build_store_vectors): Likewise.
17237 2016-07-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17239 * config/arm/driver-arm.c (arm_cpu_table): Add entries for cortex-a32,
17240 cortex-a35, cortex-a53, cortex-a57, cortex-a72, cortex-a73.
17242 2016-07-06 Yuri Rumyantsev <ysrumyan@gmail.com>
17244 PR tree-optimization/71518
17245 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust
17246 misalign also for outer loops with negative step.
17248 2016-07-06 Wilco Dijkstra <wdijkstr@arm.com>
17250 * config/arm/cortex-a53.md: Use final_presence_set for in-order.
17251 (cortex_a53_shift): Add mov_shift.
17252 (cortex_a53_shift_reg): Add new reservation for register shifts.
17253 (cortex_a53_alu): Remove bfm.
17254 (cortex_a53_alu_shift): Add bfm, remove mov_shift.
17255 (cortex_a53_alu_extr): Add new reservation for EXTR.
17256 (bypasses): Improve bypass modelling.
17258 2016-07-06 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
17261 * config/avr/avr.c (avr_asm_select_section): Strip off
17262 SECTION_DECLARED from flags when calling get_section.
17264 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
17266 * tree-vectorizer.h (vect_memory_access_type): Add
17267 VMAT_INVARIANT, VMAT_CONTIGUOUS_DOWN and VMAT_CONTIGUOUS_REVERSED.
17268 * tree-vect-stmts.c (compare_step_with_zero): New function.
17269 (perm_mask_for_reverse): Move further up file.
17270 (get_group_load_store_type): Stick to VMAT_ELEMENTWISE if the
17272 (get_negative_load_store_type): New function.
17273 (get_load_store_type): Call it. Add an ncopies argument.
17274 (vectorizable_mask_load_store): Update call accordingly and
17275 remove tests for negative steps.
17276 (vectorizable_store, vectorizable_load): Likewise. Handle new
17277 memory_access_types.
17279 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
17281 * tree-vectorizer.h (vect_memory_access_type): New enum.
17282 (_stmt_vec_info): Add a memory_access_type field.
17283 (STMT_VINFO_MEMORY_ACCESS_TYPE): New macro.
17284 (vect_model_store_cost): Take an access type instead of a boolean.
17285 (vect_model_load_cost): Likewise.
17286 * tree-vect-slp.c (vect_analyze_slp_cost_1): Update calls to
17287 vect_model_store_cost and vect_model_load_cost.
17288 * tree-vect-stmts.c (vec_load_store_type): New enum.
17289 (vect_model_store_cost): Take an access type instead of a
17290 store_lanes_p boolean. Simplify tests.
17291 (vect_model_load_cost): Likewise, but for load_lanes_p.
17292 (get_group_load_store_type, get_load_store_type): New functions.
17293 (vectorizable_store): Use get_load_store_type. Record the access
17294 type in STMT_VINFO_MEMORY_ACCESS_TYPE.
17295 (vectorizable_load): Likewise.
17296 (vectorizable_mask_load_store): Likewise. Replace is_store
17297 variable with vls_type.
17299 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
17301 * tree-vectorizer.h (vect_grouped_load_supported): Add a
17302 single_element_p parameter.
17303 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
17304 Check the PR65518 case here rather than in vectorizable_load.
17305 * tree-vect-loop.c (vect_analyze_loop_2): Update call accordignly.
17306 * tree-vect-stmts.c (vectorizable_load): Likewise.
17308 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
17310 * tree-vectorizer.h (gather_scatter_info): New structure.
17311 (vect_check_gather_scatter): Return a bool rather than a decl.
17312 Replace return-by-pointer arguments with a single
17313 gather_scatter_info *.
17314 * tree-vect-data-refs.c (vect_check_gather_scatter): Likewise.
17315 (vect_analyze_data_refs): Update call accordingly.
17316 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
17317 (vectorizable_mask_load_store): Likewise. Also record the
17318 offset dt and vectype in the gather_scatter_info.
17319 (vectorizable_store): Likewise.
17320 (vectorizable_load): Likewise.
17322 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
17324 * tree-vect-stmts.c (vect_model_store_cost): For non-SLP
17325 strided groups, use the cost of N scalar accesses instead
17326 of ncopies vector accesses.
17327 (vect_model_load_cost): Likewise.
17329 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
17331 * tree-vect-stmts.c (vect_cost_group_size): Delete.
17332 (vect_model_store_cost): Avoid calling it. Use first_stmt_p
17333 variable to indicate when once-per-group costs are being used.
17334 (vect_model_load_cost): Likewise. Fix comment and misindented code.
17336 2016-07-06 Richard Sandiford <richard.sandiford@arm.com>
17338 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary
17339 peeling-for-gaps condition.
17341 2016-07-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17343 * config/s390/s390.c (s390_expand_vec_init): Force initializer
17344 element to register if it doesn't match general_operand.
17346 2016-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
17347 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17349 * config/rs6000/rs6000-protos.h (rs6000_split_signbit): New
17351 * config/rs6000/rs6000.c (rs6000_split_signbit): New function.
17352 * config/rs6000/rs6000.md (UNSPEC_SIGNBIT): New constant.
17353 (SIGNBIT): New mode iterator.
17354 (Fsignbit): New mode attribute.
17355 (signbit<mode>2): Change operand1 to match FLOAT128 instead of
17356 IBM128; dispatch to gen_signbit{kf,tf}2_dm for __float128
17357 when direct moves are available.
17358 (signbit<mode>2_dm): New define_insn_and_split).
17359 (signbit<mode>2_dm2): New define_insn.
17361 2016-07-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17363 PR rtl-optimization/71594
17364 * ifcvt.c (noce_convert_multiple_sets): Wrap new_val or old_val
17365 into subregs of appropriate mode before trying to emit a conditional
17368 2016-07-05 Jan Hubicka <jh@suse.cz>
17370 * tree-scalar-evolution.c (iv_can_overflow_p): New function.
17371 (simple_iv): Use it.
17373 2016-07-05 Jan Hubicka <jh@suse.cz>
17375 * tree-ssa-loop-niter.c (nowrap_type_p): Use ANY_INTEGRAL_TYPE_P.
17377 2016-07-05 Jiong Wang <jiong.wang@arm.com>
17379 * lra-constraints.c (process_alt_operands): Don't add spilling cost for
17382 2016-07-05 Jan Hubicka <jh@suse.cz>
17384 * tree-scalar-evoluiton.c (simple_iv): Use nowrap_type to check if
17387 2016-07-05 Richard Biener <rguenther@suse.de>
17389 * gimple-ssa-split-paths.c (find_block_to_duplicate_for_splitting_pa):
17390 Handle empty else block.
17391 (is_feasible_trace): Likewise.
17392 (split_paths): Likewise.
17394 2016-07-05 Richard Biener <rguenther@suse.de>
17396 * tree-loop-distribution.c (distribute_loop): Fix issue with
17397 the cost model loop.
17399 2016-07-05 Christophe Lyon <christophe.lyon@linaro.org>
17401 * config/arm/neon-testgen.ml: Delete.
17402 * config/arm/neon.ml: Delete.
17404 2016-07-04 Jakub Jelinek <jakub@redhat.com>
17407 * tree.c (attribute_value_equal): Use get_attribute_name instead of
17408 directly using TREE_PURPOSE.
17410 2016-07-04 Jiong Wang <jiong.wang@arm.com>
17412 * config/aarch64/aarch64.h: Rename "ARMv8.1" to "ARMv8.1-A".
17413 * config/aarch64/aarch64_neon.h: Likewise.
17414 * config/aarch64/arm_neon.h: Likewise.
17415 * config/aarch64/atomics.md: Likewise.
17416 * config/aarch64/aarch64-simd-builtins.def: Likewise.
17417 * doc/invoke.texi: Likewise.
17419 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
17421 * config/s390/s390.md: Add "z13" cpu_facility.
17422 ("*mov<mode>cc"): Add support for z13 instructions lochi and locghi.
17423 * config/s390/predicates.md ("loc_operand"): New predicate for "load on
17424 condition" type instructions.
17426 2016-07-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
17427 Jeff Law <law@redhat.com>
17429 * explow.c (allocate_dynamic_stack_space): Simplify knowing that
17430 MUST_ALIGN was always true and extra_align ist always BITS_PER_UNIT.
17432 2016-07-04 Yuri Rumyantsev <ysrumyan@gmail.com>
17434 * config/i386/i386.c (ix86_expand_vec_perm): Add handle one-operand
17435 permutation for TARGET_AVX512F.
17436 (ix86_expand_vec_one_operand_perm_avx512): New function.
17437 (expand_vec_perm_1): Invoke introduced function.
17438 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
17439 it may be not valid after vectorization.
17441 2016-07-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17444 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix
17445 typo in comment. Only force to memory if it is a weak
17446 external reference.
17448 2016-07-04 Matthew Wahab <matthew.wahab@arm.com>
17449 Jiong Wang <jiong.wang@arm.com>
17451 * config/aarch64/aarch64-arches.def: Add "armv8.2-a".
17452 * config/aarch64/aarch64.h (AARCH64_FL_V8_2): New.
17453 (AARCH64_FL_F16): New.
17454 (AARCH64_FL_FOR_ARCH8_2): New.
17455 (AARCH64_ISA_8_2): New.
17456 (AARCH64_ISA_F16): New.
17457 (TARGET_FP_F16INST): New.
17458 (TARGET_SIMD_F16INST): New.
17459 * config/aarch64/aarch64-option-extensions.def ("fp16"): New entry.
17460 ("fp"): Disabling "fp" also disables "fp16".
17461 * config/aarch64/aarch64-c.c (arch64_update_cpp_builtins):
17462 Conditionally define __ARM_FEATURE_FP16_SCALAR_ARITHMETIC
17463 and __ARM_FEATURE_FP16_VECTOR_ARITHMETIC.
17464 * doc/invoke.texi (AArch64 Options): Document "armv8.2-a" and "fp16".
17466 2016-07-04 Jan Beulich <jbeulich@suse.com>
17468 * gcc.c (default_compilers["@c-header"]): Conditionalize "-o".
17470 2016-07-01 Michael Meissner <meissner@linux.vnet.ibm.com>
17473 * config/rs6000/vsx.md (vsx_splat_v4sf_internal): When splitting
17474 the insns, use an insn form that does not adjust the offset on
17475 little endian systems.
17477 2016-07-01 Jan Beulich <jbeulich@suse.com>
17479 * varasm.c (get_variable_section): Validate initializer in
17480 named .bss-like sections.
17482 2016-07-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
17484 * config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
17485 Exchange the order of the second and third operands in the vpermr
17486 instruction tmeplate.
17488 2016-07-01 Peter Bergner <bergner@vnet.ibm.com>
17491 * config/rs6000/rs6000.c (rs6000_secondary_reload_simple_move):
17492 Disallow TDmode values.
17494 2016-07-01 Alan Modra <amodra@gmail.com>
17496 PR rtl-optimization/71709
17497 * ira-lives.c (find_call_crossed_cheap_reg): Exit loop on arg reg
17498 being set, not referenced.
17500 2016-07-01 Yuri Rumyantsev <ysrumyan@gmail.com>
17502 PR tree-optimization/70729
17503 * tree-vectorizer.c (adjust_simduid_builtins): Nullify safelen field
17504 of loop since it can be not valid after transformation.
17506 2016-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17508 * config/arm/arm.c (thumb_reload_in_hi): Delete.
17509 * config/arm/arm-protos.h (thumb_reload_in_hi): Delete prototype.
17511 2016-07-01 Eric Botcazou <ebotcazou@adacore.com>
17513 * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
17516 2016-06-30 Michael Meissner <meissner@linux.vnet.ibm.com>
17519 * config/rs6000/constraints.md (wY constraint): New constraint to
17520 match the requirements for the LXSD and STXSD instructions.
17521 * config/rs6000/predicates.md (offsettable_mem_14bit_operand): New
17522 predicate to match the requirements for the LXSD and STXSD
17524 * config/rs6000/rs6000.md (mov<mode>_hardfloat32, FMOVE64 case):
17525 Use constaint wY for LXSD/STXSD instructions instead of 'o' or 'Y'
17526 to make sure that the bottom 2 bits of offset are 0, the address
17527 form is offsettable, and no updating is done in the address mode.
17528 (mov<mode>_hardfloat64, FMOVE64 case): Likewise.
17529 (movdi_internal32): Likewise
17530 (movdi_internal64): Likewise.
17532 2016-06-30 Jakub Jelinek <jakub@redhat.com>
17534 PR tree-optimization/71707
17535 * tree-ssa-strlen.c (get_stridx_plus_constant): Handle already present
17536 strinfo even for ADDR_EXPR ptr.
17538 2016-06-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
17540 * config/rs6000/altivec.md (darn_32): Change the condition to
17541 TARGET_P9_MISC instead of TARGET_MODULO.
17542 (darn_raw): Replace TARGET_MODULO with TARGET_P9_MISC in the
17543 condition expression.
17544 (darn): Replace TARGET_MODULO with TARGET_P9_MISC in the
17545 condition expression.
17546 * config/rs6000/dfp.md (UNSPEC_DTSTSFI): New unspec constant.
17547 (DFP_TEST): New code iterator.
17548 (dfptstsfi_<code>_mode>): New define_expand.
17549 (*dfp_sgnfcnc_<mode>): New define_insn.
17550 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_0): Move this macro
17551 definition next to BU_P9_MISC_1 definition and change the MASK
17552 value to RS6000_BTM_P9_MISC.
17553 (BU_P9_MISC_1): Change the MASK value to RS6000_BTM_P9_MISC.
17554 (BU_P9_64BIT_MISC_0): Likewise.
17555 (BU_P9_DFP_MISC_0): New macro definition.
17556 (BU_P9_DFP_MISC_1): New macro definition.
17557 (BU_P9_DFP_MISC_2): New macro definition.
17558 (BU_P9_DFP_OVERLOAD_1): New macro definition.
17559 (BU_P9_DFP_OVERLOAD_2): New macro definition.
17560 (BU_P9_DFP_OVERLOAD_3): New macro definition.
17561 (TSTSFI_LT_DD): New BU_P9_DFP_MISC_2.
17562 (TSTSFI_LT_TD): Likewise.
17563 (TSTSFI_EQ_DD): Likewise.
17564 (TSTSFI_EQ_TD): Likewise.
17565 (TSTSFI_GT_DD): Likewise.
17566 (TSTSFI_GT_TD): Likewise.
17567 (TSTSFI_OV_DD): Likewise.
17568 (TSTSFI_OV_TD): Likewise.
17569 (TSTSFI_LT): New BU_P9_DFP_OVERLOAD_2.
17570 (TSTSFI_LT_DD): Likewise.
17571 (TSTSFI_LT_TD): Likewise.
17572 (TSTSFI_EQ): Likewise.
17573 (TSTSFI_EQ_DD): Likewise.
17574 (TSTSFI_EQ_TD): Likewise.
17575 (TSTSFI_GT): Likewise.
17576 (TSTSFI_GT_DD): Likewise.
17577 (TSTSFI_GT_TD): Likewise.
17578 (TSTSFI_OV): Likewise.
17579 (TSTSFI_OV_DD): Likewise.
17580 (TSTSFI_OV_TD): Likewise.
17581 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
17582 overloaded test significance functions.
17583 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
17584 OPTION_MASK_P9_MISC into the representation of this mask.
17585 (POWERPC_MASKS): Add OPTION_MASK_P9_MISC into the representation
17587 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Set the
17588 RS6000_BTM_P9_MISC flag in the return value if TARGET_P9_MISC is
17590 (rs6000_expand_binop_builtin): Enforce that argument 0 of the exp
17591 argument is a 6-bit unsigned literal value if the icode argument
17592 represents a DFP test significance built-in call.
17593 (rs6000_invalid_builtin): Add support for the RS6000_BTM_P9_MISC
17594 flag used independently and in combination with the
17595 RS6000_BTM_64BIT flag.
17596 (rs6000_opt_masks): Add entry for power9-misc command-line option.
17597 (rs6000_builtin_mask_names): Add entry for power9-misc
17598 command-line option.
17599 * config/rs6000/rs6000.h: Redefine TARGET_P9_MISC as 0 if
17600 HAVE_AS_POWER9 is not a defined macro. Define MASK_P9_MISC and
17601 RS6000_BTM_P9_MISC macros.
17602 * config/rs6000/rs6000.opt: Add support for the -mpower9-misc
17603 option and change the description of the -mpower9-vector option to
17604 enable only vector instructions, removing its erroneously claimed
17605 support for scalar instructions.
17606 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
17607 the ISA 3.0 digital floating point test significance built-in
17610 2016-06-30 Wilco Dijkstra <wdijkstr@arm.com>
17612 * config/aarch64/aarch64.c (cortexa35_tunings):
17613 Enable AES fusion. Use cortexa57_branch_cost.
17614 (cortexa53_tunings): Use cortexa57_branch_cost.
17615 (cortexa72_tunings): Use cortexa57_branch_cost.
17616 Use AUTOPREFETCHER_WEAK.
17617 (cortexa73_tunings): Use cortexa57_branch_cost.
17619 2016-06-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17620 James Greenhalgh <james.greenhalgh@arm.com>
17622 * config/aarch64/arm_neon.h (vcopyq_lane_f32, vcopyq_lane_f64,
17623 vcopyq_lane_p8, vcopyq_lane_p16, vcopyq_lane_s8, vcopyq_lane_s16,
17624 vcopyq_lane_s32, vcopyq_lane_s64, vcopyq_lane_u8, vcopyq_lane_u16,
17625 vcopyq_lane_u32, vcopyq_lane_u64): Reimplement in C.
17626 (vcopy_lane_f32, vcopy_lane_f64, vcopy_lane_p8, vcopy_lane_p16,
17627 vcopy_lane_s8, vcopy_lane_s16, vcopy_lane_s32, vcopy_lane_s64,
17628 vcopy_lane_u8, vcopy_lane_u16, vcopy_lane_u32, vcopy_lane_u64,
17629 vcopy_laneq_f32, vcopy_laneq_f64, vcopy_laneq_p8, vcopy_laneq_p16,
17630 vcopy_laneq_s8, vcopy_laneq_s16, vcopy_laneq_s32, vcopy_laneq_s64,
17631 vcopy_laneq_u8, vcopy_laneq_u16, vcopy_laneq_u32, vcopy_laneq_u64,
17632 vcopyq_laneq_f32, vcopyq_laneq_f64, vcopyq_laneq_p8, vcopyq_laneq_p16,
17633 vcopyq_laneq_s8, vcopyq_laneq_s16, vcopyq_laneq_s32, vcopyq_laneq_s64,
17634 vcopyq_laneq_u8, vcopyq_laneq_u16, vcopyq_laneq_u32, vcopyq_laneq_u64):
17637 2016-06-30 James Greenhalgh <james.greenhalgh@arm.com>
17638 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17640 * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
17642 (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Likewise.
17644 2016-06-30 David Malcolm <dmalcolm@redhat.com>
17647 * gcc.c (driver::build_option_suggestions): Pass "option" to
17648 add_misspelling_candidates.
17649 * opts-common.c (add_misspelling_candidates): Add "option" param;
17650 use it to avoid adding negated forms for options marked with
17652 * opts.h (add_misspelling_candidates): Add "option" param.
17654 2016-06-30 Jakub Jelinek <jakub@redhat.com>
17656 PR middle-end/71693
17657 * fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
17658 TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
17659 first when permuting bitwise operation with rotate. Cast
17660 TREE_OPERAND (arg0, 0) to type when cancelling two rotations.
17662 2016-06-29 David Malcolm <dmalcolm@redhat.com>
17664 * opts.c (handle_param): Use find_param_fuzzy to offer suggestions
17665 for misspelled param names.
17666 * params.c: Include spellcheck.h.
17667 (find_param_fuzzy): New function.
17668 * params.h (find_param_fuzzy): New prototype.
17669 * spellcheck.c (struct edit_distance_traits<const char *>): Move to...
17670 * spellcheck.h (struct edit_distance_traits<const char *>):
17673 2016-06-29 Michael Meissner <meissner@linux.vnet.ibm.com>
17675 * config/rs6000/predicates.md (const_0_to_7_operand): New
17676 predicate, recognize 0..7.
17677 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
17678 support for doing extracts from V16QImode, V8HImode, V4SImode
17680 * config/rs6000/vsx.md (VSX_EXTRACT_I): Mode iterator for ISA 3.0
17681 vector extract support.
17682 (VSX_EXTRACT_PREDICATE): Mode attribute to validate element number
17683 for ISA 3.0 vector extract.
17684 (VSX_EX): Constraints to use for ISA 3.0 vector extract.
17685 (vsx_extract_<mode>, VSX_EXTRACT_I): Add support for doing
17686 extracts of a constant element number from small integer vectors
17687 on 64-bit ISA 3.0 systems.
17688 (vsx_extract_<mode>_di): Likewise.
17689 * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): New target macro to
17690 say when we can do ISA 3.0 vector extracts.
17691 * config/rs6000/rs6000.md (stfiwx): Allow DImode in Altivec
17692 registers, using the stxsiwx instruction.
17694 2016-06-29 Jim Wilson <jim.wilson@linaro.org>
17696 * config/aarch64/aarch64-cores.def (qdf24xx): Use qdf24xx tuning.
17697 * config/aarch64/aarch64.c (qdf24xx_addrcost_table,
17698 qdf24xx_regmove_cost, qdf24xx_tunings): New.
17699 * config/arm/aarch64-cost-tables.h (qdf24xx_extra_costs): New.
17700 * config/arm/arm-cores.def (qdf24xx): Use qdf24xx tuning.
17701 * config/arm/arm.c (arm_qdf24xx_tune): New.
17703 2016-06-29 Wilco Dijkstra <wdijkstr@arm.com>
17705 * config/aarch64/aarch64.c (cortexa53_tunings):
17706 Increase loop alignment to 8. Set function alignment to 16.
17707 (cortexa35_tunings): Likewise.
17708 (cortexa57_tunings): Increase loop alignment to 8.
17709 (cortexa72_tunings): Likewise.
17710 (cortexa73_tunings): Likewise.
17712 2016-06-29 Matthew Wahab <matthew.wahab@arm.com>
17714 * doc/sourcebuild.texi (Effective-Target keywords): Add entries
17715 for arm_fp16_ok and arm_fp16_hw.
17716 (Add Options): Add entries for arm_fp16, arm_fp16_ieee and
17717 arm_fp16_alternative.
17719 2016-06-29 Ilya Enkovich <ilya.enkovich@intel.com>
17721 PR tree-optimization/71655
17722 * tree-vect-stmts.c (vectorizable_comparison): Swap definition
17723 types when swapping operands.
17725 2016-06-29 Martin Liska <mliska@suse.cz>
17727 PR middle-end/71585
17728 * common.opt (flag_stack_protect): Mark the flag as optimization flag.
17729 * ipa-inline-transform.c (inline_call): Remove unnecessary call
17730 of build_optimization_node.
17732 2016-06-29 Yuri Rumyantsev <ysrumyan@gmail.com>
17734 PR tree-optimization/70729
17735 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Consider memory reference as
17736 independent in loops having positive safelen value.
17737 * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
17738 it may be not valid after vectorization.
17740 2016-06-29 Jakub Jelinek <jakub@redhat.com>
17742 PR tree-optimization/71625
17743 * tree-ssa-strlen.c (get_addr_stridx): Add PTR argument. Assume list
17744 is sorted by ascending list->offset. If PTR is non-NULL and there is
17745 previous strinfo, call get_stridx_plus_constant.
17746 (get_stridx): Pass exp as second argument to get_addr_stridx.
17747 (addr_stridxptr): Add missing list = list->next, so that there can be
17748 more than one entries in the list. Bump limit from 16 to 32. Ensure
17749 the list is sorted by ascending list->offset.
17750 (get_stridx_plus_constant): Adjust so that it can be also called with
17751 ADDR_EXPR instead of SSA_NAME as PTR.
17752 (handle_char_store): Pass NULL_TREE as second argument to
17755 2016-06-29 Richard Biener <rguenther@suse.de>
17757 PR rtl-optimization/68961
17758 * simplify-rtx.c (simplify_subreg): Handle VEC_CONCAT like CONCAT.
17760 2016-06-29 Richard Biener <rguenther@suse.de>
17762 PR middle-end/71002
17763 * alias.c (component_uses_parent_alias_set_from): Handle
17764 type punning through union accesses by using the union alias set.
17765 * gimple.c (gimple_get_alias_set): Remove union type punning case.
17767 2016-07-29 Richard Biener <rguenther@suse.de>
17769 * match.pd ((T)(T2)x -> (T)x): Remove restriction on final
17770 precision not matching mode precision.
17772 2016-06-28 John David Anglin <danglin@gcc.gnu.org>
17774 * config/pa/pa.md (call_symref_64bit_post_reload): Don't call
17775 pa_output_arg_descriptor.
17776 (call_val_symref_64bit_post_reload): Likewise.
17777 (call_val_powf_64bit_post_reload): Likewise.
17778 (sibcall_internal_symref_64bit): Likewise.
17779 (sibcall_value_internal_symref_64bit): Likewise.
17781 2016-06-28 Jakub Jelinek <jakub@redhat.com>
17783 PR middle-end/71626
17784 * config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
17785 a constant, force its SUBREG_REG into memory or register instead
17788 2016-06-28 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
17791 * config/avr/avr.opt (-mfract-convert-truncate): Update description.
17792 * doc/invoke.texi (AVR Options): Document it.
17794 2016-06-28 Walter Lee <walt@tilera.com>
17796 * config/tilegx/linux.h: Do not include arch/icache.h
17797 (CLEAR_INSN_CACHE): Provide inlined definition directly.
17798 * config/tilepro/linux.h: Do not include arch/icache.h
17799 (CLEAR_INSN_CACHE): Provide inlined definition directly.
17801 2016-06-28 Wilco Dijkstra <wdijkstr@arm.com>
17803 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adjust bitnumbering
17804 for big-endian BIT_FIELD_REF.
17806 2016-06-28 Pat Haugen <pthaugen@us.ibm.com>
17808 * config/rs6000/rs6000.md ('type' attribute): Add htmsimple/dfp types.
17809 ('size' attribute): Add '128'.
17811 (*mov<mode>_hardfloat32, *mov<mode>_hardfloat64, *movdi_internal32,
17812 *movdi_internal64, *movdf_update1): Set size attribute to '64'.
17813 (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3, sqrt<mode>2,
17814 copysign<mode>3, neg<mode>2_hw, abs<mode>2_hw, *nabs<mode>2_hw,
17815 *fma<mode>4_hw, *fms<mode>4_hw, *nfma<mode>4_hw, *nfms<mode>4_hw,
17816 extend<SFDF:mode><IEEE128:mode>2_hw, trunc<mode>df2_hw,
17817 *xscvqp<su>wz_<mode>, *xscvqp<su>dz_<mode>, *xscv<su>dqp_<mode>,
17818 *trunc<mode>df2_odd): Set size attribute to '128'.
17819 (*cmp<mode>_hw): Change type to veccmp and set size attribute to '128'.
17820 * config/rs6000/power6.md (power6-fp): Include dfp type.
17821 * config/rs6000/power7.md (power7-fp): Likewise.
17822 * config/rs6000/power8.md (power8-fp): Likewise.
17823 * config/rs6000/power9.md: New file.
17824 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power9.md.
17825 * config/rs6000/htm.md (*tabort, *tabort<wd>c, *tabort<wd>ci,
17826 *trechkpt, *treclaim, *tsr, *ttest): Change type attribute to
17828 * config/rs6000/dfp.md (extendsddd2, truncddsd2, extendddtd2,
17829 trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
17830 divtd3, *cmpdd_internal1, *cmptd_internal1, floatdidd2, floatditd2,
17831 ftruncdd2, fixdddi2, ftrunctd2, fixtddi2, dfp_ddedpd_<mode>,
17832 dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>, dfp_dscli_<mode>,
17833 dfp_dscri_<mode>): Change type attribute to dfp.
17834 * config/rs6000/crypto.md (crypto_vshasigma<CR_char>): Change type
17835 attribute to vecsimple.
17836 * config/rs6000/rs6000.c (power9_cost): Update costs, cache size
17837 and prefetch streams.
17838 (rs6000_option_override_internal): Remove temporary code setting
17839 tuning to power8. Don't set rs6000_sched_groups for power9.
17840 (last_scheduled_insn): Change to rtx_insn *.
17841 (divide_cnt, vec_load_pendulum): New variables.
17842 (rs6000_adjust_cost): Add Power9 to test for store->load separation.
17843 (rs6000_issue_rate): Set issue rate for Power9.
17844 (is_power9_pairable_vec_type): New.
17845 (power9_sched_reorder2): New.
17846 (rs6000_sched_reorder2): Call new function for Power9 specific
17848 (insn_must_be_first_in_group): Remove Power9.
17849 (insn_must_be_last_in_group): Likewise.
17850 (force_new_group): Likewise.
17851 (rs6000_sched_init): Fix initialization of last_scheduled_insn.
17852 Initialize divide_cnt/vec_load_pendulum.
17853 (_rs6000_sched_context, rs6000_init_sched_context,
17854 rs6000_set_sched_context): Handle context save/restore of new
17857 2016-06-28 Richard Biener <rguenther@suse.de>
17859 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
17860 Properly handle DECL_BIT_FIELD_REPRESENTATIVE occuring as
17861 COMPONENT_REF operand.
17862 (nonoverlapping_component_refs_p): Likewise.
17863 * stor-layout.c (start_bitfield_representative): Mark
17864 DECL_BIT_FIELD_REPRESENTATIVE as DECL_NONADDRESSABLE_P.
17866 2016-06-28 Jakub Jelinek <jakub@redhat.com>
17868 * Makefile.in: Don't cat ../stage_current if it does not exist.
17870 * doc/extend.texi (__builtin_add_overflow_p): Clarify behavior when
17871 last argument is a bit-field.
17873 PR rtl-optimization/71673
17874 * internal-fn.c (expand_arith_overflow_result_store): Use
17875 OPTAB_LIB_WIDEN instead of OPTAB_DIRECT as last argument to
17876 expand_simple_binop.
17878 PR middle-end/66867
17879 * builtins.c (expand_ifn_atomic_compare_exchange_into_call,
17880 expand_ifn_atomic_compare_exchange): New functions.
17881 * internal-fn.c (expand_ATOMIC_COMPARE_EXCHANGE): New function.
17882 * tree.h (build_call_expr_internal_loc): Rename to ...
17883 (build_call_expr_internal_loc_array): ... this. Fix up type of
17885 * internal-fn.def (ATOMIC_COMPARE_EXCHANGE): New internal fn.
17886 * predict.c (expr_expected_value_1): Handle IMAGPART_EXPR of
17887 ATOMIC_COMPARE_EXCHANGE result.
17888 * builtins.h (expand_ifn_atomic_compare_exchange): New prototype.
17889 * gimple-fold.h (optimize_atomic_compare_exchange_p,
17890 fold_builtin_atomic_compare_exchange): New prototypes.
17891 * gimple-fold.c (optimize_atomic_compare_exchange_p,
17892 fold_builtin_atomic_compare_exchange): New functions..
17893 * tree-ssa.c (execute_update_addresses_taken): If
17894 optimize_atomic_compare_exchange_p, ignore &var in 2nd argument
17895 of call when finding addressable vars, and if such var becomes
17896 non-addressable, call fold_builtin_atomic_compare_exchange.
17898 2016-06-27 Segher Boessenkool <segher@kernel.crashing.org>
17901 * config/rs6000/rs6000.md (ashdi3_extswsli_dot): Use
17902 gen_ashdi3_extswsli_dot2 instead of gen_ashdi3_extswsli_dot.
17904 2016-06-27 Pat Haugen <pthaugen@us.ibm.com>
17906 * config/rs6000/rs6000.md ('type' attribute): Add
17907 veclogical,veccmpfx,vecexts,vecmove insn types.
17908 (*abs<mode>2_fpr, *nabs<mode>2_fpr, *neg<mode>2_fpr, *extendsfdf2_fpr,
17909 copysign<mode>3_fcpsgn, trunc<mode>df2_internal1, neg<mode>2_internal,
17910 p8_fmrgow_<mode>, pack<mode>): Change type to fpsimple.
17911 (*xxsel<mode>, copysign<mode>3_hard, neg<mode>2_hw, abs<mode>2_hw,
17912 *nabs<mode>2_hw): Change type to vecmove.
17913 (*and<mode>3_internal, *bool<mode>3_internal, *boolc<mode>3_internal,
17914 *boolcc<mode>3_internal, *eqv<mode>3_internal,
17915 *one_cmpl<mode>3_internal, *ieee_128bit_vsx_neg<mode>2_internal,
17916 *ieee_128bit_vsx_abs<mode>2_internal,
17917 *ieee_128bit_vsx_nabs<mode>2_internal, extendkftf2, trunctfkf2,
17918 *ieee128_mfvsrd_64bit, *ieee128_mfvsrd_32bit, *ieee128_mtvsrd_64bit,
17919 *ieee128_mtvsrd_32bit): Change type to veclogical.
17920 (mov<mode>_hardfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
17921 *movdi_internal32, *movdi_internal64): Update insn types.
17922 * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
17923 vsx_extract_<mode>): Change type to veclogical.
17924 (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns): Change type to vecmove.
17925 (vsx_sign_extend_qi_<mode>, *vsx_sign_extend_hi_<mode>,
17926 *vsx_sign_extend_si_v2di): Change type to vecexts.
17927 * config/rs6000/altivec.md (*altivec_mov<mode>, *altivec_movti): Change
17928 type to veclogical.
17929 (*altivec_eq<mode>, *altivec_gt<mode>, *altivec_gtu<mode>,
17930 *altivec_vcmpequ<VI_char>_p, *altivec_vcmpgts<VI_char>_p,
17931 *altivec_vcmpgtu<VI_char>_p): Change type to veccmpfx.
17932 (*altivec_vsel<mode>, *altivec_vsel<mode>_uns): Change type to vecmove.
17933 * config/rs6000/dfp.md (*negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
17934 negtd2, *abstd2_fpr, *nabstd2_fpr): Change type to fpsimple.
17935 * config/rs6000/40x.md (ppc405-float): Add fpsimple.
17936 * config/rs6000/440.md (ppc440-fp): Add fpsimple.
17937 * config/rs6000/476.md (ppc476-fp): Add fpsimple.
17938 * config/rs6000/601.md (ppc601-fp): Add fpsimple.
17939 * config/rs6000/603.md (ppc603-fp): Add fpsimple.
17940 * config/rs6000/6xx.md (ppc604-fp): Add fpsimple.
17941 * config/rs6000/7xx.md (ppc750-fp): Add fpsimple.
17942 (ppc7400-vecsimple): Add veclogical, vecmove, veccmpfx.
17943 * config/rs6000/7450.md (ppc7450-fp): Add fpsimple.
17944 (ppc7450-vecsimple): Add veclogical, vecmove.
17945 (ppc7450-veccmp): Add veccmpfx.
17946 * config/rs6000/8540.md (ppc8540_simple_vector): Add veclogical,
17948 (ppc8540_vector_compare): Add veccmpfx.
17949 * config/rs6000/a2.md (ppca2-fp): Add fpsimple.
17950 * config/rs6000/cell.md (cell-fp): Add fpsimple.
17951 (cell-vecsimple): Add veclogical, vecmove.
17952 (cell-veccmp): Add veccmpfx.
17953 * config/rs6000/e300c2c3.md (ppce300c3_fp): Add fpsimple.
17954 * config/rs6000/e6500.md (e6500_vecsimple): Add veclogical, vecmove,
17956 * config/rs6000/mpc.md (mpccore-fp): Add fpsimple.
17957 * config/rs6000/power4.md (power4-fp): Add fpsimple.
17958 (power4-vecsimple): Add veclogical, vecmove.
17959 (power4-veccmp): Add veccmpfx.
17960 * config/rs6000/power5.md (power5-fp): Add fpsimple.
17961 * config/rs6000/power6.md (power6-fp): Add fpsimple.
17962 (power6-vecsimple): Add veclogical, vecmove.
17963 (power6-veccmp): Add veccmpfx.
17964 * config/rs6000/power7.md (power7-fp): Add fpsimple.
17965 (power7-vecsimple): Add veclogical, vecmove, veccmpfx.
17966 * config/rs6000/power8.md (power8-fp): Add fpsimple.
17967 (power8-vecsimple): Add veclogical, vecmove, veccmpfx.
17968 * config/rs6000/rs64.md (rs64a-fp): Add fpsimple.
17969 * config/rs6000/titan.md (titan_fp): Add fpsimple.
17970 * config/rs6000/xfpu.md (fp-default, fp-addsub-s, fp-addsub-d): Add
17972 * config/rs6000/rs6000.c (rs6000_adjust_cost): Add TYPE_FPSIMPLE.
17974 2016-06-27 Peter Bergner <bergner@vnet.ibm.com>
17977 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
17978 OPTION_MASK_P9_DFORM_VECTOR.
17979 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
17980 disable -mpower9-dform-vector when using reload.
17981 (quad_address_p): Remove 'gpr_p' argument and all associated code.
17982 New 'strict' argument. Update all callers. Add strict addressing
17984 (rs6000_legitimate_offset_address_p): Remove call to
17985 virtual_stack_registers_memory_p.
17986 (rs6000_legitimize_reload_address): Add quad address support.
17987 (rs6000_legitimate_address_p): Move call to quad_address_p above
17988 call to virtual_stack_registers_memory_p. Adjust quad_address_p args
17989 to account for new strict usage.
17990 (rs6000_output_move_128bit): Adjust quad_address_p args to account
17991 for new strict usage.
17992 * config/rs6000/predicates.md (quad_memory_operand): Likewise.
17994 2016-06-26 Uros Bizjak <ubizjak@gmail.com>
18001 * config/i386/i386.c (ix86_spill_class): Disable condition to
18002 always return NO_REGS.
18004 2016-06-26 Jan Hubicka <hubicka@ucw.cz>
18006 * predict.c: Include gimple-pretty-print.h
18007 (predicted_by_loop_heuristics_p): Check also
18008 PRED_LOOP_EXIT_WITH_RECURSION
18009 (predict_loops): Find self recursive calls and use special purpose
18010 predictors for them; dump log about decisions.
18011 (pass_profile::execute): Dump info about #of iterations.
18012 * predict.def (PRED_LOOP_EXIT_WITH_RECURSION,
18013 (PRED_LOOP_GUARD_WITH_RECURSION): New predictors.
18015 2016-06-26 John David Anglin <danglin@gcc.gnu.org>
18017 * config/pa/pa.c (pa_output_indirect_call): Rework to combine
18018 output_asm_insn calls and shorten long lines. Output .CALL
18019 argument descriptor using pa_output_arg_descriptor. Add various
18020 inline $$dyncall and other optimizations.
18021 (pa_attr_length_indirect_call): Adjust ordering and lengths.
18023 2016-06-25 Jakub Jelinek <jakub@redhat.com>
18025 PR tree-optimization/71643
18026 * tree-ssa-tail-merge.c (find_clusters_1): Ignore basic blocks with
18029 * tree-ssa-tail-merge.c (deps_ok_for_redirect_from_bb_to_bb): Don't
18030 leak a bitmap if dep_bb is NULL.
18032 PR tree-optimization/71631
18033 * tree-ssa-reassoc.c (reassociate_bb): Pass true as last argument
18034 to rewrite_expr_tree even if negate_result, move new_lhs var
18035 declaration and initialization earlier, for powi_result set afterwards
18036 new_lhs to lhs. For negate_result, use new_lhs instead of tmp
18037 if new_lhs != lhs, and don't shadow gsi var.
18039 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
18041 * predict.c (predict_paths_leading_to, predict_paths_leading_to_edge):
18042 Add in_loop parameter.
18043 (predict_loops): Add loop guard heuristics.
18044 * predict.def (PRED_LOOP_GUARD): New heuristics.
18046 2016-06-24 Jan Hubicka <hubicka@ucw.cz>
18048 * predict.c: Include ipa-utils.h
18049 (tree_bb_level_prediction): Predict recursive calls.
18050 (tree_estimate_probability_bb): Skip inexpensive calls for call
18052 * predict.def (PRED_RECURSIVE_CALL): New.
18054 2016-06-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18056 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
18057 (BU_FLOAT128_1): Likewise.
18059 (COPYSIGNQ): Likewise.
18060 (RS6000_BUILTIN_NANQ): Likewise.
18061 (RS6000_BUILTIN_NANSQ): Likewise.
18062 (RS6000_BUILTIN_INFQ): Likewise.
18063 (RS6000_BUILTIN_HUGE_VALQ): Likewise.
18064 * config/rs6000/rs6000.c (rs6000_fold_builtin): New prototype.
18065 (TARGET_FOLD_BUILTIN): New #define.
18066 (rs6000_builtin_mask_calculate): Add TARGET_FLOAT128 entry.
18067 (rs6000_invalid_builtin): Add handling for RS6000_BTM_FLOAT128.
18068 (rs6000_fold_builtin): New target hook implementation, handling
18069 folding of 128-bit NaNs and infinities.
18070 (rs6000_init_builtins): Initialize const_str_type_node; ensure all
18071 entries are filled in to avoid problems during bootstrap
18072 self-test; define builtins for 128-bit NaNs and infinities.
18073 (rs6000_opt_mask): Add entry for float128.
18074 * config/rs6000/rs6000.h (RS6000_BTM_FLOAT128): New #define.
18075 (RS6000_BTM_COMMON): Include RS6000_BTM_FLOAT128.
18076 (rs6000_builtin_type_index): Add RS6000_BTI_const_str.
18077 (const_str_type_node): New #define.
18078 * config/rs6000/rs6000.md (copysign<mode>3 for IEEE128): Convert
18079 to a define_expand that dispatches to either copysign<mode>3_soft
18080 or copysign<mode>3_hard.
18081 (copysign<mode>3_hard): Rename from copysign<mode>3.
18082 (copysign<mode>3_soft): New define_insn.
18083 * doc/extend.texi: Document new builtins.
18085 2016-06-24 Jakub Jelinek <jakub@redhat.com>
18087 * cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using
18088 PRIu64 instead of lu.
18090 2016-06-24 Eric Botcazou <ebotcazou@adacore.com>
18093 * tree-inline.c (remap_decl): When fixing up DECL_ORIGINAL_TYPE, just
18094 copy the type name.
18096 2016-06-24 Jakub Jelinek <jakub@redhat.com>
18098 PR tree-optimization/71647
18099 * omp-low.c (lower_rec_input_clauses): Convert
18100 omp_clause_aligned_alignment (c) to size_type_node for the
18101 last argument of __builtin_assume_aligned.
18103 2016-06-24 H.J. Lu <hongjiu.lu@intel.com>
18105 * configure.ac (calling ___tls_get_addr via GOT): New
18106 assembler/linker check.
18107 (HAVE_AS_IX86_TLS_GET_ADDR_GOT): New. Defined to 1 if 32-bit
18108 assembler and linker supports calling ___tls_get_addr via GOT.
18109 Otherise, defined to 0.
18110 * config.in: Regenerated.
18111 * configure: Likewise.
18112 * config/i386/constraints.md (Yb): New constraint.
18113 * config/i386/i386.h (reg_class): Add TLS_GOTBASE_REGS.
18114 (REG_CLASS_NAMES): Likewise.
18115 (REG_CLASS_CONTENTS): Likewise.
18116 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Replace
18117 the b constraint with the Yb constraint. Call ___tls_get_addr
18118 via GOT for GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT
18120 (*tls_local_dynamic_base_32_gnu): Likewise.
18121 (*tls_global_dynamic_64_<mode>): Call _tls_get_addr via GOT for
18122 GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT is 1.
18123 (*tls_local_dynamic_base_64_<mode>): Likewise.
18125 2016-06-24 Martin Liska <mliska@suse.cz>
18127 * cfgloop.c (flow_loop_dump): Dump average number of loop iterations.
18128 * cfgloop.h: Change 'struct loop' to 'const struct loop' for a
18130 * cfgloopanal.c (expected_loop_iterations_unbounded): Set a new
18131 argument to true if the expected number of iterations is
18134 2016-06-24 Uros Bizjak <ubizjak@gmail.com>
18136 * configure.ac (HAVE_AS_GOTOF_IN_DATA): Use $as_ix86_gas_32_opt to
18137 assemble for 32bit target.
18138 (HAVE_AS_IX86_TLSGDPLT): Use $as_ix86_gas_32_opt to assemble
18139 and $ld_ix86_gld_32_opt to link for 32bit target.
18140 (HAVE_AS_IX86_TLSLDMPLT): Ditto.
18141 * configure: Regenerate.
18143 2016-06-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18145 * config/arm/arm.c (int_log2): Delete definition and prototype.
18146 (shift_op): Use exact_log2 instead of int_log2.
18147 (vfp3_const_double_for_fract_bits): Likewise.
18149 2016-06-24 Jakub Jelinek <jakub@redhat.com>
18151 * internal-fn.c (expand_arith_set_overflow): New function.
18152 (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
18154 (expand_arith_overflow_result_store): Likewise. Handle precision
18155 smaller than mode precision.
18156 * tree-vrp.c (extract_range_basic): For imag part, handle
18157 properly signed 1-bit precision result.
18158 * doc/extend.texi (__builtin_add_overflow): Document that last
18159 argument can't be pointer to enumerated or boolean type.
18160 (__builtin_add_overflow_p): Document that last argument can't
18161 have enumerated or boolean type.
18163 2016-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
18164 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18166 * config/rs6000/predicates.md (splat_input_operand): Rework.
18167 Don't allow constants, since the insns that use this predicate
18168 don't support constants. Constants are handled by other insns
18169 that are created via combine. During and after register
18170 allocation, only allow indexed or indirect addresses, and not
18171 general addresses. Only allow modes supported by the hardware.
18172 * config/rs6000/rs6000.c (xxsplitb_constant_p): Update usage
18173 comment. Move check for using VSPLTIS<x> to a common location,
18174 instead of doing it in two different places.
18176 2016-06-23 Jocelyn Mayer <l_indien@magic.fr>
18178 * config/i386/driver-i386.c (host_detect_local_cpu): Set
18179 PROCESSOR_PENTIUMPRO for signature_CENTAUR_ebx family >= 9.
18180 <case PROCESSOR_PENTIMUMPRO>: Pass c7 or nehemiah for
18181 signature_CENTAUR_ebx.
18183 2016-06-23 H.J. Lu <hongjiu.lu@intel.com>
18187 * configure.ac (as_ix86_tls_ldm_opt): Renamed to ...
18188 (as_ix86_gas_32_opt): This.
18189 (ld_ix86_tls_ldm_opt): Renamed to ...
18190 (ld_ix86_gld_32_opt): This.
18191 (R_386_TLS_LDM reloc): Updated.
18192 (R_386_GOT32X reloc): New assembler/linker check.
18193 (HAVE_AS_IX86_GOT32X): New. Defined to 1 if 32-bit assembler and
18194 linker support "jmp *_start@GOT" and "cmpl $0, bar@GOT". Otherise,
18196 * config.in: Regenerated.
18197 * configure: Likewise.
18198 * config/i386/i386.c (ix86_force_load_from_GOT_p): Return
18199 true if HAVE_AS_IX86_GOT32X is 1 in 32-bit mode.
18200 (ix86_legitimate_address_p): Allow UNSPEC_GOT for -fno-plt
18201 if ix86_force_load_from_GOT_p returns true.
18202 (ix86_print_operand_address_as): Also support UNSPEC_GOT if
18203 ix86_force_load_from_GOT_p returns true.
18204 (ix86_expand_move): Generate UNSPEC_GOT in 32-bit mode to load
18205 the external function address via the GOT slot.
18206 (ix86_nopic_noplt_attribute_p): Check both TARGET_64BIT and
18207 HAVE_AS_IX86_GOT32X before returning false.
18208 (ix86_output_call_insn): Generate "%!jmp/call\t*%p0@GOT" in
18209 32-bit mode if ix86_nopic_noplt_attribute_p returns true.
18211 2016-06-23 Eric Botcazou <ebotcazou@adacore.com>
18213 * tree-inline.c (remap_decl): Preserve DECL_ORIGINAL_TYPE invariant.
18215 2016-06-23 Andi Kleen <ak@linux.intel.com>
18217 * Makefile.in: Regenerate.
18218 * doc/install.texi: Document autoprofiledbootstrap.
18220 2016-06-23 Andi Kleen <ak@linux.intel.com>
18222 * config/i386/gcc-auto-profile: New file.
18224 2016-06-23 Martin Liska <mliska@suse.cz>
18226 PR middle-end/71619
18227 * predict.c (predict_loops): Revert the hunk that was removed
18230 2016-06-23 Jakub Sejdak <jakub.sejdak@phoesys.com>
18232 * config.gcc: Add support for arm*-*-phoenix* targets.
18233 * config/arm/t-phoenix: New.
18234 * config/phoenix.h: New.
18236 2016-06-23 Uros Bizjak <ubizjak@gmail.com>
18237 H.J. Lu <hongjiu.lu@intel.com>
18240 * config/i386/i386-protos.h (ix86_force_load_from_GOT_p): New.
18241 * config/i386/i386.c (ix86_force_load_from_GOT_p): New function.
18242 (ix86_legitimate_constant_p): Do not allow UNSPEC_GOTPCREL if
18243 ix86_force_load_from_GOT_p returns true.
18244 (ix86_legitimate_address_p): Allow UNSPEC_GOTPCREL if
18245 ix86_force_load_from_GOT_p returns true.
18246 (ix86_print_operand_address_as): Support UNSPEC_GOTPCREL if
18247 ix86_force_load_from_GOT_p returns true.
18248 (ix86_expand_move): Load the external function address via the
18249 GOT slot if ix86_force_load_from_GOT_p returns true.
18250 * config/i386/predicates.md (x86_64_immediate_operand): Return
18251 false for SYMBOL_REFs where ix86_force_load_from_GOT_p returns true.
18252 (x86_64_zext_immediate_operand): Ditto.
18254 2016-06-22 Uros Bizjak <ubizjak@gmail.com>
18256 * config/i386/i386.c (ix86_expand_move): Simplify SYMBOL_REF handling.
18258 2016-06-22 David Malcolm <dmalcolm@redhat.com>
18261 * diagnostic-core.h (pedwarn_at_rich_loc): New prototype.
18262 * diagnostic.c (pedwarn_at_rich_loc): New function.
18263 * spellcheck.h (best_match::best_match): Add a
18264 "best_distance_so_far" optional parameter.
18265 (best_match::set_best_so_far): New method.
18266 (best_match::get_best_distance): New accessor.
18267 (best_match::get_best_candidate_length): New accessor.
18269 2016-06-22 Nick Clifton <nickc@redhat.com>
18271 * dwarf2out.c (scompare_loc_descriptor): Use SCALAR_INT_MODE_P() in
18272 place of GET_MODE_CLASS() == MODE_INT, so that partial integer
18273 modes are accepted as well.
18274 (ucompare_loc_descriptor): Likewise.
18275 (minmax_loc_descriptor): Likewise.
18276 (clz_loc_descriptor): Likewise.
18277 (popcount_loc_descriptor): Likewise.
18278 (bswap_loc_descriptor): Likewise.
18279 (rotate_loc_descriptor): Likewise.
18280 (mem_loc_descriptor): Likewise.
18281 (loc_descriptor): Likewise.
18283 2016-06-22 David Malcolm <dmalcolm@redhat.com>
18285 * common.opt (fdiagnostics-parseable-fixits): New option.
18286 * diagnostic.c: Include "selftest.h".
18287 (print_escaped_string): New function.
18288 (print_parseable_fixits): New function.
18289 (diagnostic_report_diagnostic): Call print_parseable_fixits.
18290 (selftest::assert_print_escaped_string): New function.
18291 (ASSERT_PRINT_ESCAPED_STRING_STREQ): New macro.
18292 (selftest::test_print_escaped_string): New function.
18293 (selftest::test_print_parseable_fixits_none): New function.
18294 (selftest::test_print_parseable_fixits_insert): New function.
18295 (selftest::test_print_parseable_fixits_remove): New function.
18296 (selftest::test_print_parseable_fixits_replace): New function.
18297 (selftest::diagnostic_c_tests): New function.
18298 * diagnostic.h (struct diagnostic_context): Add field
18299 "parseable_fixits_p".
18300 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
18301 -fdiagnostics-parseable-fixits.
18302 (-fdiagnostics-parseable-fixits): New option.
18303 * opts.c (common_handle_option): Handle
18304 -fdiagnostics-parseable-fixits.
18305 * selftest-run-tests.c (selftest::run_tests): Call
18306 selftest::diagnostic_c_tests.
18307 * selftest.h (selftest::diagnostic_c_tests): New prototype.
18309 2016-06-22 Ilya Enkovich <ilya.enkovich@intel.com>
18311 PR tree-optimization/71488
18312 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Support
18313 comparison of boolean vectors.
18314 * tree-vect-stmts.c (vectorizable_comparison): Vectorize comparison
18315 of boolean vectors using bitwise operations.
18317 2016-06-22 Andreas Schwab <schwab@suse.de>
18319 * config/aarch64/aarch64-protos.h (aarch64_elf_asm_named_section):
18320 Remove declaration.
18322 2016-06-22 Eric Botcazou <ebotcazou@adacore.com>
18324 * function.c (assign_parm_setup_reg): Prevent sharing in another case.
18326 2016-06-22 Bernd Edlinger <bernd.edlinger@hotmail.de>
18328 * config/i386/i386.c (print_reg): Emit an error message on attempt to
18331 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18333 * config/arm/arm.c (arm_cortex_a73_tune): New struct.
18334 * config/arm/arm-cores.def (cortex-a73): New entry.
18335 (cortex-a73.cortex-a35): Likewise.
18336 (cortex-a73.cortex-a53): Likewise.
18337 * config/arm/arm-tables.opt: Regenerate.
18338 * config/arm/arm-tune.md: Likewise.
18339 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle mcpu=cortex-a73,
18340 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
18341 * config/arm/t-aprofile: Handle mcpu=cortex-a73,
18342 mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
18343 * doc/invoke.texi (ARM Options): Document cortex-a73,
18344 cortex-a73.cortex-a35 and cortex-a73.cortex-a53.
18346 2016-06-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18348 * config/aarch64/aarch64.c (cortexa73_tunings): New struct.
18349 * config/aarch64/aarch64-cores.def (cortex-a73): New entry.
18350 (cortex-a73.cortex-a35): Likewise.
18351 (cortex-a73.cortex-a53): Likewise.
18352 * config/aarch64/aarch64-tune.md: Regenerate.
18353 * doc/invoke.texi (AArch64 Options): Document cortex-a73,
18354 cortex-a73.cortex-a35 and cortex-a73.cortex-a53 arguments to
18357 2016-06-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18359 * configure.ac (gcc_cv_as_compress_debug): Remove
18360 --compress-debug-sections as extra as switch.
18361 Handle gas --compress-debug-sections=type.
18362 (gcc_cv_ld_compess_debug): Remove bogus ld_date check.
18363 Handle gld --compress-debug-sections=type.
18364 * configure: Regenerate.
18366 2016-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
18368 * bb-reorder.c (pass_partition_blocks::gate): Update comment.
18370 2016-06-21 John David Anglin <danglin@gcc.gnu.org>
18372 * gcov-tool.c (profile_rewrite): Use int64_t instead of long long.
18373 (do_rewrite): likewise.
18375 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18377 * common/config/mep/mep-common.c: Remove.
18378 * config.gcc: Remove mep-* support.
18379 * config/mep/constraints.md: Remove.
18380 * config/mep/default.h: Remove.
18381 * config/mep/intrinsics.h: Remove.
18382 * config/mep/intrinsics.md: Remove.
18383 * config/mep/ivc2-template.h: Remove.
18384 * config/mep/mep-c5.cpu: Remove.
18385 * config/mep/mep-core.cpu: Remove.
18386 * config/mep/mep-default.cpu: Remove.
18387 * config/mep/mep-ext-cop.cpu: Remove.
18388 * config/mep/mep-intrin.h: Remove.
18389 * config/mep/mep-ivc2.cpu: Remove.
18390 * config/mep/mep-pragma.c: Remove.
18391 * config/mep/mep-protos.h: Remove.
18392 * config/mep/mep.c: Remove.
18393 * config/mep/mep.cpu: Remove.
18394 * config/mep/mep.h: Remove.
18395 * config/mep/mep.md: Remove.
18396 * config/mep/mep.opt: Remove.
18397 * config/mep/predicates.md: Remove.
18398 * config/mep/t-mep: Remove.
18399 * doc/install.texi: Remove mep-* documentation.
18400 * doc/md.texi: Likewise.
18402 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18404 * config.gcc: Remove support for avr-rtems.
18405 * config/avr/gen-avr-mmcu-specs.c: Likewise.
18406 * config/avr/rtems.h: Remove.
18407 * config/avr/t-rtems: Remove.
18409 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18411 * config.gcc: Remove m32r-rtems support.
18412 * config/m32r/rtems.h: Remove.
18414 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18416 * config.gcc: Remove h8300-rtems support.
18417 * config/h8300/rtems.h: Remove.
18418 * config/h8300/t-rtems: Remove.
18420 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18422 * config.gcc: Remove support for knetbsd.
18423 * configure.ac: Likewise.
18424 * config/i386/knetbsd-gnu.h: Remove. * config/i386/knetbsd-gnu64.h: Remove.
18425 * config/knetbsd-gnu.h: Remove.
18426 * configure: Regenerate.
18428 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18430 * config.gcc: Remove support for openbsd 2 and 3.
18431 * config/openbsd-oldgas.h: Remove.
18433 2016-06-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18435 * config.gcc: Remove interix support.
18436 * config/i386/i386-interix.h: Remove.
18437 * config/i386/interix.opt: Remove.
18438 * config/i386/t-interix: Remove.
18439 * configure: Regenerate.
18440 * configure.ac: Remove interix support.
18441 * doc/install.texi: Remove interix documentation.
18443 2016-06-21 Kelvin Nilsen <kelvin@gcc.gnu.org>
18445 * config/rs6000/rs6000.h: Add conditional preprocessing directives
18446 to disable Power9-specific compiler features if HAVE_AS_POWER9 is
18449 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
18451 * tree.c (verify_type_variant): Skip TYPE_SIZE and TYPE_SIZE_UNIT if
18452 they are both PLACEHOLDER_EXPRs.
18454 2016-06-21 Michael Meissner <meissner@linux.vnet.ibm.com>
18456 * stor-layout.c (layout_type): Move setting complex MODE to
18457 layout_type, instead of setting it ahead of time by the caller.
18458 * tree.c (build_complex_type): Likewise.
18460 2016-06-21 Martin Liska <mliska@suse.cz>
18462 * predict.c (force_edge_cold): Replace imposisble with
18465 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
18467 * config/i386/i386.c (ix86_emit_swsqrtsf): Emit vrsqrt28ps.
18468 * config/i386/sse.md (define_expand "rsqrtv16sf2"): New.
18470 2016-06-21 Ilya Verbin <ilya.verbin@intel.com>
18472 * config/i386/i386.c (ix86_emit_swdivsf): Emit vrcp28ps.
18474 2016-06-21 H.J. Lu <hongjiu.lu@intel.com>
18475 Ilya Enkovich <ilya.enkovich@intel.com>
18478 * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
18479 New member function to convert V1TImode register to SUBREG
18480 TImode in debug insn.
18481 (timode_scalar_chain::convert_insn): Call fix_debug_reg_uses
18482 after changing register mode to V1TImode.
18484 2016-06-21 Virendra Pathak <virendra.pathak@broadcom.com>
18486 * config/aarch64/aarch64-cores.def (vulcan): New core.
18487 * config/aarch64/aarch64-tune.md: Regenerate.
18488 * doc/invoke.texi: Document vulcan as an available option.
18490 2016-06-21 Eric Botcazou <ebotcazou@adacore.com>
18492 * cse.c (canon_asm_operands): New function extracted from...
18493 (canonicalize_insn): ...here. Call it to canonicalize an ASM_OPERANDS
18494 either standalone or member of a PARALLEL.
18496 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
18499 * config/avr/gen-avr-mmcu-specs.c (print_mcu):
18500 [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
18501 [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
18503 2016-06-21 Georg-Johann Lay <avr@gjlay.de>
18506 * config/avr/avr.md (movqi): Only handle loading subreg:qi of
18507 constant addresses if can_create_pseudo_p.
18509 2016-06-21 Jakub Jelinek <jakub@redhat.com>
18511 PR tree-optimization/71588
18512 * tree-ssa-strlen.c (valid_builtin_call): New function.
18513 (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
18516 2016-06-20 Jakub Jelinek <jakub@redhat.com>
18518 PR middle-end/71581
18519 * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
18520 see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
18521 for conversion of scalar user var to complex type and use the
18522 underlying SSA_NAME_VAR in that case. If EXPR is still NULL,
18525 PR rtl-optimization/71591
18526 * toplev.c (toplev::run_self_tests): If no_backend, complain and
18527 don't run any tests.
18529 2016-06-20 Hans-Peter Nilsson <hp@axis.com>
18532 * config/cris/cris.c (cris_asm_output_mi_thunk): Add missing "ba"
18533 delay-slot "nop" for PIC with CRIS v32. Also add missing leading
18534 space for PIC with non-v32 and the common non-PIC "jump".
18536 2016-06-20 Jakub Jelinek <jakub@redhat.com>
18539 * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
18540 returned values and add UN*/LTGT/*ORDERED cases with values matching
18541 D operand modifier on vcmp for AVX.
18543 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
18545 * config/aarch64/aarch64.opt
18546 (mpc-relative-literal-loads): Rename internal option name.
18547 * config/aarch64/aarch64.c
18548 (aarch64_nopcrelative_literal_loads): Rename to
18549 aarch64_pcrelative_literal_loads.
18550 (aarch64_expand_mov_immediate): Likewise.
18551 (aarch64_secondary_reload): Likewise.
18552 (aarch64_can_use_per_function_literal_pools_p): Likewise.
18553 (aarch64_override_options_after_change_1): Rename and simplify logic.
18554 (aarch64_classify_symbol): Merge large model checks into switch,
18555 remove pc-relative load check.
18557 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
18559 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): Make FP
18560 costs relative to the cost of a register move.
18562 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
18564 * config/aarch64/arm_neon.h (vcvt_n_f64_s64): New.
18565 (vcvt_n_f64_u64): Likewise.
18566 (vcvt_n_s64_f64): Likewise.
18567 (vcvt_n_u64_f64): Likewise.
18568 (vcvt_f64_s64): Likewise.
18569 (vrecpe_f64): Likewise.
18570 (vcvt_f64_u64): Likewise.
18571 (vrecps_f64): Likewise.
18573 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
18575 * config/aarch64/aarch64.md
18576 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3): Add attributes to
18578 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>3): Likewise. Correct
18580 * config/aarch64/aarch64-builtins.c
18581 (aarch64_types_binop_uss_qualifiers): Delete.
18582 (TYPES_BINOP_USS): Likewise.
18583 (aarch64_types_binop_sus_qualifiers): Likewise.
18584 (TYPES_BINOP_SUS): Likewise.
18585 (aarch64_types_fcvt_from_unsigned_qualifiers): New.
18586 (TYPES_FCVTIMM_SUS): Likewise.
18587 * config/aarch64/aarch64-simd-builtins.def (scvtf): Use SHIFTIMM
18589 (ucvtf): Use FCVTIMM_SUS rather than BINOP_SUS.
18590 (fcvtzs): Use SHIFTIMM rather than BINOP.
18591 (fcvtzu): Use SHIFTIMM_USS rather than BINOP_USS.
18593 2016-06-20 James Greenhalgh <james.greenhalgh@arm.com>
18595 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Make FP
18596 costs relative to the cost of a register move.
18598 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
18600 * config/aarch64/aarch64.c (aarch64_modes_tieable_p):
18601 Allow scalar/single vector modes to be tieable.
18603 2016-06-20 Wilco Dijkstra <wdijkstr@arm.com>
18605 * config/arm/cortex-a57.md (cortex_a57_fp_cpys): Add fcsel.
18607 2016-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18609 * params.def (PARAM_ALIGN_LOOP_ITERATIONS): Use "alignment" instead of
18611 * tree.h (TYPE_ALIGN): Likewise.
18613 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
18616 * config/avr/avr.md (movqi): Handle loading subreg:qi (const).
18618 2016-06-20 Georg-Johann Lay <avr@gjlay.de>
18620 * config/avr/avr.c (avr_print_operand): Fix "format not a string
18621 literal" build warnings.
18622 (avr_print_operand_address): Dito.
18624 2016-06-19 David Edelsohn <dje.gcc@gmail.com>
18627 * config/rs6000/aix51.h (TARGET_EXTRA_BUILTINS): Define as 0.
18628 * config/rs6000/aix43.h (TARGET_EXTRA_BUILTINS): Same.
18630 2016-06-18 John David Anglin <danglin@gcc.gnu.org>
18632 * config/pa/pa.h (TARGET_LONG_PIC_PCREL_CALL): Remove.
18634 2016-06-18 Eric Botcazou <ebotcazou@adacore.com>
18637 * reload1.c (reload): Pass 0 to finish_spills when called because
18638 update_eliminables_and_spill returns true and remove did_spill.
18639 (finish_spills): Adjust comment and document GLOBAL parameter.
18641 2016-06-17 DJ Delorie <dj@redhat.com>
18644 * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
18645 * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
18646 (umulqihi3_virt): Likewise.
18647 * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
18648 (umulqihi3_real): Likewise.
18650 2016-06-17 Martin Liska <mliska@suse.cz>
18652 * tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
18654 2016-06-17 Martin Liska <mliska@suse.cz>
18656 * predict.def: PRED_LOOP_EXIT from 92 to 85.
18658 2016-06-17 James Greenhalgh <james.greenhalgh@arm.com>
18660 * config/arm/arm_neon.h (vadd_f32): replace __FAST_MATH with
18662 (vaddq_f32): Likewise.
18663 (vmul_f32): Likewise.
18664 (vmulq_f32): Likewise.
18665 (vsub_f32): Likewise.
18666 (vsubq_f32): Likewise.
18668 2016-06-17 Bin Cheng <bin.cheng@arm.com>
18670 PR tree-optimization/71347
18671 * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compute
18672 cost for all uses in group.
18674 2016-06-17 Bin Cheng <bin.cheng@arm.com>
18676 * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
18677 insert gimple seq if it's not empty.
18679 2016-06-17 Bin Cheng <bin.cheng@arm.com>
18681 * tree-vectorizer.h (struct dr_with_seg_len): Remove class
18683 * tree-vect-data-refs.c (operator ==): Handle DR_OFFSET directly,
18684 rather than OFFSET.
18685 (comp_dr_with_seg_len_pair): Ditto.
18686 (vect_prune_runtime_alias_test_list): Ditto. Also Canonicalize
18687 struct dr_with_seg_len_pair against DR_OFFSET.
18688 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Handle
18689 DR_OFFSET directly.
18691 2016-06-17 Szabolcs Nagy <szabolcs.nagy@arm.com>
18693 * config/aarch64/geniterators.sh: Handle parenthesised conditions.
18695 2016-06-16 John David Anglin <danglin@gcc.gnu.org>
18697 * config/pa/pa.c (pa_output_pic_pcrel_sequence): New.
18698 (pa_output_lbranch): Use pa_output_pic_pcrel_sequence.
18699 (pa_output_millicode_call): Likewise.
18700 (pa_output_call): Likewise.
18701 (pa_output_indirect_call): Likewise.
18702 (pa_asm_output_mi_thunk): Likewise.
18704 2016-06-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
18706 * doc/invoke.texi (x86 Options): Fix -mno-fp-ret-in-387 typo.
18708 2016-06-16 Martin Liska <mliska@suse.cz>
18710 * predict.c (combine_predictions_for_insn): When we find a first
18711 match predictor, we should consider just predictors with
18712 PRED_FLAG_FIRST_MATCH. Print either first match (if any) or
18713 DS theory predictor.
18714 (combine_predictions_for_bb): Likewise.
18716 2016-06-16 Jakub Jelinek <jakub@redhat.com>
18718 * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
18719 with base of reference to struct.
18721 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
18723 * doc/invoke.texi (x86 Options): Document -m80387 and -mhard-float.
18725 2016-06-16 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
18728 * config/avr/avr.c (avr_asm_init_sections): Remove setup of
18729 progmem_swtable_section.
18730 (progmem_swtable_section): Remove.
18731 (avr_asm_function_rodata_section): Remove.
18732 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
18733 * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION: Define to 1.
18735 2016-06-16 Jocelyn Mayer <l_indien@magic.fr>
18737 * config/i386/driver-i386.c (host_detect_local_cpu): Set
18738 PROCESSOR_K8 for signature_CENTAUR_ebx with has_longmode.
18739 <case PROCESSOR_K8>: Pass nano-3000, nano, eden-x2 or k8 for
18740 signature_CENTAUR_ebx.
18741 * config/i386/i386.c (ix86_option_override_internal): Add
18742 definitions for VIA c7, samuel-2, nehemiah, esther, eden-x2, eden-x4,
18743 nano, nano-1000, nano-2000, nano-3000, nano-x2 and nano-x4.
18744 * doc/invoke.texi (x86 Options): Document new VIA -march entries.
18746 2016-06-16 Martin Liska <mliska@suse.cz>
18748 * predict.def: Add fortran loop preheader predictor.
18749 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Properly
18750 fold IFN_BUILTIN_EXPECT with a known constant argument.
18752 2016-06-16 Martin Liska <mliska@suse.cz>
18754 * predict.def: Add 'Fortran' to display text of all
18755 PRED_FORTRAN_* predictors.
18757 2016-06-16 Uros Bizjak <ubizjak@gmail.com>
18760 * config/ia64/ia64.c (enum ia64_builtins) [IA64_BUILTIN_NANQ]: New.
18761 [IA64_BUILTIN_NANSQ]: Ditto.
18762 (ia64_fold_builtin): New function.
18763 (TARGET_FOLD_BUILTIN): New define.
18764 (ia64_init_builtins) Declare const_string_type node.
18765 Add __builtin_nanq and __builtin_nansq builtin functions.
18766 (ia64_expand_builtin): Handle IA64_BUILTIN_NANQ and IA64_BUILTIN_NANSQ.
18768 2016-06-16 Nick Clifton <nickc@redhat.com>
18770 * config/msp430/msp430-opts.h (msp430_hwmult_types): Add
18771 MSP430_HWMULT_ prefix to enum values.
18772 (msp430_regions): Add MSP430_REGION_ prefix to enum values.
18773 * config/msp430/msp430.c: Update use of enum values.
18774 * config/msp430/msp430.md: Likewise.
18775 * config/msp430/msp430.opt: Likewise.
18777 2016-06-16 Jan Hubicka <hubicka@ucw.cz>
18779 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Fix estimation
18780 of comparsions in the last iteration.
18782 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
18783 Joern Rennecke <joern.rennecke@embecosm.com>
18785 * config/arc/arc.c (arc_print_operand_address): Handle pc-relative
18787 (arc_needs_pcl_p): Add GOTOFFPC.
18788 (arc_legitimate_pic_addr_p): Likewise.
18789 (arc_output_pic_addr_const): Likewise.
18790 (arc_legitimize_pic_address): Generate a pc-relative address using
18792 (arc_output_libcall): Use @pcl syntax.
18793 (arc_delegitimize_address_0): Delegitimize ARC_UNSPEC_GOTOFFPC.
18794 * config/arc/arc.md ("unspec"): Add ARC_UNSPEC_GOTOFFPC.
18795 (*movsi_insn): Use @pcl syntax.
18796 (doloop_begin_i): Likewise.
18798 2016-06-16 Martin Liska <mliska@suse.cz>
18800 * predict.def: Define a new predictor.
18802 2016-06-16 Claudiu Zissulescu <claziss@synopsys.com>
18804 * config/arc/arc.opt (mtp-regno): Update text.
18806 2016-06-16 Renlin Li <renlin.li@arm.com>
18808 * config/aarch64/aarch64.c (aarch64_legitimize_address): Fix a typo.
18810 2016-06-16 Jakub Jelinek <jakub@redhat.com>
18813 * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
18814 (setcc + and peephole2): Likewise.
18816 PR rtl-optimization/71532
18817 * cse.c (cse_insn): For const/pure calls, invalidate argument passing
18820 2016-06-15 Michael Meissner <meissner@linux.vnet.ibm.com>
18822 * config/rs6000/vsx.md (VSINT_84): Add DImode to enable loading
18823 DImode constants with XXSPLTIB in vector registers.
18824 (vsx_extract_<mode>, V2DImode/V2DFmode): Combine both
18825 vsx_extract_<mode>_internal{1,2} into a single insn that handles
18826 direct move (both ISA 2.07 and ISA 3.0 versions), and optimizes
18827 extraction of the element at the top of the register as a scalar
18829 (vsx_extract_<mode>_internal1): Likewise.
18830 (vsx_extract_<mode>_internal2): Likewise.
18831 * config/rs6000/constraints.md (wi constraint): Remove a comment
18832 about DImode not being allowed in Altivec registers.
18833 (wB constraint): New constraint for constants that can be
18834 generated in Altivec registers with VSPLTISW/VUPKHSW.
18835 * config/rs6000/predicates.md (xxspltib_constant_split): Update
18837 (xxspltib_constant_nosplit): Likewise.
18838 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Add
18839 support for -mupper-regs-di to enable DImode to go into Altivec
18841 (POWERPC_MASKS): Likewise.
18842 (power7 cpu): Likewise.
18843 * config/rs6000/rs6000.opt (-mupper-regs-di): Likewise.
18844 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
18845 for DImode being allowed in Altivec registers. Update wi/wj
18846 constraints. Set scalar_in_vmx_p flag.
18847 (rs6000_option_override_internal): Add checks for -mupper-regs-di.
18848 (xxspltib_constant_p): Allow CONST_INT's with VOIDmode. Don't
18849 return true if we could use VSPLTISW/VUPKHSW instead of XXSPLTIB.
18850 (rs6000_opt_masks): Add -mupper-regs-di.
18851 * config/rs6000/rs6000.md (lfiwax): Update clobbers that don't use
18852 direct move to use wi and not wj.
18853 (lfiwzx): Likewise.
18854 (floatsi<mode>2_lfiwax_mem): Combine alternatives into a single
18856 (floatunssi<mode>2_lfiwzx_mem): Likewise.
18857 (fix_trunc<mode>di2_fctidz): Change second alternative to allow
18858 any VSX register, instead of just Altivec registers, to allow
18859 either operand to be an Altivec register or both.
18860 (fixuns_trunc<mode>di2_fctiduz): Likewise.
18861 (movdi_internal32): Add support for -mupper-regs-di. Add support
18862 to load constants via XXSPLTIB or VSPLTISW. Add spacing to allow
18863 the alternatives and attributes to be lined up to be easier to
18865 (movdi_internal64): Likewise.
18866 (64-bit DImode splitters): Change predicates to only split loading
18867 up GPR registers. Add splits for using XXSPLTIB or VSPLTISW to
18868 load constants in ISA 3.0 or ISA 2.07 respectively.
18869 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
18870 -mupper-regs-di. Update -mupper-regs-df and -mupper-regs-sf to
18871 mention -mcpu=power9 sets these options.
18872 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
18875 2016-06-15 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
18878 * config/avr/avr.c (avr_set_current_function): Warn misspelled
18879 interrupt/ signal handler if -Wmisspelled-isr flag is enabled.
18880 * config/avr/avr.opt (Wmisspelled-isr): New warning flag. Enabled
18881 by default to warn misspelled interrupt/ signal handler.
18882 * doc/invoke.texi (AVR Options): Document it. Update description
18883 for -nodevicelib option.
18885 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18887 * config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
18888 up parentheses. Use GET_MODE_UNIT_BITSIZE.
18889 (aarch64_<sur>shll2_n<mode>): Likewise.
18891 2016-06-15 Ilya Enkovich <ilya.enkovich@intel.com>
18893 PR middle-end/71529
18894 * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
18895 DECL_CONTEXT for copied arguments.
18897 2016-06-15 Alan Hayward <alan.hayward@arm.com>
18899 PR tree-optimization/71483
18900 * tree-vect-loop.c (vectorizable_live_operation): Pick correct index
18903 2016-06-15 Martin Liska <mliska@suse.cz>
18905 * predict.c (tree_predict_by_opcode): Call predict_edge_def
18906 instead of predict_edge w/o a probability.
18908 2016-06-15 Alan Hayward <alan.hayward@arm.com>
18910 PR tree-optimization/71439
18911 * tree-vect-loop.c (vect_analyze_loop_operations): Additional check for
18914 2016-06-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18916 * ifcvt.c (bb_ok_for_noce_multiple_sets): Allow simple lowpart
18917 register subregs in SET_SRC.
18919 2016-06-15 Richard Biener <rguenther@suse.de>
18921 * tree-vect-stmts.c (vectorizable_store): Remove strided grouped
18922 store restrictions.
18924 2016-06-15 Richard Biener <rguenther@suse.de>
18926 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Do
18927 not consider dependences between accesses that belong to the
18929 (vect_analyze_data_ref_dependences): Do not analyze read-read
18930 or self-dependences.
18932 2016-06-14 David Malcolm <dmalcolm@redhat.com>
18934 * spellcheck-tree.c: Include spellcheck-tree.h rather than
18936 (find_closest_identifier): Reimplement in terms of
18937 best_match<tree,tree>.
18938 * spellcheck-tree.h: New file.
18939 * spellcheck.c (struct edit_distance_traits<const char *>): New
18941 (find_closest_string): Reimplement in terms of
18942 best_match<const char *, const char *>.
18943 * spellcheck.h (levenshtein_distance): Move prototype of tree-based
18944 overload to spellcheck-tree.h.
18945 (find_closest_identifier): Likewise.
18946 (struct edit_distance_traits<T>): New template.
18947 (class best_match): New class.
18949 2016-06-14 David Malcolm <dmalcolm@redhat.com>
18951 * selftest-run-tests.c (selftest::run_tests): Call
18952 selftest::spellcheck_tree_c_tests.
18953 * selftest.h (selftest::spellcheck_tree_c_tests): New decl.
18954 * spellcheck-tree.c: Include selftest.h and stringpool.h.
18955 (selftest::test_find_closest_identifier): New function.
18956 (selftest::spellcheck_tree_c_tests): New function.
18957 * spellcheck.c (selftest::test_find_closest_string): Verify that
18958 the order of the vec does not affect the results for this case.
18959 (selftest::test_data): New array.
18960 (selftest::test_metric_conditions): New function.
18961 (selftest::spellcheck_c_tests): Add a test of case-comparison.
18962 Call selftest::test_metric_conditions.
18964 2016-06-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18966 * config/rs6000/rs6000-builtin.def (commentary): Typo.
18967 (BU_P9_MISC_1): Likewise.
18968 (BU_P9_64BIT_MISC_0): Likewise.
18969 (BU_P9_MISC_0): Likewise.
18971 2016-06-14 David Malcolm <dmalcolm@redhat.com>
18973 * gcc-rich-location.c
18974 (gcc_rich_location::add_fixit_misspelled_id): New method.
18975 * gcc-rich-location.h
18976 (gcc_rich_location::add_fixit_misspelled_id): Add decl.
18978 2016-06-14 Andreas Tobler <andreast@gcc.gnu.org>
18980 * config/arm/freebsd.h: Only enable unaligned access for armv6 on
18981 FreeBSD 11 and above.
18983 2016-06-14 Uros Bizjak <ubizjak@gmail.com>
18985 * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
18987 2016-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18989 * expmed.h: Close parenthesis in "at your option" in copyright
18991 * lower-subreg.h: Likewise.
18993 2016-06-14 Richard Biener <rguenther@suse.de>
18995 PR middle-end/71526
18996 * genmatch.c (expr::gen_transform): Use in_type for comparisons
18999 2015-06-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19001 * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
19003 (aarch64_rtx_costs): Use it. Rewrite CONST_INT_P (op1) case to handle
19004 mask+shift version.
19005 * config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
19007 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
19008 matching condition with aarch64_mask_and_shift_for_ubfiz_p.
19010 2016-06-14 Richard Biener <rguenther@suse.de>
19012 PR tree-optimization/71522
19013 * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
19014 copying into float copying.
19016 2016-06-14 Jakub Jelinek <jakub@redhat.com>
19018 PR tree-optimization/71520
19019 * tree-ssa-tail-merge.c (find_duplicate): Handle labels.
19020 (replace_block_by): Move user labels from bb1 to bb2.
19022 2016-06-14 Richard Biener <rguenther@suse.de>
19024 PR middle-end/71310
19026 * expr.h (get_bit_range): Declare.
19027 * expr.c (get_bit_range): Export.
19028 * fold-const.c (optimize_bit_field_compare): Use get_bit_range and
19029 word_mode again to constrain the bitfield access.
19031 2016-06-14 Richard Biener <rguenther@suse.de>
19033 PR tree-optimization/71521
19034 * tree-vrp.c (extract_range_from_binary_expr_1): Guard
19035 division int_const_binop against zero divisor.
19037 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
19039 * config/i386/i386.md (signbittf2): New expander.
19040 * config/i386/sse.md (ptesttf2): New insn pattern.
19042 2016-06-13 David Malcolm <dmalcolm@redhat.com>
19045 * input.c (selftest::test_reading_source_line): Avoid reading from
19046 __FILE__ by creating a tempfile with known content and reading
19049 2016-06-13 David Malcolm <dmalcolm@redhat.com>
19051 * pretty-print.c (assert_pp_format_colored): Skip the test if
19053 (test_pp_format): Remove comment about GCC_COLORS.
19055 2016-06-13 David Malcolm <dmalcolm@redhat.com>
19057 * input.c (test_reading_source_line): Use SELFTEST_LOCATION.
19058 * pretty-print.c (assert_pp_format_va): Add location param and use
19059 it with ASSERT_STREQ_AT.
19060 (assert_pp_format): Add location param and pass it to
19061 assert_pp_format_va.
19062 (assert_pp_format_colored): Likewise.
19063 (ASSERT_PP_FORMAT_1): New.
19064 (ASSERT_PP_FORMAT_2): New.
19065 (ASSERT_PP_FORMAT_3): New.
19066 (test_pp_format): Provide SELFTEST_LOCATION throughout, either
19067 explicitly, or implicitly via the above macros.
19068 * selftest.c (selftest::pass): Use a selftest::location rather
19069 than file and line.
19070 (selftest::fail): Likewise. Print the function name.
19071 (selftest::fail_formatted): Likewise.
19072 (selftest::assert_streq): Use a selftest::location rather than
19074 * selftest.h (selftest::location): New struct.
19075 (SELFTEST_LOCATION): New macro.
19076 (selftest::pass): Accept a const location & rather than file
19078 (selftest::fail): Likewise.
19079 (selftest::fail_formatted): Likewise.
19080 (selftest::assert_streq): Likewise.
19081 (ASSERT_TRUE): Update for above changes, using SELFTEST_LOCATION.
19082 (ASSERT_FALSE): Likewise.
19083 (ASSERT_EQ): Likewise.
19084 (ASSERT_NE): Likewise.
19085 (ASSERT_STREQ): Likewise.
19086 (ASSERT_PRED1): Likewise.
19087 (ASSERT_STREQ_AT): New macro.
19089 2016-06-13 David Malcolm <dmalcolm@redhat.com>
19091 * selftest.c (selftest::fail_formatted): New function.
19092 (selftest::assert_streq): New function.
19093 * selftest.h (selftests::fail_formatted): New decl.
19094 (selftest::assert_streq): New decl.
19095 (ASSERT_STREQ): Reimplement in terms of selftest::assert_streq.
19097 2016-06-13 Jeff Law <law@redhat.com>
19099 PR tree-optimization/71403
19100 * tree-ssa-threadbackward.c
19101 (convert_and_register_jump_thread_path): No longer accept reference
19102 to path. Do not pop items off the path anymore.
19103 (fsm_find_control_statement_thread_paths): Do not allow threading
19104 to a deeper loop nest. Pop the last item off the path here rather
19105 than in convert_and_register_jump_thread_path.
19107 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
19108 Wilco Dijkstra <Wilco.Dijkstra@arm.com>
19110 [AArch64] Emit division using the Newton series
19112 * config/aarch64/aarch64-protos.h
19113 (cpu_approx_modes): Add new member "division".
19114 (aarch64_emit_approx_div): Declare new function.
19115 * config/aarch64/aarch64.c
19116 (generic_approx_modes): New member "division".
19117 (exynosm1_approx_modes): Likewise.
19118 (xgene1_approx_modes): Likewise.
19119 (aarch64_emit_approx_div): Define new function.
19120 * config/aarch64/aarch64.md ("div<mode>3"): New expansion.
19121 * config/aarch64/aarch64-simd.md ("div<mode>3"): Likewise.
19122 * config/aarch64/aarch64.opt (-mlow-precision-div): Add new option.
19123 * doc/invoke.texi (-mlow-precision-div): Describe new option.
19125 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
19126 Wilco Dijkstra <wilco.dijkstra@arm.com>
19128 [AArch64] Emit square root using the Newton series
19130 * config/aarch64/aarch64-protos.h
19131 (aarch64_emit_approx_rsqrt): Replace with new function
19132 "aarch64_emit_approx_sqrt".
19133 (cpu_approx_modes): New member "sqrt".
19134 * config/aarch64/aarch64.c
19135 (generic_approx_modes): New member "sqrt".
19136 (exynosm1_approx_modes): Likewise.
19137 (xgene1_approx_modes): Likewise.
19138 (aarch64_emit_approx_rsqrt): Replace with new function
19139 "aarch64_emit_approx_sqrt".
19140 (aarch64_override_options_after_change_1): Handle new option.
19141 * config/aarch64/aarch64-simd.md
19142 (rsqrt<mode>2): Use new function instead.
19143 (sqrt<mode>2): New expansion and insn definitions.
19144 * config/aarch64/aarch64.md: Likewise.
19145 * config/aarch64/aarch64.opt
19146 (mlow-precision-sqrt): Add new option description.
19147 * doc/invoke.texi (mlow-precision-sqrt): Likewise.
19149 2016-06-13 Evandro Menezes <e.menezes@samsung.com>
19151 [AArch64] Add more choices for the reciprocal square root approximation
19153 Allow a target to prefer such operation depending on the operation mode.
19155 * config/aarch64/aarch64-protos.h
19156 (AARCH64_APPROX_MODE): New macro.
19157 (AARCH64_APPROX_{NONE,ALL}): Likewise.
19158 (cpu_approx_modes): New structure.
19159 (tune_params): New member "approx_modes".
19160 * config/aarch64/aarch64-tuning-flags.def
19161 (AARCH64_EXTRA_TUNE_APPROX_RSQRT): Remove macro.
19162 * config/aarch64/aarch64.c
19163 (generic_approx_modes): New core "cpu_approx_modes" structure.
19164 (exynosm1_approx_modes): Likewise.
19165 (xgene1_approx_modes): Likewise.
19166 (generic_tunings): New member "approx_modes".
19167 (cortexa35_tunings): Likewise.
19168 (cortexa53_tunings): Likewise.
19169 (cortexa57_tunings): Likewise.
19170 (cortexa72_tunings): Likewise.
19171 (exynosm1_tunings): Likewise.
19172 (thunderx_tunings): Likewise.
19173 (xgene1_tunings): Likewise.
19174 (use_rsqrt_p): New argument for the mode and use new member from
19176 (aarch64_builtin_reciprocal): Devise mode from builtin.
19177 (aarch64_optab_supported_p): New argument for the mode.
19178 * doc/invoke.texi (-mlow-precision-recip-sqrt): Reword description.
19180 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
19182 * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
19183 RS6000_BTM_MODULO flag into the set of flags that are considered
19184 to be part of the common configuration.
19186 2016-06-13 Kelvin Nilsen <kelvin@gcc.gnu.org>
19188 * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
19189 difference unsigned.
19190 (vec_absdb): New macro for vector absolute difference unsigned
19192 (vec_absdh): New macro for vector absolute difference unsigned
19194 (vec_absdw): New macro for vector absolute difference unsigned word.
19195 * config/rs6000/altivec.md (UNSPEC_VADU): New value.
19196 (vadu<mode>3): New insn.
19197 (*p9_vadu<mode>3): New insn.
19198 * config/rs6000/rs6000-builtin.def (vadub): New built-in
19200 (vaduh): New built-in definition.
19201 (vaduw): New built-in definition.
19202 (vadu): New overloaded built-in definition.
19203 (vadub): New overloaded built-in definition.
19204 (vaduh): New overloaded built-in definition.
19205 (vaduw): New overloaded built-in definition.
19206 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
19207 overloaded vector absolute difference unsigned functions.
19208 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
19209 the ISA 3.0 vector absolute difference unsigned built-in functions.
19211 2016-06-13 Eric Botcazou <ebotcazou@adacore.com>
19213 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
19214 update shared_lookup_references only once after changing operands.
19216 2016-06-13 Thomas Schwinge <thomas@codesourcery.com>
19218 PR middle-end/71373
19219 * tree-nested.c (convert_nonlocal_omp_clauses)
19220 (convert_local_omp_clauses): Document missing OMP_CLAUSE_*.
19222 * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
19223 * tree.def (CASE_LABEL_EXPR): Likewise.
19225 2016-06-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
19228 * input.c (test_builtins): Fix an assertion.
19230 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
19232 * config/i386/i386.md (paritydi2): Use ix86_expand_setcc.
19233 (paritysi2): Ditto.
19235 (isinf<mode>2): Ditto.
19237 2016-06-13 Uros Bizjak <ubizjak@gmail.com>
19239 * ggc-tests.c (test_finalization): Only test need_finalization_p
19240 for GCC_VERSION >= 4003.
19242 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19244 * config/s390/vecintrin.h: Fix file description in comment.
19246 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19248 * config/s390/s390-builtin-types.def: Change builtin type naming
19249 scheme to match builtin-types.def.
19251 2016-06-13 Marc Glisse <marc.glisse@inria.fr>
19253 * fold-const.c (optimize_minmax_comparison): Remove.
19254 (fold_comparison): Remove call to the above.
19255 * match.pd (MIN (X, Y) == X, MIN (X, 5) == 0, MIN (X, C1) < C2):
19256 New transformations.
19258 2016-06-13 Alan Hayward <alan.hayward@arm.com>
19260 PR tree-optimization/71416
19261 * tree-vect-loop.c (vectorizable_live_operation): Let worklist have
19264 2016-06-13 Martin Liska <mliska@suse.cz>
19266 * predict.c (enum predictor_reason): Prefix enum with REASON_.
19267 (combine_predictions_for_insn): Likewise.
19268 (prune_predictions_for_bb): Likewise.
19269 (combine_predictions_for_bb): Likewise.
19271 2016-06-13 Richard Biener <rguenther@suse.de>
19273 PR tree-optimization/71505
19274 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
19275 assert match comment.
19277 2016-06-13 Marek Polacek <polacek@redhat.com>
19279 PR middle-end/71476
19280 * gimplify.c (maybe_warn_switch_unreachable): Factored out of
19281 gimplify_switch_expr.
19282 (warn_switch_unreachable_r): New function.
19284 2016-06-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19287 * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
19290 2016-06-13 Richard Biener <rguenther@suse.de>
19292 PR middle-end/64516
19293 * fold-const.c (fold_unary_loc): Preserve alignment when
19294 folding a VIEW_CONVERT_EXPR into a MEM_REF.
19296 2016-06-13 Martin Liska <mliska@suse.cz>
19299 * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
19300 w/ -fsanitize=bounds.
19302 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
19304 * config/i386/i386.c (ix86_init_builtins): Calculate
19305 FLOAT128_FTYPE_CONST_STRING function type only once.
19306 * doc/extend.texi (x86 Built-in Functions): Update text, __float128
19307 built-in functions are available for x86-32 and x86-64 targets.
19309 2016-06-12 Uros Bizjak <ubizjak@gmail.com>
19312 * config/i386/i386.i386-builtin-types.def (CONST_STRING):
19313 New primitive type.
19314 (FLOAT128_FTYPE_CONST_STRING): New function type.
19315 * config/i386/i386.c (enum ix86_builtins) [IX86_BUILTIN_NANQ]: New.
19316 [IX86_BUILTIN_NANSQ]: Ditto.
19317 (ix86_fold_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
19318 (ix86_init_builtin_types): Declare const_string_type_node.
19319 (ix86_init_builtins): Add __builtin_nanq and __builtin_nansq
19321 (ix86_expand_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
19322 * doc/extend.texi (x86 Built-in Functions): Document
19323 __builtin_nanq and __builtin_nansq.
19325 2016-06-11 Jiong Wang <jiong.wang@arm.com>
19328 * config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
19329 * config/arm/arm.c (arm_attr_length_pop_multi): New function to return
19330 length for pop patterns.
19331 (arm_attr_length_push_multi): Update comments.
19332 * config/arm/arm.md (*load_multiple_with_writeback): Set "length"
19334 (*pop_multiple_with_writeback_and_return): Likewise.
19335 (*pop_multiple_with_return): Likewise.
19337 2016-06-11 Segher Boessenkool <segher@kernel.crashing.org>
19339 PR middle-end/71310
19340 * fold-const.c (optimize_bit_field_compare): Don't try to use
19341 word_mode unconditionally for reading the bit field, look at
19342 DECL_BIT_FIELD_REPRESENTATIVE instead.
19344 2016-06-11 Kugan Vivekanandarajah <kuganv@linaro.org>
19346 PR middle-end/71478
19347 * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
19348 vector integer type.
19350 2016-06-10 Jakub Jelinek <jakub@redhat.com>
19352 PR middle-end/71494
19353 * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
19354 without LABEL_DECL, set *handled_ops_p to false instead of true.
19356 2016-06-10 Martin Sebor <msebor@redhat.com>
19359 * builtin-attrs.def (ATTR_NOTHROW_NONNULL_LEAF_LIST): New macro.
19360 (ATTR_NOTHROW_NONNULL_TYPEGENERIC_LEAF): Same.
19361 * builtins.def (BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW): Use
19363 (BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW): Same.
19364 (BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW): Same.
19365 (BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW): Same.
19366 (BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADD_OVERFLOW): Same.
19367 (BUILT_IN_UADDL_OVERFLOW, BUILT_IN_UADDLL_OVERFLOW): Same.
19368 (BUILT_IN_USUB_OVERFLOW, BUILT_IN_USUBL_OVERFLOW): Same.
19369 (BUILT_IN_USUBLL_OVERFLOW, BUILT_IN_UMUL_OVERFLOW): Same.
19370 (BUILT_IN_UMULL_OVERFLOW, BUILT_IN_UMULLL_OVERFLOW): Same.
19372 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
19374 * config/arm/arm.h (pool_vector_label,
19375 return_used_this_function): Remove.
19377 2016-06-10 Jeff Law <law@redhat.com>
19379 PR tree-optimization/71335
19380 * tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
19381 zero length paths here.
19382 (convert_and_register_jump_thread_path): Remove hacks related to
19383 duplicated blocks in the jump thread path.
19384 (fsm_find_control_statement_thread_paths): Avoid putting the same
19385 block on the thread path twice, but ensure the thread path is
19386 unchanged from the caller's point of view.
19388 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
19390 * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
19391 * predict.def (PRED_LOOP_BRANCH): Remove.
19393 2016-06-10 David Malcolm <dmalcolm@redhat.com>
19395 * Makefile.in (OBJS): Add ggc-tests.o.
19396 (GTFILES): Add ggc-tests.c.
19397 * ggc-tests.c: New file.
19398 * selftest-run-tests.c (selftest::run_tests): Call
19399 selftest::ggc_tests_c_tests.
19400 * selftest.h (selftest::ggc_tests_c_tests): New prototype.
19402 2016-06-10 Alexander Monakov <amonakov@ispras.ru>
19404 * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
19406 2016-06-10 Maxim Ostapenko <m.ostapenko@samsung.com>
19409 * varasm.c (place_block_symbol): Adjust alignment for asan protected
19410 STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
19412 2016-06-10 Jan Hubicka <hubicka@ucw.cz>
19414 * profile.c: Include cfgloop.h.
19415 (branch_prob): Compute estimated number of iterations.
19416 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
19417 recompute estimate number of iterations from profile.
19419 2016-06-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
19421 PR inline-asm/68843
19422 * reg-stack.c (check_asm_stack_operands): Explicit input arguments
19423 must be grouped on top of stack. Don't force early clobber
19424 on ordinary reg outputs.
19426 2016-06-10 Richard Biener <rguenther@suse.de>
19428 * targhooks.c (default_builtin_vectorization_cost): Adjust
19429 vec_construct cost.
19431 2016-06-10 Richard Biener <rguenther@suse.de>
19433 * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
19434 to fold the RHS to a constant if possible.
19436 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
19438 PR middle-end/71373
19439 * tree-nested.c (convert_nonlocal_omp_clauses)
19440 (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
19441 OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
19442 OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
19444 * gimplify.c (gimplify_adjust_omp_clauses): Discard
19446 * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
19448 * omp-low.c (scan_sharing_clauses): Don't expect
19449 OMP_CLAUSE__CACHE_.
19451 2016-06-10 Alan Hayward <alan.hayward@arm.com>
19453 PR tree-optimization/71407
19454 PR tree-optimization/71416
19455 * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
19456 BIT_FIELD_REF type.
19458 2016-06-10 Richard Biener <rguenther@suse.de>
19460 PR middle-end/71477
19461 * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
19463 2016-06-09 Eric Botcazou <ebotcazou@adacore.com>
19465 * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
19467 2016-06-09 Vladimir Makarov <vmakarov@redhat.com>
19468 Jiong Wang <jiong.wang@arm.com>
19470 PR rtl-optimization/70751
19471 * lra-constraints.c (process_alt_operands): Recognize Non-pseudo
19472 spilled into memory.
19474 2016-06-09 Jonathan Yong <10walls@gmail.com>
19477 2015-09-21 Jonathan Yong <10walls@gmail.com>
19479 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
19480 sysroot/usr/lib/32api for additional win32 libraries,
19481 fixes failing Cygwin bootstrapping.
19483 2016-06-09 Marcin Baczyński <marbacz@gmail.com>
19485 * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
19488 2016-06-09 David Malcolm <dmalcolm@redhat.com>
19491 * pretty-print.c (pp_indent): Specify that %p is printed in a
19492 host-dependent manner.
19493 (test_pp_format): Remove the test for %p.
19495 2016-06-09 Maciej W. Rozycki <macro@imgtec.com>
19497 * config/mips/mips.c (mips_output_jump): Fix formatting.
19499 2016-06-09 Richard Biener <rguenther@suse.de>
19501 PR tree-optimization/71462
19502 * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
19505 2016-06-09 Martin Liska <mliska@suse.cz>
19507 * predict.c (dump_prediction): Add new argument.
19508 (enum predictor_reason): New enum.
19509 (struct predictor_hash): New struct.
19510 (predictor_hash::hash): New function.
19511 (predictor_hash::equal): Likewise.
19512 (not_removed_prediction_p): New function.
19513 (prune_predictions_for_bb): Likewise.
19514 (combine_predictions_for_bb): Prune predictions.
19516 2016-06-09 Martin Liska <mliska@suse.cz>
19518 * predict.c (filter_predictions): New function.
19519 (remove_predictions_associated_with_edge): Use the filter
19521 (equal_edge_p): New function.
19523 2016-06-09 Stefan Bruens <stefan.bruens@rwth-aachen.de>
19525 * doc/invoke.texi (ARM Options): Use lexicographical ordering.
19526 Correct usage of @samp vs @option, add @samp where appropriate.
19527 Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
19528 Add armv6s-m and document it, as it is no official ARM name.
19530 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19532 * ifcvt.c (struct noce_if_info): Add transform_name field.
19533 (noce_try_move): Set if_info->transform_name to the function name.
19534 (noce_try_ifelse_collapse): Likewise.
19535 (noce_try_store_flag): Likewise.
19536 (noce_try_inverse_constants): Likewise.
19537 (noce_try_store_flag_constants): Likewise.
19538 (noce_try_addcc): Likewise.
19539 (noce_try_store_flag_mask): Likewise.
19540 (noce_try_cmove): Likewise.
19541 (noce_try_cmove_arith): Likewise.
19542 (noce_try_minmax): Likewise.
19543 (noce_try_abs): Likewise.
19544 (noce_try_sign_mask): Likewise.
19545 (noce_try_bitop): Likewise.
19546 (noce_convert_multiple_sets): Likewise.
19547 (noce_process_if_block): Print if_info->transform_name to
19548 dump_file if transformation succeeded.
19550 2016-06-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19552 * config/arm/cortex-a57.md (cortex_a57_alu):
19555 2016-06-08 Martin Sebor <msebor@redhat.com>
19556 Jakub Jelinek <jakub@redhat.com>
19560 * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
19561 BUILT_IN_MUL_OVERFLOW_P): New builtins.
19562 * builtins.c: Include gimple-fold.h.
19563 (fold_builtin_arith_overflow): Handle
19564 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
19565 (fold_builtin_3): Likewise.
19566 * doc/extend.texi (Integer Overflow Builtins): Document
19567 __builtin_{add,sub,mul}_overflow_p.
19569 2016-06-08 Jose E. Marchesi <jose.marchesi@oracle.com>
19571 * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
19572 SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
19574 2016-06-08 Alan Lawrence <alan.lawrence@arm.com>
19576 * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
19577 Rewrite, looking one level down for records and arrays.
19579 2016-06-08 David Malcolm <dmalcolm@redhat.com>
19581 * pretty-print.c: Include "selftest.h".
19582 (pp_format): Fix comment.
19583 (identifier_to_locale): Likewise.
19584 (selftest::test_basic_printing): New function.
19585 (selftest::assert_pp_format): New function.
19586 (selftest::test_pp_format): New function.
19587 (selftest::pretty_print_c_tests): New function.
19588 * selftest-run-tests.c (selftest::run_tests): Call
19589 selftest::pretty_print_c_tests.
19590 * selftest.h (pretty_print_c_tests): New declaration.
19592 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
19594 * invoke.texi (max-loop-headers-insns): Document.
19595 * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
19596 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
19597 (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
19599 2016-06-08 Richard Biener <rguenther@suse.de>
19601 * tree-vect-stmts.c (vectorizable_load): Remove restrictions
19602 on strided SLP loads and fall back to scalar loads in case
19603 we can't chunk them.
19605 2016-06-08 Richard Biener <rguenther@suse.de>
19607 PR tree-optimization/71452
19608 * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
19609 type used for the SSA rewrite has enough precision to cover
19610 the dynamic type of the location.
19612 2016-06-08 Jakub Jelinek <jakub@redhat.com>
19613 Richard Biener <rguenther@suse.de>
19616 * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
19617 the same as DECL_P (base0) for indirect_base0. Use equality_code
19618 in one further place.
19620 2016-06-08 Richard Sandiford <richard.sandiford@arm.com>
19622 * expmed.c (store_bit_field_1): Do not restrict a multiword op0
19623 to one word if the field is known to overlap other words.
19624 (extract_bit_field_1): Likewise.
19625 (store_split_bit_field): Remove compensating code.
19626 (extract_split_bit_field): Likewise.
19628 2016-06-08 Bernd Schmidt <bschmidt@redhat.com>
19632 * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
19634 2016-06-08 Jiong Wang <jiong.wang@arm.com>
19636 * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
19638 * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
19639 (arch64_addpv4sf): Delete.
19640 (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
19641 "gen_aarch64_addpv4sf".
19642 * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly. Use
19644 (vpadds_f32): Likewise.
19645 (vpaddq_f32): Likewise.
19646 (vpaddq_f64): Likewise.
19648 2016-06-08 Jiong Wang <jiong.wang@arm.com>
19650 * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
19652 * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
19653 to VALLF. Rename to "fabd<mode>3".
19654 "*fabd_scalar<mode>3): Delete.
19655 * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
19657 (vabdd_f64): Likewise.
19658 (vabd_f32): Likewise.
19659 (vabd_f64): Likewise.
19660 (vabdq_f32): Likewise.
19661 (vabdq_f64): Likewise.
19663 2016-06-08 Jiong Wang <jiong.wang@arm.com>
19665 * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
19667 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
19668 "aarch64_rsqrts<mode>".
19669 * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
19670 * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly. Use
19672 (vrsqrtsd_f64): Likewise.
19673 (vrsqrts_f32): Likewise.
19674 (vrsqrts_f64): Likewise.
19675 (vrsqrtsq_f32): Likewise.
19676 (vrsqrtsq_f64): Likewise.
19678 2016-06-08 Jiong Wang <jiong.wang@arm.com>
19680 * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
19682 * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
19683 "aarch64_rsqrte<mode>".
19684 * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
19685 * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly. Use
19687 (vrsqrted_f64): Likewise.
19688 (vrsqrte_f32): Likewise.
19689 (vrsqrte_f64): Likewise.
19690 (vrsqrteq_f32): Likewise.
19691 (vrsqrteq_f64): Likewise.
19693 2016-06-08 Jiong Wang <jiong.wang@arm.com>
19695 * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
19697 (fcvtzs): Likewise.
19698 (fcvtzu): Likewise.
19699 * config/aarch64/aarch64-simd.md
19700 (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
19701 (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
19702 * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
19704 (vcvt_n_f32_u32): Likewise.
19705 (vcvt_n_s32_f32): Likewise.
19706 (vcvt_n_u32_f32): Likewise.
19707 (vcvtq_n_f32_s32): Likewise.
19708 (vcvtq_n_f32_u32): Likewise.
19709 (vcvtq_n_f64_s64): Likewise.
19710 (vcvtq_n_f64_u64): Likewise.
19711 (vcvtq_n_s32_f32): Likewise.
19712 (vcvtq_n_s64_f64): Likewise.
19713 (vcvtq_n_u32_f32): Likewise.
19714 (vcvtq_n_u64_f64): Likewise.
19715 * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
19716 (VSDQ_SDI): Likewise.
19717 (fcvt_target): Support V4DI, V4SI and V2SI.
19718 (FCVT_TARGET): Likewise.
19720 2016-06-08 Jiong Wang <jiong.wang@arm.com>
19722 * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
19723 (TYPES_BINOP_SUS): Likewise.
19724 (aarch64_simd_builtin_data): Update include file name.
19725 (aarch64_builtins): Likewise.
19726 * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
19727 for conversion between scalar float-point and fixed-point.
19729 (fcvtzs): Likewise.
19730 (fcvtzu): Likewise.
19731 * config/aarch64/aarch64.md
19732 (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
19733 pattern for conversion between scalar float to fixed-pointer.
19734 (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
19735 (UNSPEC_FCVTZS): New UNSPEC enumeration.
19736 (UNSPEC_FCVTZU): Likewise.
19737 (UNSPEC_SCVTF): Likewise.
19738 (UNSPEC_UCVTF): Likewise.
19739 * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
19741 (vcvtd_n_f64_u64): Likewise.
19742 (vcvtd_n_s64_f64): Likewise.
19743 (vcvtd_n_u64_f64): Likewise.
19744 (vcvtd_n_f32_s32): Likewise.
19745 (vcvts_n_f32_u32): Likewise.
19746 (vcvtd_n_s32_f32): Likewise.
19747 (vcvts_n_u32_f32): Likewise.
19748 * config/aarch64/iterators.md (fcvt_target): Support integer to float
19750 (FCVT_TARGET): Likewise.
19751 (FCVT_FIXED2F): New iterator.
19752 (FCVT_F2FIXED): Likewise.
19753 (fcvt_fixed_insn): New define_int_attr.
19755 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
19757 * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
19758 some statements was removed.
19760 2016-06-08 Alan Hayward <alan.hayward@arm.com>
19762 * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
19763 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
19764 (vect_can_advance_ivs_p): likewise.
19765 (vect_update_ivs_after_vectorizer): likewise.
19766 * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
19767 (vect_analyze_scalar_cycles_1): likewise.
19768 (vect_analyze_loop_operations): likewise.
19769 (report_vect_op): likewise.
19770 (vect_is_slp_reduction): likewise.
19771 (vect_is_simple_reduction): likewise.
19772 (get_initial_def_for_induction): likewise.
19773 (vect_transform_loop): likewise.
19774 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
19775 (vect_recog_sad_pattern): likewise.
19776 (vect_recog_widen_sum_pattern): likewise.
19777 (vect_recog_widening_pattern): likewise.
19778 (vect_recog_divmod_pattern): likewise.
19779 * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
19780 (vect_analyze_slp_instance): likewise.
19781 (vect_transform_slp_perm_load): likewise.
19782 (vect_schedule_slp_instance): likewise.
19784 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
19786 * predict.c (predict_iv_comparison): Mention that heuristics is broken.
19787 (return_prediction): PRED_CONST_RETURN predict return as not taken.
19788 * predict.def (PRED_CONTINUE): Change hitrate 50->67
19789 (PRED_LOOP_BRANCH): Document predictor as broken.
19790 (PRED_LOOP_EXIT): Change hitrate 91->92.
19791 (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
19792 (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
19793 (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
19794 (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
19795 (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
19796 (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
19797 (PRED_CALL): Chane hitrate 71->67.
19798 (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
19799 (PRED_GOTO): Document as unused right now.
19800 (PRED_CONST_RETURN): Change hitrate 67->69
19801 (PRED_NEGATIVE_RETURN): Change hitrate 96->98
19802 (PRED_NULL_RETURN): Change hitrate 91->90.
19803 (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
19804 (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
19805 (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
19807 2016-06-07 Bill Seurer <seurer@linux.vnet.ibm.com>
19809 * config/rs6000/altivec.h: Add __builtin_vec_mul.
19810 * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
19811 special case Altivec builtin.
19812 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
19813 VSX_BUILTIN_VEC_MUL (replaced with special case code).
19814 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
19815 code for ALTIVEC_BUILTIN_VEC_MUL.
19816 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
19817 for __builtin_vec_mul.
19819 2016-06-07 Peter Bergner <bergner@vnet.ibm.com>
19821 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
19824 2016-06-07 David Malcolm <dmalcolm@redhat.com>
19826 * spellcheck.c (selftest::test_find_closest_string): New function.
19827 (spellcheck_c_tests): Call the above.
19829 2016-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19831 * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable.
19833 2016-06-07 Jakub Jelinek <jakub@redhat.com>
19835 * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
19836 Yv=Yv,C alternatives.
19838 2016-06-07 Richard Biener <rguenther@suse.de>
19841 * common.opt (ffast-math): Make Optimization.
19843 2016-06-07 Simon Dardis <simon.dardis@imgtec.com>
19844 Prachi Godbole <prachi.godbole@imgtec.com>
19846 * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
19847 `fabs' and `fneg' type attributes.
19848 (p5600_fpu_fabs): Add `fmove' to the comment.
19850 2016-06-07 Jan Hubicka <hubicka@ucw.cz>
19852 * gimple.c: Include builtins.h
19853 (gimple_inexpensive_call_p): New function.
19854 * gimple.h (gimple_inexpensive_call_p): Declare.
19855 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
19856 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
19859 2016-06-07 Paolo Carlini <paolo.carlini@oracle.com>
19861 * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
19862 (inform, inform_at_rich_loc, inform_n, warning, warning_at,
19863 warning_at_rich_loc, warning_n, pedwarn, permerror,
19864 permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
19865 sorry, fatal_error, internal_error, internal_error_no_backtrace):
19868 2016-06-07 Richard Biener <rguenther@suse.de>
19870 PR tree-optimization/71428
19871 * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
19872 BIT_FIELD_REF op vs. load.
19874 2016-06-07 Richard Biener <rguenther@suse.de>
19876 PR middle-end/71423
19877 * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
19880 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
19882 * config/pa/pa.md (call): Generate indirect long calls to non-local
19883 functions on TARGET_64BIT.
19884 (call_value): Likewise.
19886 2016-06-06 John David Anglin <danglin@gcc.gnu.org>
19888 * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
19889 pattern and subsequent splitters.
19890 (call_val_reg_64bit_post_reload): Likewise.
19892 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
19894 PR middle-end/71408
19895 * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
19896 propagate_op_to_single_use.
19898 2016-06-07 Kugan Vivekanandarajah <kuganv@linaro.org>
19900 PR middle-end/71281
19901 * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
19903 2016-06-07 Uros Bizjak <ubizjak@gmail.com>
19905 * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
19906 (enum x86_dirflag_state): New enum.
19907 (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
19908 (machine_function): Remove needs_cld.
19909 (ix86_current_function_needs_cld): Remove.
19910 * config/i386/i386.c (ix86_set_func_type): Set
19911 ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
19912 (ix86_expand_prologue): Do not emit CLD here.
19913 (ix86_dirflag_mode_needed): New function.
19914 (ix86_dirflag_mode_entry): Ditto.
19915 (ix86_mode_needed): Handle X86_DIRFLAG entity.
19916 (ix86_mode_after): Ditto.
19917 (ix86_mode_entry): Ditto.
19918 (ix86_mode_exit): Ditto.
19919 (ix86_emit_mode_set): Ditto.
19920 * config/i386/i386.md (strmov_singleop): Set
19921 ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
19922 Do not set ix86_current_function_needs_cld.
19924 (strset_singleop): Ditto.
19926 (cmpstrnqi_nz_1): Ditto.
19927 (cmpstrnqi_1): Ditto.
19928 (strlenqi_1): Ditto.
19930 2016-06-06 Jakub Jelinek <jakub@redhat.com>
19932 PR tree-optimization/71259
19933 * tree-vect-slp.c (vect_get_constant_vectors): For
19934 VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
19935 one for constant op, and use COND_EXPR for non-constant.
19937 2016-06-06 David Malcolm <dmalcolm@redhat.com>
19939 * Makefile.in (OBJS): Add function-tests.o,
19940 hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
19941 selftest-run-tests.o.
19942 (OBJS-libcommon): Add selftest.o.
19943 (OBJS-libcommon-target): Add selftest.o.
19944 (all.internal): Add "selftest".
19945 (all.cross): Likewise.
19946 (selftest): New phony target.
19947 (s-selftest): New target.
19948 (selftest-gdb): New phony target.
19949 (COLLECT2_OBJS): Add selftest.o.
19950 * bitmap.c: Include "selftest.h".
19951 (selftest::test_gc_alloc): New function.
19952 (selftest::test_set_range): New function.
19953 (selftest::test_clear_bit_in_middle): New function.
19954 (selftest::test_copying): New function.
19955 (selftest::test_bitmap_single_bit_set_p): New function.
19956 (selftest::bitmap_c_tests): New function.
19957 * common.opt (fself-test): New.
19958 * diagnostic-show-locus.c: Include "selftest.h".
19959 (make_range): New function.
19960 (test_range_contains_point_for_single_point): New function.
19961 (test_range_contains_point_for_single_line): New function.
19962 (test_range_contains_point_for_multiple_lines): New function.
19963 (assert_eq): New function.
19964 (test_get_line_width_without_trailing_whitespace): New function.
19965 (selftest::diagnostic_show_locus_c_tests): New function.
19966 * et-forest.c: Include "selftest.h".
19967 (selftest::test_single_node): New function.
19968 (selftest::test_simple_tree): New function.
19969 (selftest::test_disconnected_nodes): New function.
19970 (selftest::et_forest_c_tests): New function.
19971 * fold-const.c: Include "selftest.h".
19972 (selftest::assert_binop_folds_to_const): New function.
19973 (selftest::assert_binop_folds_to_nonlvalue): New function.
19974 (selftest::test_arithmetic_folding): New function.
19975 (selftest::fold_const_c_tests): New function.
19976 * function-tests.c: New file.
19977 * gimple.c: Include "selftest.h".
19978 Include "gimple-pretty-print.h".
19979 (selftest::verify_gimple_pp): New function.
19980 (selftest::test_assign_single): New function.
19981 (selftest::test_assign_binop): New function.
19982 (selftest::test_nop_stmt): New function.
19983 (selftest::test_return_stmt): New function.
19984 (selftest::test_return_without_value): New function.
19985 (selftest::gimple_c_tests): New function.
19986 * hash-map-tests.c: New file.
19987 * hash-set-tests.c: New file.
19988 * input.c: Include "selftest.h".
19989 (selftest::assert_loceq): New function.
19990 (selftest::test_accessing_ordinary_linemaps): New function.
19991 (selftest::test_unknown_location): New function.
19992 (selftest::test_builtins): New function.
19993 (selftest::test_reading_source_line): New function.
19994 (selftest::input_c_tests): New function.
19995 * rtl-tests.c: New file.
19996 * selftest-run-tests.c: New file.
19997 * selftest.c: New file.
19998 * selftest.h: New file.
19999 * spellcheck.c: Include "selftest.h".
20000 (selftest::levenshtein_distance_unit_test_oneway): New function,
20001 adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
20002 (selftest::levenshtein_distance_unit_test): Likewise.
20003 (selftest::spellcheck_c_tests): Likewise.
20004 * toplev.c: Include selftest.h.
20005 (toplev::run_self_tests): New.
20006 (toplev::main): Handle -fself-test.
20007 * toplev.h (toplev::run_self_tests): New.
20008 * tree.c: Include "selftest.h".
20009 (selftest::test_integer_constants): New function.
20010 (selftest::test_identifiers): New function.
20011 (selftest::test_labels): New function.
20012 (selftest::tree_c_tests): New function.
20013 * tree-cfg.c: Include "selftest.h".
20014 (selftest::push_fndecl): New function.
20015 (selftest::test_linear_chain): New function.
20016 (selftest::test_diamond): New function.
20017 (selftest::test_fully_connected): New function.
20018 (selftest::tree_cfg_c_tests): New function.
20019 * vec.c: Include "selftest.h".
20020 (selftest::safe_push_range): New function.
20021 (selftest::test_quick_push): New function.
20022 (selftest::test_safe_push): New function.
20023 (selftest::test_truncate): New function.
20024 (selftest::test_safe_grow_cleared): New function.
20025 (selftest::test_pop): New function.
20026 (selftest::test_safe_insert): New function.
20027 (selftest::test_ordered_remove): New function.
20028 (selftest::test_unordered_remove): New function.
20029 (selftest::test_block_remove): New function.
20030 (selftest::reverse_cmp): New function.
20031 (selftest::test_qsort): New function.
20032 (selftest::vec_c_tests): New function.c.
20033 * wide-int.cc: Include selftest.h and wide-int-print.h.
20034 (selftest::from_int <wide_int>): New function.
20035 (selftest::from_int <offset_int>): New function.
20036 (selftest::from_int <widest_int>): New function.
20037 (selftest::assert_deceq): New function.
20038 (selftest::assert_hexeq): New function.
20039 (selftest::test_printing <VALUE_TYPE>): New function template.
20040 (selftest::test_ops <VALUE_TYPE>): New function template.
20041 (selftest::test_comparisons <VALUE_TYPE>): New function template.
20042 (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
20044 (selftest::wide_int_cc_tests): New function.
20046 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20048 PR middle-end/37780
20049 * ifcvt.c (noce_try_ifelse_collapse): New function.
20051 (noce_process_if_block): Call noce_try_ifelse_collapse.
20052 * simplify-rtx.c (simplify_cond_clz_ctz): New function.
20053 (simplify_ternary_operation): Use the above to simplify
20054 conditional CLZ/CTZ expressions.
20056 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20058 PR middle-end/37780
20059 * config/aarch64/aarch64.md (ctz<mode>2): Convert to
20060 define_insn_and_split.
20062 2016-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20064 PR middle-end/37780
20065 * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
20067 2016-06-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
20070 * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
20071 Implicitly clobber memory for basic asm with non-empty assembler
20072 string. Use targetm.md_asm_adjust also here.
20073 * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
20074 * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
20075 * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
20076 non-empty assembler string.
20077 * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
20078 * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
20079 (decode_asm_operands): Handle basic asm in PARALLEL block.
20080 (extract_insn): Handle basic asm in PARALLEL block.
20081 * doc/extend.texi: Mention new behavior of basic asm.
20082 * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
20083 * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
20084 branch_needs_nop_p): Use asm_noperands.
20086 2016-06-06 Jose E. Marchesi <jose.marchesi@oracle.com>
20088 * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
20089 Include the M7 SPARC DFA scheduler.
20090 New attribute v3pipe.
20091 Annotate insns with v3pipe where appropriate.
20092 Define cpu_feature vis4.
20093 Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
20094 Add (V8QI "8") to vbits.
20095 Add insns {add,sub}v8qi3
20096 Add insns ss{add,sub}v8qi3
20097 Add insns us{add,sub}{v8qi,v4hi}3
20098 Add insns {min,max}{v8qi,v4hi,v2si}3
20099 Add insns {minu,maxu}{v8qi,v4hi,v2si}3
20100 Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
20101 * config/sparc/niagara4.md: Add a comment explaining the
20102 discrepancy between the documented latenty numbers and the
20104 * config/sparc/niagara7.md: New file.
20105 * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
20106 supports SPARC5 and VIS 4.0 instructions.
20107 * configure: Regenerate.
20108 * config.in: Likewise.
20109 * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
20110 * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
20111 TARGET_CPU_niagara7.
20112 (ASM_CPU64_DEFAULT_SPEC): Likewise.
20113 (CPP_CPU_SPEC): Handle niagara7.
20114 (ASM_CPU_SPEC): Likewise.
20115 * config/sparc/sparc-opts.h (processor_type): Add
20116 PROCESSOR_NIAGARA7.
20117 (mvis4): New option.
20118 * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
20119 (AS_NIAGARA7_FLAG): Define.
20120 (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
20121 (CPP_CPU64_DEFAULT_SPEC): Likewise.
20122 (CPP_CPU_SPEC): Handle niagara7.
20123 (ASM_CPU_SPEC): Likewise.
20124 * config/sparc/sparc.c (niagara7_costs): Define.
20125 (sparc_option_override): Handle niagara7 and adjust cache-related
20126 parameters with better values for niagara cpus. Also support VIS4.
20127 (sparc32_initialize_trampoline): Likewise.
20128 (sparc_use_sched_lookahead): Likewise.
20129 (sparc_issue_rate): Likewise.
20130 (sparc_register_move_cost): Likewise.
20131 (dump_target_flag_bits): Support VIS4.
20132 (sparc_vis_init_builtins): Likewise.
20133 (sparc_builtins): Likewise.
20134 * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
20136 * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
20138 * config/sparc/sparc.opt (sparc_processor_type): New value
20140 * config/sparc/visintrin.h (__attribute__): Prototypes for the
20142 * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
20144 * doc/extend.texi (SPARC VIS Built-in Functions): Document the
20147 2016-06-06 Jonathan Wakely <jwakely@redhat.com>
20149 * doc/sourcebuild.texi (Directives): Remove extra closing braces.
20151 2016-06-06 Richard Biener <rguenther@suse.de>
20153 PR tree-optimization/71398
20154 * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
20157 2016-06-05 James Bowman <james.bowman@ftdichip.com>
20159 * config/ft32/ft32.c (ft32_setup_incoming_varargs,
20160 ft32_expand_prolog, ft32_expand_epilogue):
20161 Handle pretend_args.
20162 * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
20163 * config/ft32/ft32.md: Add pretend_returner.
20165 2016-06-06 Uros Bizjak <ubizjak@gmail.com>
20168 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
20169 Copy op1 RTX to avoid invalid sharing.
20170 (ix86_expand_vector_move_misalign): Ditto.
20172 2016-06-05 John David Anglin <danglin@gcc.gnu.org>
20174 * expr.c (move_by_pieces_d::generate): Mark mode parameter with
20177 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
20179 * predict.c (predicted_by_loop_heuristics_p): New function.
20180 (predict_iv_comparison): Use it.
20181 (predict_loops): Walk from innermost loops; do not predict edges
20182 leaving multiple loops multiple times; implement
20183 PRED_LOOP_ITERATIONS_MAX heuristics.
20184 * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
20186 2016-06-05 Jan Hubicka <hubicka@ucw.cz>
20188 * cfg.c (check_bb_profile): Do not report mismatched profiles when
20189 only edges out of BB are EH edges.
20191 2016-06-04 Martin Sebor <msebor@redhat.com>
20192 Marcin Baczyński <marbacz@gmail.com>
20195 * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
20196 a void expression in a void function.
20198 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
20200 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
20201 aux; dump reasons of decisions.
20202 (should_duplicate_loop_header_p): Likewise.
20203 (do_while_loop_p): Likewise.
20204 (ch_base::copy_headers): Dump asi num insns duplicated.
20206 2016-06-04 Jakub Jelinek <jakub@redhat.com>
20208 PR tree-optimization/71405
20209 * tree-ssa.c (execute_update_addresses_taken): For clobber with
20210 incompatible type, build a new clobber with the right type instead
20211 of building a VIEW_CONVERT_EXPR around it.
20213 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
20215 PR tree-optimization/52171
20216 * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
20217 by_pieces_ninsns instead of move_by_pieces_ninsns.
20219 2016-06-04 Oleg Endo <olegendo@gcc.gnu.org>
20221 * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
20222 for reg+reg addressing mode.
20224 2016-06-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20226 * rs6000-c.c (c/c-tree.h): Add #include.
20227 (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
20228 in C++ when found in the base position of vec_ld or vec_st.
20230 2016-06-03 Jan Hubicka <hubicka@ucw.cz>
20232 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
20233 use of profile unless profile status is PROFILE_READ.
20234 * profile.c (compute_branch_probabilities): Set profile status
20235 only after reporting predictor hitrates.
20237 2016-06-03 Joseph Myers <joseph@codesourcery.com>
20241 * common.opt (ffp-int-builtin-inexact): New option.
20242 * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
20243 * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
20244 (ceil@var{m}2): Document dependence on this option.
20245 * ipa-inline-transform.c (inline_call): Handle
20246 flag_fp_int_builtin_inexact.
20247 * ipa-inline.c (can_inline_edge_p): Likewise.
20248 * config/i386/i386.md (rintxf2): Do not test
20249 flag_unsafe_math_optimizations.
20250 (rint<mode>2_frndint): New define_insn.
20251 (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
20252 or !flag_trapping_math for SSE. Just use gen_rint<mode>2_frndint
20253 for 387 instead of extending and truncating.
20254 (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
20255 !flag_trapping_math instead of flag_unsafe_math_optimizations.
20256 Change to frndint<mode>2_<rounding>.
20257 (frndintxf2_<rounding>_i387): Likewise. Change to
20258 frndint<mode>2_<rounding>_i387.
20259 (<rounding_insn>xf2): Likewise.
20260 (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
20261 !flag_trapping_math instead of flag_unsafe_math_optimizations for
20262 x87. Test TARGET_ROUND || !flag_trapping_math ||
20263 flag_fp_int_builtin_inexact instead of !flag_trapping_math for
20264 SSE. Use ROUND_NO_EXC in constant operand of
20265 gen_sse4_1_round<mode>2. Just use gen_frndint<mode>2_<rounding>
20266 for 387 instead of extending and truncating.
20268 2016-06-03 H.J. Lu <hongjiu.lu@intel.com>
20269 Julia Koval <julia.koval@intel.com>
20281 * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
20282 * config/i386/i386.c (ix86_conditional_register_usage): Preserve
20283 all registers, except for function return registers if there are
20284 no caller-saved registers.
20285 (ix86_set_func_type): New function.
20286 (ix86_set_current_function): Call ix86_set_func_type to set
20287 no_caller_saved_registers and func_type. Call reinit_regs if
20288 caller-saved registers are changed. Don't allow MPX, SSE, MMX
20289 nor x87 instructions in interrupt handler nor function with
20290 no_caller_saved_registers attribute.
20291 (ix86_function_ok_for_sibcall): Return false if there are no
20292 caller-saved registers.
20293 (type_natural_mode): Don't warn ABI change for MMX in interrupt
20295 (ix86_function_arg_advance): Skip for callee in interrupt handler.
20296 (ix86_function_arg): Return special arguments in interrupt handler.
20297 (ix86_promote_function_mode): Promote pointer to word_mode only
20298 for normal functions.
20299 (ix86_can_use_return_insn_p): Don't use `ret' instruction in
20301 (ix86_epilogue_uses): New function.
20302 (ix86_hard_regno_scratch_ok): Likewise.
20303 (ix86_save_reg): Preserve all registers in interrupt handler
20304 after reload. Preserve all registers, except for function return
20305 registers, if there are no caller-saved registers after reload.
20306 (find_drap_reg): Always use callee-saved register if there are
20307 no caller-saved registers.
20308 (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
20309 for interrupt handler.
20310 (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
20311 Emit cld instruction if stringops are used in interrupt handler
20312 or interrupt handler isn't a leaf function.
20313 (ix86_expand_epilogue): Generate interrupt return for interrupt
20314 handler and pop the 'ERROR_CODE' off the stack before interrupt
20315 return in exception handler.
20316 (ix86_expand_call): Disallow calling interrupt handler directly.
20317 If there are no caller-saved registers, mark all registers that
20318 are clobbered by the call which returns as clobbered.
20319 (ix86_handle_no_caller_saved_registers_attribute): New function.
20320 (ix86_handle_interrupt_attribute): Likewise.
20321 (ix86_attribute_table): Add interrupt and no_caller_saved_registers
20323 (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
20324 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
20325 accumulation in interrupt function if stack may be realigned to
20327 (EPILOGUE_USES): New.
20328 (function_type): New enum.
20329 (machine_function): Add func_type and no_caller_saved_registers.
20330 * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
20331 (interrupt_return): New pattern.
20332 * doc/extend.texi: Document x86 interrupt and
20333 no_caller_saved_registers attributes.
20335 2016-06-03 Bernd Schmidt <bschmidt@redhat.com>
20337 PR tree-optimization/52171
20338 * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
20339 (expand_builtin_memcmp): New arg RESULT_EQ. All callers changed.
20340 Look for constant strings. Move some code to emit_block_cmp_hints
20342 * builtins.def (BUILT_IN_MEMCMP_EQ): New.
20343 * defaults.h (COMPARE_MAX_PIECES): New macro.
20344 * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
20345 (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
20346 (clear_by_pieces_1): Don't declare. Move definition before use.
20347 (can_do_by_pieces): New static function.
20348 (can_move_by_pieces): Use it. Return bool.
20349 (by_pieces_ninsns): Renamed from move_by_pieces_ninsns. New arg
20350 OP. All callers changed. Handle COMPARE_BY_PIECES.
20351 (class pieces_addr); New.
20352 (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
20353 pieces_addr::adjust, pieces_addr::increment_address,
20354 pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
20356 (class op_by_pieces_d): New.
20357 (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
20359 (class move_by_pieces_d, class compare_by_pieces_d,
20360 class store_by_pieces_d): New subclasses of op_by_pieces_d.
20361 (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
20362 move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
20363 store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
20364 compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
20365 compare_by_pieces_d::finish_mode): New member functions.
20366 (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
20368 (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
20369 (emit_block_cmp_hints): New function.
20370 (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
20371 use the newly defined classes.
20372 * expr.h (by_pieces_constfn): New typedef.
20373 (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
20374 (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
20375 (move_by_pieces_ninsns): Don't declare.
20376 (can_move_by_pieces): Change return value to bool.
20377 * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
20378 (compare_by_pieces_branch_ratio): New hook.
20379 * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
20380 (by_pieces_ninsns): Declare.
20381 * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
20383 (default_compare_by_pieces_branch_ratio): New function.
20384 * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
20385 * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
20386 * doc/tm.texi: Regenerate.
20387 * tree-ssa-strlen.c: Include "builtins.h".
20388 (handle_builtin_memcmp): New static function.
20389 (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
20390 * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
20392 2016-06-03 Alan Hayward <alan.hayward@arm.com>
20394 * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
20395 relevant stmts which are simple and invariant.
20396 * tree-vect-loop.c (vectorizable_live_operation): Check relevance
20397 instead of simple and invariant
20399 2016-06-03 Alan Hayward <alan.hayward@arm.com>
20401 * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
20402 (vectorizable_reduction): Check for new relevant state.
20403 (vectorizable_live_operation): vectorize live stmts using
20404 BIT_FIELD_REF. Remove special case for gimple assigns stmts.
20405 * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
20406 (vect_stmt_relevant_p): Check for stmts which are only used live.
20407 (process_use): Use of a stmt does not inherit it's live value.
20408 (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
20409 (vect_analyze_stmt): Check for new relevant state.
20410 * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
20411 outside the loop, but not inside it.
20413 2016-06-03 Alan Hayward <alan.hayward@arm.com>
20415 * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
20416 * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
20417 (vect_get_vec_def_for_operand): Split out code.
20419 2016-06-03 Segher Boessenkool <segher@kernel.crashing.org>
20421 * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
20423 2016-06-03 Alan Hayward <alan.hayward@arm.com>
20425 * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
20427 2016-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20429 * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
20431 2016-06-03 Jakub Jelinek <jakub@redhat.com>
20433 PR middle-end/71387
20434 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
20435 to noreturn e->callee->decl that has void return type and void
20436 arguments, adjust gimple_call_fntype and remove lhs even if it had
20437 previously addressable type.
20439 2016-06-02 Jeff Law <law@redhat.com>
20441 PR tree-optimization/71328
20442 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
20443 error when checking for a jump back onto the copied path.
20445 2016-06-02 David Malcolm <dmalcolm@redhat.com>
20447 * config/microblaze/microblaze.c (get_branch_target): Add return
20448 NULL_RTX for the non-CALL_P case.
20449 (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
20450 (insert_wic): Remove unused local "j".
20452 2016-06-02 Martin Liska <mliska@suse.cz>
20454 * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
20456 2016-06-02 H.J. Lu <hongjiu.lu@intel.com>
20457 Julia Koval <julia.koval@intel.com>
20459 * function.c (assign_parm_setup_stack): Force source into a
20460 register if needed.
20461 * target.def (function_incoming_arg): Update documentation to
20462 allow arbitrary address computation based on hard register.
20463 * doc/tm.texi: Regenerated.
20465 2016-06-02 Martin Liska <mliska@suse.cz>
20467 * predict.c (combine_predictions_for_bb): Fix first match in
20468 cases where a first predictor contains more than one occurence
20469 in list of predictors. Take the best value in such case.
20471 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20473 PR rtl-optimization/71295
20474 * rtlanal.c (subreg_get_info): If taking a subreg at the requested
20475 offset would go over the size of the inner mode reject it.
20477 2016-06-02 Jakub Jelinek <jakub@redhat.com>
20479 * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
20480 x=x,x and v=v,m instead of x=x,m.
20482 * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
20483 alternative. Change x=x,x alternative to v=Yv,Yv and x=rm,C
20484 alternative to v=rm,C.
20486 * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
20487 alternative. Change x=xm,C alternative to v=vm,C, x=x,x alternative
20488 to v=Yv,Yv and x=x,m to v=v,m. Use maybe_evex prefix attribute
20489 instead of vex for the last two above mentioned alternatives.
20491 2016-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20494 * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
20496 2016-06-02 Segher Boessenkool <segher@kernel.crashing.org>
20498 * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
20500 2016-06-01 David Malcolm <dmalcolm@redhat.com>
20502 * config/rl78/rl78.c (rl78_expand_prologue): Convert local
20503 from int to unsigned.
20505 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
20507 * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
20508 alternatives, eliminating preferred register class. Add support
20509 for the MTVSRDD instruction in ISA 3.0.
20510 (vsx_splat_v4si_internal): Use splat_input_operand instead of
20511 reg_or_indexed_operand.
20512 (vsx_splat_v4sf_internal): Likewise.
20514 2016-05-31 Michael Meissner <meissner@linux.vnet.ibm.com>
20517 * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
20518 for loading up all 0's or all 1's.
20520 2016-06-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
20522 * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
20524 2016-06-01 Eduard Sanou <dhole@openmailbox.org>
20526 * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
20528 * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
20529 * gcc.c (set_source_date_epoch_envvar): New function, sets
20530 the SOURCE_DATE_EPOCH environment variable to the current time.
20532 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
20534 * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
20535 the factor for live Phi nodes.
20537 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
20539 * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
20540 * tree-parloops.c (parallelize_loops): likewise.
20541 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
20542 tree_unswitch_outer_loop): likewise.
20544 2016-06-01 Jakub Jelinek <jakub@redhat.com>
20546 PR middle-end/71371
20547 * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
20548 around creation of the temporary.
20550 2016-06-01 Richard Biener <rguenther@suse.de>
20552 PR tree-optimization/71366
20553 * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
20554 (unloop_loops): Move removing edges here ...
20555 (try_unroll_loop_completely): ... from here.
20556 (try_peel_loop): ... and here.
20557 (tree_unroll_loops_completely_1): Track parent loops via
20558 bitmap of header BBs.
20559 (tree_unroll_loops_completely): Adjust for that.
20561 2016-06-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
20563 * config/rs6000/altivec.h (vec_slv): New macro.
20564 (vec_srv): New macro.
20565 * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
20566 (UNSPEC_VSRV): New value.
20569 * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
20570 (vsrv): New builtin definition.
20571 * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
20572 define argument types for new builtin.
20573 (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
20575 * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
20578 2016-06-01 Uros Bizjak <ubizjak@gmail.com>
20579 Jocelyn Mayer <l_indien@magic.fr>
20582 * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
20583 detect processor family for signature_CENTAUR_ebx.
20584 <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
20585 signature_CENTAUR_ebx.
20586 <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
20587 <default>: Pass x86-64 for has_longmode.
20589 2016-06-01 Nathan Sidwell <nathan@acm.org>
20591 * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
20594 2016-06-01 Richard Biener <rguenther@suse.de>
20596 PR tree-optimization/71261
20597 * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
20598 of stmts successfully put in the bool pattern. Remove
20599 single-use restriction.
20600 (adjust_bool_pattern_cast): Add cast at the use site via the
20601 pattern def sequence.
20602 (adjust_bool_pattern): Remove recursion, maintain a hash-map
20603 of patterned defs. Use the pattern def seqence instead of
20604 multiple independent patterns.
20605 (sort_after_uid): New qsort compare function.
20606 (adjust_bool_stmts): New function to process stmts in the bool
20607 pattern in IL order.
20608 (vect_recog_bool_pattern): Adjust.
20609 * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
20610 (ifcvt_walk_pattern_tree): Likewise.
20611 (stmt_is_root_of_bool_pattern): Likewise.
20612 (ifcvt_repair_bool_pattern): Likewise.
20613 (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
20615 2016-06-01 Jan Hubicka <hubicka@ucw.cz>
20617 * loop-unroll.c (decide_unroll_constant_iterations,
20618 decide_unroll_runtime_iterations, decide_unroll_stupid): Use
20619 likely upper bounds.
20620 * loop-iv.c (find_simple_exit): Dump likely upper bounds.
20622 2016-06-01 Thomas Schwinge <thomas@codesourcery.com>
20624 * tree-core.h (enum omp_clause_code): Remove
20625 OMP_CLAUSE_DEVICE_RESIDENT. Adjust all users.
20627 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20629 * config/arm/sync.md (arm_store_exclusive<mode>):
20630 Use 'H' output modifier on operands[2] rather than creating a new
20631 entry in out-of-bounds memory of the operands array.
20632 (arm_store_release_exclusivedi): Likewise.
20634 2016-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20636 * config/arm/arm.c (arm_fusion_enabled_p): New function.
20637 * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
20638 * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
20639 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
20641 2016-06-01 Eric Botcazou <ebotcazou@adacore.com>
20643 * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
20644 into account live statements for mask producers.
20646 2016-06-01 Richard Biener <rguenther@suse.de>
20648 PR tree-optimization/71311
20649 * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
20650 restrict to non-INTEGER_CST @0.
20652 2016-06-01 Richard Biener <rguenther@suse.de>
20654 * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
20655 (relational patterns): Use :c to avoid pattern duplications.
20657 2016-06-01 Richard Biener <rguenther@suse.de>
20659 * genmatch.c (comparison_code_p): New predicate.
20660 (swap_tree_comparison): New function.
20661 (commutate): Add for_vec parameter to append new for entries.
20662 Support commutating relational operators by swapping it alongside
20664 (lower_commutative): Adjust.
20665 (dt_simplify::gen): Do not pass artificial operators to gen
20667 (decision_tree::gen): Do not add artificial operators as parameters.
20668 (parser::parse_expr): Verify operator commutativity when :c is
20669 applied. Allow :C to override this.
20670 * match.pd: Adjust patterns to use :C instead of :c where required.
20672 2016-06-01 Patrick Palka <ppalka@gcc.gnu.org>
20674 PR tree-optimization/71077
20675 * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
20676 the combining step, use boolean_false_node and boolean_true_node
20677 as the designated false/true return values.
20679 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
20681 * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
20682 * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
20683 (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
20686 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
20688 * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
20689 of flags impliying the register renaming.
20690 * toplev.c (process_options): Do not imply flag_rename_registers with
20693 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
20695 * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
20696 default implementation.
20698 2016-05-31 Nathan Sidwell <nathan@acm.org>
20700 * dwarf2out.c (cur_line_info_table): Add GTY marker.
20702 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
20704 * config/sh/constraints.md (b): Remove constraint.
20705 * config/sh/predicates.md (arith_reg_operand): Remove
20707 * config/sh/sh-modes.def (PDI): Remove.
20708 * config/sh/sh.c (sh_target_reg_class,
20709 sh_optimize_target_register_callee_saved): Remove functions.
20710 (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
20711 (sh_expand_epilogue): Update comment.
20712 (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
20713 sh_secondary_reload): Remove TARGET_REGS related code.
20714 * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
20715 TARGET_REGISTER_P): Remove macros.
20716 (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
20717 * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
20718 TR1_REG, TR2_REG): Remove constants.
20719 * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
20721 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
20723 * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
20724 define_expand patterns.
20725 (adddi3_compact): Rename to adddi3.
20726 (subdi3_compact): Rename to subdi3.
20727 (*negdi2): Rename to negdi2.
20728 (*abs<mode>2): Rename to abs<mode>2.
20730 2016-05-31 Oleg Endo <olegendo@gcc.gnu.org>
20732 * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
20733 (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
20734 (atomic_sub_fetchsi): ... this new pattern.
20735 (mvtc): Add CC_REG clobber.
20737 2016-05-31 Marek Polacek <polacek@redhat.com>
20739 * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
20741 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20743 * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
20744 aarch64_fusion_enabled_p to check for fusion capabilities.
20746 2016-05-31 Richard Biener <rguenther@suse.de>
20748 PR tree-optimization/71352
20749 * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
20750 minus one and a negate.
20752 2016-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20754 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
20755 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
20757 * config/aarch64/iterators.md (insn_count): Add descriptive comment.
20758 * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
20759 Remove use of aarch64_simd_attr_length_move, set length attribute
20761 (*aarch64_be_movoi): Likewise.
20762 (*aarch64_be_movci): Likewise.
20763 (*aarch64_be_movxi): Likewise.
20765 2016-05-31 Jan Hubicka <hubicka@ucw.cz>
20767 * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
20768 It no longer does that.
20769 * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
20771 2016-05-31 Wladimir J. van der Laan <laanwj@gmail.com>
20773 * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
20774 attribute __unused__.
20776 2016-05-31 Thomas Preud'homme <thomas.preudhomme@arm.com>
20778 * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
20779 * config/arm/arm.c (arm_arch_thumb1): Define.
20780 (arm_option_override): Initialize arm_arch_thumb1.
20781 * config/arm/arm.h (arm_arch_thumb1): Declare.
20782 (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
20783 support Thumb-1 ISA.
20785 2016-05-31 Kirill Yukhin <kirill.yukhin@intel.com>
20788 * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
20789 `Yv' for scalar operand.
20791 2016-05-31 Tom de Vries <tom@codesourcery.com>
20793 PR tree-optimization/69068
20794 * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
20795 phis with more than two args.
20797 2016-05-30 Andreas Tobler <andreast@gcc.gnu.org>
20799 * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
20800 armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
20803 2016-05-30 Jose E. Marchesi <jose.marchesi@oracle.com>
20805 * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
20807 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
20809 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
20810 cpu_32, cpu_64, tune_32 and tune_64.
20811 * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
20813 2016-05-30 Uros Bizjak <ubizjak@gmail.com>
20815 * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
20817 2016-05-30 Andi Kleen <ak@linux.intel.com>
20819 * auto-profile.c (read_profile): Replace asserts with errors
20820 when file does not exist.
20821 * gcov-io.c (gcov_read_words): Dito.
20823 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
20825 * tree-cfg.c (print_loop): Print likely upper bounds.
20827 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
20829 * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
20830 * opts.c (default_options): Enable peel loops at -O3.
20831 * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
20832 (try_peel_loop): Do not re-peel already peeled loops;
20833 use likely upper bounds; fix profile updating.
20834 (pass_complete_unroll::execute): Initialize peeled_loops.
20836 2016-05-30 Martin Liska <mliska@suse.cz>
20838 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
20839 computed costs by frequency of BB they belong to.
20840 (get_scaled_computation_cost_at): New function.
20842 2016-05-30 Alexander Monakov <amonakov@ispras.ru>
20843 Marc Glisse <marc.glisse@inria.fr>
20845 PR tree-optimization/71289
20846 * match.pd (-1 / B < A, A > -1 / B): New transformations.
20848 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
20850 * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
20852 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
20854 * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
20855 for peeled copies; avoid underflow when updating estimates; correctly
20856 scale loop profile.
20858 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
20860 * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
20861 r236875. Corrected oe3 to oe2 as obvious.
20863 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
20865 PR middle-end/71269
20866 PR middle-end/71252
20867 * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
20868 that inserted stmt will not dominate stmts that defines its operand.
20869 (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
20870 (rewrite_expr_tree_parallel): Likewise.
20872 2016-05-30 Kugan Vivekanandarajah <kuganv@linaro.org>
20874 PR middle-end/71252
20875 * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
20876 all fields including stmt_to_insert are swapped.
20878 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
20880 * predict.h (force_edge_cold): Declare.
20881 * predict.c (force_edge_cold): New function.
20882 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
20884 (canonicalize_loop_induction_variables): Fix formating.
20886 2016-05-30 Eric Botcazou <ebotcazou@adacore.com>
20888 * config/visium/visium.c (visium_split_double_add): Minor tweaks.
20889 (visium_expand_copysign): Use gen_int_mode directly.
20890 (visium_compute_frame_size): Minor tweaks.
20892 2016-05-30 Jan Hubicka <hubicka@ucw.cz>
20894 * tree-vect-loop.c (vect_analyze_loop_2): Use
20895 likely_max_stmt_executions_int.
20897 2016-05-30 Tom de Vries <tom@codesourcery.com>
20899 PR tree-optimization/69067
20900 * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
20902 2016-05-29 Uros Bizjak <ubizjak@gmail.com>
20905 * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
20906 New peepholes to remove unneeded fild/fistp pairs.
20907 (define_peephole2 atomic_loaddi_fpu): Ditto.
20909 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
20911 * predict.c (maybe_hot_frequency_p): Avoid division.
20913 2016-05-28 Gerald Pfeifer <gerald@pfeifer.com>
20915 * doc/install.texi: Use https for shop.fsf.org.
20917 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
20919 * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
20920 likely_max_stmt_executions_int.
20922 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
20924 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
20925 likely_max_stmt_executions_int.
20927 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
20929 * profile.c (compute_branch_probabilities): Do not report hitrates
20931 (branch_prob): Report hitrates here.
20932 * predict.c (gimple_predict_edge): Do not assert profile status;
20933 fix formatting issues.
20935 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
20937 * predict.c (edge_predicted_by_p): New function.
20938 (predict_paths_for_bb): Do not put multiple predictions of the same type
20941 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
20943 * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
20946 2016-05-28 Alan Modra <amodra@gmail.com>
20948 * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
20950 2016-05-28 Alan Modra <amodra@gmail.com>
20952 PR rtl-optimization/71275
20953 * ira.c (ira): Free dominance info.
20955 2016-05-27 Gerald Pfeifer <gerald@pfeifer.com>
20957 * doc/sourcebuild.texi: New address for upstream Go repository.
20959 2016-05-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
20961 * config/arm/arm.h (TARGET_ARM_V6M): Remove.
20962 (TARGET_ARM_V7M): Likewise.
20964 2016-05-26 Jeff Law <law@redhat.com>
20966 * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
20967 (thread_across_edge): Remove calls to find_jump_threads_backwards.
20968 * passes.def: Add jump threading passes before DOM/VRP.
20969 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
20970 argument to a basic block from an edge. Remove tests which are
20972 (pass_data_thread_jumps, class pass_thread_jumps): New.
20973 (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
20974 (make_pass_thread_jumps): Likewise.
20975 * tree-pass.h (make_pass_thread_jumps): Declare.
20977 2016-05-27 Eric Botcazou <ebotcazou@adacore.com>
20979 * config/visium/visium-protos.h (split_double_move): Rename into...
20980 (visium_split_double_move): ...this.
20981 (visium_split_double_add): Declare.
20982 * config/visium/visium.c (split_double_move): Rename into...
20983 (visium_split_double_move): ...this.
20984 (visium_split_double_add): New function.
20985 (visium_expand_copysign): Renumber operands for consistency.
20986 * config/visium/visium.md (DImode move splitter): Adjust to renaming.
20987 (DFmode move splitter): Likewise.
20988 (*addi3_insn): Split by means of visium_split_double_add.
20989 (*adddi3_insn_flags): Delete.
20990 (*plus_plus_sltu<subst_arith>): New insn.
20991 (*subdi3_insn): Split by means of visium_split_double_add.
20992 (subdi3_insn_flags): Delete.
20993 (*minus_minus_sltu<subst_arith>): New insn.
20994 (*negdi2_insn): Split by means of visium_split_double_add.
20995 (*negdi2_insn_flags): Delete.
20997 2016-05-27 Ulrich Weigand <uweigand@de.ibm.com>
20999 * configure.ac: Treat a --with-headers option without argument
21000 the same as the default (i.e. consult sys-include directory).
21001 * configure: Regenerate.
21003 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21005 * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
21006 * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
21008 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
21009 Add "=w,0" alternative. Enable it when AES/AESMC fusion is enabled.
21011 2016-05-27 Jiong Wang <jiong.wang@arm.com>
21014 * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
21015 tree-stdarg analysis results.
21016 (aarch64_setup_incoming_varargs): Likewise.
21018 2016-05-27 Jiong Wang <jiong.wang@arm.com>
21020 * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
21021 va_list_gpr_counter_field and va_list_fpr_counter_field.
21023 2016-05-27 Wilco Dijkstra <wdijkstr@arm.com>
21026 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
21027 * config/aarch64/aarch64.c
21028 (aarch64_cannot_change_mode_class): Remove function.
21029 * config/aarch64/aarch64-protos.h
21030 (aarch64_cannot_change_mode_class): Remove.
21032 2016-05-27 Jan Hubicka <hubicka@ucw.cz>
21034 * cfgloop.c (record_niter_bound): Record likely upper bounds.
21035 (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
21036 get_likely_max_loop_iterations_int): New.
21037 * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
21038 any_likely_upper_bound.
21039 (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
21041 * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
21042 * loop-unroll.c (unroll_loop_constant_iterations): Update likely
21044 (unroll_loop_constant_iterations): Likewise.
21045 (unroll_loop_runtime_iterations): Likewise.
21046 * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
21047 * lto-streamer-out.c (output_cfg): Likewise.
21048 * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
21050 (canonicalize_loop_induction_variables): Dump likely upper bounds.
21051 * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
21052 (likely_max_loop_iterations): New.
21053 (likely_max_loop_iterations_int): New.
21054 (likely_max_stmt_executions): New.
21055 * tree-ssa-loop-niter.h (likely_max_loop_iterations,
21056 likely_max_loop_iterations_int, likely_max_stmt_executions_int,
21057 likely_max_stmt_executions): Declare.
21059 2016-05-27 Marek Polacek <polacek@redhat.com>
21061 PR middle-end/71308
21062 * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
21064 2016-05-27 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21066 * config/s390/s390.md (2x risbg splitters): Use
21067 reg_overlap_mentioned_p instead of rtx_equal_p.
21069 2016-05-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
21071 * combine.c (make_compound_operation): Take known zero bits into
21072 account when checking for possible zero_extend.
21074 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21076 * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
21077 Use const_int_operand for operand 2 predicate. Simplify expand code
21080 2016-05-27 Ilya Enkovich <ilya.enkovich@intel.com>
21082 PR middle-end/71279
21083 * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
21086 2016-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21088 * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
21089 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
21090 that returns CC_SESWPmode and CC_ZESWPmode.
21091 (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
21093 (aarch64_rtx_costs): Likewise.
21095 2016-05-26 Michael Meissner <meissner@linux.vnet.ibm.com>
21097 * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
21098 for ISA 3.0 min/max support.
21099 (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
21100 conditional move support.
21101 (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
21102 rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
21104 * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
21105 conditional moves where the comparison type is different from move
21107 (fp_minmax): New code iterator for smin/smax.
21108 (minmax): New code attributes for min/max.
21109 (SMINMAX): Likewise.
21110 (smax<mode>3): Combine min, max insns into one insn using the
21111 fp_minmax code iterator. Add support for ISA 3.0 min/max
21112 instructions that don't need -ffast-math.
21113 (s<minmax><mode>3): Likewise.
21114 (smax<mode>3_vsx): Likewise.
21115 (smin<mode>3): Likewise.
21116 (s<minmax><mode>3_vsx): Likewise.
21117 (smin<mode>3_vsx): Likewise.
21118 (pre-VSX min/max splitters): Likewise.
21119 (s<minmax><mode>3_fpr): Likewise.
21120 (movsfcc): Rewrite floating point conditional moves to combine
21121 SFmode/DFmode into a single insn.
21122 (mov<mode>cc): Likewise.
21123 (movdfcc): Likewise.
21124 (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
21125 SFDF2 iterators to handle all combinations.
21126 (fseldfsf4): Likewise.
21127 (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
21128 (fseldfdf4): Likewise.
21129 (fselsfdf4): Likewise.
21130 (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
21131 comparison instructions that set a 0/-1 mask, and use it for
21132 floating point conditional move via XXSEL.
21133 (fpmask<mode>): Likewise.
21134 (xxsel<mode>): Likewise.
21135 * config/rs6000/predicates.md (min_max_operator): Delete, no
21137 (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
21138 instructions that generate a 0/-1 mask for use with XXSEL.
21139 * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
21140 say whether floating point min/max is available, either through
21141 FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
21142 (TARGET_MINMAX_DF): Likewise.
21144 2016-05-27 Alan Modra <amodra@gmail.com>
21146 PR rtl-optimization/71275
21147 * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
21148 for update_equiv_regs and combine_and_move_insns.
21150 2016-05-26 Uros Bizjak <ubizjak@gmail.com>
21152 * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
21153 if_then_else or cond RTXes to calculate attribute value.
21154 * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
21155 <attr "length_immediate>: Ditto.
21156 (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
21157 * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
21158 (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
21159 <attr "type">: Ditto.
21160 <attr "prefix_data16">: Ditto.
21161 <attr "prefix_extra">: Ditto.
21162 <attr "length_immediate">: Ditto.
21163 <attr "prefix">: Ditto.
21164 (vec_set<mode>_0) <attr "isa">: Ditto.
21165 <attr "prefix_extra">: Ditto.
21166 <attr "length_immediate">: Ditto.
21167 <attr "prefix">: Ditto.
21168 (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
21169 (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
21170 (sse2_storelpd) <attr "prefix_data16">: Ditto.
21171 (sse2_loadhpd) <attr "prefix_data16">: Ditto.
21172 (sse2_loadlpd) <attr "prefix_data16">: Ditto.
21173 <attr "length_immediate">: Ditto.
21174 <attr "prefix">: Ditto.
21175 (sse2_movsd) <attr "length_immediate">: Ditto.
21176 <attr "prefix">: Ditto.
21177 (vec_concatv2df) <attr "isa">: Ditto.
21178 <attr "prefix">: Ditto.
21179 (*vec_extractv4si) <attr "prefix_extra">: Ditto.
21180 (*vec_extractv2di_1) <attr "isa">: Ditto.
21181 <attr "type">: Ditto.
21182 <attr "length_immediate">: Ditto.
21183 <attr "prefix_rex">: Ditto.
21184 <attr "prefix_extra">: Ditto.
21185 (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
21186 <attr "prefix_extra">: Ditto.
21187 <attr "length_immediate">: Ditto.
21188 (vec_concatv2di) <attr "isa">: Ditto.
21189 <attr "prefix_extra">: Ditto.
21190 <attr "length_immediate">: Ditto.
21191 <attr "prefix">: Ditto.
21193 2016-05-26 Martin Liska <mliska@suse.cz>
21195 * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
21197 (operator+): Likewise.
21198 (operator-): Likewise.
21199 (comp_cost::operator+=): Likewise.
21200 (comp_cost::operator-=): Likewise.
21201 (comp_cost::operator/=): Likewise.
21202 (comp_cost::operator*=): Likewise.
21203 (operator<): Likewise.
21204 (operator==): Likewise.
21205 (operator<=): Likewise.
21206 (new_cost): Remove.
21207 (infinite_cost_p): Likewise.
21208 (add_costs): Likewise.
21209 (sub_costs): Likewise.
21210 (compare_costs): Likewise.
21211 (set_group_iv_cost): Use the newly introduced functions.
21212 (get_address_cost): Likewise.
21213 (get_shiftadd_cost): Likewise.
21214 (force_expr_to_var_cost): Likewise.
21215 (split_address_cost): Likewise.
21216 (ptr_difference_cost): Likewise.
21217 (difference_cost): Likewise.
21218 (get_computation_cost_at): Likewise.
21219 (determine_group_iv_cost_generic): Likewise.
21220 (determine_group_iv_cost_address): Likewise.
21221 (determine_group_iv_cost_cond): Likewise.
21222 (autoinc_possible_for_pair): Likewise.
21223 (determine_group_iv_costs): Likewise.
21224 (cheaper_cost_pair): Likewise.
21225 (iv_ca_recount_cost): Likewise.
21226 (iv_ca_set_no_cp): Likewise.
21227 (iv_ca_set_cp): Likewise.
21228 (iv_ca_cost): Likewise.
21229 (iv_ca_new): Likewise.
21230 (iv_ca_dump): Likewise.
21231 (iv_ca_narrow): Likewise.
21232 (iv_ca_prune): Likewise.
21233 (iv_ca_replace): Likewise.
21234 (try_add_cand_for): Likewise.
21235 (try_improve_iv_set): Likewise.
21236 (find_optimal_iv_set): Likewise.
21238 2016-05-26 Richard Sandiford <richard.sandiford@arm.com>
21240 * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
21241 that internal functions will clobber all caller-saved registers.
21243 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
21245 * config/aarch64/aarch64.c (aarch64_case_values_threshold):
21246 Return a better case_values_threshold when optimizing.
21248 2016-05-26 Wilco Dijkstra <wdijkstr@arm.com>
21250 * config/aarch64/aarch64-simd.md (aarch64_combinez):
21251 Add ? to integer variant.
21252 (aarch64_combinez_be): Likewise.
21254 2016-05-26 Jakub Jelinek <jakub@redhat.com>
21256 * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
21257 instead of x constraint.
21258 (vcvtps2ph256<mask_name>): Likewise.
21260 * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
21261 alternative. Formatting fix.
21263 * config/i386/sse.md
21264 (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
21266 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
21267 (*avx_vperm_broadcast_v4sf): Use v constraint instead of x. Use
21268 maybe_evex prefix instead of vex.
21269 (*avx_vperm_broadcast_<mode>): Use v constraint instead of x. Handle
21270 EXT_REX_SSE_REG_P (op0) case in the splitter.
21272 2016-05-25 Jeff Law <law@redhat.com>
21274 PR tree-optimization/71272
21275 * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
21276 Update comments. Add test for empty path.
21278 2016-05-25 Bill Seurer <seurer@linux.vnet.ibm.com>
21280 * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
21281 * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
21282 special case builtin.
21283 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
21284 code for ALTIVEC_BUILTIN_VEC_CMPNE.
21285 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
21286 for __builtin_vec_cmpne.
21288 2016-05-25 Eric Botcazou <ebotcazou@adacore.com>
21290 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
21291 redundant test and bail out if the type of the new operand is not
21292 a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
21294 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
21296 * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
21297 (x_ix86_target_flags_explicit): Remove.
21298 * config/i386/i386.c (ix86_function_specific_save): Do not copy
21299 x_ix86_target_flags_explicit.
21300 (ix86_function_specific_restore): Ditto.
21302 2016-05-25 Uros Bizjak <ubizjak@gmail.com>
21303 H.J. Lu <hongjiu.lu@intel.com>
21306 * common/config/i386/i386-common.c
21307 (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
21308 (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
21309 MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
21310 * config/i386/i386.opt (ix86_target_flags): Add new Variable.
21311 (-mgeneral-regs-only): Add new option.
21312 * config/i386/i386.c (ix86_option_override_internal): Don't enable
21313 x87 instructions if only general registers are allowed.
21314 (ix86_target_string): Add ix86_flags argument. Handle additional
21315 flags options through ix86_flags argument. Update all callers.
21316 * doc/invoke.texi (x86 Options): Document -mgeneral-regs-only.
21318 2016-05-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21320 PR rtl-optimization/66940
21321 * ifcvt.c (noce_get_alt_condition): Check that incrementing or
21322 decrementing desired_val will not overflow before performing these
21325 2016-05-25 Ilya Verbin <ilya.verbin@intel.com>
21327 * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
21328 V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
21329 * config/i386/i386.c (enum ix86_builtins): Add
21330 IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
21331 IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
21332 IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
21333 IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
21334 IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
21335 IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
21336 (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
21337 __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
21338 __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
21339 __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
21340 __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
21341 __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
21342 Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
21343 __builtin_ia32_cvtps2dq512_mask.
21344 (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
21345 V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
21346 (ix86_builtin_vectorized_function): Handle builtins mentioned above.
21347 * config/i386/sse.md
21348 (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
21350 (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
21351 (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
21353 (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
21354 (avx512f_vec_pack_sfix_v8df): New define_expand.
21355 (avx512f_roundpd512): Rename to ...
21356 (avx512f_round<castmode>512): ... this. Change iterator.
21357 (avx512f_roundps512_sfix): New define_expand.
21358 (round<mode>2_sfix): Change iterator.
21360 2016-05-25 Nick Clifton <nickc@redhat.com>
21362 * config/msp430/msp430.c (msp430_attr): Produce an error if a
21363 static interrupt handler is detected.
21364 * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
21365 default linker script.
21366 * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
21367 the low part of a symbolic pointer.
21369 2016-05-25 Richard Biener <rguenther@suse.de>
21371 PR tree-optimization/71261
21372 * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
21373 interesting stmt instead of immediate uses when looking
21374 for the use operand to replace.
21376 2016-05-25 Martin Liska <mliska@suse.cz>
21378 * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
21380 2016-05-25 Richard Biener <rguenther@suse.de>
21382 PR tree-optimization/71264
21383 * tree-vect-stmts.c (vect_init_vector): Properly deal with
21386 2016-05-25 Martin Liska <mliska@suse.cz>
21388 PR tree-optimization/71239
21389 * tree.c (array_at_struct_end_p): Do not call operand_equal_p
21390 if DECL_SIZE is NULL.
21392 2016-05-25 Richard Biener <rguenther@suse.de>
21394 * timevar.def (TV_TREE_LOOP_IFCVT): Add.
21395 * tree-if-conv.c (pass_data_if_conversion): Use it.
21397 2016-05-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
21399 * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
21400 * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
21401 * varpool.c (varpool_node::get_availability): Likewise.
21403 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
21405 * config/rs6000/altivec.md (VNEG iterator): New iterator for
21406 VNEGW/VNEGD instructions.
21407 (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
21408 (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
21409 support for ISA 3.0 VNEGW/VNEGD instructions.
21411 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
21413 * gimplify.c (omp_notice_variable): Use zero-length arrays for data
21414 pointers inside OACC_DATA regions.
21415 (gimplify_scan_omp_clauses): Prune firstprivate clause associated
21416 with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
21417 (gimplify_adjust_omp_clauses): Fix typo in comment.
21419 2016-05-24 Michael Meissner <meissner@linux.vnet.ibm.com>
21421 * config/rs6000/altivec.md (VParity): New mode iterator for vector
21422 parity built-in functions.
21423 (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
21425 (p9v_parity<mode>2): Likewise.
21426 * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
21428 (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
21429 (parity<mode>2): ISA 3.0 expander for vector parity.
21430 * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
21432 (BU_P9_64BIT_MISC_0): Likewise.
21433 (BU_P9_MISC_0): Likewise.
21434 (BU_P9V_AV_1): Likewise.
21435 (BU_P9V_AV_2): Likewise.
21436 (BU_P9V_AV_3): Likewise.
21437 (BU_P9V_AV_P): Likewise.
21438 (BU_P9V_VSX_1): Likewise.
21439 (BU_P9V_OVERLOAD_1): Likewise.
21440 (BU_P9V_OVERLOAD_2): Likewise.
21441 (BU_P9V_OVERLOAD_3): Likewise.
21442 (VCTZB): Add vector count trailing zeros support.
21446 (VPRTYBD): Add vector parity support.
21447 (VPRTYBQ): Likewise.
21448 (VPRTYBW): Likewise.
21449 (VCTZ): Add overloaded vector count trailing zeros support.
21450 (VPRTYB): Add overloaded vector parity support.
21451 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
21452 overloaded vector count trailing zeros and parity instructions.
21453 * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
21454 vector parity support.
21455 * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
21456 trailing zeros support.
21457 (vec_cntlz): Likewise.
21458 (vec_vctzb): Likewise.
21459 (vec_vctzd): Likewise.
21460 (vec_vctzh): Likewise.
21461 (vec_vctzw): Likewise.
21462 (vec_vprtyb): Add ISA 3.0 vector parity support.
21463 (vec_vprtybd): Likewise.
21464 (vec_vprtybw): Likewise.
21465 (vec_vprtybq): Likewise.
21466 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
21467 the ISA 3.0 vector count trailing zeros and vector parity built-in
21470 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
21472 * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
21473 when there is stmt_to_insert.
21475 2016-05-24 Martin Sebor <msebor@redhat.com>
21478 * tree.h (complete_or_array_type_p): New inline function.
21480 2016-05-24 Jakub Jelinek <jakub@redhat.com>
21482 * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
21483 * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
21484 rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
21486 * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
21487 Limit 1st alternative to noavx isa, split 2nd alternative into one
21488 noavx and one avx alternative, use *x and Bm in the former and
21489 x and m in the latter.
21491 * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
21492 of sse4 for the first alternative, drop %v from the template
21493 and d operand modifier. Split second alternative into one sse4_noavx
21494 and one avx alternative, use *x instead of *v in the former and v
21495 instead of *v in the latter.
21496 (*sse4_1_extractps): Use noavx isa instead of * for the first
21497 alternative, drop %v from the template. Split second alternative into
21498 one noavx and one avx alternative, use *x instead of *v in the
21499 former and v instead of *v in the latter.
21500 (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
21501 with noavx and the last one with avx.
21502 (sse4_1_phminposuw): Guard first alternative with noavx isa,
21503 split the second one into one noavx and one avx alternative,
21504 use *x and Bm in the former and x and m in the latter one.
21505 (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
21508 * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
21509 first two alternatives to noavx, use *x instead of *v in the second
21510 one, add avx alternative without *.
21511 (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
21512 sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
21513 sse4_1_<code>v2siv2di2<mask_name>): Likewise.
21515 2016-05-24 Jeff Law <law@redhat.com>
21517 * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
21518 New function, extracted from...
21519 (fsm_find_control_statement_thread_paths): Here. Use the new function.
21520 Allow simple copies and constant initializations in the SSA chain.
21522 2016-05-24 Marek Polacek <polacek@redhat.com>
21525 * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
21528 2016-05-24 Jakub Jelinek <jakub@redhat.com>
21531 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
21532 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
21533 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP. Add
21534 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
21535 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
21537 2016-05-24 Richard Biener <rguenther@suse.de>
21539 PR tree-optimization/71240
21540 * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
21543 2016-05-24 Richard Biener <rguenther@suse.de>
21545 PR tree-optimization/71230
21546 * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
21548 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
21550 * tree-vectorizer.h (vectorizable_comparison): Delete.
21551 * tree-vect-loop.c (vectorizable_reduction): Remove redundant
21552 PURE_SLP_STMT check.
21553 * tree-vect-stmts.c (vectorizable_call): Likewise.
21554 (vectorizable_simd_clone_call): Likewise.
21555 (vectorizable_conversion): Likewise.
21556 (vectorizable_assignment): Likewise.
21557 (vectorizable_shift): Likewise.
21558 (vectorizable_operation): Likewise.
21559 (vectorizable_load): Likewise.
21560 (vectorizable_condition): Likewise.
21561 (vectorizable_store): Likewise. Assert that we don't have
21563 (vectorizable_comparison): Make static. Remove redundant
21564 PURE_SLP_STMT check.
21565 (vect_transform_stmt): Assert that we always have an slp_node
21568 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21570 * config/arm/neon.md (ashldi3_neon): Replace comparison of INTVAL of
21571 operands[2] against 1 with comparison against CONST1_RTX.
21572 (<shift>di3_neon): Likewise.
21573 * config/arm/predicates.md (const0_operand): Replace with comparison
21574 against CONST0_RTX.
21576 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21578 * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
21579 operands[2] against 1 with comparison against CONST1_RTX.
21580 (ashrdi3): Likewise.
21581 (lshrdi3): Likewise.
21582 (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
21584 (ashrsi3): Likewise.
21585 (lshrsi3): Likewise.
21586 (rotrsi3): Likewise.
21587 (define_split above *compareqi_eq0): Likewise.
21588 (define_split above "prologue"): Likewise.
21589 * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
21590 * config/arm/predicates.md (shift_operator): Likewise.
21591 (shift_nomul_operator): Likewise.
21592 (sat_shift_operator): Likewise.
21593 (thumb1_cmp_operand): Likewise.
21594 (const_neon_scalar_shift_amount_operand): Replace manual range
21595 check with IN_RANGE.
21596 * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
21597 Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
21599 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21601 * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
21602 with HOST_WIDE_INT_1.
21604 * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
21605 1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
21606 (arm_canonicalize_comparison): Likewise.
21607 (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
21609 (thumb1_size_rtx_costs): Likewise.
21610 (vfp_const_double_index): Replace cast of 1 to unsigned
21611 HOST_WIDE_INT with HOST_WIDE_INT_1U.
21612 (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
21614 (arm_asan_shadow_offset): Replace cast of 1 to unsigned
21615 HOST_WIDE_INT with HOST_WIDE_INT_1U.
21616 * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
21617 HOST_WIDE_INT with HOST_WIDE_INT_1.
21619 2016-05-24 Marek Polacek <polacek@redhat.com>
21621 * tree-cfg.h (should_remove_lhs_p): New predicate.
21622 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
21623 * gimplify.c (gimplify_modify_expr): Likewise.
21624 * tree-cfg.c (verify_gimple_call): Likewise.
21625 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
21626 * gimple-fold.c: Include "tree-cfg.h".
21627 (gimple_fold_call): Use should_remove_lhs_p.
21629 2016-05-24 Richard Biener <rguenther@suse.de>
21631 PR tree-optimization/71253
21632 * cfganal.h (control_dependences): Make robust against edge
21634 (control_dependences::control_dependences): Remove edge_list argument.
21635 (control_dependences::get_edge): Remove.
21636 (control_dependences::get_edge_src): Add.
21637 (control_dependences::get_edge_dest): Likewise.
21638 (control_dependences::m_el): Make a vector of edge src/dest index.
21639 * cfganal.c (control_dependences::find_control_dependence): Adjust.
21640 (control_dependences::control_dependences): Likewise.
21641 (control_dependences::~control_dependence): Likewise.
21642 (control_dependences::get_edge): Remove.
21643 (control_dependences::get_edge_src): Add.
21644 (control_dependences::get_edge_dest): Likewise.
21645 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
21647 (perform_tree_ssa_dce): Adjust.
21648 * tree-loop-distribution.c (create_edge_for_control_dependence): Use
21650 (pass_loop_distribution::execute): Adjust. Do loop destroying
21651 conditional on changed.
21653 2016-05-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21656 * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
21657 return. Reindent transformation comment and mention the ARM state
21660 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
21662 PR middle-end/71252
21663 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
21664 after build_and_add_sum creates new use stmt.
21666 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
21668 * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
21669 load_lanes/grouped_load classification comes first. Don't check
21670 whether the vectorization factor is a multiple of the group size
21673 2016-05-24 Richard Sandiford <richard.sandiford@arm.com>
21675 * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
21676 GROUP_GAP for single-element interleaving.
21677 * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
21680 2016-05-24 Richard Biener <rguenther@suse.de>
21682 PR middle-end/70434
21684 * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
21685 bases which are accessed with non-invariant indices.
21686 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
21687 constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
21689 2016-05-24 Kugan Vivekanandarajah <kuganv@linaro.org>
21691 PR middle-end/71170
21692 * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
21693 (add_to_ops_vec): Add stmt_to_insert.
21694 (add_repeat_to_ops_vec): Init stmt_to_insert.
21695 (insert_stmt_before_use): New.
21696 (transform_add_to_multiply): Remove mult_stmt insertion and add it
21698 (get_ops): Init stmt_to_insert.
21699 (maybe_optimize_range_tests): Likewise.
21700 (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
21701 (rewrite_expr_tree_parallel): Likewise.
21702 (reassociate_bb): Likewise.
21704 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
21707 * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
21708 ISA 3.0 xxperm fusion alternative.
21709 (altivec_vperm_v8hiv16qi): Likewise.
21710 (altivec_vperm_<mode>_uns_internal): Likewise.
21711 (vperm_v8hiv4si): Likewise.
21712 (vperm_v16qiv8hi): Likewise.
21714 2016-05-23 Michael Meissner <meissner@linux.vnet.ibm.com>
21715 Kelvin Nilsen <kelvin@gcc.gnu.org>
21717 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
21718 vpermr/xxpermr on ISA 3.0.
21719 (altivec_expand_vec_perm_le): Likewise.
21720 * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
21721 (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
21724 2016-05-23 Uros Bizjak <ubizjak@gmail.com>
21726 * config/i386/i386.h (IS_STACK_MODE): Enable for
21727 TARGET_MIX_SSE_I387. Rewrite using X87_FLOAT_MODE_P and
21728 SSE_FLOAT_MODE_P macros.
21729 * config/i386/i386.c (ix86_preferred_reload_class): Use
21730 IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
21731 Cleanup regclass processing for CONST_DOUBLE_P.
21732 (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
21733 (ix86_rtx_costs): Remove redundant TARGET_80387 check
21734 with IS_STACK_MODE macro.
21735 * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
21737 (*movdf_internal): Use IS_STACK_MODE macro.
21738 (*movsf_internal): Ditto.
21740 2016-05-23 Marc Glisse <marc.glisse@inria.fr>
21742 * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
21743 ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
21745 2016-05-23 Jeff Law <law@redhat.com>
21747 * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
21749 (fsm_find_control_statement_thread_paths): Call it.
21751 2016-05-23 Martin Jambor <mjambor@suse.cz>
21754 * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
21755 from_global_constant if t is not NULL.
21757 2016-05-23 Marek Polacek <polacek@redhat.com>
21760 * common.opt (Wswitch-unreachable): New option.
21761 * doc/invoke.texi: Document -Wswitch-unreachable.
21762 * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
21765 2016-05-23 Bin Cheng <bin.cheng@arm.com>
21767 * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
21768 TMR_INDEX is non-NULL.
21770 2016-05-23 Richard Biener <rguenther@suse.de>
21772 PR tree-optimization/71230
21773 * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
21774 (try_special_add_to_ops): ... here. Always test for single-use.
21776 2016-05-23 Martin Jambor <mjambor@suse.cz>
21778 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
21779 default block if a PHI node in the original one would be resized.
21781 2016-05-23 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
21783 PR tree-optimization/58135
21784 * tree-vect-slp.c: When group size is not multiple
21785 of vector size, allow splitting of store group at
21788 2016-05-23 Christophe Lyon <christophe.lyon@linaro.org>
21790 * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
21792 2016-05-22 Jakub Jelinek <jakub@redhat.com>
21794 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
21795 vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
21796 condition. For !TARGET_AVX512DQ, emit 32x4 instruction instead
21799 * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
21800 vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
21801 v constraint instead of x and vinserti32x4 insn.
21803 * config/i386/sse.md (i128vldq): New mode iterator.
21804 (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
21805 avx512dq and avx512vl alternatives.
21807 * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
21808 constraint, use maybe_evex prefix instead of vex.
21809 (vec_dupv4sf): Use v constraint instead of x for output
21810 operand except for noavx alternative, use Yv constraint
21811 instead of x for input. Use maybe_evex prefix instead of vex.
21812 (*vec_dupv4si): Likewise.
21813 (*vec_dupv2di): Likewise.
21815 2016-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
21817 PR middle-end/40921
21818 * tree-ssa-reassoc.c (try_special_add_to_ops): New.
21819 (linearize_expr_tree): Call try_special_add_to_ops.
21820 (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
21822 2016-05-21 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
21824 * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
21825 to computed stack_usage.
21827 2016-05-21 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
21830 * config/avr/avr.md (define_expand "mov<mode>"): If the source
21831 operand is subreg (symbol_ref) then move the symbol ref to register.
21833 2016-05-21 Jan Hubicka <hubicka@ucw.cz>
21835 * tree.c (array_at_struct_end_p): Look through MEM_REF.
21837 2016-05-21 Kugan Vivekanandarajah <kuganv@linaro.org>
21839 PR middle-end/71179
21840 * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
21843 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
21845 * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
21846 ranges by calling get_single_symbol and tidy up. Look more closely
21847 into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
21849 2016-05-20 Jeff Law <law@redhat.com>
21851 * bitmap.c (bitmap_find_bit): Remove useless test.
21853 2016-05-20 Segher Boessenkool <segher@kernel.crashing.org>
21855 * function.c (thread_prologue_and_epilogue_insns): Commit the
21856 insertion of the epilogue.
21858 2016-05-20 Martin Jambor <mjambor@suse.cz>
21860 PR tree-optimization/70884
21861 * tree-sra.c (initialize_constant_pool_replacements): Do not check
21862 should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
21863 (sort_and_splice_var_accesses): Do not consider multiple scalar reads
21864 of constant pool data as a reason for scalarization.
21866 2016-05-20 Eric Botcazou <ebotcazou@adacore.com>
21868 * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
21869 for naked functions.
21870 (thumb1_expand_prologue): Likewise.
21872 2016-05-20 Nathan Sidwell <nathan@acm.org>
21874 * config/nvptx/nptx.c (nvptx_option_override): Only set
21875 flag_toplevel_reorder, if not explicitly specified. Set
21876 flag_no_common, unless explicitly specified.
21878 2016-05-20 David Malcolm <dmalcolm@redhat.com>
21880 * calls.c (can_implement_as_sibling_call_p): Mark param
21881 reg_parm_stack_space with ATTRIBUTE_UNUSED.
21883 2016-05-20 Uros Bizjak <ubizjak@gmail.com>
21885 * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
21886 Use IS_STACK_MODE when calculating cost of standard 80387 constants.
21887 Fallthru to CONST_VECTOR case to calculate cost of standard SSE
21889 <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
21890 (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
21891 and CASE_CONST_ANY.
21893 2016-05-20 Cesar Philippidis <cesar@codesourcery.com>
21895 * config/nvptx/nvptx.md (sincossf3): New pattern.
21897 2016-05-20 David Malcolm <dmalcolm@redhat.com>
21899 * calls.c (maybe_complain_about_tail_call): New function.
21900 (initialize_argument_information): Call
21901 maybe_complain_about_tail_call when clearing *may_tailcall.
21902 (can_implement_as_sibling_call_p): Call
21903 maybe_complain_about_tail_call when returning false.
21904 (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
21905 ensure try_tail_call is set. Call maybe_complain_about_tail_call
21906 if tail-call optimization fails.
21907 * cfgexpand.c (expand_call_stmt): Initialize
21908 CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
21909 * gimple-pretty-print.c (dump_gimple_call): Dump
21910 gimple_call_must_tail_p.
21911 * gimple.c (gimple_build_call_from_tree): Call
21912 gimple_call_set_must_tail with the value of
21913 CALL_EXPR_MUST_TAIL_CALL.
21914 * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
21915 (gimple_call_set_must_tail): New function.
21916 (gimple_call_must_tail_p): New function.
21917 * print-tree.c (print_node): Update printing of TREE_STATIC
21918 to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
21919 * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
21920 trailing comment listing applicable flags.
21921 * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
21923 2016-05-20 David Malcolm <dmalcolm@redhat.com>
21925 * calls.c (expand_call): Move "Rest of purposes for tail call
21926 optimizations to fail" to...
21927 (can_implement_as_sibling_call_p): ...this new function, and
21928 split into multiple "if" statements.
21930 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
21932 * cfgloop.h (expected_loop_iterations_unbounded,
21933 expected_loop_iterations): Unconstify.
21934 * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
21935 profile with known upper bound; return 3 when profile is absent.
21936 (expected_loop_iterations): Update.
21938 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
21940 * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
21941 and get_max_loop_iterations_int.
21943 2016-05-20 Jan Hubicka <hubicka@ucw.cz>
21945 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
21946 realistic upper bounds here.
21948 2016-05-20 Jakub Jelinek <jakub@redhat.com>
21951 * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
21952 calls if the LHS is variable length or has addressable type.
21953 If targets[0]->decl is a noreturn call with void return type and
21954 zero arguments, adjust fntype and remove lhs in that case.
21956 2016-05-20 Marc Glisse <marc.glisse@inria.fr>
21958 PR tree-optimization/71079
21959 PR tree-optimization/71206
21960 * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
21962 2016-05-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
21964 * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
21965 (get_vec_alignment_for_array_decl): Likewise.
21966 (get_vec_alignment_for_record_decl): Likewise.
21967 (increase_alignment::execute): Move code to find alignment to
21968 get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
21969 (type_align_map): New hash_map.
21971 2016-05-20 Richard Guenther <rguenther@suse.de>
21973 PR tree-optimization/29756
21974 * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
21975 * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
21976 * fold-const.c (operand_equal_p): Likewise.
21977 (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
21978 * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
21979 * tree-inline.c (estimate_operator_cost): Likewise.
21980 * tree-pretty-print.c (dump_generic_node): Likewise.
21981 * tree-ssa-operands.c (get_expr_operands): Likewise.
21982 * cfgexpand.c (expand_debug_expr): Likewise.
21983 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
21984 * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
21985 * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
21986 * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
21987 vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
21988 (execute_update_addresses_taken): Do it.
21990 2016-05-20 Richard Biener <rguenther@suse.de>
21992 PR tree-optimization/71185
21993 * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
21994 register operations.
21996 2016-05-20 Richard Biener <rguenther@suse.de>
21998 * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
21999 gimple_seq_add_seq_without_update.
22000 (release_bb_predicate): Assert we have no operands to free.
22001 (if_convertible_loop_p_1): Calculate post dominators later.
22002 Do not free BB predicates here.
22003 (combine_blocks): Do not recompute BB predicates.
22004 (version_loop_for_if_conversion): Save BB predicates around
22007 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
22009 * function.c (make_epilogue_seq): Remove epilogue_end parameter.
22010 (thread_prologue_and_epilogue_insns): Remove bb_flags. Restructure
22011 code. Ignore sibcalls on EDGE_IGNORE edges.
22012 * shrink-wrap.c (handle_simple_exit): New function. Set EDGE_IGNORE
22013 on edges for sibcalls that run without prologue. The rest of the
22014 function is combined from...
22015 (fix_fake_fallthrough_edge): ... this, and ...
22016 (try_shrink_wrapping): ... a part of this. Remove the bb_with
22017 function argument, make it a local variable.
22019 2016-05-19 Sandra Loosemore <sandra@codesourcery.com>
22021 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
22022 --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
22023 for 32-bit mode and SEH for 64-bit.
22024 * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
22025 TARGET_64BIT_DEFAULT.
22027 2016-05-19 Ryan Burn <contact@rnburn.com>
22029 * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
22030 * gengtype.c (open_base_files): Add cilk.h to ifiles.
22032 2016-05-19 Uros Bizjak <ubizjak@gmail.com>
22034 * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
22035 force pending loads from memory.
22037 2016-05-19 Kelvin Nilsen <kelvin@gcc.gnu.org>
22039 * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
22040 (UNSPEC_DARN_32): New unspec constant.
22041 (UNSPEC_DARN_RAW): New unspec constant.
22042 (darn_32): New instruction.
22043 (darn_raw): New instruction.
22044 (darn): New instruction.
22045 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
22046 support and documentation for this macro.
22047 (BU_P9_MISC_1): New macro definition.
22048 (BU_P9_64BIT_MISC_0): New macro definition.
22049 (BU_P9_MISC_0): New macro definition.
22050 (darn_32): New builtin definition.
22051 (darn_raw): New builtin definition.
22052 (darn): New builtin definition.
22053 * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
22054 RS6000_BUILTIN_0 directives to surround each occurrence of
22055 #include "rs6000-builtin.def".
22056 (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
22057 RS6000_BTM_64BIT flags to the returned mask, depending on
22059 (def_builtin): Correct an error in the assignments made to the
22060 debugging variable attr_string.
22061 (rs6000_expand_builtin): Add support for no-operand built-in
22063 (builtin_function_type): Remove fatal_error assertion that is no
22065 (rs6000_common_init_builtins): Add support for no-operand built-in
22067 * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
22069 (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
22071 (RS6000_BTM_64BIT): New macro definition.
22072 * doc/extend.texi: Document __builtin_darn (void),
22073 __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
22076 2016-05-19 Jan Hubicka <hubicka@ucw.cz>
22078 * tree-vect-loop.c (vect_analyze_loop_2): Use also
22079 max_loop_iterations_int.
22081 2016-05-19 Marek Polacek <polacek@redhat.com>
22083 PR tree-optimization/71031
22084 * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
22085 condition and adjust the code a bit.
22087 2016-05-19 Martin Liska <mliska@suse.cz>
22089 * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
22090 auto_vec instead of vec.
22092 2016-05-19 Martin Liska <mliska@suse.cz>
22094 * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
22096 2016-05-19 Martin Liska <mliska@suse.cz>
22098 * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
22100 2016-05-19 Martin Liska <mliska@suse.cz>
22102 * ipa-pure-const.c (set_function_state): Remove an existing
22104 (remove_node_data): Do not free it as it's released
22105 in set_function_state.
22107 2016-05-19 Martin Liska <mliska@suse.cz>
22109 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
22112 2016-05-19 Martin Liska <mliska@suse.cz>
22114 * omp-simd-clone.c (simd_clone_adjust): Release vector.
22116 2016-05-19 Martin Liska <mliska@suse.cz>
22118 * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
22119 an auto_vec instead of re-creating it.
22121 2016-05-19 Martin Liska <mliska@suse.cz>
22123 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
22124 auto_vec instead of vec.
22126 2016-05-19 Martin Liska <mliska@suse.cz>
22128 * lto-section-in.c (lto_get_section_data): Call
22129 lto_check_version with additional argument.
22130 * lto-streamer.c (lto_check_version): Add new argument.
22131 * lto-streamer.h (lto_check_version): Likewise.
22133 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22135 * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
22136 Don't add cost of inner memory when handling sign-extended loads.
22138 2016-05-19 Ilya Enkovich <ilya.enkovich@intel.com>
22140 PR rtl-optimization/71148
22141 * cse.c (cse_main): Free dominance info.
22142 (rest_of_handle_cse): Don't free dominance info.
22143 (rest_of_handle_cse2): Likewise.
22144 (rest_of_handle_cse_after_global_opts): Likewise.
22146 2016-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22149 * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
22150 NULL_TREE early if NEON is not available. Remove now redundant check
22151 in ARM_CHECK_BUILTIN_MODE.
22153 2016-05-19 Maxim Ostapenko <m.ostapenko@samsung.com>
22156 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
22157 builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
22158 * doc/cpp.texi: Document new macros.
22160 2016-05-19 Bin Cheng <bin.cheng@arm.com>
22162 PR tree-optimization/69848
22163 * tree-vect-loop.c (vectorizable_reduction): Don't factor
22164 comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
22166 2016-05-19 Segher Boessenkool <segher@kernel.crashing.org>
22168 * function.c (thread_prologue_and_epilogue_insn): Move the
22169 "goto epilogue_done" one block later.
22171 2016-05-19 Richard Biener <rguenther@suse.de>
22173 PR tree-optimization/70729
22174 * passes.def: Move LIM pass before PRE. Remove no longer
22175 required copyprop and move first DCE out of the loop pipeline.
22177 2016-05-18 David Malcolm <dmalcolm@redhat.com>
22180 * Makefile.in (GCC_OBJS): Move spellcheck.o to...
22181 (OBJS-libcommon-target): ...here.
22182 * opts-common.c: Include spellcheck.h.
22183 (cmdline_handle_error): Build a vec of valid options and use it
22184 to suggest provide hints for misspelled arguments.
22186 2016-05-18 Jakub Jelinek <jakub@redhat.com>
22189 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
22190 lhs if it has TREE_ADDRESSABLE type.
22192 2016-05-18 Uros Bizjak <ubizjak@gmail.com>
22195 * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
22196 (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
22198 2016-05-18 Martin Jambor <mjambor@suse.cz>
22201 * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
22202 input for NOP_EXPR pass-through functions.
22203 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
22204 aggregate global constant VAR_DECLs in constant jump functions.
22206 2016-05-18 Martin Jambor <mjambor@suse.cz>
22209 * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
22210 from TREE_READONLY parameters.
22212 2016-05-18 Martin Jambor <mjambor@suse.cz>
22215 * cgraph.h (cgraph_indirect_call_info): New field
22216 guaranteed_unmodified.
22217 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
22218 to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
22220 * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
22221 pass the parameter value to ipa_find_agg_cst_for_param.
22222 * ipa-prop.c (ipa_load_from_parm_agg): New parameter
22223 guaranteed_unmodified, store AA results there instead of bailing out
22225 (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
22226 (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
22227 (find_constructor_constant_at_offset): New function.
22228 (ipa_find_agg_cst_from_init): Likewise.
22229 (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
22230 static initializers of contants, report back through a new paameter
22231 from_global_constant if that was the case.
22232 (try_make_edge_direct_simple_call): Also pass parameter value to
22233 ipa_find_agg_cst_for_param, check guaranteed_unmodified when
22235 (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
22236 (ipa_read_indirect_edge_info): Likewise.
22237 * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
22238 (ipa_load_from_parm_agg): Likewise.
22240 2016-05-18 Jiong Wang <jiong.wang@arm.com>
22242 PR rtl-optimization/71150
22243 * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
22246 2016-05-18 Michael Meissner <meissner@linux.vnet.ibm.com>
22249 * config/rs6000/constraints.md (wE constraint): New constraint
22250 for a vector constant that can be loaded with XXSPLTIB.
22251 (wM constraint): New constraint for a vector constant of a 1's.
22252 (wS constraint): New constraint for a vector constant that can be
22253 loaded with XXSPLTIB and a vector sign extend instruction.
22254 * config/rs6000/predicates.md (xxspltib_constant_split): New
22255 predicates for wE/wS constraints.
22256 (xxspltib_constant_nosplit): Likewise.
22257 (easy_vector_constant): Add support for constants that can be
22258 loaded via XXSPLTIB.
22259 (all_ones_constant): New predicate for vector constant with all
22261 (splat_input_operand): Add support for ISA 3.0 word splat operations.
22262 * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
22263 return if a constant can be loaded with the ISA 3.0 XXSPLTIB
22264 instruction and possibly with a sign extension.
22265 (output_vec_const_move): Add support for XXSPLTIB. If we are
22266 loading up 0/-1 into Altivec registers, prefer using VSPLTISW
22267 instead of XXLXOR/XXLORC.
22268 (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
22270 (rs6000_legitimize_reload_address): Likewise.
22271 (rs6000_output_move_128bit): Use output_vec_const_move to emit
22273 * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
22274 combine VSX_M and VSX_M2 into one iterator.
22275 (VSX_M2): Likewise.
22276 (VSINT_84): New iterators for loading constants with XXSPLTIB.
22277 (VSINT_842): Likewise.
22278 (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
22279 (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
22280 XXSPLTIB instruction.
22281 (xxspltib_<mode>_nosplit): Likewise.
22282 (xxspltib_<mode>_split): New insn to load up constants with
22283 XXSPLTIB and a sign extend instruction.
22284 (vsx_mov<mode>): Replace single move that handled all vector types
22285 with separate 32-bit and 64-bit moves. Combine the movti_<bit>
22286 moves (when -mvsx-timode is in effect) into the main vector
22287 moves. Eliminate separate moves for <VSr> <VSa>, where the
22288 preferred register class (<VSr>) is listed first, and the
22289 secondary register class (<VSa>) is listed second with a '?' to
22290 discourage use. Prefer loading 0/-1 in any VSX register for ISA
22291 3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
22292 that if the register was involved in a slow operation, the
22293 clear/set operation does not wait for the slow operation to
22294 finish. Adjust the length attributes for 32-bit mode. Use
22295 rs6000_output_move_128bit and drop the use of the string
22296 instructions for 32-bit movti when -mvsx-timode is in effect. Use
22297 spacing so that the alternatives and attributes don't generate
22298 long lines, and put things in columns, so that it is easier to
22299 match up the operands and attributes with the insn alternatives.
22300 (vsx_mov<mode>_64bit): Likewise.
22301 (vsx_mov<mode>_32bit): Likewise.
22302 (vsx_movti_64bit): Fold movti into normal vector moves.
22303 (vsx_movti_32bit): Likewise.
22304 (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
22305 splat instructions.
22306 (vsx_splat_v4si_internal): Likewise.
22307 (vsx_splat_v4sf_internal): Likewise.
22308 (vector fusion peepholes): Use VSX_M instead of VSX_M2.
22309 (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
22310 extend vector elements.
22311 (vsx_sign_extend_hi_<mode>): Likewise.
22312 (vsx_sign_extend_si_v2di): Likewise.
22313 * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
22315 * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
22316 constraints. Add trailing period to wL documentation.
22318 2016-05-18 Richard Sandiford <richard.sandiford@arm.com>
22320 PR middle-end/71020
22321 * tree-dfa.h (replace_abnormal_ssa_names): Declare.
22322 * tree-dfa.c (replace_abnormal_ssa_names): New function.
22323 * tree-call-cdce.c: Include tree-dfa.h.
22324 (can_guard_call_p): New function, extracted from...
22325 (can_use_internal_fn): ...here.
22326 (shrink_wrap_one_built_in_call_with_conds): Remove failure path
22328 (shrink_wrap_one_built_in_call): Likewise.
22329 (use_internal_fn): Likewise.
22330 (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
22331 and return void. Call replace_abnormal_ssa_names.
22332 (pass_call_cdce::execute): Check can_guard_call_p during the
22333 initial walk. Assume shrink_wrap_conditional_dead_built_in_calls
22334 will always change something.
22336 2016-05-18 Martin Jambor <mjambor@suse.cz>
22339 * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
22340 if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
22342 2016-05-18 Martin Jambor <mjambor@suse.cz>
22345 * ipa-inline.h (condition): New field size.
22346 * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
22347 for comaprison and store it into the new condition.
22348 (evaluate_conditions_for_known_args): Use condition size to check
22349 access sizes for all but CHANGED conditions.
22350 (unmodified_parm_1): New parameter size_p, store access size into it.
22351 (unmodified_parm): Likewise.
22352 (unmodified_parm_or_parm_agg_item): Likewise.
22353 (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
22354 (set_cond_stmt_execution_predicate): Extract access sizes and store
22355 them to conditions.
22356 (set_switch_stmt_execution_predicate): Likewise.
22357 (will_be_nonconstant_expr_predicate): Likewise.
22358 (will_be_nonconstant_predicate): Likewise.
22359 (inline_read_section): Stream condition size.
22360 (inline_write_summary): Likewise.
22362 2016-05-18 Richard Biener <rguenther@suse.de>
22364 * tree-ssa-loop-im.c (determine_max_movement): Properly add
22365 condition cost to PHI cost instead of total_cost.
22367 2016-05-18 Martin Liska <mliska@suse.cz>
22370 * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
22373 2016-05-18 Richard Biener <rguenther@suse.de>
22375 * lto-streamer.h (LTO_major_version): Bump to 6.
22377 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
22379 * function.c (make_split_prologue_seq, make_prologue_seq,
22380 make_epilogue_seq): New functions, factored out from...
22381 (thread_prologue_and_epilogue_insns): Here.
22383 2016-05-18 Segher Boessenkool <segher@kernel.crashing.org>
22385 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
22386 cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
22387 of before. Add a comment.
22389 2016-05-18 Bin Cheng <bin.cheng@arm.com>
22391 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
22392 expression pointer, not pointer to the pointer.
22394 2016-05-18 Jakub Jelinek <jakub@redhat.com>
22396 * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
22397 (avx2_pbroadcast<mode>): Add another alternative with v instead
22398 of x constraints in it, using <pbroadcast_evex_isa> isa.
22399 (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
22401 * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
22402 constraint x instead of v in second alternative, add avx512bw
22405 * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
22406 constraint x instead of v in second alternative, add avx512bw
22409 * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
22410 constraint x instead of v in second alternative, add avx512bw
22413 * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
22414 avx512bw alternative.
22416 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
22418 * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
22419 array to 128 chars.
22420 (define_insn "*andnottf3"): Ditto.
22421 (define_insn "*<code><mode>3"/any_logic): Ditto.
22422 (define_insn "*<code>tf3"/any_logic): Ditto.
22423 (define_insn "sse2_storehpd"): Use Yv constraint for scalar
22424 operand to block AVX-512VL insn variant emit when it is not enabled.
22426 2016-05-18 Kirill Yukhin <kirill.yukhin@intel.com>
22428 * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
22429 constraint fot SF mode.
22431 2016-05-18 Petr Murzin <petr.murzin@intel.com>
22432 Kirill Yukhin <kirill.yukhin@intel.com>
22434 * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
22436 (define_insn "rsqrt14<mode>"): Ditto.
22437 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
22438 (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
22439 (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
22440 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
22441 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
22443 (define_insn "*avx512f_gatherdi<mode>"): Ditto.
22444 (define_insn "*avx512f_scatterdi<mode>"): Ditto.
22445 * config/i386/i386.c (ix86_print_operand): Expand check for size
22446 override codes for Intel syntax.
22448 2016-05-18 Richard Biener <rguenther@suse.de>
22450 PR tree-optimization/71168
22451 * tree-loop-distribution.c (distribute_loop): Move *destroy_p
22452 initialization earlier.
22454 2016-05-18 James Greenhalgh <james.greenhalgh@arm.com>
22456 * config/aarch64/aarch64-simd.md
22457 (aarch64_reduc_plus_internal<mode>): Rename to...
22458 (reduc_plus_scal): ...This, and remove previous implementation.
22460 2016-05-18 Richard Biener <rguenther@suse.de>
22462 * passes.def: Put late dse and cd_dce in canonical order.
22464 2016-05-17 Jan Hubicka <hubicka@ucw.cz>
22466 * ipa-inline-transform.c (preserve_function_body_p): Look for
22467 first non-thunk clone.
22468 (save_function_body): Save into first non-thunk.
22469 * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
22471 (lto_output_node): Inline thunks don't need body in every
22473 * lto-streamer-in.c: Do not fixup thunk clones.
22474 * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
22476 * tree-inline.c (copy_bb): Be prepared for target node to be new after
22479 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
22481 PR middle-end/63586
22482 * tree-ssa-reassoc.c (transform_add_to_multiply): New.
22483 (reassociate_bb): Call transform_add_to_multiply.
22485 2016-05-17 Kugan Vivekanandarajah <kuganv@linaro.org>
22487 * config/aarch64/aarch64.c (all_extensions): Removed unused
22490 2016-05-17 Nathan Sidwell <nathan@acm.org>
22492 * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
22493 (TARGET_FUNCTION_ARG_BOUNDARY): Override.
22495 2016-05-17 Mikhail Maltsev <maltsevm@gmail.com>
22497 PR tree-optimization/54579
22498 PR middle-end/55299
22499 * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
22501 2016-05-17 Marek Polacek <polacek@redhat.com>
22504 * tree-inline.c (expand_call_inline): Call
22505 maybe_remove_unused_call_args.
22507 2016-05-17 Jim Wilson <jim.wilson@linaro.org>
22509 * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
22510 * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
22511 * doc/md.texi (fmin@var{m}3): Likewise.
22513 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
22515 * match.pd (X & C): New transformation.
22517 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
22519 * match.pd (~X & Y): New transformation.
22521 2016-05-17 Marc Glisse <marc.glisse@inria.fr>
22523 * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
22524 information for new SSA_NAME.
22525 (simplify_conversion_using_ranges): Get range through get_range_info
22526 instead of get_value_range.
22528 2016-05-17 Jiong Wang <jiong.wang@arm.com>
22530 * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
22531 Remove inline assembly.
22532 (vmvn_s16): Likewise.
22533 (vmvn_s32): Likewise.
22534 (vmvn_u8): Likewise.
22535 (vmvn_u16): Likewise.
22536 (vmvn_u32): Likewise.
22537 (vmvnq_s8): Likewise.
22538 (vmvnq_s16): Likewise.
22539 (vmvnq_s32): Likewise.
22540 (vmvnq_u8): Likewise.
22541 (vmvnq_u16): Likewise.
22542 (vmvnq_u32): Likewise.
22543 (vmvn_p8): Likewise.
22544 (vmvnq_p16): Likewise.
22546 2016-05-17 Jiong Wang <jiong.wang@arm.com>
22548 * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
22550 (vmul_n_s16): Likewise.
22551 (vmul_n_s32): Likewise.
22552 (vmul_n_u16): Likewise.
22553 (vmul_n_u32): Likewise.
22554 (vmulq_n_f32): Likewise.
22555 (vmulq_n_f64): Likewise.
22556 (vmulq_n_s16): Likewise.
22557 (vmulq_n_s32): Likewise.
22558 (vmulq_n_u16): Likewise.
22559 (vmulq_n_u32): Likewise.
22561 2016-05-17 Jiong Wang <jiong.wang@arm.com>
22563 * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
22564 to all supported modes. Rename to "*aarch64_mul3_elt_from_dup".
22566 2016-05-17 Jiong Wang <jiong.wang@arm.com>
22568 * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
22569 to *aarch64_fma4_elt_from_dup<mode>.
22570 (*aarch64_fnma4_elt_to_128df): Rename to
22571 *aarch64_fnma4_elt_from_dup<mode>.
22572 * config/aarch64/arm_neon.h (vfma_n_f64): New.
22573 (vfms_n_f32): Likewise.
22574 (vfms_n_f64): Likewise.
22575 (vfmsq_n_f32): Likewise.
22576 (vfmsq_n_f64): Likewise.
22578 2016-05-17 Gerald Pfeifer <gerald@pfeifer.com>
22580 * wide-int.h: Change fixed_wide_int_storage from class to struct.
22582 2016-05-17 Richard Biener <rguenther@suse.de>
22584 PR tree-optimization/71132
22585 * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
22586 Only add control dependences for blocks in the loop.
22587 (build_rdg): Adjust.
22588 (generate_code_for_partition): Return whether loop should
22589 be destroyed and delay that.
22590 (distribute_loop): Likewise.
22591 (pass_loop_distribution::execute): Record loops to be destroyed
22592 and perform delayed destroying of loops.
22594 2016-05-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22597 * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
22599 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
22601 * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
22603 2016-05-17 Ilya Enkovich <ilya.enkovich@intel.com>
22606 * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
22607 insertion point for instructions generated by validize_mem.
22609 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
22611 * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
22614 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
22616 * config/aarch64/aarch64.c
22617 (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
22618 rather than a macro.
22620 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
22622 * doc/invoke.texi (AArch64 Options): Various updates.
22624 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
22626 * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
22627 into instrumentation thunks.
22628 * cif-code.def (CIF_CHKP): New.
22630 2016-05-16 Uros Bizjak <ubizjak@gmail.com>
22632 * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
22634 2016-05-16 Martin Jambor <mjambor@suse.cz>
22636 * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
22637 (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
22639 2016-05-16 Marek Polacek <polacek@redhat.com>
22641 * gimple.c (maybe_remove_unused_call_args): Fix typos in the
22644 2016-05-16 Martin Jambor <mjambor@suse.cz>
22647 * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
22648 the outlined kernel function.
22650 2016-05-16 Robert Suchanek <robert.suchanek@imgtec.com>
22652 * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
22653 (ISA_HAS_DLSA): Ditto.
22655 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
22657 * config/mips/m5100.md (m51_int_load): Update the latency to 2.
22659 2016-05-16 Nathan Sidwell <nathan@acm.org>
22661 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
22662 (nvptx_name_replacement): Restore. Add comment.
22663 (write_fn_proto, write_fn_proto_from_insn,
22664 nvptx_output_call_insn): Restore
22665 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
22667 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
22669 * config/aarch64/aarch64.md
22670 (add<mode>3_compareC_cconly_imm): Remove use of %w.
22671 (add<mode>3_compareC_imm): Likewise.
22672 (<optab>si3_uxtw): Split into register and immediate variants.
22673 (andsi3_compare0_uxtw): Likewise.
22674 (and<mode>3_compare0): Likewise.
22675 (and<mode>3nr_compare0): Likewise.
22676 (stack_protect_test_<mode>): Don't use %x for memory operands.
22678 2016-05-16 Matthew Fortune <matthew.fortune@imgtec.com>
22680 * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
22682 2016-05-16 Wilco Dijkstra <wdijkstr@arm.com>
22684 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
22685 Split integer shifts into shift_reg and bfm.
22686 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
22687 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
22688 (ror<mode>3_insn): Likewise.
22689 (<optab>si3_insn_uxtw): Likewise.
22690 (<optab><mode>3_insn): Change to rotate_imm.
22691 (extr<mode>5_insn_alt): Likewise.
22692 (extrsi5_insn_uxtw): Likewise.
22693 (extrsi5_insn_uxtw_alt): Likewise.
22695 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
22697 * doc/tm.texi: Regenerate.
22698 * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
22699 (TARGET_INVALID_RETURN_TYPE): Remove.
22700 * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
22701 TARGET_INVALID_RETURN_TYPE.
22702 * target.def (invalid_parameter_type): Remove.
22703 (invalid_return_type): Remove.
22705 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
22707 * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
22708 on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
22710 * ipa-inline-transform.c (inline_call): When inlining into thunk produce
22712 (preserve_function_body_p): No need to preserve function body
22713 * cif-codes.def (CIF_THUNK): Remove.
22714 * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
22716 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
22718 * tree-inline.c (expand_call_inline): recurse after inlining thunk.
22720 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
22722 * tree.c (free_lang_data_in_decl): Also set target/optimization flags
22725 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
22727 * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
22728 (inline_small_functions): Do not look for function symbol when
22731 2016-05-16 Jan Hubicka <hubicka@ucw.cz>
22733 * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
22736 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
22737 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22738 Jiong Wang <jiong.wang@arm.com>
22740 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
22741 for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
22742 Define __ARM_FP16_ARGS when appropriate.
22743 * config/arm/arm.c (arm_invalid_parameter_type): Remove
22745 (arm_invalid_return_type): Likewise.
22746 (TARGET_INVALID_PARAMETER_TYPE): Remove.
22747 (TARGET_INVALID_RETURN_TYPE): Remove.
22748 (aapcs_vfp_sub_candidate): Allow HFmode.
22749 (aapcs_vfp_allocate): Add comment. Support HFmode.
22750 (aapcs_vfp_allocate_return_reg): Likewise.
22751 (struct aapcs_cp_arg_layout): Slightly reword comments for
22752 is_return_candidate and allocate_return_reg.
22753 (output_mov_vfp): Update assert.
22754 (arm_hard_regno_mode_ok): Remove comment, update HF-mode
22756 (arm_invalid_parameter_type): Remove.
22757 (amr_invalid_return_type): Remove.
22758 * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
22759 * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
22760 * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
22762 2016-05-16 Matthew Wahab <matthew.wahab@arm.com>
22764 * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
22765 * config/aarch64/arch64-protos.h
22766 (aarch64_legitimize_reload_address): Remove.
22767 * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
22770 2016-05-16 Eric Botcazou <ebotcazou@adacore.com>
22772 * configure.ac: Add ACX_NONCANONICAL_HOST.
22773 * configure: Regenerate.
22774 * Makefile.in: Set host_noncanonical.
22776 2016-05-14 Uros Bizjak <ubizjak@gmail.com>
22779 * config/i386/i386.md (*movtf_internal): Before register allocation,
22780 do not allow FP constants for CM_MEDIUM memory model, allow only
22781 standard FP constants for CM_LARGE and CM_LARGE_PIC models.
22782 (*movxf_internal): Ditto.
22783 (*movdf_internal): Ditto.
22784 (*movsf_internal): Ditto.
22786 2016-05-13 Segher Boessenkool <segher@kernel.crashing.org>
22788 PR rtl-optimization/67483
22789 * combine.c (make_compound_operation): Don't call extract_left_shift
22790 with negative shift amounts.
22792 2016-05-13 Jakub Jelinek <jakub@redhat.com>
22795 * fold-const.c (fold_checksum_tree): Allow modification
22796 of TYPE_ALIAS_SET during folding.
22798 * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
22799 ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
22800 (ix86_split_to_parts): Likewise. Fix up formatting.
22802 2016-05-13 H.J. Lu <hongjiu.lu@intel.com>
22804 * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
22805 unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
22808 2016-05-13 Nathan Sidwell <nathan@acm.org>
22810 * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
22811 (nvptx_name_replacement): Delete.
22812 (write_fn_proto, write_fn_proto_from_insn,
22813 nvptx_output_call_insn): Remove nvptx_name_replacement call.
22814 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
22815 * langhooks.c (add_builtin_funcction_common): Call
22816 targetm.mangle_decl_assembler_name.
22818 * config/nvptx/nvptx.c (write_fn_proto): Handle
22819 BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
22821 2016-05-13 Martin Liska <mliska@suse.cz>
22823 * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
22824 and PRIu64 in printf format.
22826 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22828 * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
22831 2016-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22833 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
22834 Change --param max-completely-peeled-times to
22835 --param max-completely-peel-times in dump file printing.
22837 2016-05-13 Richard Biener <rguenther@suse.de>
22839 PR tree-optimization/42587
22840 * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
22841 (find_bswap_or_nop_1): Likewise.
22842 (bswap_replace): Likewise.
22844 2016-05-13 Martin Liska <mliska@suse.cz>
22846 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
22847 Initialize a variable with default value.
22849 2016-05-13 Martin Liska <mliska@suse.cz>
22851 * doc/invoke.texi: Enhance explanation of error recovery
22854 2016-05-13 Martin Liska <mliska@suse.cz>
22856 * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
22857 (struct cost_pair): Change inv_expr_id (int) to inv_expr
22858 (iv_inv_expr_ent *).
22859 (struct iv_inv_expr_ent): Comment struct fields.
22860 (sort_iv_inv_expr_ent): New function.
22861 (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
22862 (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
22863 a hash_map between iv_inv_expr_ent and number of usages.
22864 (niter_for_exit): Fix coding style.
22865 (tree_ssa_iv_optimize_init): Use renamed variable.
22866 (determine_base_object): Fix coding style.
22867 (alloc_iv): Likewise.
22868 (find_interesting_uses_outside): Likewise.
22869 (add_candidate_1): Likewise.
22870 (add_standard_iv_candidates): Likewise.
22871 (set_group_iv_cost): Replace inv_expr_id with inv_expr.
22872 (prepare_decl_rtl): Fix coding style.
22873 (get_address_cost): Likewise.
22874 (get_shiftadd_cost): Likewise.
22875 (force_expr_to_var_cost): Likewise.
22876 (compare_aff_trees): Likewise.
22877 (get_expr_id): Restructure the function.
22878 (get_loop_invariant_expr_id): Renamed to
22879 get_loop_invariant_expr.
22880 (get_computation_cost_at): Replace usage of inv_expr_id with
22882 (get_computation_cost): Likewise.
22883 (determine_group_iv_cost_generic): Likewise.
22884 (determine_group_iv_cost_address): Likewise.
22885 (iv_period): Fix coding style.
22886 (iv_elimination_compare_lt): Likewise.
22887 (may_eliminate_iv): Likewise.
22888 (determine_group_iv_cost_cond): Replace usage of inv_expr_id with
22890 (determine_group_iv_costs): Dump invariant expressions.
22891 (iv_ca_recount_cost): Use the newly added hash_map.
22892 (iv_ca_set_remove_invariants): Fix coding style.
22893 (iv_ca_set_add_invariants): Fix coding style.
22894 (iv_ca_set_no_cp): Utilize the newly added hash_map for used
22896 (iv_ca_set_cp): Likewise.
22897 (iv_ca_new): Initialize the newly added hash_map and remove
22898 initialization of fields.
22899 (iv_ca_free): Delete the hash_map.
22900 (iv_ca_dump): Dump invariant expressions.
22901 (iv_ca_extend): Fix coding style.
22902 (try_add_cand_for): Likewise.
22903 (create_new_ivs): Dump information about # of avg iterations and
22904 # of used invariant expressions.
22905 (rewrite_use_compare): Fix coding style.
22906 (free_loop_data): Set default value for max_inv_expr_id.
22908 2016-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
22910 * cse.c (rest_of_handle_cse): Use cleanup_cfg
22911 returned value cse_cfg_altered computation.
22912 (rest_of_handle_cse2): Likewise.
22913 (rest_of_handle_cse_after_global_opts): Likewise.
22915 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22918 * config/arm/arm.c (arm32_output_mi_thunk): New.
22919 (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
22920 to split Thumb1 vs TARGET_32BIT functionality.
22921 (arm_thumb1_mi_thunk): New.
22923 2016-05-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22925 * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
22928 2016-05-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22931 * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
22933 2016-05-13 Eric Botcazou <ebotcazou@adacore.com>
22935 * builtins.c (expand_builtin_memcmp): Do not emit the call here.
22936 (expand_builtin_trap): Emit a regular call.
22937 (set_builtin_user_assembler_name): Remove obsolete cases.
22938 * dse.c (scan_insn): Adjust.
22939 * except.c: Include calls.h.
22940 (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
22941 emit a regular call to setjmp.
22942 * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
22943 (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
22944 (emit_block_move_via_libcall): Delete.
22945 (block_move_fn): Delete.
22946 (init_block_move_fn): Likewise.
22947 (emit_block_move_libcall_fn): Likewise.
22948 (emit_block_op_via_libcall): New function.
22949 (set_storage_via_libcall): Tidy up and use memset builtin.
22950 (block_clear_fn): Delete.
22951 (init_block_clear_fn): Likewise.
22952 (clear_storage_libcall_fn): Likewise.
22953 (expand_assignment): Call emit_block_move_via_libcall.
22954 Do not include gt-expr.h.
22955 * expr.h (emit_block_op_via_libcall): Declare.
22956 (emit_block_copy_via_libcall): New inline function.
22957 (emit_block_move_via_libcall): Likewise.
22958 (emit_block_comp_via_libcall): Likewise.
22959 (block_clear_fn): Delete.
22960 (init_block_move_fn): Likewise.
22961 (init_block_clear_fn): Likewise.
22962 (emit_block_move_via_libcall): Likewise.
22963 (set_storage_via_libcall): Add default parameter value.
22964 * libfuncs.h (enum libfunc_index): Remove obsolete values.
22965 (abort_libfunc): Delete.
22966 (memcpy_libfunc): Likewise.
22967 (memmove_libfunc): Likewise.
22968 (memcmp_libfunc): Likewise.
22969 (memset_libfunc): Likewise.
22970 (setbits_libfunc): Likewise.
22971 (setjmp_libfunc): Likewise.
22972 (longjmp_libfunc): Likewise.
22973 (profile_function_entry_libfunc): Likewise.
22974 (profile_function_exit_libfunc): Likewise.
22975 (gcov_flush_libfunc): Likewise.
22976 * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
22977 and DECL_VISIBILITY on the declaration.
22978 (init_optabs): Do not initialize obsolete libfuncs.
22979 * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
22980 * tree-core.h (ECF_RET1): Define.
22981 (ECF_TM_PURE): Adjust.
22982 (ECF_TM_BUILTIN): Likewise.
22983 * tree.c (set_call_expr_flags): Deal with ECF_RET1.
22984 (build_common_builtin_nodes): Initialize abort builtin.
22985 Add ECF_RET1 on memcpy, memmove and memset builtins.
22986 Pass final flags for alloca and alloca_with_align builtins.
22987 * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
22989 * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
22990 * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
22991 set_storage_via_libcall and call emit_block_copy_via_libcall.
22993 2016-05-12 Uros Bizjak <ubizjak@gmail.com>
22995 * config/i386/i386.md (*call_got_x32): Change operand 0 to
22996 DImode before it is passed to ix86_output_call_operand.
22997 (*call_value_got_x32): Ditto for operand 1.
22999 2016-05-12 Jiong Wang <jiong.wang@arm.com>
23001 PR rtl-optimization/70904
23002 * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
23003 reload for wide mode.
23005 2016-05-12 Marek Polacek <polacek@redhat.com>
23008 * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
23009 * langhooks.c (lhd_incomplete_type_error): Add location parameter.
23010 * langhooks.h (incomplete_type_error): Likewise.
23011 * tree.c (size_in_bytes_loc): Renamed from size_in_bytes. Add location
23012 parameter, pass it down to incomplete_type_error.
23013 * tree.h (size_in_bytes): New inline overload.
23014 (size_in_bytes_loc): Renamed from size_in_bytes.
23016 2016-05-12 Richard Biener <rguenther@suse.de>
23018 PR tree-optimization/71059
23019 * tree-ssa-pre.c (phi_translate_1): Fully fold translated
23020 nary before looking up or entering the expression into the VN
23022 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
23023 Make sure to re-use NARYs without result as inserted by
23026 2016-05-12 Richard Biener <rguenther@suse.de>
23028 PR tree-optimization/71062
23029 * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
23031 * tree-ssa-structalias.c (set_uids_in_ptset): Set
23032 vars_contains_restrict if the var is a restrict tag.
23033 * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
23034 do not disambiguate pointers against it.
23035 (dump_points_to_solution): Re-structure and adjust for new
23036 vars_contains_restrict flag.
23037 * gimple-pretty-print.c (pp_points_to_solution): Likewise.
23039 2016-05-12 Martin Liska <mliska@suse.cz>
23041 * doc/invoke.texi: Explain connection between
23042 -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
23044 2016-05-12 Ilya Enkovich <ilya.enkovich@intel.com>
23046 PR tree-optimization/71006
23047 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
23048 consider COND_EXPR as a mask producer.
23050 2016-05-12 Marek Polacek <polacek@redhat.com>
23053 * opts.c (common_handle_option): Detect missing argument for --help^.
23055 2016-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23058 * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
23059 when popping the PC and within an interrupt handler routine.
23060 Add missing tab to output of "ldmfd".
23061 (output_return_instruction): Output LDMFD with SP update rather
23062 than POP when returning from interrupt handler.
23064 2016-05-12 Jakub Jelinek <jakub@redhat.com>
23066 * config/i386/i386.md (isa): Add x64_avx512dq, enable if
23067 TARGET_64BIT && TARGET_AVX512DQ.
23068 * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
23069 (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
23070 (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
23071 *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
23072 (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
23073 (*vec_extractv4si_zext): Add avx512dq alternative.
23074 (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
23075 use v instead of x constraint in other alternatives where possible.
23077 * config/i386/sse.md (sse2_loadld): Use v instead of x
23078 constraint in alternatives 0,1,4.
23080 * config/i386/sse.md (pinsr_evex_isa): New mode attr.
23081 (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
23082 v constraints instead of x and <pinsr_evex_isa> isa attribute.
23085 * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
23086 <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
23087 is not emitted unless TARGET_AVX512BW.
23088 (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
23089 Likewise. For TARGET_AVX512BW, use "=v" constraint instead of "=x"
23090 for the result operand.
23092 * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
23093 constraint instead of x in avx alternatives. Use maybe_evex instead
23096 * config/i386/constraints.md (Yv): New constraint.
23097 * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
23098 TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
23099 * config/i386/i386.md (avx512fvecmode): New mode attr.
23100 (*pushtf): Use v constraint instead of x.
23101 (*movtf_internal): Likewise. For TARGET_AVX512VL and
23102 xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
23103 (*absneg<mode>2): Use Yv constraint instead of x constraint.
23104 (*absnegtf2_sse): Likewise.
23105 (copysign<mode>3_const, copysign<mode>3_var): Likewise.
23106 * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
23107 avx512f alternatives.
23108 (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
23110 2016-05-12 Richard Biener <rguenther@suse.de>
23112 PR tree-optimization/71060
23113 * tree-data-ref.c (initialize_data_dependence_relation): Do not
23114 require exact match of DR_BASE_OBJECT but only matching address and
23117 2016-05-12 Richard Biener <rguenther@suse.de>
23119 PR tree-optimization/70986
23120 * cfganal.c: Include cfgloop.h.
23121 (dfs_find_deadend): Prefer to take edges exiting loops.
23123 2016-05-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23125 * gcc.target/powerpc/pr70963.c: Require at least power8 at both
23126 compile and run time.
23128 2016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
23131 * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
23133 2016-05-11 Uros Bizjak <ubizjak@gmail.com>
23135 * config/i386/i386.c (legitimize_pic_address): Use
23136 copy_to_suggested_reg instead of gen_movsi.
23138 2016-05-11 Michael Meissner <meissner@linux.vnet.ibm.com>
23140 * config/rs6000/predicates.md (quad_memory_operand): Move most of
23141 the code into quad_address_p and call it to share code with
23142 vsx_quad_dform_memory_operand.
23143 (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
23145 * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
23146 bit instead of being a separate word. Split -mpower9-dform into
23147 two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
23148 * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
23149 for the register class supporting 128-bit quad word memory offsets.
23150 (mode_supports_vsx_dform_quad): Helper function to return if the
23151 register class uses quad word memory offsets.
23152 (rs6000_debug_addr_mask): Add support for quad word memory offsets.
23153 (rs6000_debug_reg_global): Always print if we are using LRA or not.
23154 (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
23155 instructions are enabled, set up the appropriate addr_masks for
23157 (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
23158 -mpower9-dform-scalar, instead of -mpower9-dform.
23159 (rs6000_option_override_internal): Split -mpower9-dform into two
23160 switches, -mpower9-dform-scalar and -mpower9-dform-vector. The
23161 -mpower9-dform switch sets or clears both. If we are not using
23162 the LRA register allocator, do not enable -mpower9-dform-vector by
23163 default. If we are using LRA, enable -mpower9-dform-vector and
23164 -mvsx-timode if it is appropriate. Issue a warning if either
23165 -mpower9-dform-vector or -mvsx-timode are explicitly used without
23167 (quad_address_offset_p): New helper function to return if the
23168 offset is legal for quad word memory instructions.
23169 (quad_address_p): New function to determin if GPR or vector
23170 register quad word memory addresses are legal.
23171 (mem_operand_gpr): Validate quad word address offsets.
23172 (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
23173 d-form (register + offset) instructions.
23174 (offsettable_ok_by_alignment): Likewise.
23175 (rs6000_legitimate_offset_address_p): Likewise.
23176 (legitimate_lo_sum_address_p): Likewise.
23177 (rs6000_legitimize_address): Likewise.
23178 (rs6000_legitimize_reload_address): Add more debug statements for
23180 (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
23181 d-form instructions.
23182 (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
23183 d-form instructions. Distinguish different cases in debug
23184 output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
23185 d-form instructions.
23186 (rs6000_preferred_reload_class): Likewise.
23187 (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
23188 instructions. If ISA 3.0 is available, generate lxvx/stxvx instead
23189 of the ISA 2.06 indexed memory instructions.
23190 (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
23191 use them to save/restore the saved vector registers instead of
23192 using Altivec instructions.
23193 (rs6000_emit_epilogue): Likewise.
23194 (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
23195 (rs6000_opt_masks): Split -mpower9-dform into
23196 -mpower9-dform-scalar and -mpower9-dform-vector.
23197 (rs6000_print_options_internal): Print -mno-<switch> if <switch>
23199 * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
23200 ISA 3.0 vector indexed memory instructions, and fold the code into
23201 the normal mov<mode> patterns.
23202 (p9_vecstore_<mode>): Likewise.
23203 (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
23205 (vsx_movti_64bit): Likewise.
23206 (vsx_movti_32bit): Likewise.
23207 * config/rs6000/constraints.md (wO constraint): New constraint for
23208 ISA 3.0 vector d-form support.
23209 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
23210 -mpower9-dform-scalar instead of -mpower9-dform. Add note not to
23211 include -mpower9-dform-vector until we switch over to LRA.
23212 (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
23213 switches, -mpower9-dform-scalar and -mpower9-dform-vector.
23214 * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
23215 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
23216 for -mpower9-dform and -mlra.
23217 * doc/md.texi (wO constraint): Document wO constraint.
23219 2016-05-11 Alexander Monakov <amonakov@ispras.ru>
23221 * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
23222 'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
23223 * genautomata.c (output_internal_insn_code_evaluation): Simplify.
23224 Move handling of non-insn arguments inline into the sole user:
23225 (output_trans_func): ...here.
23226 (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
23227 in emitted function prototype.
23228 (output_internal_insn_latency_func): Ditto. Simplify.
23229 (output_internal_maximal_insn_latency_func): Ditto. Delete
23230 always-unused argument.
23231 (output_insn_latency_func): Ditto.
23232 (output_maximal_insn_latency_func): Ditto.
23234 2016-05-11 Richard Biener <rguenther@suse.de>
23236 PR tree-optimization/71055
23237 * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
23238 sth with precision not equal to access size verify we don't chop
23241 2016-05-11 Richard Biener <rguenther@suse.de>
23244 * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
23245 (dwarf2out_finish): Move retry_incomplete_types call ...
23246 (dwarf2out_early_finish): ... here.
23248 2016-05-11 Richard Biener <rguenther@suse.de>
23250 PR middle-end/71002
23251 * alias.c (reference_alias_ptr_type): Preserve alias-set zero
23252 if the langhook insists on it.
23253 * fold-const.c (make_bit_field_ref): Add arg for the original
23254 reference and preserve its alias-set.
23255 (decode_field_reference): Take exp by reference and adjust it
23256 to the original memory reference.
23257 (optimize_bit_field_compare): Adjust callers.
23258 (fold_truth_andor_1): Likewise.
23259 * gimplify.c (gimplify_expr): Adjust in-SSA form test.
23261 2016-05-11 Ilya Enkovich <ilya.enkovich@intel.com>
23263 PR middle-end/70807
23264 * cfgrtl.h (delete_insn_and_edges): Now return bool.
23265 * cfgrtl.c (delete_insn_and_edges): Likewise.
23266 * config/i386/i386.c (convert_scalars_to_vector): Remove
23268 * cse.c (cse_insn): Compute cse_cfg_altered.
23269 (delete_trivially_dead_insns): Likewise.
23270 (cse_cc_succs): Likewise.
23271 (rest_of_handle_cse): Free dominance info if required.
23272 (rest_of_handle_cse2): Likewise.
23273 (rest_of_handle_cse_after_global_opts): Likewise.
23275 2016-05-11 Alan Modra <amodra@gmail.com>
23277 * config/rs6000/rs6000.c (is_complex_IBM_long_double,
23278 abi_v4_pass_in_fpr): New functions.
23279 (rs6000_function_arg_boundary): Exclude complex IBM long double
23280 from 64-bit alignment when ABI_V4.
23281 (rs6000_function_arg, rs6000_function_arg_advance_1,
23282 rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
23284 2016-05-10 Segher Boessenkool <segher@kernel.crashing.org>
23286 PR rtl-optimization/71028
23287 * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
23288 jump with just a return in the fallthrough block if the branch
23289 block contains just a return as well.
23291 2016-05-10 Marc Glisse <marc.glisse@inria.fr>
23293 * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
23294 * match.pd ((X & Y) ^ Y): ... this.
23295 ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
23296 | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
23298 2016-05-10 David Malcolm <dmalcolm@redhat.com>
23300 * read-md.c (require_char_ws): New function.
23301 (read_string): Simplify using require_char_ws.
23302 (handle_constants): Likewise.
23303 (handle_enum): Likewise.
23304 (handle_file): Likewise.
23305 * read-md.h (require_char_ws): New declaration.
23306 * read-rtl.c (read_conditions): Simplify using require_char_ws.
23307 (read_mapping): Likewise.
23308 (read_rtx_code): Likewise.
23309 (read_nested_rtx): Likewise.
23311 2016-05-10 James Norris <jnorris@codesourcery.com>
23313 * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
23314 if offloading is enabled and -fopenacc or -fopenmp is specified.
23315 (CRTOFFLOADEND): Likewise.
23316 (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
23317 (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
23319 2016-05-10 Uros Bizjak <ubizjak@gmail.com>
23321 * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
23322 gotoff_operand code paths. Use copy_to_suggested_regs and
23323 expand_simple_binop where appropriate. Cleanup.
23325 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
23328 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
23330 (dimode_scalar_chain::vector_const_cost): New.
23331 (dimode_scalar_chain::compute_convert_gain): Handle constants.
23332 (dimode_scalar_chain::convert_op): Likewise.
23333 (dimode_scalar_chain::convert_insn): Likewise.
23335 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
23337 * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
23338 unary operation, not a binary one.
23340 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
23342 PR middle-end/70877
23343 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
23344 calls with type casted fndecl.
23346 2016-05-10 Ilya Enkovich <ilya.enkovich@intel.com>
23348 PR tree-optimization/70786
23349 * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
23350 * calls.c (initialize_argument_information): Bind bounds
23351 with corresponding args passed by reference.
23353 2016-05-10 Jakub Jelinek <jakub@redhat.com>
23356 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
23357 *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
23358 use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
23361 2016-05-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23364 * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
23365 code for a zero scale factor.
23366 (vsx_xvcvdpuxds_scale): Likewise.
23368 2016-05-10 David Malcolm <dmalcolm@redhat.com>
23370 * diagnostic-show-locus.c (layout::layout): Call show_ruler
23371 if show_ruler_p was set on the context.
23372 (layout::show_ruler): New method.
23373 * diagnostic.h (struct diagnostic_context): Add field
23376 2016-05-10 Richard Biener <rguenther@suse.de>
23378 PR tree-optimization/71039
23379 * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
23380 (chk_uses): New function.
23381 (propagate_with_phi): Verify we can safely replicate the lhs of an
23382 aggregate assignment on all incoming edges.
23384 2016-05-10 Oleg Endo <olegendo@gcc.gnu.org>
23386 * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
23388 (rx_atomic_sequence): New class.
23389 * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
23390 (is_interrupt_func, is_fast_interrupt_func): Make non-static and
23392 (rx_atomic_sequence::rx_atomic_sequence,
23393 rx_atomic_sequence::~rx_atomic_sequence): New functions.
23394 * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
23395 CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
23396 CTRLREG_INTB): New constants.
23397 (FETCHOP): New code iterator.
23398 (fethcop_name, fetchop_name2): New iterator code attributes.
23399 (QIHI): New mode iterator.
23400 (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
23401 atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
23402 atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
23404 2016-05-10 Martin Liska <mliska@suse.cz>
23406 * tree-inline.c (remap_dependence_clique): Do not remap
23407 debugging statements.
23409 2016-05-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23411 * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
23412 ("*fixuns_truncdfdi2_z13")
23413 ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
23414 ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
23415 ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
23417 2016-05-10 Richard Biener <rguenther@suse.de>
23419 PR tree-optimization/70497
23420 PR tree-optimization/28367
23421 * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
23423 (visit_reference_op_load): ... here.
23424 (vn_reference_lookup_3): Use it to handle subreg-like accesses
23425 with simplified BIT_FIELD_REFs.
23426 * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
23427 * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
23430 2016-05-10 Pierre-Marie de Rodat <derodat@adacore.com>
23432 * dwarf2out.c (add_abstract_origin_attribute): Adjust
23433 documentation comment. For BLOCK nodes, add a
23434 DW_AT_abstract_origin attribute that points to the DIE generated
23435 for the origin BLOCK.
23436 (gen_lexical_block_die): Call add_abstract_origin_attribute for
23437 blocks from inlined functions.
23439 2016-05-10 Alan Modra <amodra@gmail.com>
23442 * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
23443 regrename modifying insns saving lr before __morestack call.
23444 * config/rs6000/rs6000.md (split_stack_return): Similarly for
23445 insns restoring lr after __morestack call.
23447 2016-05-09 Jakub Jelinek <jakub@redhat.com>
23449 * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
23450 lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
23452 * config/i386/sse.md (vec_interleave_high<mode>,
23453 vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
23454 <avx512>_vpermt2var<mode>3_maskz): Likewise.
23456 2016-05-04 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
23458 * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
23459 function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
23460 parallel reassociation for power8 and forward.
23462 2016-05-09 Uros Bizjak <ubizjak@gmail.com>
23464 * config/i386/i386.md (absneg splitters with general regs): Use
23465 general_reg_operand predicate.
23466 (btsq peephole2): Use x86_64_immediate_operand to check if new
23467 value is suitable for immediate operand. Generate emitted insn
23468 using RTL expressions.
23469 (btcq peephole2): Ditto.
23470 (btrq peephole2): Ditto. Generate correct immediate operand
23473 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
23475 * cfgexpand.c (expand_debug_expr): Fix address offset for negative
23478 2016-05-09 Richard Sandiford <richard.sandiford@arm.com>
23480 * tree-affine.c (wide_int_constant_multiple_p): Add missing
23481 pointer dereference.
23483 2016-05-09 Richard Biener <rguenther@suse.de>
23485 PR tree-optimization/70985
23486 * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
23487 op0 isn't a gimple register.
23489 2016-05-09 Prachi Godbole <prachi.godbole@imgtec.com>
23491 * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
23492 (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
23493 (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
23494 (i6400_fpu_mult): New cpu units.
23495 (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
23496 (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
23497 (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
23498 (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
23499 (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
23500 (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
23501 (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
23502 (i6400_msa_long_float4, i6400_msa_long_float5)
23503 (i6400_msa_long_float8, i6400_msa_fdiv_df)
23504 (i6400_msa_fdiv_sf): New reservations.
23505 * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
23506 (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
23507 (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
23508 (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
23509 (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
23510 (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
23511 (msa_short_cmp, msa_short_float2, msa_short_logic3)
23512 (msa_short_store4, msa_long_load, msa_short_store)
23513 (msa_long_logic, msa_long_float2, msa_long_float4)
23514 (msa_long_float5, msa_long_float8, msa_long_mult)
23515 (msa_long_fdiv, msa_long_div): New reservations.
23517 2016-05-09 Robert Suchanek <robert.suchanek@imgtec.com>
23518 Sameera Deshpande <sameera.deshpande@imgtec.com>
23519 Matthew Fortune <matthew.fortune@imgtec.com>
23520 Graham Stott <graham.stott@imgtec.com>
23521 Chao-ying Fu <chao-ying.fu@imgtec.com>
23523 * config.gcc: Add MSA header file for mips*-*-* target.
23524 * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
23525 (Ubv8i, Urv8): New constraints.
23526 * config/mips/mips-ftypes.def: Add function types for MSA
23528 * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
23529 (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
23530 * config/mips/mips-msa.md: New file.
23531 * config/mips/mips-protos.h
23532 (mips_split_128bit_const_insns): New prototype.
23533 (mips_msa_idiv_insns): Likewise.
23534 (mips_split_128bit_move): Likewise.
23535 (mips_split_128bit_move_p): Likewise.
23536 (mips_split_msa_copy_d): Likewise.
23537 (mips_split_msa_insert_d): Likewise.
23538 (mips_split_msa_fill_d): Likewise.
23539 (mips_expand_msa_branch): Likewise.
23540 (mips_const_vector_same_val_p): Likewise.
23541 (mips_const_vector_same_bytes_p): Likewise.
23542 (mips_const_vector_same_int_p): Likewise.
23543 (mips_const_vector_shuffle_set_p): Likewise.
23544 (mips_const_vector_bitimm_set_p): Likewise.
23545 (mips_const_vector_bitimm_clr_p): Likewise.
23546 (mips_msa_vec_parallel_const_half): Likewise.
23547 (mips_msa_output_division): Likewise.
23548 (mips_ldst_scaled_shift): Likewise.
23549 (mips_expand_vec_cond_expr): Likewise.
23550 * config/mips/mips.c (enum mips_builtin_type): Add
23551 MIPS_BUILTIN_MSA_TEST_BRANCH.
23552 (mips_gen_const_int_vector_shuffle): New prototype.
23553 (mips_const_vector_bitimm_set_p): New function.
23554 (mips_const_vector_bitimm_clr_p): Likewise.
23555 (mips_const_vector_same_val_p): Likewise.
23556 (mips_const_vector_same_bytes_p): Likewise.
23557 (mips_const_vector_same_int_p): Likewise.
23558 (mips_const_vector_shuffle_set_p): Likewise.
23559 (mips_symbol_insns): Forbid loading symbols via immediate for
23561 (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
23563 (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
23565 (mips_lx_address_p): Add support load indexed address for MSA.
23566 (mips_address_insns): Add calculation of instructions needed for
23567 stores and loads for MSA.
23568 (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR. Handle
23569 CONST_VECTOR for MSA and let it fall through.
23570 (mips_ldst_scaled_shift): New function.
23571 (mips_subword_at_byte): Likewise.
23572 (mips_msa_idiv_insns): Likewise.
23573 (mips_legitimize_move): Validate MSA moves.
23574 (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases. Add
23575 calculation of costs for MSA division.
23576 (mips_split_move_p): Check if MSA moves need splitting.
23577 (mips_split_move): Split MSA moves if necessary.
23578 (mips_split_128bit_move_p): New function.
23579 (mips_split_128bit_move): Likewise.
23580 (mips_split_msa_copy_d): Likewise.
23581 (mips_split_msa_insert_d): Likewise.
23582 (mips_split_msa_fill_d): Likewise.
23583 (mips_output_move): Handle MSA moves.
23584 (mips_expand_msa_branch): New function.
23585 (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
23586 Reinstate 'y' modifier.
23587 (mips_file_start): Add MSA .gnu_attribute.
23588 (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
23590 (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
23591 (mips_class_max_nregs): Add register size for MSA supported mode.
23592 (mips_cannot_change_mode_class): Allow conversion between MSA
23593 vector modes and TImode.
23594 (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
23596 (mips_secondary_reload_class): Force MSA loads/stores via memory.
23597 (mips_preferred_simd_mode): Add preffered modes for MSA.
23598 (mips_vector_mode_supported_p): Add MSA supported modes.
23599 (mips_autovectorize_vector_sizes): New function.
23600 (mips_msa_output_division): Likewise.
23601 (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
23602 (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
23603 (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
23604 (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
23605 (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
23606 (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
23607 (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
23608 (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
23609 (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
23610 (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
23611 (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
23612 (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
23613 (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
23614 (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
23615 (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
23616 (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
23617 (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
23618 (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
23619 (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
23620 (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
23621 (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
23622 (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
23623 (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
23624 (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
23625 (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
23626 (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
23627 (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
23628 (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
23629 (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
23630 (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
23631 (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
23632 (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
23633 (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
23634 (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
23635 (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
23636 (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
23637 (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
23638 (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
23639 (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
23640 (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
23641 (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
23642 (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
23643 (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
23644 (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
23645 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
23646 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
23647 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
23648 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
23649 (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
23650 (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
23651 (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
23652 (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
23653 (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
23654 (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
23655 (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
23656 (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
23657 (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
23658 (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
23659 (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
23660 (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
23661 (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
23662 (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
23663 (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
23664 (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
23665 (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
23666 (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
23667 (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
23668 (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
23669 (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
23670 (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
23671 (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
23672 (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
23673 (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
23674 (CODE_FOR_msa_ldi_d): New code_aliasing macros.
23675 (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
23676 slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
23677 srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
23678 srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
23679 srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
23680 srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
23681 bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
23682 bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
23683 bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
23684 binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
23685 binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
23686 binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
23687 addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
23688 subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
23689 max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
23690 max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
23691 maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
23692 mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
23693 mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
23694 min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
23695 ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
23696 clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
23697 clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
23698 clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
23699 clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
23700 clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
23701 st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
23702 sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
23703 adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
23704 adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
23705 ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
23706 aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
23707 aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
23708 subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
23709 subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
23710 subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
23711 asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
23712 maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
23713 msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
23714 div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
23715 hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
23716 hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
23717 mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
23718 dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
23719 dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
23720 dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
23721 sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
23722 splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
23723 pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
23724 ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
23725 ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
23726 ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
23727 ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
23728 bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
23729 fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
23730 pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
23731 nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
23732 copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
23733 insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
23734 bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
23735 fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
23736 fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
23737 fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
23738 fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
23739 fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
23740 fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
23741 fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
23742 fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
23743 fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
23744 fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
23745 mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
23746 msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
23747 fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
23748 flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
23749 ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
23750 ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
23751 ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
23753 (mips_get_builtin_decl_index): New array.
23754 (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
23755 (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
23756 (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
23757 (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
23758 (mips_init_builtins): Initialize mips_get_builtin_decl_index
23760 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
23762 (mips_expand_builtin_insn): Prepare operands for
23763 CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
23764 CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
23765 CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
23766 CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
23767 CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
23768 CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
23769 CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
23770 CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
23771 CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
23772 CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
23773 CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
23774 CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
23775 CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
23776 CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
23777 CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
23778 CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
23779 CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
23780 CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
23781 CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
23782 CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
23783 CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
23784 CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
23785 CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
23786 CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
23787 CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
23788 CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
23789 CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
23790 CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
23791 CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
23792 CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
23793 CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
23794 CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
23795 CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
23796 CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
23797 CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
23798 CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
23799 CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
23800 CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
23801 CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
23802 CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
23803 CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
23804 (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
23805 (mips_set_compression_mode): Disallow MSA with MIPS16 code.
23806 (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
23807 These are set implicitly and an error is reported if overridden.
23808 (mips_expand_builtin_msa_test_branch): New function.
23809 (mips_expand_msa_shuffle): Likewise.
23810 (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
23811 (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
23812 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
23813 (mips_expand_vec_unpack): Add support for MSA.
23814 (mips_expand_vector_init): Likewise.
23815 (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
23816 instead of const0_rtx.
23817 (mips_msa_vec_parallel_const_half): New function.
23818 (mips_gen_const_int_vector): Likewise.
23819 (mips_gen_const_int_vector_shuffle): Likewise.
23820 (mips_expand_msa_cmp): Likewise.
23821 (mips_expand_vec_cond_expr): Likewise.
23822 * config/mips/mips.h
23823 (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
23824 (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
23826 (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
23827 (ISA_HAS_MSA): New macro.
23828 (UNITS_PER_MSA_REG): Likewise.
23829 (BITS_PER_MSA_REG): Likewise.
23830 (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
23831 (MSA_REG_FIRST): New macro.
23832 (MSA_REG_LAST): Likewise.
23833 (MSA_REG_NUM): Likewise.
23834 (MSA_REG_P): Likewise.
23835 (MSA_REG_RTX_P): Likewise.
23836 (MSA_SUPPORTED_MODE_P): Likewise.
23837 (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
23838 (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
23839 * config/mips/mips.md: Include mips-msa.md.
23840 (alu_type): Add simd_add.
23841 (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
23842 (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
23843 simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
23844 simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
23845 simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
23846 simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
23847 simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
23848 simd_move, simd_load, simd_store. Choose "multi" for moves
23850 (qword_mode): New attribute.
23851 (insn_count): Add instruction count for quad moves.
23852 Increase the count for MIPS SIMD division.
23853 (UNITMODE): Add UNITMODEs for vector types.
23854 (addsub): New code iterator.
23855 * config/mips/mips.opt (mmsa): New option.
23856 * config/mips/msa.h: New file.
23857 * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
23859 * config/mips/mti-linux.h: Likewise.
23860 * config/mips/predicates.md
23861 (const_msa_branch_operand): New constraint.
23862 (const_uimm3_operand): Likewise.
23863 (const_uimm4_operand): Likewise.
23864 (const_uimm5_operand): Likewise.
23865 (const_uimm8_operand): Likewise.
23866 (const_imm5_operand): Likewise.
23867 (aq10b_operand): Likewise.
23868 (aq10h_operand): Likewise.
23869 (aq10w_operand): Likewise.
23870 (aq10d_operand): Likewise.
23871 (const_m1_operand): Likewise.
23872 (reg_or_m1_operand): Likewise.
23873 (const_exp_2_operand): Likewise.
23874 (const_exp_4_operand): Likewise.
23875 (const_exp_8_operand): Likewise.
23876 (const_exp_16_operand): Likewise.
23877 (const_vector_same_val_operand): Likewise.
23878 (const_vector_same_simm5_operand): Likewise.
23879 (const_vector_same_uimm5_operand): Likewise.
23880 (const_vector_same_uimm6_operand): Likewise.
23881 (const_vector_same_uimm8_operand): Likewise.
23882 (par_const_vector_shf_set_operand): Likewise.
23883 (reg_or_vector_same_val_operand): Likewise.
23884 (reg_or_vector_same_simm5_operand): Likewise.
23885 (reg_or_vector_same_uimm6_operand): Likewise.
23886 * doc/extend.texi (MIPS SIMD Architecture Functions): New
23888 * doc/invoke.texi (-mmsa): Document new option.
23890 2016-05-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23892 * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
23893 * configure: Regenerate.
23894 * config.in: Regenerate.
23895 * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
23896 on -fvtable-verify.
23897 * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
23898 (ENDFILE_VTV_SPEC): Define.
23900 2016-05-09 Kaushik Phatak <kaushik.phatak@kpit.com>
23902 * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
23903 registers in all interrupt handlers if necessary.
23904 (rl78_option_override): Add warning.
23905 (MUST_SAVE_MDUC_REGISTERS): New macro.
23906 (rl78_expand_epilogue): Restore the MDUC registers if necessary.
23907 * config/rl78/rl78.c (check_mduc_usage): New function.
23908 (mduc_regs): New structure to hold MDUC register data.
23909 * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
23910 (mulsi3_g13): Add is_g13_muldiv_insn attribute.
23911 (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
23912 (mulhi3_g13): Add is_g13_muldiv_insn attribute.
23913 * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
23914 * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
23916 2016-05-09 Bin Cheng <bin.cheng@arm.com>
23918 * tree-if-conv.c (tree-ssa-loop.h): Include header file.
23919 (tree-ssa-loop-niter.h): Ditto.
23920 (idx_within_array_bound, ref_within_array_bound): New functions.
23921 (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
23922 Factor out check on writable base object to ...
23923 (base_object_writable): ... here.
23925 2016-05-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23927 * config/arm/arm.md (probe_stack): Add modes to set source
23930 2016-05-09 Bernd Schmidt <bschmidt@redhat.com>
23932 * regrename.c (base_reg_class_for_rename): New static function.
23933 (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
23935 2016-05-08 Jan Hubicka <hubicka@ucw.cz>
23937 * cgraph.c (thunk_adjust): Export.
23938 * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
23939 * cgraphunit.c (thunk_adjust): Export.
23940 (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
23942 * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
23944 * tree-inline.c (expand_call_inline): Expand thunks inline.
23946 2016-05-08 Uros Bizjak <ubizjak@gmail.com>
23949 * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
23950 (*sse2_vd_cvtss2sd): Ditto.
23951 * config/i386/i386.md
23952 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
23953 Generate *sse2_vd_cvtsd2ss pattern.
23954 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
23955 Generate *sse2_vd_cvtss2sd pattern.
23957 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
23959 * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
23960 * config/sh/sh.c (get_sh_arg_class): ... this new function. Update its
23963 2016-05-08 Oleg Endo <olegendo@gcc.gnu.org>
23965 * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
23966 * config/sh/sh.c: Define and declare variables on first use throughout
23968 (current_function_interrupt): Change to bool type.
23969 (frame_insn): Rename to emit_frame_insn and update users.
23970 (push_regs): Use bool for 'interrupt_handler' argument.
23971 (save_schedule_s): Remove.
23972 (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
23973 (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
23974 targetm.asm_out.unaligned_op.di.
23975 (gen_far_branch): Remove redundant forward declaration.
23976 (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
23977 MAX_TEMPS, save_schedule_ssave_schedule): Remove.
23978 (sh_set_return_address, sh_function_ok_for_sibcall,
23979 scavenge_reg): Update comments.
23980 (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
23981 (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
23982 (sh_attr_renesas_p): Remove unnecessary parentheses.
23983 (branch_dest): Simplify.
23984 * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
23985 Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
23986 (CUMULATIVE_ARGS): Change macro to typedef.
23987 (current_function_interrupt): Change to bool type.
23988 (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
23989 Surround with __cplusplus ifdef.
23990 (sh_compare_op0, sh_compare_op1): Remove.
23991 (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
23993 2016-05-07 Jim Wilson <jim.wilson@linaro.org>
23995 * config/arm/arm.md (arch): Add neon.
23996 (arch_enabled): Return yes for arch neon when TARGET_NEON.
23997 * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3. Add
23998 neon_move as type for alt 3. Add arch attr enabling alt 3 for neon.
23999 Emit vmov.i64 for alt 3. Renumber alternatives 3 to 8. Adjust
24000 attributes for alt renumbering. Mark alt 3 as non-predicable.
24001 (thumb2_movdf_vfp): Likewise.
24003 2016-05-07 Uros Bizjak <ubizjak@gmail.com>
24005 * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
24006 to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
24007 (*andqi_1): Add preferred_for_speed attribute to disparage
24008 alternative 2 for TARGET_PARTIAL_REG_STALL targets.
24009 (*<code>qi_1): Ditto.
24010 (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
24011 alternative 1 for TARGET_PARTIAL_REG_STALL targets.
24012 (*ashlqi3_1): Ditto.
24013 (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
24014 Add preferred_for_size attribute to disparage alternative 0 and
24015 preferred_for_speed attribute to disparage alternative 1 for
24016 TARGET_PARTIAL_REG_STALL targets.
24018 2016-05-07 Tom de Vries <tom@codesourcery.com>
24020 PR tree-optimization/70956
24021 * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
24024 2016-05-07 Oleg Endo <olegendo@gcc.gnu.org>
24026 * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
24027 * config/sh/sh.c (sh_cbranch_distance): Implement it.
24028 * config/sh/sh.md (branch_zero): Remove define_attr.
24029 (define_delay): Disable delay slot if branch distance is one insn.
24031 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
24033 * config/i386/i386.md (LEAMODE): New mode attribute.
24034 (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
24035 (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
24036 and LEAMODE mode attribute. Use VOIDmode const_0_to_3_operand as
24037 operand 2 predicate.
24038 (*lea<mode>_general_2): Use VOIDmode for const248_operand.
24039 (*lea<mode>_general_3): Ditto.
24040 (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
24042 2016-05-06 Jakub Jelinek <jakub@redhat.com>
24044 * genmddump.c (main): Convert argv from char ** to const char **.
24046 2016-05-06 David Malcolm <dmalcolm@redhat.com>
24048 * coretypes.h (OVERRIDE): New macro.
24049 (FINAL): New macro.
24051 2016-05-06 Eric Botcazou <ebotcazou@adacore.com>
24053 * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
24054 allow coalescing if the types are compatible.
24056 2016-05-06 David Malcolm <dmalcolm@redhat.com>
24058 * pass_manager.h (pass_manager::register_pass_name): New method.
24059 (pass_manager::get_pass_by_name): New method.
24060 (pass_manager::create_pass_tab): New method.
24061 (pass_manager::m_name_to_pass_map): New field.
24062 * passes.c (name_to_pass_map): Delete global in favor of field
24063 "m_name_to_pass_map" of pass_manager.
24064 (register_pass_name): Rename from a function to...
24065 (pass_manager::register_pass_name): ...this method, updating
24066 for renaming of global "name_to_pass_map" to field
24067 "m_name_to_pass_map".
24068 (create_pass_tab): Rename from a function to...
24069 (pass_manager::create_pass_tab): ...this method, updating
24070 for renaming of global "name_to_pass_map" to field.
24071 (get_pass_by_name): Rename from a function to...
24072 (pass_manager::get_pass_by_name): ...this method.
24073 (enable_disable_pass): Convert use of get_pass_by_name to
24074 a method call, locating the pass_manager singleton.
24076 2016-05-06 David Malcolm <dmalcolm@redhat.com>
24078 * genattr-common.c (main): Convert argv from char ** to const char **.
24079 * genattr.c (main): Likewise.
24080 * genattrtab.c (main): Likewise.
24081 * genautomata.c (initiate_automaton_gen): Likewise.
24083 * gencodes.c (main): Likewise.
24084 * genconditions.c (main): Likewise.
24085 * genconfig.c (main): Likewise.
24086 * genconstants.c (main): Likewise.
24087 * genemit.c (main): Likewise.
24088 * genenums.c (main): Likewise.
24089 * genextract.c (main): Likewise.
24090 * genflags.c (main): Likewise.
24091 * genmddeps.c (main): Likewise.
24092 * genopinit.c (main): Likewise.
24093 * genoutput.c (main): Likewise.
24094 * genpeep.c (main): Likewise.
24095 * genpreds.c (main): Likewise.
24096 * genrecog.c (main): Likewise.
24097 * gensupport.c (init_rtx_reader_args_cb): Likewise.
24098 (init_rtx_reader_args): Likewise.
24099 * gensupport.h (init_rtx_reader_args_cb): Likewise.
24100 (init_rtx_reader_args): Likewise.
24101 * gentarget-def.c (main): Likewise.
24102 * read-md.c (read_md_files): Likewise.
24103 * read-md.h (read_md_files): Likewise.
24105 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
24107 * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
24108 instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
24109 * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
24110 Remove unused predicate.
24111 (register_and_not_fp_reg_operand): Ditto.
24113 2016-05-06 Martin Liska <mliska@suse.cz>
24115 * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
24116 instead of vec as the vector is local to the function.
24118 2016-05-06 Jakub Jelinek <jakub@redhat.com>
24120 * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
24121 avx512bw alternative.
24123 * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
24124 before the ashr<mode>3 pattern.
24126 * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
24127 v instead of x in vex or maybe_vex alternatives, use
24128 maybe_evex instead of vex in prefix.
24130 * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
24131 *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
24132 vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
24133 in vex or maybe_vex alternatives, use maybe_evex instead of vex
24136 * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
24137 v instead of x in vex or maybe_vex alternatives, use
24138 maybe_evex instead of vex in prefix.
24140 * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
24141 sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
24142 sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
24143 sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
24144 alternatives, use maybe_evex instead of vex in prefix.
24146 * config/i386/sse.md (vec_interleave_lowv4sf,
24147 *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
24148 v instead of x in vex or maybe_vex alternatives, use
24149 maybe_evex instead of vex in prefix.
24151 * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
24152 v instead of x in vex or maybe_vex alternatives, use
24153 maybe_evex instead of vex in prefix.
24155 * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
24156 v constraint instead of x.
24158 2016-05-06 Nathan Sidwell <nathan@codesourcery.com>
24160 * gimple.c (gimple_call_same_target_p): Unique functions are eq.
24161 * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
24164 2016-05-06 Richard Biener <rguenther@suse.de>
24166 PR tree-optimization/70948
24167 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
24168 Properly clobber all fields of va_list for __builtin_va_start.
24170 2016-05-06 Yuri Rumyantsev <ysrumyan@gmail.com>
24173 * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
24174 loop latch destination.
24176 2016-05-06 Martin Liska <mliska@suse.cz>
24178 * tree-ssa-uninit.c: Apply manual changes
24179 to the GNU coding style.
24180 (prune_uninit_phi_opnds): Rename from
24181 prune_uninit_phi_opnds_in_unrealizable_paths.
24183 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
24185 * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
24186 mspace): Remove deprecated options.
24187 * doc/invoke.texi (SH options): Remove -mspace.
24189 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
24191 * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
24193 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
24195 * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
24196 corresponding combine split pattern.
24198 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
24201 * config/sh/predicates.md (long_displacement_mem_operand): New.
24202 * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
24203 Add movi20, movi20s alternatives. Adjust length attribute for
24205 (movsi_ie): Allow for any FPU. Adjust length attribute for
24207 (movsi_i_lowpart): Add movi20, movi20s alternatives. Adjust length
24208 attribute for alternatives.
24209 (*mov<mode>): Use long_displacement_mem_operand for length attribute.
24210 (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
24211 length attribute for alternatives.
24213 2016-05-06 Richard Biener <rguenther@suse.de>
24215 PR tree-optimization/70960
24216 * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
24218 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
24221 * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
24222 * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
24224 2016-05-06 Marek Polacek <polacek@redhat.com>
24227 * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
24229 2016-05-06 Oleg Endo <olegendo@gcc.gnu.org>
24232 * config/sh/sh.md (*rotcr): Add another variant.
24234 2016-05-06 Richard Biener <rguenther@suse.de>
24236 PR middle-end/70931
24237 * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
24239 2016-05-06 Richard Biener <rguenther@suse.de>
24241 PR middle-end/70941
24242 * fold-const.c (split_tree): Always convert to the original type
24245 2016-05-06 Richard Biener <rguenther@suse.de>
24247 * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
24248 (fwprop_addr): Likewise.
24250 2016-05-06 Uros Bizjak <ubizjak@gmail.com>
24253 * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
24255 * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
24256 * config/i386/i386.md (push mem splitter): Use find_constant_src in
24257 the splitter condition.
24258 (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
24259 the splitter condition.
24260 (FP float_extend load splitter): Ditto.
24262 2016-05-05 Uros Bizjak <ubizjak@gmail.com>
24264 * config/i386/i386.md (peehole2 patterns): Change true_regnum
24265 to REGNO in all peephole2 patterns.
24266 (post-reload splitters): Change true_regnum to REGNO in
24267 post-reload splitters.
24268 (zero_extend splitters): Use general_reg_operand and
24269 nonimmediate_gr_operand predicates.
24271 2016-05-05 Jakub Jelinek <jakub@redhat.com>
24273 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
24274 v constraint instead of x.
24276 2016-05-05 Alan Modra <amodra@gmail.com>
24279 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
24280 set OPTION_MASK_RELOCATABLE when flag_pic == 2. Set
24281 TARGET_NO_FP_IN_TOC for -mrelocatable.
24282 (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
24283 TARGET_RELOCATABLE test.
24284 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24285 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
24286 * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
24287 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24288 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
24289 * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
24290 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24291 (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
24292 * config/rs6000/predicates.md (easy_fp_constant): Likewise.
24293 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
24295 (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
24296 (rs6000_stack_info): Likewise.
24297 (rs6000_elf_asm_out_constructor): Likewise.
24298 (rs6000_elf_asm_out_destructor): Likewise.
24299 (rs6000_elf_declare_function_name): Likewise.
24300 * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
24301 * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
24304 2016-05-05 Alan Modra <amodra@gmail.com>
24306 * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
24308 2016-05-05 Alan Modra <amodra@gmail.com>
24310 * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
24311 out-of-line gpr restore for one or two regs if that would add
24314 2016-05-04 Uros Bizjak <ubizjak@gmail.com>
24317 * config/i386/i386.md
24318 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
24319 Change to post-epilogue_completed late splitter. Use sse_reg_operand
24320 as operand 0 predicate.
24321 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
24323 (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
24324 Ditto. Emit the pattern using RTX.
24326 (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
24327 Use sse_reg_opreand as operand 0 predicate. Do not use true_regnum in
24328 the post-reload splitter. Use lowpart_subreg instead of gen_rtx_REG.
24329 (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
24331 (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
24332 sse_reg_operand as operand 0 predicate.
24334 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
24335 Use sse_reg_opreand as operand 0 predicate. Use lowpart_subreg
24336 instead of gen_rtx_REG.
24337 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
24340 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
24342 * function.c (emit_use_return_register_into_block): Delete.
24343 (gen_return_pattern): Delete.
24344 (emit_return_into_block): Delete.
24345 (active_insn_between): Delete.
24346 (convert_jumps_to_returns): Delete.
24347 (emit_return_for_exit): Delete.
24348 (thread_prologue_and_epilogue_insns): Delete all code dealing with
24349 simple_return for shrink-wrapped blocks.
24350 * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
24351 end of blocks that need one.
24352 (get_unconverted_simple_return): Delete.
24353 (convert_to_simple_return): Delete.
24354 * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
24355 (convert_to_simple_return): Ditto.
24357 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
24359 * cfgcleanup.c (bb_is_just_return): New function.
24360 (try_optimize_cfg): Simplify jumps to return, branches to return,
24361 and branches around return.
24363 2016-05-04 Segher Boessenkool <segher@kernel.crashing.org>
24365 * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
24366 branch to a return.
24368 2016-05-04 Jakub Jelinek <jakub@redhat.com>
24372 * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
24373 * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
24374 assert flags & OEP_HASH_CHECK, instead of asserting it
24375 never happens. Handle TARGET_EXPR.
24376 * fold-const.c (operand_equal_p): For hash verification,
24377 or in OEP_HASH_CHECK into flags.
24379 2016-05-04 Eric Botcazou <ebotcazou@adacore.com>
24381 * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
24383 (compute_samebase_partition_bases): Fix typo.
24385 2016-05-04 Jakub Jelinek <jakub@redhat.com>
24387 * config/i386/sse.md (vec_interleave_highv8sf,
24388 vec_interleave_lowv8sf, vec_interleave_highv4df,
24389 vec_interleave_lowv4df): Remove constraints from expanders.
24391 * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
24393 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
24395 * tree-inline.c (expand_call_inline): Fix path dealing with
24396 making lhs of call statement undefined.
24398 2016-05-04 Jan Hubicka <hubicka@ucw.cz>
24400 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
24401 Check availability on NODE, too.
24402 * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
24403 (cgraph_node::call_for_symbol_and_aliases): Likewise.
24404 (varpool_node::call_for_symbol_and_aliase): Likewise.
24405 * ipa-pure-const.c (add_new_function): Analyze all bodies.
24406 (propagate_pure_const): Propagate across interposable functions, too.
24407 (skip_function_for_local_pure_const): Do not skip interposable bodies
24409 (pass_local_pure_const::execute): Update.
24411 2016-05-04 Marek Polacek <polacek@redhat.com>
24413 * doc/invoke.texi: Document -Wdangling-else.
24415 2016-05-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
24417 * config.gcc: Error out when conflicting multilib is detected. Do not
24418 loop over multilibs since no combination is legal.
24420 2016-05-04 Alan Modra <amodra@gmail.com>
24422 * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
24423 * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
24424 * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
24427 2016-05-04 Matthew Fortune <matthew.fortune@imgtec.com>
24429 * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
24430 Clean up p5600 comments.
24432 2016-05-04 Richard Biener <rguenther@suse.de>
24434 * match.pd: Add BIT_FIELD_REF canonicalizations and vector
24435 constructor simplifications.
24436 * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
24438 2016-05-04 Oleg Endo <olegendo@gcc.gnu.org>
24440 * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
24441 * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
24442 result.set_rtx is null instead of aborting.
24443 * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
24445 (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
24446 * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
24447 *mov<mode>_store_postinc): New patterns.
24449 2016-05-04 Marc Glisse <marc.glisse@inria.fr>
24451 * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR. Mark
24452 as commutative. Check both conversions are NOP.
24453 ((A & B) OP (C & B)): Remove.
24455 2016-05-04 Alan Modra <amodra@gmail.com>
24457 * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
24459 2016-05-04 Alan Modra <amodra@gmail.com>
24462 * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
24463 when cr2,3,4 are all fixed regs.
24465 2016-05-04 Bernd Schmidt <bschmidt@redhat.com>
24467 PR rtl-optimization/57193
24468 * opts.c (default_options_table): Revert OPT_frename_registers change.
24469 * doc/invoke.texi (-frename-registers, -O2): Likewise.
24471 2016-05-03 Martin Sebor <msebor@redhat.com>
24474 * builtins.c (fold_builtin_FILE): New function.
24475 (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
24476 (fold_builtin_0): Call them.
24477 * gimplify.c (gimplify_call_expr): Remove the handling of
24478 BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
24481 * doc/extend.texi (Other Builtins): Update __builtin_FILE,
24482 __builtin_FUNCTION, and __builtin_LINE to reflect they yield
24486 * doc/extend.texi (Function Names as Strings): Update __func__,
24487 __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
24490 2016-05-03 Jakub Jelinek <jakub@redhat.com>
24491 Richard Biener <rguenther@suse.de>
24493 PR tree-optimization/70916
24494 * tree-if-conv.c: Include cfganal.h.
24495 (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
24496 and remove_fake_exit_edges around the optimization pass.
24498 2016-05-03 Jan Hubicka <hubicka@ucw.cz>
24500 * cgraph.c (symbol_table::create_edge): Set inline_failed.
24501 (cgraph_edge::make_direct): Likewise.
24502 (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
24503 * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
24504 * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
24505 (CIF_THUNK): New code.
24506 * ipa-inline-analysis.c (initialize_inline_failed): Preserve
24507 CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
24508 (compute_inline_parameters): Set inline_failed for thunks.
24509 (inline_analyze_function): Cleanup.
24510 * ipa-inline.c (can_inline_edge_p): Do not deal with
24511 call_stmt_cannot_inline_p.
24512 (can_early_inline_edge_p): Likewise.
24513 (early_inliner): Initialize inline_failed.
24514 * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
24516 2016-05-03 Uros Bizjak <ubizjak@gmail.com>
24518 * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
24519 from nonimm_ssenomem_operand.
24520 (nonimm_ssenomem_operand): New predicate.
24521 * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
24522 as operand 0 predicate.
24523 (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
24524 Disable unsupported alternatives using "enabled" attribute.
24525 Use register_ssemem_operand as operand 0 predicate.
24526 (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
24528 2016-05-03 Marek Polacek <polacek@redhat.com>
24531 * input.c (expansion_point_location): New function.
24532 * input.h (expansion_point_location): Declare.
24534 2016-05-03 Pierre-Marie de Rodat <derodat@adacore.com>
24536 * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
24537 occurence with frame_offset_ ones.
24539 2016-05-03 Alan Modra <amodra@gmail.com>
24541 PR rtl-optimization/70890
24542 * ira.c (combine_and_move_insns): When moving def_insn, remove
24543 equivs on use_insn.
24545 2016-05-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
24547 * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
24548 ("*r<noxa>sbg_<mode>_srl"): New define_insns.
24549 ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
24550 ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
24552 2016-05-03 Alan Modra <amodra@gmail.com>
24554 * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
24555 for SAVE_MULTIPLE/STORE_MULTIPLE.
24557 2016-05-03 Jakub Jelinek <jakub@redhat.com>
24559 * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
24560 *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
24562 2016-05-03 Richard Biener <rguenther@suse.de>
24564 * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
24566 (gimplify_arg): Likewise.
24567 * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
24568 re-writing the result to a decl if required.
24569 (internal_get_tmp_var): Add allow_ssa parameter
24570 and override into_ssa with it.
24571 (get_formal_tmp_var): Adjust.
24572 (get_initialized_tmp_var): Add allow_ssa parameter.
24573 (gimplify_arg): Add allow_ssa parameter and avoid generating
24574 SSA names for the result false.
24575 (gimplify_call_expr): If the call may return twice do not
24576 gimplify parameters into SSA.
24577 (prepare_gimple_addressable): Do not allow an SSA name as temporary.
24578 (gimplify_modify_expr): Adjust assert. For noreturn calls
24579 with a SSA name LHS adjust its def.
24580 (gimplify_save_expr): Do not allow an SSA name as save-expr result.
24581 (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
24582 (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
24583 (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
24584 an SSA name. Likewise for OMP_CLAUSE_REDUCTION operands.
24585 (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL. Likewise
24586 for OMP_FOR_COND, OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
24587 (optimize_target_teams): Do not allow SSA names for clause operands.
24588 (gimplify_expr): Likewise for where we mark the result addressable.
24589 * passes.def (pass_init_datastructures): Remove.
24590 * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
24591 (rewrite_stmt): Likewise.
24592 * tree-inline.c (initialize_cfun): Properly transfer SSA state.
24593 (replace_locals_op): Replace SSA names.
24594 (copy_gimple_seq_and_replace_locals): Init src_cfun.
24595 * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
24596 * cgraph.c (release_function_body): Free CFG annotations only
24597 when we have a CFG. Simplify.
24598 * gimple-fold.c (gimplify_and_update_call_from_tree): Use
24599 force_gimple_operand instead of get_initialized_tmp_var.
24600 * tree-pass.h (make_pass_init_datastructures): Remove.
24601 * tree-ssa.c (execute_init_datastructures): Remove.
24602 (pass_data_init_datastructures): Likewise.
24603 (class pass_init_datastructures): Likewise.
24604 (make_pass_init_datastructures): Likewise.
24605 * omp-low.c (create_omp_child_function): Init SSA data structures.
24606 (grid_expand_target_grid_body): Likewise.
24607 * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
24608 name before adding it to names_to_release.
24609 (remove_bb): Always release SSA defs.
24610 * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
24611 before dereferencing it.
24612 * cgraphunit.c (init_lowered_empty_function): Always
24613 int SSA data structures.
24614 * tree-ssanames.c (release_defs): Remove assert that we are in
24616 * trans-mem.c (diagnose_tm_1): Handle SSA name function.
24618 2016-05-03 Jakub Jelinek <jakub@redhat.com>
24619 Uros Bizjak <ubizjak@gmail.com>
24621 PR rtl-optimization/70467
24622 * config/i386/predicates.md (x86_64_hilo_int_operand,
24623 x86_64_hilo_general_operand): New predicates.
24624 * config/i386/constraints.md (Wd): New constraint.
24625 * config/i386/i386.md (mode attr di): Use Wd instead of e.
24626 (general_hilo_operand): New mode attr.
24627 (add<mode>3, sub<mode>3): Use <general_hilo_operand>
24628 instead of <general_operand>.
24629 (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
24630 x86_64_hilo_general_operand instead of <general_operand>.
24632 2016-05-03 Jakub Jelinek <jakub@redhat.com>
24634 PR tree-optimization/70916
24635 * tree-if-conv.c (constant_or_ssa_name): Removed.
24636 (fold_build_cond_expr): Use is_gimple_val instead of
24637 constant_or_ssa_name.
24639 PR tree-optimization/70916
24640 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
24641 if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
24644 * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
24645 (optimize_atomic_bit_test_and): New function.
24646 (pass_fold_builtins::execute): Use it.
24647 * optabs.def (atomic_bit_test_and_set_optab,
24648 atomic_bit_test_and_complement_optab,
24649 atomic_bit_test_and_reset_optab): New optabs.
24650 * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
24651 ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
24652 * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
24653 * builtins.c (expand_ifn_atomic_bit_test_and): New function.
24654 * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
24655 expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
24656 expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
24657 * doc/md.texi (atomic_bit_test_and_set@var{mode},
24658 atomic_bit_test_and_complement@var{mode},
24659 atomic_bit_test_and_reset@var{mode}): Document.
24660 * config/i386/sync.md (atomic_bit_test_and_set<mode>,
24661 atomic_bit_test_and_complement<mode>,
24662 atomic_bit_test_and_reset<mode>): New expanders.
24663 (atomic_bit_test_and_set<mode>_1,
24664 atomic_bit_test_and_complement<mode>_1,
24665 atomic_bit_test_and_reset<mode>_1): New insns.
24667 2016-05-03 Richard Sandiford <richard.sandiford@arm.com>
24669 PR rtl-optimization/70687
24670 * combine.c (change_zero_ext): Check for scalar modes. Use wide_int
24671 instead of unsigned HOST_WIDE_INT.
24673 2016-05-03 Bernd Schmidt <bschmidt@redhat.com>
24675 PR rtl-optimization/44281
24676 * hard-reg-set.h (struct target_hard_regs): New field
24677 x_fixed_nonglobal_reg_set.
24678 (fixed_nonglobal_reg_set): New macro.
24679 * reginfo.c (init_reg_sets_1): Initialize it.
24680 * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
24682 * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
24684 2016-05-03 Bin Cheng <bin.cheng@arm.com>
24686 PR tree-optimization/56541
24687 * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
24688 * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
24689 * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
24690 (any_complicated_phi): new static variable.
24691 (aggressive_if_conv): delete.
24692 (if_convertible_phi_p): support phis with more than two arguments.
24693 (if_convertible_bb_p): remvoe check on aggressive_if_conv and
24694 critical pred edges.
24695 (ifcvt_split_critical_edges): support phis with more than two
24696 arguments by checking new parameter. only split critical edges
24698 (tree_if_conversion): handle simd pragma marked loop using new
24699 local variable aggressive_if_conv. check any_complicated_phi.
24701 2016-05-03 Bin Cheng <bin.cheng@arm.com>
24703 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
24706 2016-05-03 Bin Cheng <bin.cheng@arm.com>
24708 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
24711 2016-05-03 Oleg Endo <olegendo@gcc.gnu.org>
24713 * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
24714 (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
24715 define_insn_and_split.
24716 (mulsi3_i): New define_insn_and_split.
24717 (mulsi3_call): Convert to define_insn.
24718 (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
24719 Remove constraints.
24721 2016-05-02 Michael Meissner <meissner@linux.vnet.ibm.com>
24723 * machmode.h (mode_complex): Add support to give the complex mode
24725 (GET_MODE_COMPLEX_MODE): Likewise.
24726 * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
24727 stored by build_complex_type and gfc_build_complex_type instead of
24728 trying to figure out the appropriate mode based on the size. Raise
24729 an assertion error, if the type was not set.
24730 * genmodes.c (struct mode_data): Add field for the complex type of
24732 (blank_mode): Likewise.
24733 (make_complex_modes): Remember the complex mode created in the
24735 (emit_mode_complex): Write out the mode_complex array to map a
24736 type mode to the complex version.
24737 (emit_insn_modes_c): Likewise.
24738 * tree.c (build_complex_type): Set the complex type to use before
24739 calling layout_type.
24740 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
24741 support for __float128 complex datatypes.
24742 (rs6000_hard_regno_mode_ok): Likewise.
24743 (rs6000_setup_reg_addr_masks): Likewise.
24744 (rs6000_complex_function_value): Likewise.
24745 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
24746 __float128 and __ibm128 complex.
24747 (FLOAT128_IBM_P): Likewise.
24748 (ALTIVEC_ARG_MAX_RETURN): Likewise.
24749 * doc/extend.texi (Additional Floating Types): Document that
24750 -mfloat128 must be used to enable __float128. Document complex
24751 __float128 and __ibm128 support.
24753 2016-05-02 Jakub Jelinek <jakub@redhat.com>
24756 * gimple.c (gimple_builtin_call_types_compatible_p): Allow
24757 char/short arguments promoted to int because of promote_prototypes.
24759 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
24761 * config/i386/predicates.md (register_ssemem_operand): New predicate.
24762 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
24763 *cmpi<FPCMP:unord><MODEF:mode>_mixed and
24764 *cmpi<FPCMP:unord><X87MODEF:mode>_i387. Disable unsupported
24765 alternatives using "enabled" attribute. Use register_ssemem_operand
24766 as operand 1 predicate.
24767 (*cmpi<unord>xf_i387): Split XFmode pattern from
24768 *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
24769 (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
24770 *absneg<mode>2_i387. Disable unsupported alternatives using
24771 "enabled" attribute.
24772 (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
24774 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
24776 * omp-low.c (lower_oacc_head_tail): Assert there is at least one
24778 (oacc_loop_process): Check mask for loop termination.
24780 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
24782 * cif-code.def (CIF_THUNK): Add.
24783 * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
24786 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
24788 * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
24789 (dump_inline_summary): Dump it.
24790 (fp_expression_p): New predicate.
24791 (estimate_function_body_sizes): Use it.
24792 (inline_merge_summary): Merge fp_expressions.
24793 (inline_read_section): Read fp_expressions.
24794 (inline_write_summary): Write fp_expressions.
24795 * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
24796 codegen boundary if either caller or callee is !fp_expressions.
24797 * ipa-inline.h (inline_summary): Add fp_expressions.
24798 * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
24799 to fp_expressions be sure the fp generation flags are updated.
24801 2016-05-02 Jakub Jelinek <jakub@redhat.com>
24803 PR rtl-optimization/70467
24804 * cse.c (cse_insn): Handle no-op MEM moves after folding.
24806 PR rtl-optimization/70467
24807 * ipa-pure-const.c (check_call): Handle internal calls even in
24808 ipa mode like in local mode.
24810 2016-05-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
24812 * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
24814 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
24816 * match.pd (X u< X, X u> X): New transformations.
24818 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
24820 * flag-types.h (enum warn_strict_overflow_code): Move ...
24821 * coretypes.h: ... here.
24822 * fold-const.h (fold_overflow_warning): Declare.
24823 * fold-const.c (fold_overflow_warning): Make non-static.
24824 (fold_comparison): Move the transformation of X +- C1 CMP C2
24825 into X CMP C2 -+ C1 ...
24826 * match.pd: ... here.
24827 * gimple-fold.c (fold_stmt_1): Protect with
24828 fold_defer_overflow_warnings.
24830 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
24832 * omp-low.c (struct oacc_loop): Add 'inner' field.
24833 (new_oacc_loop_raw): Initialize it to zero.
24834 (oacc_loop_fixed_partitions): Initialize it.
24835 (oacc_loop_auto_partitions): Partition outermost loop to outermost
24836 available partitioning.
24838 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
24840 * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
24842 (umulsidi3): Likewise.
24843 (indirect_jump): Fix jump instruction assembly patterns.
24845 2016-05-02 Thomas Schwinge <thomas@codesourcery.com>
24848 * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
24849 (nvptx_function_value): Assert non-NULL cfun.
24851 2016-05-02 Eric Botcazou <ebotcazou@adacore.com>
24853 PR rtl-optimization/70886
24854 * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
24856 * cselib.h (rtx_equal_for_cselib_1): Declare.
24857 (rtx_equal_for_cselib_p: New inline function.
24858 * cselib.c (rtx_equal_for_cselib_p): Delete.
24859 (rtx_equal_for_cselib_1): Make public.
24861 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
24863 * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
24864 (register_mixssei387nonimm_operand): Remove predicate.
24865 * config/i386/i386.md (*fop_<mode>_comm): Merge from
24866 *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387. Disable unsupported
24867 alternatives using "enabled" attribute. Also check X87_ENABLE_ARITH
24868 for TARGET_MIX_SSE_I387 alternatives.
24869 (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
24870 Disable unsupported alternatives using "enabled" attribute. Use
24871 nonimm_ssenomem_operand as operand 1 predicate. Also check
24872 X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
24874 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
24876 * tree.c (cst_and_fits_in_hwi): Simplify.
24878 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
24880 * tree.h (wi::to_wide): New function.
24881 * expr.c (expand_expr_real_1): Use wi::to_wide.
24882 * fold-const.c (int_const_binop_1): Likewise.
24883 (extract_muldiv_1): Likewise.
24885 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
24887 * wide-int.h: Update offset_int and widest_int documentation.
24888 (WI_SIGNED_SHIFT_RESULT): New macro.
24889 (wi::binary_shift): Define signed_shift_result_type for
24890 shifts on offset_int- and widest_int-like types.
24891 (generic_wide_int): Support <<= and >>= if << and >> are supported.
24892 * tree.h (int_bit_position): Use shift operators instead of wi::
24894 * alias.c (adjust_offset_for_component_ref): Likewise.
24895 * expr.c (get_inner_reference): Likewise.
24896 * fold-const.c (fold_comparison): Likewise.
24897 * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
24898 * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
24899 * tree-dfa.c (get_ref_base_and_extent): Likewise.
24900 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
24901 (stmt_kills_ref_p): Likewise.
24902 * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
24903 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
24904 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
24905 (ao_ref_init_from_vn_reference): Likewise.
24907 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
24909 * wide-int.h: Update offset_int and widest_int documentation.
24910 (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
24911 (wi::binary_traits): Allow ordered comparisons between offset_int and
24912 offset_int, between widest_int and widest_int, and between either
24913 of these types and basic C types.
24914 (operator <, <=, >, >=): Define for the same combinations.
24915 * tree.h (tree_int_cst_lt): Use comparison operators instead
24916 of wi:: comparisons.
24917 (tree_int_cst_le): Likewise.
24918 * gimple-fold.c (fold_array_ctor_reference): Likewise.
24919 (fold_nonarray_ctor_reference): Likewise.
24920 * gimple-ssa-strength-reduction.c (record_increment): Likewise.
24921 * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
24922 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
24923 * tree-sra.c (completely_scalarize): Likewise.
24924 * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
24925 * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
24926 * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
24927 (check_for_binary_op_overflow): Likewise.
24928 (search_for_addr_array): Likewise.
24929 * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
24931 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
24933 * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
24934 (arc_save_restore): Likewise.
24935 (arc_dwarf_register_span): Likewise.
24936 (arc_output_pic_addr_const): Initialize suffix variable.
24938 2016-05-02 Martin Liska <mliska@suse.cz>
24940 * symbol-summary.h (function_summary::function_summary):
24941 Remove checking assert for all cgraph nodes.
24942 (function_summary::get): Check summary_uid.
24943 (symtab_insertion): Check summary_uid.
24945 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
24947 * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
24948 * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
24949 bmaskn instruction.
24950 (arc_dwarf_register_span): Remove enum keyword.
24951 (compact_memory_operand_p): New function.
24952 * config/arc/arc.h (reg_class): Add code density register classes.
24953 (REG_CLASS_NAMES): Likewise.
24954 (REG_CLASS_CONTENTS): Likewise.
24955 * config/arc/arc.md (*movqi_insn): Add code density instructions.
24956 (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
24957 (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
24958 (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
24959 * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
24961 (h, Rcd, Rsd, Rzd): New register constraints.
24962 (T): Use compact_memory_operand_p function.
24963 * config/arc/predicates.md (compact_load_memory_operand): Remove.
24965 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
24967 * config/sh/sh.md (*negnegt, *movtt): Remove.
24969 2016-05-02 Marek Polacek <polacek@redhat.com>
24970 Tom de Vries <tom@codesourcery.com>
24972 PR tree-optimization/70700
24973 * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
24974 bigger than FIRST_REF_NODE.
24976 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
24979 * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
24981 (prepare_cbranch_operands): Don't use scratch register. Assume that
24982 function is used when pseudos can be created.
24983 (expand_cbranchdi4): Likewise. Remove unused TARGET_CMPEQDI_T paths.
24984 * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
24985 (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
24986 define_expand. Allow it only when pseudos can be created.
24987 * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
24989 2016-05-01 Uros Bizjak <ubizjak@gmail.com>
24991 * config/i386/constraints.md (BC): Only allow -1 operands.
24992 * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
24993 Add "enabled" attribute. Update XI mode attribute calculation.
24994 * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
24995 (*movoi_internal_avx): Update XI mode attribute calculation.
24996 (*movti_internal): Ditto.
24998 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
25000 * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
25001 cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
25003 2016-05-01 Eric Botcazou <ebotcazou@adacore.com>
25005 * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
25006 statement on instruction code. Remove trailing spaces.
25007 (altivec_expand_stv_builtin): Likewise.
25009 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
25011 * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
25012 (TARGET_FPU_DOUBLE): Simplify.
25013 (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
25014 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
25015 * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
25016 with 'TARGET_FPU_DOUBLE'.
25017 * config/sh/sh.md: Likewise.
25019 2016-05-01 Yoshinori Sato <ysato@users.sourceforge.jp>
25021 * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
25022 SH_DIV_STR_FOR_SIZE): Remove.
25023 * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
25024 SH_DIV_STR_FOR_SIZE): Remove.
25026 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
25028 * config/sh/predicates.md (any_register_operand, zero_extend_operand,
25029 logical_reg_operand): Delete.
25030 (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
25031 arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
25032 logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
25033 match_operand and match_test.
25034 (sh_const_vec, sh_1el_vec): Remove redundant checks. Declare local
25035 variables on their first use. Return bool values.
25036 * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
25037 * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
25038 arith_reg_operand for input operand. Remove empty constraints.
25040 (*xorsi3_compact): Rename to xorsi3.
25041 (zero_extend<mode>si2): Use arith_reg_operand for input operand.
25042 (*zero_extend<mode>si2_disp_mem): Update comment.
25045 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
25047 * config/sh/t-sh: Remove SH5 support.
25048 * config.gcc: Likewise.
25049 * configure: Likewise.
25051 2016-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25053 * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
25055 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
25057 * config/sh/sh.c (register_sh_passes, sh_option_override,
25058 sh_print_operand, prepare_move_operands,
25059 sh_can_follow_jump): Remove TARGET_SH1 checks.
25060 * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
25061 PROMOTE_MODE): Likewise.
25062 * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
25065 2016-04-30 Alan Modra <amodra@gmail.com>
25067 * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
25068 restoring when fixed_reg_p, but allow out-of-line or stmw save.
25069 Check for user regs later to avoid unnecessary looping over regs.
25070 Merge user reg check with non-saved reg check. Don't force
25071 inline VR restore when static chain used.
25072 (rs6000_frame_related): Omit eh_frame info for user regs when
25074 (fixed_regs_p): Delete.
25076 2016-04-30 Alan Modra <amodra@gmail.com>
25078 * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
25079 (SAVE_STRATEGY, REST_STRATEGY): ..this. Renumber and sort enum.
25082 2016-04-30 Alan Modra <amodra@gmail.com>
25085 * config/rs6000/rs6000.c (fixed_reg_p): New function.
25086 (fixed_regs_p): Rename from global_regs_p. Call fixed_reg_p.
25089 2016-04-30 Alan Modra <amodra@gmail.com>
25091 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
25092 Remove redundant PIC_OFFSET_TABLE_REGNUM test. Replace with
25093 flag_pic test for Darwin.
25095 2016-04-30 Alan Modra <amodra@gmail.com>
25097 * regs.h (struct reg_info_t): Delete freq_calls_crossed and
25098 throw_calls_crossed.
25099 (REG_FREQ_CALLS_CROSSED): Delete.
25100 (REG_N_THROWING_CALLS_CROSSED): Delete.
25101 * regstat.c (regstat_bb_compute_ri): Don't calculate
25102 REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
25103 (dump_reg_info): Don't print call cross frequency.
25104 * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
25105 and REG_N_THROWING_CALLS_CROSSED.
25107 2016-04-30 Alan Modra <amodra@gmail.com>
25109 * regs.h (struct reg_info_t): Delete live_length.
25110 (REG_LIVE_LENGTH): Delete macro.
25111 * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
25112 local_live, local_processed and local_live_last_luid params.
25113 Replace bb_index param with bb. Don't set REG_LIVE_LENGTH.
25115 (regstat_compute_ri): Adjust for above. Don't set
25117 (dump_reg_info): Don't print live length.
25118 * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
25119 with test of setjmp_crosses. Don't set REG_LIVE_LENGTH.
25120 Localize loop_depth var.
25122 2016-04-30 Alan Modra <amodra@gmail.com>
25124 * ira.c (enum valid_equiv): New.
25125 (validate_equiv_mem): Return enum.
25126 (update_equiv_mem): Create replacement in more cases.
25127 (add_store_equivs): Update validate_equiv_mem call.
25129 2016-04-30 Alan Modra <amodra@gmail.com>
25131 * ira.c (combine_and_move_insns): Rather than scanning insns,
25132 use DF infrastucture to find use and def insns.
25134 2016-04-30 Alan Modra <amodra@gmail.com>
25136 ira.c (combine_and_move_insns): Move invariant conditions..
25137 (ira.c): ..to here. Call combine_and_move_insns before
25138 add_store_equivs. Call grow_reg_equivs later. Allocate
25139 req_equiv later using max_reg_num() rather than global max_regno.
25140 (contains_replace_regs): Delete.
25141 (add_store_equivs): Remove contains_replace_regs test.
25143 2016-04-30 Alan Modra <amodra@gmail.com>
25145 * ira.c (struct equiv_mem_data): New.
25146 (equiv_mem, equiv_mem_modified): Delete static vars.
25147 (validate_equiv_mem_from_store): Use "data" param to communicate..
25148 (validate_equiv_mem): ..from here.
25150 2016-04-30 Alan Modra <amodra@gmail.com>
25152 * ira.c (add_store_equivs, combine_and_move_insns): New functions,
25154 (update_reg_equivs): ..here. Move allocation and freeing of
25155 reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
25156 end_alias_analysis to..
25159 2016-04-30 Alan Modra <amodra@gmail.com>
25161 * ira.c (pdx_subregs): Delete.
25162 (struct equivalence): Add pdx_subregs field.
25163 (set_paradoxical_subreg): Remove pdx_subregs param. Update
25164 pdx_subregs access.
25165 (update_equiv_regs): Don't create or free pdx_subregs. Update
25166 pdx_subregs access.
25168 2016-04-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25170 * config/rs6000/altivec.h: Change definitions of vec_xl and
25172 * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
25173 (LD_ELEMREV_V2DI): New.
25174 (LD_ELEMREV_V4SF): New.
25175 (LD_ELEMREV_V4SI): New.
25176 (LD_ELEMREV_V8HI): New.
25177 (LD_ELEMREV_V16QI): New.
25178 (ST_ELEMREV_V2DF): New.
25179 (ST_ELEMREV_V2DI): New.
25180 (ST_ELEMREV_V4SF): New.
25181 (ST_ELEMREV_V4SI): New.
25182 (ST_ELEMREV_V8HI): New.
25183 (ST_ELEMREV_V16QI): New.
25186 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
25187 descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
25188 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
25189 TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
25190 (altivec_expand_builtin): Add handling for
25191 VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
25192 (rs6000_invalid_builtin): Add error-checking for
25193 RS6000_BTM_P9_VECTOR.
25194 (altivec_init_builtins): Define builtins used to implement vec_xl
25196 (rs6000_builtin_mask_names): Define power9-vector.
25197 * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
25198 (RS6000_BTM_P9_VECTOR): Define.
25199 (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
25200 * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
25201 (vsx_ld_elemrev_v2df): Likewise.
25202 (vsx_ld_elemrev_v4sf): Likewise.
25203 (vsx_ld_elemrev_v4si): Likewise.
25204 (vsx_ld_elemrev_v8hi): Likewise.
25205 (vsx_ld_elemrev_v16qi): Likewise.
25206 (vsx_st_elemrev_v2df): Likewise.
25207 (vsx_st_elemrev_v2di): Likewise.
25208 (vsx_st_elemrev_v4sf): Likewise.
25209 (vsx_st_elemrev_v4si): Likewise.
25210 (vsx_st_elemrev_v8hi): Likewise.
25211 (vsx_st_elemrev_v16qi): Likewise.
25212 * doc/extend.texi: Add prototypes for vec_xl and vec_xst. Correct
25215 2016-04-29 Patrick Palka <ppalka@gcc.gnu.org>
25217 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
25219 (simplify_control_stmt_condition_1): ... here. Recurse into
25220 BIT_AND_EXPRs and BIT_IOR_EXPRs.
25222 2016-04-29 David Edelsohn <dje.gcc@gmail.com>
25225 * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
25226 (zero_extendqi<mode>2_dot): Revert earlier conversion from
25227 define_insn_and_split to define_insn.
25228 (zero_extendqi<mode>2_dot2): Same.
25229 (extendqi<mode>2_dot): Same.
25230 (extendqi<mode>2_dot2): Same.
25232 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
25234 * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
25235 (probe_stack): New expander.
25236 (probe_stack_<mode>): New insn pattern.
25238 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
25240 * config/i386/i386.md
25241 (operations with memory inputs setting flags peephole2):
25242 Remove uneeded REG_P checks. Cleanup pattern generation.
25244 2016-04-29 Ilya Enkovich <ilya.enkovich@intel.com>
25246 * tree-vect-loop.c (vect_transform_loop): Fix
25247 nb_iterations_upper_bound computation for vectorized loop.
25249 2016-04-29 Marek Polacek <polacek@redhat.com>
25250 Jakub Jelinek <jakub@redhat.com>
25253 * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
25254 TARGET_EXPR_SLOT as a base.
25256 2016-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
25258 * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
25259 with 'rCm2' constraints to limit possible immediate size.
25260 (*load_zeroextendqisi_update): Likewise.
25261 (*load_signextendqisi_update): Likewise.
25262 (*loadhi_update): Likewise.
25263 (*load_zeroextendhisi_update): Likewise.
25264 (*load_signextendhisi_update): Likewise.
25265 (*loadsi_update): Likewise.
25266 (*loadsf_update): Likewise.
25268 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
25270 * config/i386/predicates.md (constm1_operand): Fix comparison.
25272 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
25274 * testsuite/gcc.target/arc/ieee_eq.c: New test.
25276 2016-04-29 Oleg Endo <olegendo@gcc.gnu.org>
25278 * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
25279 remaining SH5 related settings.
25280 * config/sh/sh-protos.h (shmedia_cleanup_truncate,
25281 shmedia_prepare_call_address): Delete.
25282 * config/sh/sh.c (sh_print_operand, output_stack_adjust,
25283 DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
25284 * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
25285 UNSUPPORTED_SH2A): Remove m5 checks.
25286 (sh_divide_strategy_e): Remove SH5 division strategies.
25287 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
25288 * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
25290 2016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
25292 * config/s390/s390.c (s390_rtx_costs): Update documentation.
25294 2016-04-29 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25296 * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
25297 * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
25298 Change lder to ldr.
25299 * config/s390/vector.md ("mov<mode>"): Likewise.
25301 2016-04-29 Ulrich Weigand <uweigand@de.ibm.com>
25303 * config/s390/constraints.md ("U", "W"): Invoke
25304 s390_mem_constraint with "ZR" and "ZT".
25305 * config/s390/s390.c (s390_check_qrst_address): Reject invalid
25306 addresses when using LRA. Accept also short displacements for S
25307 and T constraints. Do not check for long displacement target for
25308 S and T constraints.
25309 (s390_mem_constraint): Remove handling of U and W constraints.
25310 * config/s390/s390.md (various patterns): Remove the short
25311 displacement constraints (Q and R) if a long displacement
25312 constraint is present. Add longdisp as required CPU capability.
25313 * config/s390/vector.md: Likewise.
25314 * config/s390/vx-builtins.md: Likewise.
25316 2016-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
25319 * reload1.c (reload): Call finish_spills before
25320 restarting reload loop. Skip select_reload_regs
25321 if update_eliminables_and_spill returns true.
25323 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
25325 * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
25326 * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
25327 (umulhisi3_imm): Update predicates and constraint letters.
25328 (umulhisi3_reg): Declare instruction as commutative.
25329 * config/arc/constraints.md (J12, J16): New constraints.
25330 * config/arc/predicates.md (short_unsigned_const_operand): New
25332 (arc_short_operand): Likewise.
25333 * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
25335 2016-04-29 Richard Biener <rguenther@suse.de>
25337 PR tree-optimization/13962
25338 PR tree-optimization/65686
25339 * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
25340 * tree-ssa-alias.c (ptrs_compare_unequal): New function
25341 using PTA to compare pointers.
25342 * match.pd: Add pattern for pointer equality compare simplification
25343 using ptrs_compare_unequal.
25345 2016-04-29 Richard Biener <rguenther@suse.de>
25347 * stor-layout.c (layout_type): Do not build a pointer-to-element
25350 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
25352 * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
25353 Use SWI mode iterator. Use general_reg_operand predicate.
25354 (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
25355 peephole to MMX and SSE part. Use mmx_reg_operand and sse_reg_operand
25358 2016-04-29 Jakub Jelinek <jakub@redhat.com>
25360 PR middle-end/70843
25361 * fold-const.c (operand_equal_p): Don't verify hash value equality
25363 * tree.c (inchash::add_expr): Handle STATEMENT_LIST. Ignore BLOCK
25366 2016-04-28 Jakub Jelinek <jakub@redhat.com>
25369 * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
25370 to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
25371 (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
25372 __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
25373 __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
25375 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
25377 * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
25378 to info. Don't initialize separate fields to 0. Clean up
25381 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
25383 * config/i386/i386.md (peephole2s for operations with memory inputs):
25384 Use SWI mode iterator.
25385 (peephole2s for operations with memory outputs): Ditto.
25386 Do not check for stack checking probe.
25388 (probe_stack): Remove expander.
25390 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
25391 Andrew Burgess <andrew.burgess@embecosm.com>
25393 * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
25394 operands as 32-bits.
25396 2016-04-28 Jason Merrill <jason@redhat.com>
25398 * gdbinit.in: Skip line-map.h.
25400 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
25401 Andrew Burgess <andrew.burgess@embecosm.com>
25403 * config/arc/arc.c (arc_conditional_register_usage): Take
25404 TARGET_RRQ_CLASS into account.
25405 (arc_print_operand): Support printing 'p' and 's' operands.
25406 * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
25408 (TARGET_RRQ_CLASS): Define.
25409 (IS_POWEROF2_OR_0_P): Define.
25410 * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
25412 (*tst_movb): New define_insn.
25413 (*tst): Avoid recognition if it could prevent '*tst_movb'
25414 combination; replace c/CnL with c/Chs alternative.
25415 (*tst_bitfield_tst): New define_insn.
25416 (*tst_bitfield_asr): New define_insn.
25417 (*tst_bitfield): New define_insn.
25418 (andsi3_i): Add Rrq variant.
25419 (extzv): New define_expand.
25420 (insv): New define_expand.
25421 (*insv_i): New define_insn.
25422 (*movb): New define_insn.
25423 (*movb_signed): New define_insn.
25424 (*movb_high): New define_insn.
25425 (*movb_high_signed): New define_insn.
25426 (*movb_high_signed + 1): New define_split pattern.
25427 (*mrgb): New define_insn.
25428 (*mrgb + 1): New define_peephole2 pattern.
25429 (*mrgb + 2): New define_peephole2 pattern.
25430 * config/arc/arc.opt (mbitops): New option for nps400, uses
25431 TARGET_NPS_BITOPS_DEFAULT.
25432 * config/arc/constraints.md (q): Make register class conditional.
25433 (Rrq): New register constraint.
25434 (Chs): New constraint.
25435 (Clo): New constraint.
25436 (Chi): New constraint.
25437 (Cbf): New constraint.
25438 (Cbn): New constraint.
25439 (C18): New constraint.
25440 (Cbi): New constraint.
25442 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
25444 * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
25446 (bitmap_intersection_of_preds): Ditto.
25447 (bitmap_union_of_succs): Ditto.
25448 (bitmap_union_of_preds): Ditto.
25449 * sbitmap.c (do_popcount): Delete.
25450 (BITMAP_DEBUGGING): Delete.
25451 (sbitmap_verify_popcount): Delete.
25452 (sbitmap_alloc): Don't initialize the popcount field.
25453 (sbitmap_alloc_with_popcount): Delete.
25454 (sbitmap_resize): Don't resize the popcount array.
25455 (sbitmap_vector_alloc): Don't initialize the popcount field.
25456 (bitmap_copy): Don't copy the popcount array.
25457 (bitmap_clear): Don't clear the popcount array.
25458 (bitmap_clear): Delete the popcount array handling.
25459 (bitmap_ior_and_compl): Delete the popcount assert.
25460 (bitmap_not): Ditto.
25461 (bitmap_and_compl): Ditto.
25462 (bitmap_and): Delete the popcount array handling.
25463 (bitmap_xor): Ditto.
25464 (bitmap_ior): Ditto.
25465 (bitmap_or_and): Delete the popcount assert.
25466 (bitmap_and_or): Ditto.
25467 (popcount_table): Delete.
25468 (sbitmap_elt_popcount): Delete.
25469 * sbitmap.h (simple_bitmap_def): Delete the popcount field.
25470 (bitmap_set_bit): Delete the popcount assert.
25471 (bitmap_clear_bit): Ditto.
25472 (sbitmap_free): Don't free the popcount array.
25473 (sbitmap_alloc_with_popcount): Delete declaration.
25474 (sbitmap_popcount): Ditto.
25476 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
25477 Andrew Burgess <andrew.burgess@embecosm.com>
25479 * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
25480 (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
25481 * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
25482 (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
25483 * config/arc/arc.opt (mcmem): New option.
25484 * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
25485 supply length for r/m alternative.
25486 (*extendqisi2_ac): Likewise.
25487 (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
25489 (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
25490 (movhi_insn): Likewise.
25491 (movsi_insn): Add r/Ucm,Ucm/w alternatives.
25492 (*zero_extendqihi2_i): Add r/Ucm alternative.
25493 (*zero_extendqisi2_ac): Likewise.
25494 (*zero_extendhisi2_i): Likewise.
25495 * config/arc/constraints.md (Uex): New memory constraint.
25496 (Ucm): New define_constraint.
25497 * config/arc/predicates.md (long_immediate_loadstore_operand):
25498 Return 0 for MEM with cmem_address address.
25499 (cmem_address_0): New predicates.
25500 (cmem_address_1): Likewise.
25501 (cmem_address_2): Likewise.
25502 (cmem_address): Likewise.
25504 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
25506 * config/rs6000/rs6000.c (machine_function): Rename
25507 insn_chain_scanned_p to spe_insn_chain_scanned_p.
25508 (rs6000_stack_info): Adjust.
25510 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
25511 Andrew Burgess <andrew.burgess@embecosm.com>
25513 * config/arc/constraints.md (Usd): Convert to define_constraint.
25517 2016-04-28 Jakub Jelinek <jakub@redhat.com>
25520 * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
25521 Add new peephole2 where the first insn is *mov<mode>_or instead of
25522 *mov<mode>_internal.
25524 2016-04-28 Segher Boesssenkool <segher@kernel.crashing.org>
25526 * tracer.c (bb_seen): Make static.
25528 2016-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
25530 * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
25531 support, setup defaults.
25532 * config/arc/arc-opts.h (enum processor_type): Add NPS400.
25533 * config/arc/arc.c (arc_init): Add NPS400 support.
25534 * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
25535 (TARGET_ARC700): NPS400 is also an ARC700.
25536 * config/arc/arc.opt: Add NPS400 options to -mcpu=.
25538 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
25541 * config/nds32/nds32.md (casesi): Don't access the operands array
25544 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
25546 * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
25547 (or $-1,reg peephole2): Ditto.
25548 (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
25550 2016-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
25552 * doc/extend.texi (Common Function Attributes) [optimize]:
25553 Discourage use of the optimize attribute.
25555 2016-04-28 Bill Seurer <seurer@linux.vnet.ibm.com>
25557 * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
25558 special case builtin.
25559 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
25560 ALTIVEC_BUILTIN_VEC_ADDE.
25561 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
25562 support for ALTIVEC_BUILTIN_VEC_ADDE.
25563 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
25564 for __builtin_vec_adde.
25566 2016-04-28 Jakub Jelinek <jakub@redhat.com>
25568 * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
25569 * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
25571 2016-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25574 * doc/sourcebuild.texi (Effective-Target Keywords, Other
25575 attributes): Document cilkplus_runtime.
25577 2016-04-28 Martin Jambor <mjambor@suse.cz>
25579 * tree-cfg.c (verify_expr): Verify that local declarations belong to
25580 this function. Call verify_expr on MEM_REFs and bases of other
25581 handled_components.
25583 2016-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25585 * internal-fn.c (expand_arith_overflow): Convert preprocessor check
25586 for WORD_REGISTER_OPERATIONS to runtime check.
25588 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
25590 * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
25592 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
25594 * config/arc/arc.c (arc_process_double_reg_moves): Fix for
25595 big-endian compilation.
25596 * config/arc/arc.md (addf3): Likewise.
25597 (subdf3): Likewise.
25598 (muldf3): Likewise.
25600 2016-04-28 Richard Biener <rguenther@suse.de>
25602 PR tree-optimization/70840
25603 * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
25604 Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
25605 Mark x * pow(x,c) -> pow(x,c+1) commutative.
25606 Add powi(x,y) * powi(z,y) -> powi(x*z,y).
25608 2015-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25610 * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
25611 and explain why in a comment.
25613 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
25615 * config/arc/arc.md (cpu_facility): Add fpx variant.
25616 (subdf3): Prohibit use reverse sub when assist operations option
25618 * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
25619 instructions only when FPX is enabled.
25620 * testsuite/gcc.target/arc/trsub.c: New test.
25622 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
25624 * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
25625 mult_operator when calculating "type" attribute.
25626 (*fop_<mode>_1_i387): Ditto.
25627 (*fop_xf_1_i387): Ditto.
25628 (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
25629 Use std::swap to swap operands. Use RTL expressions to generate
25632 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
25633 Joern Rennecke <joern.rennecke@embecosm.com>
25635 * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
25637 (emit_pic_move): Remove.
25638 (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
25639 * config/arc/arc.c (emit_pic_move): Removed.
25640 (TARGET_HAVE_TLS): Define.
25641 (arc_conditional_register_usage): Test for arc_tp_regno.
25642 (arc_print_operand, arc_print_operand_address): Handle TLS
25644 (arc_needs_pcl_p): New function.
25645 (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
25646 (arc_legitimate_pic_addr_p): Handle TLS unspecs.
25647 (arc_raw_symbolic_reference_mentioned_p): Likewise.
25648 (arc_get_tp, arc_emit_call_tls_get_addr): New function.
25649 (arc_legitimize_tls_address): Likewise.
25650 (DTPOFF_ZERO_SYM): Define.
25651 (arc_legitimize_pic_address): Make it static, handle TLS cases.
25652 (arc_output_pic_addr_const): Print TLS unspecs.
25653 (prepare_pic_move): New function, replaces emit_pic_move.
25654 (arc_legitimate_constant_p): Handle TLS unspecs.
25655 (arc_legitimate_address_p): Likewise.
25656 (arc_rewrite_small_data_p): Use assert for TLS constants.
25657 (prepare_move_operands): Use prepare_pic_move.
25658 (arc_legitimize_address): Legitimize tls addresses.
25659 (arc_epilogue_uses): Check for arc_tp_regno.
25660 (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
25661 * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
25663 [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
25665 [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
25666 %(arc_tls_extra_start_spec).
25667 (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
25668 (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
25670 (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
25671 * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
25672 (UNSPEC_TLS_OFF): Add.
25674 (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
25675 (get_thread_pointersi): New patterns.
25676 * config/arc/arc.opt (mtp-regno): New option.
25677 * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
25678 (move_dest_operand): Likewise.
25679 * configure: Regenerate.
25680 * configure.ac: Add arc*-*-* case to test for tls.
25681 * doc/invoke.texi (ARC options): Document mtp-regno.
25683 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
25685 * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
25686 the new ARC HS SIMD instructions.
25687 (arc_preferred_simd_mode): New function.
25688 (arc_autovectorize_vector_sizes): Likewise.
25689 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
25690 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
25691 (arc_init_reg_tables): Accept new ARC HS SIMD modes.
25692 (arc_init_builtins): Add new SIMD builtin types.
25693 (arc_split_move): Handle 64 bit vector moves.
25694 * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
25695 (TARGET_PLUS_QMACW): Define.
25696 * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
25697 (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
25698 (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
25699 (VSUBADD4H): New builtins.
25700 * config/arc/simdext.md: Add new ARC HS SIMD instructions.
25701 * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
25703 2016-04-28 Eduard Sanou <dhole@openmailbox.org>
25704 Matthias Klose <doko@debian.org>
25706 * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
25708 2016-04-28 Richard Biener <rguenther@suse.de>
25710 PR middle-end/70777
25711 * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
25714 2016-04-28 Oleg Endo <olegendo@gcc.gnu.org>
25716 * common/config/sh/sh-common.c: Remove SH5 support.
25717 * config/sh/constraints.md: Likewise.
25718 * config/sh/config/sh/elf.h: Likewise.
25719 * config/sh/linux.h: Likewise.
25720 * config/sh/netbsd-elf.h: Likewise.
25721 * config/sh/predicates.md: Likewise.
25722 * config/sh/sh-c.c: Likewise.
25723 * config/sh/sh-protos.h: Likewise.
25724 * config/sh/sh.c: Likewise.
25725 * config/sh/sh.h: Likewise.
25726 * config/sh/sh.md: Likewise.
25727 * config/sh/sh.opt: Likewise.
25728 * config/sh/sync.md: Likewise.
25729 * config/sh/sh64.h: Delete.
25730 * config/sh/shmedia.h: Likewise.
25731 * config/sh/shmedia.md: Likewise.
25732 * config/sh/sshmedia.h: Likewise.
25733 * config/sh/t-netbsd-sh5-64: Likewise.
25734 * config/sh/t-sh64: Likewise.
25735 * config/sh/ushmedia.h: Likewise.
25737 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
25739 * config/i386/i386.md (sign_extend to memory peephole2s): Use
25740 general_reg_operand instead of register_operand predicate.
25742 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25744 * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
25746 2016-04-27 Marc Glisse <marc.glisse@inria.fr>
25748 * match.pd (A - B > A, A + B < A): New transformations.
25750 2016-04-27 Patrick Palka <ppalka@gcc.gnu.org>
25752 * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
25753 which defaults to true. Emit an outer pair of parentheses only if
25754 EMIT_PARENS. When continuing a chain of && or || (or & or |),
25755 don't emit parentheses for the right-hand operand.
25757 2016-04-27 Jeff Law <law@redhat.com>
25759 * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
25761 2016-04-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25763 * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
25764 (altivec_lvx_<mode>_internal): Document.
25765 (altivec_lvx_<mode>_2op): New define_insn.
25766 (altivec_lvx_<mode>_1op): Likewise.
25767 (altivec_lvx_<mode>_2op_si): Likewise.
25768 (altivec_lvx_<mode>_1op_si): Likewise.
25769 (altivec_stvx_<mode>): Remove.
25770 (altivec_stvx_<mode>_internal): Document.
25771 (altivec_stvx_<mode>_2op): New define_insn.
25772 (altivec_stvx_<mode>_1op): Likewise.
25773 (altivec_stvx_<mode>_2op_si): Likewise.
25774 (altivec_stvx_<mode>_1op_si): Likewise.
25775 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
25776 Expand vec_ld and vec_st during parsing.
25777 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
25779 (altivec_expand_stvx_be): Likewise.
25780 (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
25781 address-masking behavior in RTL.
25782 (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
25783 address-masking behavior in RTL.
25784 (altivec_expand_builtin): Change builtin code arguments for calls
25785 to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
25786 (insn_is_swappable_p): Avoid incorrect swap optimization in the
25787 presence of lvx/stvx patterns.
25788 (alignment_with_canonical_addr): New function.
25789 (alignment_mask): Likewise.
25790 (find_alignment_op): Likewise.
25791 (recombine_lvx_pattern): Likewise.
25792 (recombine_stvx_pattern): Likewise.
25793 (recombine_lvx_stvx_patterns): Likewise.
25794 (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
25795 stvx patterns from expand.
25796 * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
25798 (vector_altivec_store_<mode>): Likewise.
25800 2016-04-26 Evandro Menezes <e.menezes@samsung.com>
25802 * config/aarch64/aarch64.md
25803 (*movhf_aarch64): Add "movi %0, #0" to zero up register and
25804 remove the "fp" attributes.
25805 (*movsf_aarch64): Add "movi %0, #0" to zero up register and
25806 add the "simd" attributes.
25807 (*movdf_aarch64): Likewise.
25808 (*movtf_aarch64): Remove the "fp" attributes.
25809 * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
25810 * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
25812 2016-04-27 David Malcolm <dmalcolm@redhat.com>
25814 * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
25815 rtx to rtx_code_label *.
25816 * rtl.h (maybe_set_first_label_num): Likewise.
25818 2016-04-27 David Malcolm <dmalcolm@redhat.com>
25820 * df-core.c (df_add_problem): Make the problem param be const.
25821 (df_remove_problem): Make local "problem" be const.
25822 * df-problems.c (problem_RD): Make const.
25823 (problem_LR): Likewise.
25824 (problem_LIVE): Likewise.
25825 (problem_MIR): Likewise.
25826 (problem_CHAIN): Likewise.
25827 (problem_WORD_LR): Likewise.
25828 (problem_NOTE): Likewise.
25829 (problem_MD): Likewise.
25830 * df-scan.c (problem_SCAN): Likewise.
25831 * df.h (struct df_problem): Make field "dependent_problem" be
25833 (struct dataflow): Likewise for field "problem".
25834 (df_add_problem): Make param const.
25836 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
25838 * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
25839 inter-unit moves to/from vector registers are enabled. Do not disable
25842 2016-04-27 David Malcolm <dmalcolm@redhat.com>
25844 * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
25845 DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
25847 (enum df_problem_id): ...this new enum.
25848 (struct df_problem): Convert field "id" from "int" to
25849 enum df_problem_id.
25851 2016-04-27 David Malcolm <dmalcolm@redhat.com>
25853 * rtl.def: Update comment for "things in the instruction chain" to
25854 reflect the removal of the leading "i" field for INSN_UID in
25855 r210360. Fix bogus apostrophe.
25857 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
25859 * config/i386/i386.md
25860 (lea arith with mem operand + setcc peephole2): Set operator mode.
25862 2016-04-27 H.J. Lu <hongjiu.lu@intel.com>
25865 * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
25866 (dimode_scalar_to_vector_candidate_p): This.
25867 (timode_scalar_to_vector_candidate_p): New function.
25868 (scalar_to_vector_candidate_p): Likewise.
25869 (timode_check_non_convertible_regs): Likewise.
25870 (timode_remove_non_convertible_regs): Likewise.
25871 (remove_non_convertible_regs): Likewise.
25872 (remove_non_convertible_regs): Renamed to ...
25873 (dimode_remove_non_convertible_regs): This.
25874 (scalar_chain::~scalar_chain): Make it virtual.
25875 (scalar_chain::compute_convert_gain): Make it pure virtual.
25876 (scalar_chain::mark_dual_mode_def): Likewise.
25877 (scalar_chain::convert_insn): Likewise.
25878 (scalar_chain::convert_registers): Likewise.
25879 (scalar_chain::add_to_queue): Make it protected.
25880 (scalar_chain::emit_conversion_insns): Likewise.
25881 (scalar_chain::replace_with_subreg): Likewise.
25882 (scalar_chain::replace_with_subreg_in_insn): Likewise.
25883 (scalar_chain::convert_op): Likewise.
25884 (scalar_chain::convert_reg): Likewise.
25885 (scalar_chain::make_vector_copies): Likewise.
25886 (scalar_chain::convert_registers): New pure virtual function.
25887 (class dimode_scalar_chain): New class.
25888 (class timode_scalar_chain): Likewise.
25889 (scalar_chain::mark_dual_mode_def): Renamed to ...
25890 (dimode_scalar_chain::mark_dual_mode_def): This.
25891 (timode_scalar_chain::mark_dual_mode_def): New function.
25892 (timode_scalar_chain::convert_insn): Likewise.
25893 (dimode_scalar_chain::convert_registers): Likewise.
25894 (scalar_chain::compute_convert_gain): Renamed to ...
25895 (dimode_scalar_chain::compute_convert_gain): This.
25896 (scalar_chain::replace_with_subreg): Renamed to ...
25897 (dimode_scalar_chain::replace_with_subreg): This.
25898 (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
25899 (dimode_scalar_chain::replace_with_subreg_in_insn): This.
25900 (scalar_chain::make_vector_copies): Renamed to ...
25901 (dimode_scalar_chain::make_vector_copies): This.
25902 (scalar_chain::convert_reg): Renamed to ...
25903 (dimode_scalar_chain::convert_reg ): This.
25904 (scalar_chain::convert_op): Renamed to ...
25905 (dimode_scalar_chain::convert_op): This.
25906 (scalar_chain::convert_insn): Renamed to ...
25907 (dimode_scalar_chain::convert_insn): This.
25908 (scalar_chain::convert): Call convert_registers.
25909 (convert_scalars_to_vector): Change to scalar_chain pointer to
25910 use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
25911 in 32-bit mode. Delete scalar_chain pointer. Call
25912 free_dominance_info in 64-bit mode.
25913 (pass_stv::gate): Remove TARGET_64BIT check.
25914 (ix86_option_override): Put the 64-bit STV pass before the CSE
25917 2016-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
25919 * dwarf2out.h (struct dw_loc_descr_node): Remove the
25920 dw_loc_frame_offset field.
25921 * dwarf2out.c (new_loc_descr): Likewise.
25922 (resolve_args_picking_1): Turn the VISITED hash set into a
25923 FRAME_OFFSET hash map. Use it to associate a frame offset to
25924 visited nodes. Remove uses of the CHECKING_P macro.
25925 (resolve_args_picking): Update call to resolve_args_picking_1.
25927 2016-04-27 Martin Liska <mliska@suse.cz>
25929 * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
25930 (free_loop_data): Release vuses of groups.
25932 2016-04-27 Bin Cheng <bin.cheng@arm.com>
25934 * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
25935 instead of redundant use_id and boolean have_use_for.
25936 (struct iv_use): Change sub_id into group_id. Remove field next.
25937 Move fields: related_cands, n_map_members, cost_map and selected
25939 (struct iv_group): ... here. New structure.
25940 (struct iv_common_cand): Use structure declaration directly.
25941 (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
25942 (MAX_CONSIDERED_USES): Rename macro to ...
25943 (MAX_CONSIDERED_GROUPS): ... here.
25944 (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
25945 (dump_iv, dump_use, dump_cand): Refactor format of dump information.
25946 (dump_uses): Rename to ...
25947 (dump_groups): ... here. Update all uses.
25948 (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
25949 (find_induction_variables): Refactor format of dump information.
25950 (record_sub_use): Delete.
25951 (record_use): Update all uses.
25952 (record_group): New function.
25953 (record_group_use, find_interesting_uses_op): Call above functions.
25955 (find_interesting_uses_cond): Ditto.
25956 (group_compare_offset): New function.
25957 (split_all_small_groups): Rename to ...
25958 (split_small_address_groups_p): ... here. Update all uses.
25959 (split_address_groups): Update all uses.
25960 (find_interesting_uses): Refactor format of dump information.
25961 (add_candidate_1): Update all uses. Remove redundant check on iv,
25963 (add_candidate, record_common_cand): Remove redundant assert.
25964 (add_iv_candidate_for_biv): Update use.
25965 (add_iv_candidate_derived_from_uses): Update all uses.
25966 (add_iv_candidate_for_groups, record_important_candidates): Ditto.
25967 (alloc_use_cost_map): Ditto.
25968 (set_use_iv_cost, get_use_iv_cost): Rename to ...
25969 (set_group_iv_cost, get_group_iv_cost): ... here. Update all uses.
25970 (determine_use_iv_cost_generic): Ditto.
25971 (determine_group_iv_cost_generic): Ditto.
25972 (determine_use_iv_cost_address): Ditto.
25973 (determine_group_iv_cost_address): Ditto.
25974 (determine_use_iv_cost_condition): Ditto.
25975 (determine_group_iv_cost_cond): Ditto.
25976 (determine_use_iv_cost): Ditto.
25977 (determine_group_iv_cost): Ditto.
25978 (set_autoinc_for_original_candidates): Update all uses.
25979 (find_iv_candidates): Update all uses. Refactor dump information.
25980 (determine_use_iv_costs): Ditto.
25981 (determine_iv_costs): Ditto.
25982 (iv_ca_cand_for_use): Rename to ...
25983 (iv_ca_cand_for_group): ... here. Update all uses.
25984 (iv_ca_add_use, iv_ca_add_group): Ditto.
25985 (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
25986 (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
25987 (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
25988 (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
25989 (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
25990 (create_new_iv, adjust_iv_update_pos): Ditto.
25991 (rewrite_use_address): Delete.
25992 (rewrite_use_address_1): Rename to ...
25993 (rewrite_use_address): ... here.
25994 (rewrite_use_compare): Update all uses.
25995 (rewrite_use): Delete.
25996 (rewrite_uses): Rename to ...
25997 (rewrite_groups): ... here. Update all uses.
25998 (remove_unused_ivs, free_loop_data): Update all uses.
25999 (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
26001 2016-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26003 * rtlanal.c (nonzero_bits1): Convert preprocessor check
26004 for WORD_REGISTER_OPERATIONS to runtime check.
26006 2016-04-27 Richard Biener <rguenther@suse.de>
26009 * tree-ssa-structalias.c (find_func_aliases_for_call): Use
26010 aggregate_value_p to determine if a function result is
26011 returned by reference.
26012 (ipa_pta_execute): Functions having their address taken are
26013 not automatically nonlocal.
26015 2016-04-27 Jakub Jelinek <jakub@redhat.com>
26018 * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
26019 * fold-const.c (operand_equal_p): If flag_checking and
26020 OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
26021 and if it returns non-zero, assert iterative_hash_expr on both
26024 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
26026 * doc/invoke.texi (-frename-registers): Also enabled at -Os.
26028 2016-04-27 Nick Clifton <nickc@redhat.com>
26030 PR middle-end/49889
26031 * varasm.c (merge_weak): Generate an error if an attempt is made
26032 to convert a non-weak static function into a weak, public function.
26034 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
26036 * params.def (MAX_PARTITION_SIZE): New param.
26037 * doc/invoke.texi: Document lto-max-partition.
26039 2016-04-27 Richard Biener <rguenther@suse.de>
26042 * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
26043 function cummulating used_from_other_partition, externally_visible
26044 and force_output from aliases.
26045 (refered_from_nonlocal_var): Likewise.
26046 (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
26047 node flags properly.
26049 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
26051 * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
26052 (-Wmemset-elt-size): New item.
26054 2016-04-27 Eric Botcazou <ebotcazou@adacore.com>
26057 * stor-layout.h (internal_reference_types): Delete.
26058 * stor-layout.c (reference_types_internal): Likewise.
26059 (internal_reference_types): Likewise.
26060 (layout_type) <REFERENCE_TYPE>: Adjust.
26062 2016-04-27 Jakub Jelinek <jakub@redhat.com>
26065 * tree.h (inchash::add_expr): Add FLAGS argument.
26066 * tree.c (inchash::add_expr): Likewise. If not OEP_ADDRESS_OF,
26067 use STRIP_NOPS first. For INTEGER_CST assert not OEP_ADDRESS_OF.
26068 For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
26069 Formatting fix. Adjust recursive calls. For tcc_comparison,
26070 if swap_tree_comparison (code) is smaller than code, hash that
26071 and arguments in the other order. Hash CONVERT_EXPR the same
26072 as NOP_EXPR. For OEP_ADDRESS_OF hash MEM_REF with 0 offset
26073 of ADDR_EXPR of decl as the decl itself. Add or remove
26074 OEP_ADDRESS_OF from recursive flags as needed. For
26075 FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
26076 operands commutatively and only the third one normally.
26077 For internal CALL_EXPR hash in CALL_EXPR_IFN.
26079 2016-04-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
26081 * config/rtems.h (LIB_SPEC): Add -latomic.
26083 2016-04-27 Joel Sherrill <joel@rtems.org>
26085 * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
26086 xilink.ld and flags not relevant to RTEMS.
26088 2016-04-26 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
26090 * toplev.c (backend_init_target): Avoid calling init_reload when using
26093 2016-04-26 Jakub Jelinek <jakub@redhat.com>
26095 * reorg.c (try_merge_delay_insns): Declare i and j inside the
26096 for loops rather than one for the whole function.
26098 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
26100 * match.pd (X + CST CMP X): New transformation.
26102 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
26104 * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
26105 * fold-const.c (fold_binary_loc): Remove 2 transformations
26106 superseded by match.pd.
26107 * match.pd (x+x -> x*2): Generalize to integers.
26109 2016-04-26 Bernd Schmidt <bschmidt@redhat.com>
26111 * config/i386/i386.md (operation on memory peephole): Duplicate an
26112 existing peephole and adapt it to match lea rather than an operation
26115 PR rtl-optimization/57193
26116 * opts.c (default_options_table): Add OPT_frename_registers at -O2
26118 * doc/invoke.texi (-frename-registers, -O2): Update documentation.
26120 2016-04-26 Bin Cheng <bin.cheng@arm.com>
26122 * tree-if-conv.c (any_pred_load_store): New static variable.
26123 (if_convertible_gimple_assign_stmt_p): Remove parameter. Use
26124 any_pred_load_store instead of and_mask_load_store.
26125 (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
26126 (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
26127 (combine_blocks, tree_if_conversion): Ditto.
26129 2016-04-26 Bin Cheng <bin.cheng@arm.com>
26131 PR tree-optimization/70771
26132 PR tree-optimization/70775
26133 * tree-if-conv.c (if_convertible_phi_p): Remove check on special
26134 virtual PHI nodes. Delete parameter.
26135 (if_convertible_loop_p_1): Delete argument to above function.
26136 (predicate_all_scalar_phis): Delete code handling single-argument
26138 (tree_if_conversion): Mark and update virtual SSA.
26140 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26143 * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
26144 (x86_elf_aligned_common): Rename to ...
26145 (x86_elf_aligned_decl_common): ... this.
26146 Add decl arg. Switch to .lbss for largecomm object. Use
26147 LARGECOMM_SECTION_ASM_OP.
26148 * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
26150 * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
26151 (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
26153 * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
26154 [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
26156 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26159 * config/i386/i386.c (SECTION_LARGE): Define.
26160 (x86_64_elf_select_section): Set it for large data/bss sections.
26161 Only clear SECTION_WRITE for .lrodata.
26162 (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
26164 * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
26165 * varasm.c (default_elf_asm_named_section): Grow flagchars.
26166 [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
26168 * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
26169 * doc/tm.texi: Regenerate.
26171 2016-04-26 Jakub Jelinek <jakub@redhat.com>
26174 * configure.ac (--enable-checking): Document extra flag, for
26175 non-release builds default to --enable-checking=yes,extra.
26176 If misc checking and extra checking, define CHECKING_P to 2 instead
26178 * common.opt (fchecking=): Add.
26179 * doc/invoke.texi (-fchecking=): Document.
26180 * doc/install.texi: Document --enable-checking changes.
26181 * configure: Regenerated.
26182 * config.in: Regenerated.
26184 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
26186 * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
26187 attribute instead of which_alternative.
26188 * config/i386/sse.md (*mov<mode>_internal): Ditto.
26189 Use EXT_REX_SSE_REG_P where appropriate.
26191 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
26193 * config/i386/predicates.md (const0_operand): Do not match
26194 const_wide_int code.
26195 (const1_operand): Ditto.
26197 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
26199 * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
26200 for SSE constm1 operands and TARGET_AVX512VL.
26201 (*movti_internal): Ditto.
26202 (*mov<mode>_or): Use constm1_operand predicate.
26203 * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
26204 for SSE vector_all_ones operands and TARGET_AVX512VL.
26205 * config/i386/predicates.md (constm1_operand): New predicate.
26206 * config/i386/i386.c (standard_sse_constant_opcode): Simplify
26207 emission of constant -1 load.
26209 2016-04-25 Jason Merrill <jason@redhat.com>
26211 * gdbinit.in: Skip is-a.h.
26213 * attribs.c (register_scoped_attributes): Fix logic.
26214 * attribs.h: Declare register_scoped_attributes.
26216 2016-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26218 * config/rs6000/rs6000-builtin.def: Correct pasto error for
26219 stxvd2x and stxvw4x built-in functions.
26221 2016-04-25 DJ Delorie <dj@redhat.com>
26223 * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
26224 (ashrhi3): Likewise.
26225 (lshrhi3): Likewise.
26227 2016-04-25 Richard Biener <rguenther@suse.de>
26229 PR tree-optimization/70780
26230 * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
26231 wasn't visited yet.
26232 (compute_antic): Mark blocks with abnormal preds as visited as
26233 they have a final empty antic-in solution already.
26235 2016-04-25 Michael Collison <michael.collison@linaro.org>
26237 * ChangeLog(2016-04-25): Fix ChangeLog formatting.
26239 2016-04-25 Michael Collison <michael.collison@linaro.org>
26241 * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
26242 mode is VQI to improve mixed mode vectorization.
26243 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
26244 define_insn to match low half of signed vaddw.
26245 * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
26246 define_insn to match high half of signed vaddw.
26247 * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
26248 define_insn to match low half of unsigned vaddw.
26249 * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
26250 define_insn to match high half of unsigned vaddw.
26251 * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
26252 (arm_simd_check_vect_par_cnst_half_p): Likewise.
26253 * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
26255 (arm_simd_check_vect_par_cnst_half_p): Likewise.
26256 * config/arm/predicates.md (vect_par_constant_high): Support
26257 big endian and simplify by calling
26258 arm_simd_check_vect_par_cnst_half
26259 (vect_par_constant_low): Likewise.
26261 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
26263 * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
26264 predicate for operand 2.
26266 2016-04-24 Uros Bizjak <ubizjak@gmail.com>
26267 H.J. Lu <hongjiu.lu@intel.com>
26269 * config/i386/i386-protos.h (standard_sse_constant_p): Add
26270 machine_mode argument.
26271 * config/i386/i386.c (standard_sse_constant_p): Return 2 for
26272 constm1_rtx operands. For VOIDmode constants, get mode from
26273 pred_mode. Check mode size if the mode is supported by ABI.
26274 (standard_sse_constant_opcode): Do not use standard_constant_p.
26275 Strictly check ABI support for all-ones operands.
26276 (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
26277 immediates. Update calls to standard_sse_constant_p.
26278 (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
26279 (ix86_rtx_costs): Ditto.
26280 * config/i386/i386.md (*movxi_internal_avx512f): Use
26281 nonimmediate_or_sse_const_operand instead of vector_move_operand.
26282 Use (v,BC) alternative instead of (v,C). Use register_operand
26283 checks instead of MEM_P.
26284 (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
26285 of vector_move_operand. Add (v,BC) alternative and corresponding avx2
26286 isa attribute. Use register_operand checks instead of MEM_P.
26287 (*movti_internal): Use nonimmediate_or_sse_const_operand for
26288 TARGET_SSE. Improve TARGET_SSE insn constraint. Add (v,BC)
26289 alternative and corresponding sse2 isa attribute.
26290 (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
26291 to standard_sse_constant_p.
26292 (FP constant splitters): Ditto.
26293 * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
26295 * config/i386/predicates.md (constm1_operand): Remove.
26296 (nonimmediate_or_sse_const_operand): Rewrite using RTX.
26297 * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
26298 vector_all_ones_operand instead of constm1_operand.
26300 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26302 * print-rtl.c (print_rtx_insn_vec): New function.
26303 * print-rtl.h: New prototype.
26304 * store-motion.c (struct st_expr): Make avail_stores a vector.
26305 (st_expr_entry): Adjust.
26306 (free_st_expr_entry): Likewise.
26307 (print_store_motion_mems): Likewise.
26308 (find_moveable_store): Likewise.
26309 (compute_store_table): Likewise.
26310 (delete_store): Likewise.
26311 (build_store_vectors): Likewise.
26313 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26315 * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
26317 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26319 * vec.h (vec_safe_contains): New function.
26320 (vec::contains): Likewise.
26321 (vec::begin): Likewise.
26322 (vec::end): Likewise.
26324 2016-04-23 Jakub Jelinek <jakub@redhat.com>
26327 * cfgexpand.c (expand_stack_vars): Fix typo.
26329 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
26331 * system.h (list, map, set, vector): Include conditionally.
26332 * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
26333 * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
26334 * ipa-icf.c (INCLUDE_LIST): Define.
26335 * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
26336 * config/sh/sh.c (INCLUDE_VECTOR): Define.
26337 * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
26338 (INCLUDE_LIST, INCLUDE_VECTOR): Define.
26339 * cp/logic.cc (INCLUDE_LIST): Define.
26340 * fortran/trans-common.c (INCLUDE_MAP): Define.
26342 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
26344 * auto-profile.c: Remove <string.h> include.
26345 * ipa-icf-gimple.c: Remove <list> include.
26346 * diagnostic.c: Remove <new> include.
26347 * genmatch.c: Likewise.
26348 * pretty-print.c: Likewise.
26349 * toplev.c: Likewise
26350 * c/c-objc-common.c: Likewise.
26351 * cp/error.c: Likewise.
26352 * fortran/error.c: Likewise.
26354 2016-04-22 Richard Biener <rguenther@suse.de>
26356 * lto-streamer-in.c (input_ssa_names): Do not allocate
26357 GIMPLE_NOP for all SSA names.
26358 * lto-streamer-out.c (output_ssa_names): Do not output
26359 SSA names that should have been released.
26361 2016-04-22 Richard Biener <rguenther@suse.de>
26363 PR tree-optimization/70740
26364 * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
26367 2016-04-21 H.J. Lu <hongjiu.lu@intel.com>
26370 * config/i386/predicates.md (call_insn_operand): Replace
26371 sibcall_memory_operand with memory_operand.
26373 2016-04-21 Patrick Palka <ppalka@gcc.gnu.org>
26375 * tree-vrp.c (register_edge_assert_for_2): Remove redundant
26376 has_single_use() tests.
26377 (register_edge_assert_for_1): Likewise.
26378 (find_assert_locations_1): Check the liveness bitmap instead of
26379 checking has_single_use().
26381 2016-04-21 Kirill Yukhin <kirill.yukhin@intel.com>
26384 * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
26385 Extract AVX-512BW constraint from AVX.
26387 2016-04-21 Richard Biener <rguenther@suse.de>
26389 PR tree-optimization/70725
26390 * tree-if-conv.c (if_convertible_phi_p): Adjust guard
26391 for phi_convertible_by_degenerating_args.
26392 (predicate_all_scalar_phis): Handle single-argument PHIs.
26394 2016-04-21 Richard Biener <rguenther@suse.de>
26396 PR middle-end/70747
26397 * fold-const.c (fold_comparison): Return properly typed
26400 2016-04-21 Bin Cheng <bin.cheng@arm.com>
26402 PR tree-optimization/70715
26403 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
26404 after expanding BASE using expand_simple_operations.
26406 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
26408 * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
26409 New transformations.
26411 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
26413 * match.pd (min(int_max, x), max(int_min, x)): New transformations.
26415 2016-04-20 Jan Hubicka <jh@suse.cz>
26417 * ipa-inline.c (can_inline_edge_p): Pass caller info to
26418 ultiimate_alias_target.
26419 (update_callee_keys): Likewise.
26420 (lookup_recursive_calls): Likewise.
26421 (speculation_useful_p): Likewise.
26423 2016-04-20 Jan Hubicka <jh@suse.cz>
26426 * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
26427 (set_nothrow_flag_1): ... this; handle interposition correctly;
26428 recurse on aliases and thunks.
26429 (cgraph_node::set_nothrow_flag): New.
26430 * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
26431 functions compiled with non-call exceptions that binds to current
26433 (propagate_nothrow): Be safe WRT interposition.
26434 * cgraph.h (set_nothrow_flag): Update prototype.
26436 2016-04-18 Jan Hubicka <jh@suse.cz>
26438 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
26439 max_loop_iterations_int.
26440 (tree_unswitch_outer_loop): Likewise.
26442 2016-04-20 Bin Cheng <bin.cheng@arm.com>
26444 PR tree-optimization/69489
26445 * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
26446 (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
26447 Revise dump message.
26448 (if_convertible_bb_p): Remove check on edge count of basic block's
26451 2016-04-20 Bin Cheng <bin.cheng@arm.com>
26453 PR tree-optimization/56625
26454 PR tree-optimization/69489
26455 * tree-data-ref.h (DR_INNERMOST): New macro.
26456 * tree-if-conv.c (innermost_loop_behavior_hash): New class for
26457 hashing struct innermost_loop_behavior.
26458 (ref_DR_map): Remove.
26459 (innermost_DR_map): New map.
26460 (baseref_DR_map): Revise comment.
26461 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
26462 to innermost_DR_map accroding to its innermost loop behavior.
26463 (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
26464 to its innermost loop behavior.
26465 (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
26466 Add initialization for innermost_DR_map. Record memory reference
26467 in DR_BASE_ADDRESS if the reference is compound one or it doesn't
26468 have innermost loop behavior.
26469 (if_convertible_loop_p): Remove release for ref_DR_map. Release
26472 2016-04-20 Uros Bizjak <ubizjak@gmail.com>
26474 * config/i386/i386.md (*lea<mode>_general_1): Rename from
26475 *lea_general_1. Use explicit SWI12 mode interator.
26476 (*lea<mode>_general_2): Rename from *lea_general_2.
26477 Use explicit SWI12 mode interator.
26478 (*lea<mode>_general_3): Rename from *lea_general_3.
26479 Use explicit SWI12 mode interator.
26480 (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
26481 Use explicit SWI12 mode interator.
26482 (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
26483 Use explicit SWI48 mode interator.
26485 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
26487 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
26488 Short-cut unaligned load and store cases. Handle all integer
26490 (ix86_expand_vector_move_misalign): Short-cut unaligned load
26491 and store cases. Call ix86_avx256_split_vector_move_misalign
26492 directly without checking mode class.
26494 2016-04-20 Andrew Pinski <apinski@cavium.com>
26495 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26498 * config/aarch64/aarch64.md (sibcall): Force call
26499 address to be DImode for ILP32.
26500 (sibcall_value): Likewise.
26502 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
26504 * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
26506 2016-04-20 Richard Biener <rguenther@suse.de>
26508 * gimple-match.h (maybe_build_generic_op): Adjust prototype.
26509 * gimple-match-head.c (maybe_build_generic_op): Pass all ops
26510 by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
26511 (maybe_push_res_to_seq): Adjust.
26512 * gimple-fold.c (maybe_build_generic_op): Likewise.
26514 2016-04-20 Marek Polacek <polacek@redhat.com>
26516 * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
26519 2016-04-20 Ilya Enkovich <ilya.enkovich@intel.com>
26521 * config/i386/sse.md (vec_unpacks_lo_hi): Always
26522 use kmovw to support AVX512F target.
26524 2016-04-20 Bin Cheng <bin.cheng@arm.com>
26526 * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
26528 2016-04-20 Marek Polacek <polacek@redhat.com>
26530 PR tree-optimization/70725
26531 * tree-if-conv.c (is_false_predicate): New function.
26532 (predicate_mem_writes): Use it.
26534 2016-04-20 Richard Biener <rguenther@suse.de>
26536 PR tree-optimization/70726
26537 * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
26538 shift amounts from a pattern stmt operand.
26540 2016-04-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26543 * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
26544 stack_restore_from_fpr pattern when restoring r15.
26545 (s390_optimize_prologue): Strip away the memory barrier in the
26546 parallel when trying to get rid of restore insns.
26547 * config/s390/s390.md ("stack_restore_from_fpr"): New insn
26548 definition for loading the stack pointer from an FPR. Compared to
26549 the normal move insn this pattern includes a full memory barrier.
26551 2016-04-19 Jakub Jelinek <jakub@redhat.com>
26553 PR middle-end/70680
26554 * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
26555 implicitly linear or lastprivate iterator on the outer context.
26557 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
26559 * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
26561 * config/i386/i386.md (ssememalign): Removed.
26562 * config/i386/sse.md: Remove ssememalign attribute from patterns.
26564 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
26567 * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
26568 const short * to __builtin_ia32_loaddquhi512_mask.
26569 (_mm512_maskz_loadu_epi16): Likewise.
26570 (_mm512_mask_storeu_epi16): Pass short * to
26571 __builtin_ia32_storedquhi512_mask.
26572 (_mm512_mask_loadu_epi8): Pass const char * to
26573 __builtin_ia32_loaddquqi512_mask.
26574 (_mm512_maskz_loadu_epi8): Likewise.
26575 (_mm512_mask_storeu_epi8): Pass char * to
26576 __builtin_ia32_storedquqi512_mask.
26577 * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
26578 const double * to __builtin_ia32_loadupd512_mask.
26579 (_mm512_mask_loadu_pd): Likewise.
26580 (_mm512_maskz_loadu_pd): Likewise.
26581 (_mm512_storeu_pd): Pass double * to
26582 __builtin_ia32_storeupd512_mask.
26583 (_mm512_mask_storeu_pd): Likewise.
26584 (_mm512_loadu_ps): Pass const float * to
26585 __builtin_ia32_loadups512_mask.
26586 (_mm512_mask_loadu_ps): Likewise.
26587 (_mm512_maskz_loadu_ps): Likewise.
26588 (_mm512_storeu_ps): Pass float * to
26589 __builtin_ia32_storeups512_mask.
26590 (_mm512_mask_storeu_ps): Likewise.
26591 (_mm512_mask_loadu_epi64): Pass const long long * to
26592 __builtin_ia32_loaddqudi512_mask.
26593 (_mm512_maskz_loadu_epi64): Likewise.
26594 (_mm512_mask_storeu_epi64): Pass long long *
26595 to __builtin_ia32_storedqudi512_mask.
26596 (_mm512_loadu_si512): Pass const int * to
26597 __builtin_ia32_loaddqusi512_mask.
26598 (_mm512_mask_loadu_epi32): Likewise.
26599 (_mm512_maskz_loadu_epi32): Likewise.
26600 (_mm512_storeu_si512): Pass int * to
26601 __builtin_ia32_storedqusi512_mask.
26602 (_mm512_mask_storeu_epi32): Likewise.
26603 * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
26604 char * to __builtin_ia32_storedquqi256_mask.
26605 (_mm_mask_storeu_epi8): Likewise.
26606 (_mm256_mask_loadu_epi16): Pass const short * to
26607 __builtin_ia32_loaddquhi256_mask.
26608 (_mm256_maskz_loadu_epi16): Likewise.
26609 (_mm_mask_loadu_epi16): Pass const short * to
26610 __builtin_ia32_loaddquhi128_mask.
26611 (_mm_maskz_loadu_epi16): Likewise.
26612 (_mm256_mask_loadu_epi8): Pass const char * to
26613 __builtin_ia32_loaddquqi256_mask.
26614 (_mm256_maskz_loadu_epi8): Likewise.
26615 (_mm_mask_loadu_epi8): Pass const char * to
26616 __builtin_ia32_loaddquqi128_mask.
26617 (_mm_maskz_loadu_epi8): Likewise.
26618 (_mm256_mask_storeu_epi16): Pass short * to.
26619 __builtin_ia32_storedquhi256_mask.
26620 (_mm_mask_storeu_epi16): Pass short * to.
26621 __builtin_ia32_storedquhi128_mask.
26622 * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
26623 const double * to __builtin_ia32_loadupd256_mask.
26624 (_mm256_maskz_loadu_pd): Likewise.
26625 (_mm_mask_loadu_pd): Pass onst double * to
26626 __builtin_ia32_loadupd128_mask.
26627 (_mm_maskz_loadu_pd): Likewise.
26628 (_mm256_mask_storeu_pd): Pass double * to
26629 __builtin_ia32_storeupd256_mask.
26630 (_mm_mask_storeu_pd): Pass double * to
26631 __builtin_ia32_storeupd128_mask.
26632 (_mm256_mask_loadu_ps): Pass const float * to
26633 __builtin_ia32_loadups256_mask.
26634 (_mm256_maskz_loadu_ps): Likewise.
26635 (_mm_mask_loadu_ps): Pass const float * to
26636 __builtin_ia32_loadups128_mask.
26637 (_mm_maskz_loadu_ps): Likewise.
26638 (_mm256_mask_storeu_ps): Pass float * to
26639 __builtin_ia32_storeups256_mask.
26640 (_mm_mask_storeu_ps): ass float * to
26641 __builtin_ia32_storeups128_mask.
26642 (_mm256_mask_loadu_epi64): Pass const long long * to
26643 __builtin_ia32_loaddqudi256_mask.
26644 (_mm256_maskz_loadu_epi64): Likewise.
26645 (_mm_mask_loadu_epi64): Pass const long long * to
26646 __builtin_ia32_loaddqudi128_mask.
26647 (_mm_maskz_loadu_epi64): Likewise.
26648 (_mm256_mask_storeu_epi64): Pass long long * to
26649 __builtin_ia32_storedqudi256_mask.
26650 (_mm_mask_storeu_epi64): Pass long long * to
26651 __builtin_ia32_storedqudi128_mask.
26652 (_mm256_mask_loadu_epi32): Pass const int * to
26653 __builtin_ia32_loaddqusi256_mask.
26654 (_mm256_maskz_loadu_epi32): Likewise.
26655 (_mm_mask_loadu_epi32): Pass const int * to
26656 __builtin_ia32_loaddqusi128_mask.
26657 (_mm_maskz_loadu_epi32): Likewise.
26658 (_mm256_mask_storeu_epi32): Pass int * to
26659 __builtin_ia32_storedqusi256_mask.
26660 (_mm_mask_storeu_epi32): Pass int * to
26661 __builtin_ia32_storedqusi128_mask.
26662 * config/i386/i386-builtin-types.def (PCSHORT): New.
26663 (PINT64): Likewise.
26664 (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
26665 (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
26666 (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
26667 (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
26668 (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
26669 (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
26670 (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
26671 (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
26672 (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
26673 (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
26674 (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
26675 (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
26676 (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
26677 (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
26678 (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
26679 (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
26680 (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
26681 (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
26682 (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
26683 (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
26684 (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
26685 (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
26686 (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
26687 (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
26688 (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
26689 (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
26690 (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
26691 (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
26692 (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
26693 (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
26694 (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
26695 (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
26696 (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
26697 (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
26698 (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
26699 (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
26700 (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
26701 (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
26702 (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
26703 (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
26704 (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
26705 (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
26706 (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
26707 (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
26708 (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
26709 (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
26710 (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
26711 (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
26712 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
26714 (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
26715 (ix86_avx256_split_vector_move_misalign): Don't use unaligned
26717 (ix86_expand_vector_move_misalign): Likewise.
26718 (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
26719 to scalar function prototype for unaligned load/store builtins.
26720 (ix86_expand_special_args_builtin): Updated.
26721 * config/i386/sse.md (UNSPEC_LOADU): Removed.
26722 (UNSPEC_STOREU): Likewise.
26723 (VI_ULOADSTORE_BW_AVX512VL): Likewise.
26724 (VI_ULOADSTORE_F_AVX512VL): Likewise.
26725 (ssescalarsize): Handle V4TI, V2TI and V1TI.
26726 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
26727 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
26728 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
26729 (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
26730 (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
26731 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
26732 (sse2_avx_avx512f>_storedqu<mode>): Likewise.
26733 (<avx512>_storedqu<mode>_mask): Likewise.
26734 (*sse4_2_pcmpestr_unaligned): Likewise.
26735 (*sse4_2_pcmpistr_unaligned): Likewise.
26736 (*mov<mode>_internal): Renamed to ...
26737 (mov<mode>_internal): This. Remove check of AVX and IAMCU on
26738 misaligned operand. Replace vmovdqu64 with vmovdqu<ssescalarsize>.
26739 (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
26740 (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
26742 2016-04-19 Richard Biener <rguenther@suse.de>
26744 PR tree-optimization/70171
26745 * tree-ssa-phiprop.c: Include stor-layout.h.
26746 (phiprop_insert_phi): Handle the aggregate copy case.
26747 (propagate_with_phi): Likewise.
26749 2016-04-19 Uros Bizjak <ubizjak@gmail.com>
26751 * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
26752 instead of simplify_gen_subreg (... , 0).
26753 (ix86_delegitimize_address): Ditto.
26754 (ix86_split_divmod): Ditto.
26755 (ix86_split_copysign_const): Ditto.
26756 (ix86_split_copysign_var): Ditto.
26757 (ix86_expand_args_builtin): Ditto.
26758 (ix86_expand_round_builtin): Ditto.
26759 (ix86_expand_special_args_builtin): Ditto.
26760 * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
26761 (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
26762 (udivmodqi4): Ditto.
26763 (absneg splitters): Ditto.
26764 (*jcc_bt<mode>_1): Ditto.
26766 2016-04-19 Richard Biener <rguenther@suse.de>
26768 PR tree-optimization/70724
26769 * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
26770 restoring out from ...
26771 (free_scc_vn): ... here.
26772 * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
26773 * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
26775 (pass_fre::execute): Restore SSA info.
26777 2016-04-19 Richard Biener <rguenther@suse.de>
26779 * gimple-walk.h (struct walk_stmt_info): Add stmt member.
26780 * gimple-walk.c (walk_gimple_op): Initialize it.
26781 (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
26782 * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
26783 remapping SSA names of defs.
26784 (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
26787 2016-04-18 Vladimir Makarov <vmakarov@redhat.com>
26789 PR middle-end/70689
26790 * lra-constraints.c (equiv_substition_p): New.
26791 (process_alt_operands): Use it.
26792 (swap_operands): Swap it.
26793 (curr_insn_transform): Update it.
26795 2016-04-18 Michael Matz <matz@suse.de>
26797 * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
26798 (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
26799 * tree-core.h (tree_type_common.align): Use bit-field.
26800 (tree_type_common.spare): New.
26801 (tree_decl_common.off_align): Make smaller.
26802 (tree_decl_common.align): Use bit-field.
26804 * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
26805 * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
26806 (scan_sharing_clauses): Ditto.
26807 (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
26808 (omp_finish_file): Ditto.
26809 * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
26810 (layout_decl): Ditto.
26811 (relayout_decl): Ditto.
26812 (finalize_record_size): Use SET_TYPE_ALIGN.
26813 (finalize_type_size): Ditto.
26814 (finish_builtin_struct): Ditto.
26815 (layout_type): Ditto.
26816 (initialize_sizetypes): Ditto.
26817 * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
26818 * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
26819 (lookup_field_for_decl): Use SET_DECL_ALIGN.
26820 (get_chain_field): Ditto.
26821 (get_trampoline_type): Ditto.
26822 (get_nl_goto_field): Ditto.
26823 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
26825 (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
26826 * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
26827 * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
26828 (build_qualified_type): Use SET_TYPE_ALIGN.
26829 (build_aligned_type, build_range_type_1): Ditto.
26830 (build_atomic_base): Ditto.
26831 (build_common_tree_nodes): Ditto.
26832 * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
26833 (expand_one_stack_var_at): Ditto.
26834 * coverage.c (build_var): Use SET_DECL_ALIGN.
26835 * except.c (init_eh): Ditto.
26836 * function.c (assign_parm_setup_block): Ditto.
26837 * symtab.c (increase_alignment_1): Ditto.
26838 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
26839 * tree-vect-stmts.c (ensure_base_align): Ditto.
26840 * varasm.c (align_variable): Ditto.
26841 (assemble_variable): Ditto.
26842 (build_constant_desc): Ditto.
26843 (output_constant_def_contents): Ditto.
26845 * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
26846 * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
26847 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
26848 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
26849 * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
26851 2016-04-18 H.J. Lu <hongjiu.lu@intel.com>
26854 * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
26855 replace %vmovsd with "%vmovq".
26856 (vec_concatv2df): Likewise.
26858 2016-04-18 Uros Bizjak <ubizjak@gmail.com>
26860 * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
26861 (*vec_extractv2si_0): Ditto.
26862 * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
26863 (zero_extended_scalar_load_operand splitters): Ditto.
26864 (vec_extract splitters): Ditto.
26865 (*vec_extractv4si_0_zext): Ditto.
26866 (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
26867 and lowpart_subreg.
26868 (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
26869 (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
26870 (*sse4_1_extractps): Use lowpart_subreg.
26871 * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
26873 2016-04-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26875 * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
26877 (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
26878 Mention Solaris 11 packaging changes.
26879 Update gas and gld requirements.
26880 Remove reference to pre-Solaris 10 bug.
26881 (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
26883 (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
26886 2016-04-17 Jan Hubicka <jh@suse.cz>
26888 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
26889 max_loop_iterations_int.
26891 2016-04-18 Richard Biener <rguenther@suse.de>
26893 PR tree-optimization/43434
26894 * tree-ssa-structalias.c (struct vls_data): New.
26895 (visit_loadstore): Handle all pointer-based accesses.
26896 (compute_dependence_clique): Compute a bitmap of restrict tags
26897 assigned bases and pass it to visit_loadstore.
26899 2016-04-18 Matthew Wahab <matthew.wahab@arm.com>
26902 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
26903 armv8.1-a and armv8.1-a+crc.
26905 2016-04-18 Richard Biener <rguenther@suse.de>
26907 PR tree-optimization/70701
26908 * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
26909 references after translating through a memcpy.
26911 2016-04-18 Richard Biener <rguenther@suse.de>
26913 * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
26914 (compute_antic): ... here. For partial antic use regular
26915 postorder and scrap iteration.
26916 (compute_partial_antic_aux): Remove unused return value.
26917 (init_pre): Do not allocate postorder.
26918 (fini_pre): Do not free postorder.
26920 2016-04-18 Richard Biener <rguenther@suse.de>
26922 PR middle-end/37870
26923 * expmed.c (extract_bit_field_1): Remove broken case
26924 using a wider MODE_INT mode.
26926 2016-04-18 Segher Boessenkool <segher@kernel.crashing.org>
26928 * has-brig.c (lendian16): Don't try to use __builtin_bswap16
26929 unless compiling with at least GCC-4.8.
26931 2016-04-17 Jan Hubicka <jh@suse.cz>
26934 * graphite.c (graphite_finalize): Update call to
26935 tree_estimate_probability.
26936 * predict.h (tree_estimate_probability): Update prototype.
26938 2016-04-17 Jan Hubicka <jh@suse.cz>
26940 * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
26941 (tree_estimate_probability): Likewise.
26942 (pass_profile::execute): Update.
26943 (report_predictor_hitrates): New function.
26944 * profile.c (compute_branch_probabilities): Use it.
26945 * predict.h (report_predictor_hitrates): Declare.
26947 2016-04-17 Jan Hubicka <jh@suse.cz>
26950 * cgraph.h (cgraph_node::set_const_flag,
26951 cgraph_node::set_pure_flag): Update prototype to return bool;
26953 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
26954 of interposable symbol are interposable, too.
26955 (cgraph_set_const_flag_1): Rename to ...
26956 (set_const_flag_1): ... this one; change to self recursive function
26957 instead of call_for_symbol_thunks_and_aliases. Handle correctly
26958 clearnig the flag in all variants and also virtual thunks of const
26959 functions are pure; track if any change was done.
26960 (cgraph_node::set_const_flag): Update.
26961 (struct set_pure_flag_info): New struct.
26962 (cgraph_set_pure_flag_1): Rename to ...
26963 (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
26964 rather than pointer encoded flags; track if any changes was done;
26965 handle correctly clearning flag and setting flag of aliases already
26967 (cgraph_node::set_pure_flag): Update.
26968 (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
26970 2016-04-17 Tom de Vries <tom@codesourcery.com>
26973 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
26974 backslash in label.
26976 2016-04-17 Tom de Vries <tom@codesourcery.com>
26978 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
26979 '{}<> ' as escape-for-record.
26981 2016-04-17 Tom de Vries <tom@codesourcery.com>
26983 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
26986 2016-04-17 Tom de Vries <tom@codesourcery.com>
26989 * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
26990 * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
26991 * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
26992 * passes.c (finish_optimization_passes): Only call
26993 finish_graph_dump_file if dfi->graph_dump_initialized.
26994 (execute_function_dump, pass_init_dump_file): Use
26995 dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
26997 2016-04-17 Tom de Vries <tom@codesourcery.com>
26999 PR tree-optimization/70256
27000 * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
27001 (debug_varmap): New function.
27003 2016-04-17 Tom de Vries <tom@codesourcery.com>
27006 * passes.c (pass_manager::register_pass): Propagate pflags.
27008 2016-04-17 Tom de Vries <tom@codesourcery.com>
27011 * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
27012 * passes.c (pass_manager::pass_manager): Declare and init p_start in
27013 INSERT_PASSES_AFTER. Add pass parameter to TERMINATE_PASS_LIST, and
27014 check if it's equal to p_start.
27015 * passes.def: Add arguments to TERMINATE_PASS_LISTs.
27017 2016-04-15 Jan Hubicka <jh@suse.cz>
27020 * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
27021 function does not bind to current def.
27022 * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
27023 handle conservatively calls to functions that does not need to bind
27025 (check_call): Update call of worse_state.
27026 (ignore_edge_for_nothrow): Update.
27027 (ignore_edge_for_pure_const): Likewise.
27028 (propagate_pure_const): Update calls to worse_state.
27029 (skip_function_for_local_pure_const): Reformat comments.
27031 2016-04-15 Jan Hubicka <jh@suse.cz>
27034 * cgraph.c (cgraph_node::get_availability): Add REF parameter.
27035 (cgraph_node::function_symbol): Likewise.
27036 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
27037 * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
27038 (symtab_node::ultimate_alias_target): Add REF parameter.
27039 (symtab_node::binds_to_current_def_p): Declare.
27040 (symtab_node;:ultimate_alias_target_1): Add REF parameter.
27041 (cgraph_node::function_symbol): Likewise.
27042 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
27043 (cgraph_node::get_availability): Likewise.
27044 (cgraph_edge::binds_to_current_def_p): New inline function.
27045 (varpool_node::get_availability): Add REF parameter.
27046 (varpool_node::ultimate_alias_target): Likewise.
27047 * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
27048 (symtab_node::binds_to_current_def_p): Likewise.
27049 * varpool.c (varpool_node::get_availability): Likewise.
27051 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
27054 * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
27055 Fix mode size check.
27057 2016-04-15 Jakub Jelinek <jakub@redhat.com>
27059 * BASE-VER: Set to 7.0.0.
27061 2016-04-15 Alexander Monakov <amonakov@ispras.ru>
27063 * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
27065 2016-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27067 * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
27068 architecture revisions.
27070 2016-04-15 Bernd Schmidt <bschmidt@redhat.com>
27072 * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
27073 * config/i386/i386.c (ix86_using_red_zone): No longer static.
27074 * config/i386/i386.md (stack decrement to push peepholes): Guard
27075 with !x86_using_red_zone ().
27077 2016-04-15 Jakub Jelinek <jakub@redhat.com>
27080 * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
27081 to dump_generic_node.
27082 (NIY): Pass also flags to do_niy.
27084 2016-04-15 Thomas Schwinge <thomas@codesourcery.com>
27086 * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
27087 (simd_clone_vector_of_formal_parm_types)
27088 (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
27089 (simd_clone_mangle, simd_clone_create)
27090 (simd_clone_adjust_return_type, create_tmp_simd_array)
27091 (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
27092 (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
27093 (ipa_simd_modify_function_body, simd_clone_linear_addend)
27094 (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
27095 (pass_data_omp_simd_clone, class pass_omp_simd_clone)
27096 (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
27097 * omp-simd-clone.c: ... this new file.
27098 (simd_clone_vector_of_formal_parm_types): Make it static.
27099 * Makefile.in (OBJS): Add omp-simd-clone.o.
27101 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
27104 * config/i386/sse.md: Use proper memory operand modifiers.
27107 2016-04-15 Richard Biener <rguenther@suse.de>
27108 Alan Modra <amodra@gmail.com>
27110 PR tree-optimization/70130
27111 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
27112 when alignment stays not the same and no not use the realign
27115 2016-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
27118 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
27119 direct move handlers for KFmode. Change TFmode handlers test from
27120 FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
27122 2016-04-14 Jakub Jelinek <jakub@redhat.com>
27125 * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
27126 * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
27127 (inlined_polymorphic_ctor_dtor_block_p): Use it.
27128 * tree-ssa-live.c (remove_unused_scope_block_p): When
27129 in_ctor_dtor_block, avoid discarding not just BLOCKs with
27130 BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
27131 block_ultimate_origin is FUNCTION_DECL.
27132 (remove_unused_locals): If current_function_decl is
27133 polymorphic_ctor_dtor_p, pass initial true to
27134 remove_unused_scope_block_p' is_ctor_dtor_block.
27136 2016-04-14 Martin Sebor <msebor@redhat.com>
27141 * doc/extend.texi (Variable Length): Revert.
27143 2016-04-14 Marek Polacek <polacek@redhat.com>
27144 Jan Hubicka <hubicka@ucw.cz>
27147 * tree.c (verify_type): Disable the canonical type of main variant
27150 2016-04-14 Jason Merrill <jason@redhat.com>
27152 * cfgexpand.c, expr.c: Revert previous change.
27154 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
27156 PR middle-end/70643
27157 * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
27158 when building a mem ref for the incoming reduction variable.
27160 2016-04-14 Richard Biener <rguenther@suse.de>
27162 PR tree-optimization/70614
27163 * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
27164 loop if the evolution dropped to chrec_dont_know.
27165 (interpret_condition_phi): Likewise.
27167 2016-04-14 Richard Biener <rguenther@suse.de>
27169 PR tree-optimization/70623
27170 * tree-ssa-pre.c (changed_blocks): Make global ...
27171 (compute_antic): ... local here. Move and fix worklist
27172 handling here. Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
27173 (compute_antic_aux): Add dumping for MAX assumed succs. Remove
27174 worklist handling, dump when ANTIC_IN changed.
27175 (compute_partial_antic_aux): Remove worklist handling.
27176 (init_pre): Do not compute post dominators. Add a comment about
27177 the CFG order chosen.
27178 (fini_pre): Do not free post dominators.
27180 2016-04-13 Martin Sebor <msebor@redhat.com>
27185 * doc/extend.texi (Variable Length): Document C++ specifics.
27187 2016-04-13 Jakub Jelinek <jakub@redhat.com>
27190 * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
27191 on all recursive call stmts. Return TODO_cleanup_cfg if any dead
27192 eh edges have been purged.
27195 * tree-sra.c (create_access_replacement,
27196 get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
27198 * tree-pretty-print.c (dump_fancy_name): New function.
27199 (dump_decl_name, dump_generic_node): Use it.
27201 2016-04-13 Jason Merrill <jason@redhat.com>
27203 * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
27204 * expr.c (expand_expr_real_1): Likewise.
27206 2016-04-13 Ilya Enkovich <ilya.enkovich@intel.com>
27208 * config/i386/i386.md (kunpckhi): Swap operands.
27209 (kunpcksi): Likewise.
27210 (kunpckdi): Likewise.
27211 * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
27212 (vec_pack_trunc_<mode>): Likewise.
27214 2016-04-13 Jakub Jelinek <jakub@redhat.com>
27217 * explow.c (convert_memory_address_addr_space_1): Formatting fix.
27219 PR middle-end/70633
27220 * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
27221 gimplification turns some element into non-constant.
27224 * rtl.h (convert_memory_address_addr_space_1): New prototype.
27225 * explow.c (convert_memory_address_addr_space_1): No longer static,
27226 add NO_EMIT argument and don't call convert_modes if true, pass
27227 it down recursively, remove break after return.
27228 (convert_memory_address_addr_space): Adjust caller.
27229 * simplify-rtx.c (simplify_unary_operation_1): Call
27230 convert_memory_address_addr_space_1 instead of convert_memory_address,
27231 if it returns NULL, don't simplify.
27233 2016-04-12 Eric Botcazou <ebotcazou@adacore.com>
27236 * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
27238 2016-04-12 Jakub Jelinek <jakub@redhat.com>
27240 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
27241 Bump the upper SIMDLEN limits, so that if the return type or
27242 characteristic type if the return type is void can be passed in
27243 all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
27246 2016-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
27249 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
27250 Do not use "=" constraint on an input constraint.
27251 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
27252 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
27253 (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
27254 generates (neg (abs ...)) instead of (abs ...).
27256 2016-04-12 Jakub Jelinek <jakub@redhat.com>
27258 PR rtl-optimization/70596
27259 * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
27260 just invalidate LRA data and reset them. Adjust dump wording.
27262 2016-04-12 Martin Liska <mliska@suse.cz>
27265 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
27267 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
27269 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
27270 max_loop_iterations_int.
27271 (tree_unswitch_outer_loop): Likewise.
27272 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
27273 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
27275 2016-04-12 Tom de Vries <tom@codesourcery.com>
27277 PR tree-optimization/68756
27278 * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
27279 instead of new_name.
27281 2016-04-12 Jakub Jelinek <jakub@redhat.com>
27283 PR tree-optimization/70602
27284 * tree-sra.c (generate_subtree_copies): Don't write anything into
27285 constant pool decls.
27287 * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
27288 regardless whether there are depend clauses or not.
27290 2016-04-11 Michael Meissner <meissner@linux.vnet.ibm.com>
27293 * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
27294 target attribute and pragma from changing the -mfloat128
27295 and -mfloat128-hardware options.
27297 * doc/extend.texi (Additional Floating Types): Document PowerPC
27298 __float128 restrictions.
27300 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
27303 * config/aarch64/driver-aarch64.c
27304 (aarch64_get_extension_string_for_isa_flags): New.
27305 (arch_extension): Rename to...
27306 (aarch64_arch_extension): ...This.
27307 (ext_to_feat_string): Rename to...
27308 (aarch64_extensions): ...This.
27309 (aarch64_core_data): Keep track of architecture extension flags.
27310 (cpu_data): Rename to...
27311 (aarch64_cpu_data): ...This.
27312 (aarch64_arch_driver_info): Keep track of architecture extension
27314 (get_arch_name_from_id): Rename to...
27315 (get_arch_from_id): ...This, change return type.
27316 (host_detect_local_cpu): Update and reformat for renames, handle
27317 extensions through common infrastructure.
27319 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
27322 * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
27323 track of a canonical flag name.
27324 (all_extensions): Likewise.
27325 (arch_to_arch_name): Also track extension flags enabled by the arch.
27326 (all_architectures): Likewise.
27327 (aarch64_parse_extension): Move to here.
27328 (aarch64_get_extension_string_for_isa_flags): Take a new argument,
27330 (aarch64_rewrite_selected_cpu): Update for above change.
27331 * config/aarch64/aarch64-option-extensions.def: Rework the way flags
27332 are handled, such that the single explicit value enabled by an
27333 extension is kept seperate from the implicit values it also enables.
27334 * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
27336 (aarch64_parse_extension): New.
27337 * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
27338 here to config/aarch64/aarch64-protos.h.
27339 (aarch64_parse_extension): Move from here to
27340 common/config/aarch64/aarch64-common.c.
27341 (aarch64_option_print): Update.
27342 (aarch64_declare_function_name): Likewise.
27343 (aarch64_start_file): Likewise.
27344 * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
27345 the canonical flag for extensions.
27346 * config.gcc (aarch64*-*-*): Extend regex for capturing extension
27349 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
27351 * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
27354 2016-04-09 Tom de Vries <tom@codesourcery.com>
27356 PR tree-optimization/68953
27357 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
27358 first to last subscript.
27360 2016-04-09 Jakub Jelinek <jakub@redhat.com>
27362 PR tree-optimization/70586
27363 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
27366 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
27370 PR tree-optimization/70373
27371 PR middle-end/70533
27372 PR middle-end/70534
27373 PR middle-end/70535
27374 * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
27375 clauses for acc parallel reductions as necessary. Error on those
27377 * omp-low.c (scan_sharing_clauses): Don't install variables which
27378 are used in acc parallel reductions.
27379 (lower_rec_input_clauses): Remove dead code.
27380 (lower_oacc_reductions): Add support for reference reductions.
27381 (lower_reduction_clauses): Remove dead code.
27382 (lower_omp_target): Don't remap variables appearing in acc parallel
27384 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
27386 2016-04-08 Jakub Jelinek <jakub@redhat.com>
27388 PR middle-end/70593
27389 * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
27390 with multiple SSA_NAME defs, force the outputs other than first
27391 to be live before calling live_track_process_def on each output.
27393 PR rtl-optimization/70574
27394 * fwprop.c (forward_propagate_and_simplify): Don't add
27395 REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
27396 (try_fwprop_subst): Don't add REG_EQUAL note if there are any
27397 paradoxical subregs within *loc.
27399 2016-04-08 Thomas Schwinge <thomas@codesourcery.com>
27401 * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
27402 -ftree-parallelize-loops={0,1}.
27403 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
27404 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
27405 * config/ia64/hpux.h (LIB_SPEC): Likewise.
27406 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
27407 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
27409 2016-04-08 Maxim Ostapenko <m.ostapenko@samsung.com>
27412 * asan.c (instrument_derefs): If we get unknown location, extract it
27413 with EXPR_LOCATION.
27414 (maybe_instrument_call): Instrument gimple_call's arguments if needed.
27416 2016-04-08 Tom de Vries <tom@codesourcery.com>
27418 * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
27419 implicit firstprivate clause.
27421 2016-04-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27424 * config/arm/thumb2.md (tst + branch-> lsls + branch
27425 peephole below *orsi_not_shiftsi_si): Require that condition
27426 register is dead after the peephole.
27427 (second peephole after the above): Likewise.
27429 2016-04-08 Alan Modra <amodra@gmail.com>
27432 * builtins.c (fold_builtin_classify): For IBM extended precision,
27433 look at just the high-order double to test for NaN.
27434 (fold_builtin_interclass_mathfn): Similarly for Inf. For isnormal
27435 test just the high double for Inf but both doubles for subnormal
27438 2016-04-07 Jakub Jelinek <jakub@redhat.com>
27440 * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
27441 * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
27442 node->simdclone->mask_mode != VOIDmode masks.
27443 (simd_clone_adjust_argument_types): Likewise. Move sc var definition
27444 earlier, use it instead of node->simdclone.
27445 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
27446 Set clonei->mask_mode.
27448 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
27451 * parser.c (cp_parser_iteration_statement): New parameter IF_P.
27452 Pass it through to cp_parser_already_scoped_statement.
27453 (cp_parser_already_scoped_statement): New parameter IF_P. Pass
27454 it through to cp_parser_statement.
27455 (cp_parser_statement): Pass IF_P through to
27456 cp_parser_iteration_statement.
27457 (cp_parser_pragma): Adjust call to
27458 cp_parser_iteration_statement.
27460 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
27463 * gimplify.c (gimplify_omp_ordered): Add explicit braces to
27464 resolve a future -Wparentheses warning.
27465 * omp-low.c (scan_sharing_clauses): Likewise.
27466 * tree-parloops.c (eliminate_local_variables): Likewise.
27468 2016-04-06 Vladimir Makarov <vmakarov@redhat.com>
27470 PR rtl-optimization/70398
27471 * lra-constraints.c (process_address_1): Check zero scale and code
27472 for reloading with zero scale.
27474 2016-04-06 Uros Bizjak <ubizjak@gmail.com>
27476 * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
27477 (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
27479 2016-04-06 Jakub Jelinek <jakub@redhat.com>
27481 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
27482 Add support for AVX512F clones, include them by default for
27483 exported OpenMP declare simd functions. For AVX2 allow simdlen 32
27484 and use it if charasteric type is 8-bit, for AVX512F allow simdlen
27487 PR middle-end/70550
27488 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
27489 * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
27490 firstprivate clauses.
27491 * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
27492 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
27493 (lower_omp_target): Set TREE_NO_WARNING for
27494 non-addressable possibly uninitialized vars which are copied into
27495 addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
27497 2016-04-05 John David Anglin <danglin@gcc.gnu.org>
27499 * config/pa/predicates.md (integer_store_memory_operand): Accept
27500 REG+D operands with a large offset when reload_in_progress is true.
27501 (floating_point_store_memory_operand): Likewise.
27503 2016-04-05 Jakub Jelinek <jakub@redhat.com>
27506 * match.pd (nested int casts): Limit to GIMPLE.
27508 2016-04-05 Jan Hubicka <hubicka@ucw.cz>
27511 * ipa-devirt.c (maybe_record_node): Fix comment; use
27512 SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
27514 2016-04-05 Jakub Jelinek <jakub@redhat.com>
27516 PR rtl-optimization/70542
27517 * ree.c (add_removable_extension): For VECTOR_MODE_P punt
27518 if there are any uses other than insn or debug insns.
27520 2016-04-05 Marc Glisse <marc.glisse@inria.fr>
27521 Jakub Jelinek <jakub@redhat.com>
27523 PR tree-optimization/70509
27524 * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
27525 Shift HOST_WIDE_INT_1U instead of 1.
27527 2016-04-05 Zdenek Sojka <zsojka@seznam.cz>
27529 PR tree-optimization/70509
27530 * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
27531 of the vector base type for index.
27533 2016-04-05 Uros Bizjak <ubizjak@gmail.com>
27536 * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
27538 2016-04-05 Richard Biener <rguenther@suse.de>
27540 PR tree-optimization/70526
27541 * tree-sra.c (build_ref_for_offset): Use prev_base to
27542 extract the alias pointer type.
27544 2016-04-05 Richard Biener <rguenther@suse.de>
27546 * dse.c (struct store_info): Remove alias_set member.
27547 (struct read_info_type): Likewise.
27548 (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
27549 spill_deleted, clear_alias_set_lookup): Remove.
27550 (get_group_info): Remove dead base == NULL_RTX case.
27551 (dse_step0): Remove initialization of removed variables.
27552 (delete_dead_store_insn): Reomve alias set dumping.
27553 (free_read_records): Remove alias_set handling.
27554 (canon_address): Remove alias_set_out parameter.
27555 (record_store): Remove spill_alias_set, it's always zero.
27556 (check_mem_read_rtx): Likewise.
27557 (dse_step2): Rename from ...
27558 (dse_step2_nospill): ... this. Adjust.
27559 (scan_stores): Rename from ...
27560 (scan_stores_nospill): ... this.
27561 (scan_reads): Rename from ...
27562 (scan_reads_nospill): ... this.
27563 (scan_stores_spill, scan_reads_spill): Remove.
27564 (dse_step3_scan): Remove for_spills argument which is always false.
27565 (dse_step3): Likewise.
27566 (dse_step5): Rename from ...
27567 (dse_step5_nospill): ... this. Remove alias_set handling.
27568 (rest_of_handle_dse): Adjust.
27570 2016-04-05 Jakub Jelinek <jakub@redhat.com>
27573 * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
27574 Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
27575 V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
27576 (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
27578 2016-04-05 Richard Biener <rguenther@suse.de>
27580 PR middle-end/70499
27581 * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
27582 non-register type temporaries into SSA.
27584 2016-04-04 Jan Hubicka <hubicka@ucw.cz>
27587 * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
27588 calls when sanitizing.
27589 (possible_polymorphic_call_target_p): Fix formatting.
27591 2016-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27592 Jakub Jelinek <jakub@redhat.com>
27594 PR middle-end/70457
27595 * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
27596 to ensure a call statement is compatible with a built-in's
27598 * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
27601 2016-04-04 Richard Biener <rguenther@suse.de>
27603 PR rtl-optimization/70484
27604 * rtl.h (canon_output_dependence): Declare.
27605 * alias.c (canon_output_dependence): New function.
27606 * dse.c (record_store): Use canon_output_dependence rather
27607 than canon_true_dependence.
27609 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
27612 * cgraph.h (symtab_node::copy_visibility_from): New function.
27613 * symtab.c (symtab_node::copy_visibility_from): New function.
27614 * ipa-visibility.c (optimize_weakref): New function.
27615 (function_and_variable_visibility): Use it.
27617 2016-04-04 Martin Liska <mliska@suse.cz>
27620 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
27621 value that is really in range handled by SBR instruction.
27622 * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
27623 * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
27624 * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
27626 2016-04-03 Oleg Endo <olegendo@gcc.gnu.org>
27630 * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
27631 set, but not for SP_REG operands.
27633 2016-04-02 Martin Sebor <msebor@redhat.com>
27636 * fold-const.c (maybe_nonzero_address): New function.
27637 (fold_comparison): Call it. Fold equality and relational
27638 expressions involving null pointers.
27639 (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
27641 2016-03-31 Evandro Menezes <e.menezes@samsung.com>
27643 Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
27644 the "Y" constraint (scalar FP 0.0 immediate).
27646 * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
27647 Add the "const_double" to the list of operand constraints.
27649 2016-04-01 Jakub Jelinek <jakub@redhat.com>
27651 PR rtl-optimization/70467
27652 * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
27653 If low word of the last operand is 0, just emit addition/subtraction
27656 2016-04-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27659 * config/s390/s390.c (s390_expand_insv): Check for everything
27660 constant instead of just VOIDmode stuff.
27662 2016-04-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27665 * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
27667 2016-04-01 Nathan Sidwell <nathan@acm.org>
27669 * tree.def (TRY_CATCH_EXPR): Correct documentation.
27671 2016-03-31 Vladimir Makarov <vmakarov@redhat.com>
27673 PR rtl-optimization/70461
27674 * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
27677 2016-03-31 Martin Liska <mliska@suse.cz>
27680 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
27681 a tree value or an immediate integer value to a buffer
27682 that is eventually copied to a BRIG section.
27683 (emit_immediate_operand): Call the function here.
27684 * hsa-dump.c (dump_hsa_immed): Remove checking assert.
27685 * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
27686 of class' fields that are removed.
27687 (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
27688 * hsa.h (class hsa_op_immed): Remove m_brig_repr and
27689 m_brig_repr_size fields.
27691 2016-03-31 Martin Liska <mliska@suse.cz>
27694 * hsa-gen.c (hsa_function_representation::update_dominance): New
27696 (convert_addr_to_flat_segment): Likewise.
27697 (gen_hsa_memory_set): New alignment argument.
27698 (gen_hsa_ctor_assignment): Likewise.
27699 (gen_hsa_insns_for_single_assignment): Provide alignment
27700 to gen_hsa_ctor_assignment.
27701 (gen_hsa_insns_for_direct_call): Add new argument.
27702 (expand_lhs_of_string_op): New function.
27703 (expand_string_operation_builtin): Likewise.
27704 (expand_memory_copy): New function.
27705 (expand_memory_set): New function.
27706 (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
27707 (convert_switch_statements): Change signature.
27708 (generate_hsa): Use a return value of the function.
27709 (pass_gen_hsail::execute): Do not call
27710 convert_switch_statements here.
27711 * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
27712 * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
27713 (hsa_function_representation::update_dominance): New function.
27715 2016-03-31 Martin Liska <mliska@suse.cz>
27718 * hsa-brig.c (emit_directive_variable): Emit alignment
27719 according to hsa_symbol::m_align.
27720 * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
27721 (dump_hsa_symbol): Dump alignment of HSA symbols.
27722 * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
27723 (gen_hsa_addr_with_align): New function.
27724 (hsa_bitmemref_alignment): Use newly added function.
27725 (gen_hsa_insns_for_load): Likewise.
27726 (gen_hsa_insns_for_store): Likewise.
27727 (gen_hsa_memory_copy): New argument added.
27728 (gen_hsa_insns_for_single_assignment): Respect
27729 alignment for assignments processed via gen_hsa_memory_copy.
27730 (gen_hsa_insns_for_direct_call): Likewise.
27731 (gen_hsa_insns_for_return): Likewise.
27732 (gen_function_def_parameters): Set default alignment.
27733 * hsa.c (hsa_object_alignment): New function.
27734 (hsa_byte_alignment): Pasted function.
27735 * hsa.h (hsa_symbol::m_align): New field.
27737 2016-03-31 Bin Cheng <bin.cheng@arm.com>
27739 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
27740 scratch field for goto case.
27742 2016-03-31 James Greenhalgh <james.greenhalgh@arm.com>
27744 * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
27746 2016-03-31 Ilya Enkovich <enkovich.gnu@gmail.com>
27749 * config/i386/i386.c (scalar_chain::convert_op): Fix description.
27750 (scalar_chain::convert_insn): Call convert_op for reg
27751 moves to handle undefined registers.
27753 2016-03-31 Nathan Sidwell <nathan@acm.org>
27756 * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
27757 Assert we don't want to move backwards.
27759 2016-03-31 Kirill Yukhin <kirill.yukhin@intel.com>
27762 * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
27764 2016-03-31 Jakub Jelinek <jakub@redhat.com>
27766 PR rtl-optimization/70460
27767 * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
27768 with operand from REG_LABEL_OPERAND, instead substitute
27769 SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
27770 Don't do anything for REG_NON_LOCAL_GOTO jumps.
27772 2016-03-31 Martin Liska <mliska@suse.cz>
27774 * passes.c (execute_one_pass): Do not call
27775 todo_after for a discarded function.
27777 2016-03-31 Bin Cheng <bin.cheng@arm.com>
27779 * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
27780 (no_cost, infinite_cost): Initialize the new field.
27781 (get_computation_cost_at): Record setup cost.
27782 (determine_use_iv_cost_address): Skip cost computation for sub
27783 uses if we can estimate it without losing accuracy.
27785 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
27787 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
27789 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
27790 max_loop_iterations_int.
27791 (tree_unswitch_outer_loop): Likewise.
27792 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
27793 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
27795 2016-03-30 Richard Biener <rguenther@suse.de>
27797 PR middle-end/70450
27798 * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
27800 2016-03-30 Jakub Jelinek <jakub@redhat.com>
27803 * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
27804 in gen_blendm expander.
27806 2016-03-30 Nick Clifton <nickc@redhat.com>
27809 * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
27810 case where we are already provided with an SImode SUBREG.
27812 2016-03-30 H.J. Lu <hongjiu.lu@intel.com>
27815 * config/i386/i386.c (ix86_expand_epilogue): Properly check
27816 conflict between DRAP register and __builtin_eh_return.
27818 2016-03-30 Michael Matz <matz@suse.de>
27819 Richard Biener <rguenther@suse.de>
27822 * ipa-polymorphic-call.c (struct type_change_info): Change
27823 speculative to an unsigned allowing to limit the work we do.
27824 (csftc_abort_walking_p): New inline function..
27825 (check_stmt_for_type_change): Limit the number of may-defs
27826 skipped for speculative devirtualization to
27827 max-speculative-devirt-maydefs.
27828 * params.def (max-speculative-devirt-maydefs): New param.
27829 * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
27831 2016-03-30 Mike Stump <mrs@gcc.gnu.org>
27834 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
27837 2016-03-30 Patrick Palka <ppalka@gcc.gnu.org>
27839 PR tree-optimization/59124
27840 * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
27841 where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
27843 2016-03-29 Jeff Law <law@redhat.com>
27845 * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
27847 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
27849 * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
27852 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
27854 * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
27855 * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
27856 gcrt0.o if linking dynamically.
27858 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
27861 * ipa-devirt.c (methods_equal_p): New function.
27862 (compare_virtual_tables): Use it.
27863 * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
27864 * cgraphclones.c (clone_function_name_1): Use
27865 symbol_table::symbol_suffix_separator.
27866 * coverage.c (build_var): Likewise.
27867 * symtab.c (symbol_table::symbol_suffix_separator): New.
27869 2016-03-29 Jakub Jelinek <jakub@redhat.com>
27871 PR rtl-optimization/70429
27872 * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
27873 (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
27874 mode != result_mode.
27877 * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
27879 PR tree-optimization/70405
27880 * ssa-iterators.h (num_imm_uses): Add missing braces.
27882 2016-03-29 Vladimir Makarov <vmakarov@redhat.com>
27884 PR rtl-optimization/68695
27885 * ira-color.c (allocno_copy_cost_saving): New.
27886 (improve_allocation): Use it.
27888 2016-03-29 Richard Henderson <rth@redhat.com>
27890 PR middle-end/70355
27891 * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
27893 2016-03-29 Richard Biener <rguenther@suse.de>
27895 PR middle-end/70424
27896 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
27897 use alignment returned by get_pointer_alignment_1 if it is
27898 bigger than BITS_PER_UNIT.
27899 * builtins.c (get_pointer_alignment_1): Do not return true
27900 for alignment extracted from SSA info.
27902 2016-03-28 James Bowman <james.bowman@ftdichip.com>
27904 * config/ft32/ft32.opt (mnodiv): New.
27905 * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
27906 * doc/invoke.texi (FT32 Options -mnodiv): New.
27908 2016-03-28 Kirill Yukhin <kirill.yukhin@intel.com>
27911 * config/i386/i386.md (define_split, andn): Fix modes.
27913 2016-03-26 Richard Biener <rguenther@suse.de>
27914 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
27917 * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
27919 TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
27920 as 2nd argument to cl_optimization_restore().
27922 2016-03-25 Richard Henderson <rth@redhat.com>
27925 * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
27926 * config/aarch64/aarch64-protos.h: Declare it.
27927 * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
27929 2016-03-25 Alan Modra <amodra@gmail.com>
27932 * config/rs6000/constraints.md (j): Simplify.
27933 * config/rs6000/predicates.md (easy_fp_constant): Exclude
27935 * config/rs6000/rs6000.md (zero_fp): New mode_attr.
27936 (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
27937 mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
27938 in all constraint alternatives.
27939 (movtd_64bit_nodm): Delete "j" constraint alternative.
27941 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
27943 * tree-ssa-propagate.c: Enhance docs for
27944 SSA_PROP_NOT_INTERESTING.
27946 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
27948 * doc/extend.texi: Fix typo in documentation to pure attribute.
27950 2016-03-24 John David Anglin <danglin@gcc.gnu.org>
27953 * config/pa/pa.md (bswapdi2): Use a scratch register.
27955 2016-03-24 Richard Henderson <rth@redhat.com>
27957 PR middle-end/69845
27958 * fold-const.c (extract_muldiv_1): Correct test for multiplication
27961 2016-03-24 Uros Bizjak <ubizjak@gmail.com>
27963 * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
27964 using ix86_expand_binary_operator instead of gen_andsi3.
27966 2016-03-24 Richard Biener <rguenther@suse.de>
27968 PR tree-optimization/70396
27969 * tree-vect-stmts.c (vectorizable_comparison): Use
27970 get_vectype_for_scalar_type.
27972 2016-03-24 Richard Biener <rguenther@suse.de>
27974 PR middle-end/70370
27975 * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
27976 with register bases.
27978 2016-03-24 Richard Biener <rguenther@suse.de>
27980 PR tree-optimization/70372
27981 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
27982 build_all_ones_cst to also handle vector types correctly.
27984 2016-03-23 Michael Meissner <meissner@linux.vnet.ibm.com>
27987 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
27990 2016-03-23 Marek Polacek <polacek@redhat.com>
27993 * doc/invoke.texi: Document -Wignored-attributes.
27995 2016-03-23 Bin Cheng <bin.cheng@arm.com>
27997 PR tree-optimization/69042
27998 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
27999 parameter from 30 to 40.
28001 2016-03-23 Bin Cheng <bin.cheng@arm.com>
28003 PR tree-optimization/69042
28004 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
28005 for use with constant offset stripped in base.
28007 2016-03-23 Richard Biener <rguenther@suse.de>
28009 PR middle-end/70251
28010 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
28011 mode compatibility check.
28012 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
28014 2016-03-23 Jeff Law <law@redhat.com>
28016 PR tree-optimization/64058
28017 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
28019 (struct ssa_conflicts): Move up earlier in the file.
28020 (conflicts_, var_map_): New static variables.
28021 (initialize_conflict_count): New function to initialize the
28022 CONFLICT_COUNT field for each conflict pair.
28023 (compare_pairs): Lazily initialize the conflict count and use it
28024 as the first tie-breaker.
28025 (sort_coalesce_list): Add new arguments conflicts, map. Initialize
28026 and wipe conflicts_ and map_ around the call to qsort. Remove
28027 special case for 2 coalesce pairs.
28028 * bitmap.c (bitmap_count_unique_bits): New function.
28029 (bitmap_count_bits_in_word): New function, extracted from
28031 (bitmap_count_bits): Use bitmap_count_bits_in_word.
28032 * bitmap.h (bitmap_count_unique_bits): Declare it.
28034 2016-03-23 Ilya Enkovich <enkovich.gnu@gmail.com>
28037 * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
28038 transparent alias chain for decl assembler name.
28039 * config/sol2.c (solaris_assemble_visibility): Likewise.
28041 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28043 * config/arm/arm1020e.md (1020call_op): Reduce reservation
28045 (v10_fdivs): Likewise.
28046 (v10_fdivd): Likewise.
28048 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28051 * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
28052 to not call fclose twice on file.
28054 2016-03-23 Jakub Jelinek <jakub@redhat.com>
28056 PR tree-optimization/70354
28057 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
28058 oprnd0 is wider than oprnd1 and there is a cast from the wider
28059 type to oprnd1, mask it with the mask of the narrower type.
28062 * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
28063 Optimize TARGET_STV splitters, if high or low word of last argument
28066 2016-03-22 Jeff Law <law@redhat.com>
28069 tree-ssa-threadbackward.c
28070 (fsm_find_control_statement_thread_paths): Correctly distinguish
28071 between old style jump threads vs FSM jump threads.
28073 2016-03-22 Ilya Enkovich <enkovich.gnu@gmail.com>
28076 * config/i386/i386.c (scalar_chain::convert_op): Support
28077 uninitialized register usage case.
28079 2016-03-22 Richard Biener <rguenther@suse.de>
28081 PR middle-end/70251
28082 * genmatch.c (gen_transform): Adjust last parameter to a three-state
28084 (capture::gen_transform): ... to change behavior when substituting
28085 a condition into cond or not-cond expr context.
28086 (dt_simplify::gen_1): Adjust.
28087 * gimple-match-head.c: Include gimplify.h for unshare_expr.
28088 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
28089 last change and instead change to
28090 A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
28091 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
28093 2016-03-22 Anthony Green <green@moxielogic.com>
28095 * config/moxie/moxiebox.h (CC1_SPEC): Define. Fix endianness
28096 issue for moxiebox targets.
28097 (CC1PLUS_SPEC): Ditto.
28099 2016-03-22 Richard Biener <rguenther@suse.de>
28101 PR middle-end/70333
28102 * fold-const.c (extract_muldiv_1): Properly perform multiplication
28105 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
28107 * config/i386/i386.c (def_builtin): Remove duplicated functionality.
28109 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
28112 * config/i386/i386.c (def_builtin): Handle
28113 OPTION_MASK_ISA_AVX512VL to be and-ed with other
28115 (const struct builtin_description bdesc_special_args[]):
28116 Remove duplicate ISA bits.
28118 2016-03-22 Jakub Jelinek <jakub@redhat.com>
28121 * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
28122 d.perm[i] for i >= d.nelt. If not full_interleave, compute d.perm[i]
28123 in a way that works also for AVX512BW.
28126 * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
28127 instead of source if operands[1] is xmm16 and above and
28128 !TARGET_AVX512VL. Use avx512f_vec_dupv16sf_1 instead of
28129 vec_interleave_lowv4sf if we need to unpack xmm16 and above.
28132 * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
28133 on assign if (*from_p) is a comparison, set it to
28134 TREE_NO_WARNING (*from_p).
28136 2016-03-21 Jakub Jelinek <jakub@redhat.com>
28138 PR middle-end/70326
28139 * lra.c (restore_scratches): Ignore deleted insns.
28141 2016-03-21 Marc Glisse <marc.glisse@inria.fr>
28142 Jakub Jelinek <jakub@redhat.com>
28144 PR tree-optimization/70317
28145 * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
28148 2016-03-21 Uros Bizjak <ubizjak@gmail.com>
28151 * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
28152 of ix86_expand_move.
28154 (movti): Use general_operand for operand 1 predicate.
28156 2016-03-21 Martin Liska <mliska@suse.cz>
28158 * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
28160 (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
28162 2016-03-21 Martin Liska <mliska@suse.cz>
28165 * ipa-icf.c (sem_function::parse): Skip static
28166 constructors and destructors.
28168 2016-03-21 Jakub Jelinek <jakub@redhat.com>
28171 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
28172 function-like macro, peek following token(s) if it is followed
28173 by CPP_OPEN_PAREN token with optional padding in between, and
28174 if not, don't treat it like a macro.
28176 2016-03-21 Thomas Schwinge <thomas@codesourcery.com>
28177 Alexander Monakov <amonakov@ispras.ru>
28179 * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
28180 for the stabs debug format.
28182 2016-03-21 Richard Biener <rguenther@suse.de>
28184 PR tree-optimization/70310
28185 * tree-vect-generic.c (expand_vector_condition): Fold the built
28188 2016-03-21 Kirill Yukhin <kirill.yukhin@intel.com>
28191 * config/i386/sse.md (define_insn "*vec_dup<mode>"/AVX2):
28192 Block third alternative for AVX-512VL target,
28194 2016-03-21 Martin Liska <mliska@suse.cz>
28197 * hsa-brig.c (emit_function_directives): Mark unemitted
28198 global variables for emission.
28199 * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
28200 (get_symbol_for_decl): Likewise.
28201 * hsa.h (struct hsa_symbol): New flag.
28203 2016-03-21 Richard Biener <rguenther@suse.de>
28205 PR tree-optimization/70288
28206 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
28207 we do not estimate unsimplified all-constant conditionals or
28208 switches as optimized away.
28210 2016-03-21 Andrey Belevantsev <abel@ispras.ru>
28212 PR rtl-optimization/69102
28213 * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
28214 when we have a readonly dependency context.
28216 2016-03-18 Jeff Law <law@redhat.com>
28218 PR rtl-optimization/70263
28219 * ira.c (memref_used_between_p): Assert we found END in the insn chain.
28220 (update_equiv_regs): When trying to move a store to after the insn
28221 that sets the source of the store, make sure the store occurs after
28222 the insn that sets the source of the store. When successful note
28223 the REG_EQUIV note created in the dump file.
28225 2016-03-16 David Wohlferd <dw@LimeGreenSocks.com>
28226 Bernd Schmidt <bschmidt@redhat.com>
28228 * doc/extend.texi: Document more potential problems with basic asms.
28230 2016-03-18 Bernd Schmidt <bschmidt@redhat.com>
28232 PR rtl-optimization/70278
28233 * lra-constraints.c (split_reg): Handle the case where biggest_mode is
28236 2016-03-18 Jason Merrill <jason@redhat.com>
28238 * calls.c (load_register_parameters): Fix zero size sibcall logic.
28240 2016-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
28242 * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
28243 values to 128b regs.
28245 2016-03-18 Ilya Enkovich <enkovich.gnu@gmail.com>
28247 PR tree-optimization/70252
28248 * tree-vect-stmts.c (supportable_widening_operation): Check resulting
28249 boolean vector has a proper number of elements.
28250 (supportable_narrowing_operation): Likewise.
28252 2016-03-18 Tom de Vries <tom@codesourcery.com>
28255 * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
28257 2016-03-18 Jakub Jelinek <jakub@redhat.com>
28259 * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
28260 instead of replace_rtx for DEBUG_INSNs.
28262 2016-03-18 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
28264 * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
28265 load type reservations.
28267 2016-03-17 John David Anglin <danglin@gcc.gnu.org>
28270 * config/pa/constraints.md: Revert 2015-02-13 change. Use
28271 define_constraint for "Q" and "T" constraints.
28273 2016-03-17 Evandro Menezes <e.menezes@samsung.com>
28275 Tweak the pipeline model for Exynos M1
28277 * config/aarch64/aarch64.c (exynosm1_tunings): Enable weak prefetching
28280 2016-03-17 David Malcolm <dmalcolm@redhat.com>
28283 * diagnostic-show-locus.c (compatible_locations_p): Handle the case
28284 where one or both locations aren't within a line_map.
28286 2016-03-17 H.J. Lu <hongjiu.lu@intel.com>
28289 * opts.c (finish_options): Don't set flag_pie to the default if
28290 -fpic, -fPIC, -fno-pic or -fno-PIC is used. Set flag_pic to 0
28293 2016-03-17 Joern Rennecke <joern.rennecke@embecosm.com>
28295 * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
28296 true as ALL_REGS argument to replace_rtx.
28298 2016-03-17 Richard Biener <rguenther@suse.de>
28301 * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
28304 2016-03-17 Jakub Jelinek <jakub@redhat.com>
28307 * rtl.h (replace_rtx): Add ALL_REGS argument.
28308 * rtlanal.c (replace_rtx): Likewise. If true, use REGNO
28309 equality and assert mode is the same, instead of just rtx pointer
28311 * config/i386/i386.md (mov + arithmetics with load peephole): Pass
28312 true as ALL_REGS argument to replace_rtx.
28314 2016-03-17 Ilya Enkovich <enkovich.gnu@gmail.com>
28316 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
28317 for boolean vector with vector mode only.
28318 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
28320 2016-03-17 Nick Clifton <nickc@redhat.com>
28323 * config/rx/rx.c (rx_print_integer): Print negative constants in
28326 2016-03-17 Jakub Jelinek <jakub@redhat.com>
28329 * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
28331 2016-03-16 Richard Henderson <rth@redhat.com>
28332 Richard Biener <rguenth@suse.de>
28334 PR middle-end/70240
28335 PR middle-end/68215
28337 * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
28338 first operand as is_gimple_condexpr.
28340 PR middle-end/70240
28341 PR middle-end/68215
28343 2015-12-11 Eric Botcazou <ebotcazou@adacore.com>
28344 * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
28345 Do not gimplify the result.
28346 (do_unop): Adjust call to tree_vec_extract.
28347 (do_binop): Likewise.
28348 (do_compare): Likewise.
28349 (do_plus_minus): Likewise.
28350 (do_negate): Likewise.
28351 (expand_vector_condition): Likewise.
28352 (do_cond): Likewise.
28354 2016-03-16 Richard Henderson <rth@redhat.com>
28357 * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
28358 (aarch64_classify_address): Use it.
28359 (aarch64_legitimize_address): Force all subexpressions of PLUS
28360 into registers. Simplify as (sfp+const)+reg or (reg+reg)+const.
28362 2016-03-16 Jakub Jelinek <jakub@redhat.com>
28363 Richard Biener <rguenth@suse.de>
28366 * rtlanal.c (replace_rtx): For REG, if from is a REG,
28367 return to even if only REGNO is equal, and assert
28370 2016-03-11 Jeff Law <law@redhat.com>
28372 PR rtl-optimization/70224
28373 * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
28375 2016-03-16 Richard Henderson <rth@redhat.com>
28377 PR middle-end/70199
28378 * function.h (struct function): Add has_forced_label_in_static.
28379 * gimplify.c (force_labels_r): Set it.
28380 * lto-streamer-in.c (input_struct_function_base): Read it.
28381 * lto-streamer-out.c (output_struct_function_base): Write it.
28382 * tree-inline.c (has_label_address_in_static_1): Remove.
28383 (copy_forbidden): Remove fndecl parameter; test
28384 has_forced_label_in_static.
28385 (inline_forbidden_p): Update call to copy_forbidden.
28386 (tree_versionable_function_p): Likewise.
28387 * ipa-chkp.c (chkp_instrumentable_p): Likewise.
28388 (chkp_versioning): Likewise.
28389 * tree-inline.h (copy_forbidden): Update decl.
28391 2016-03-16 Marek Polacek <polacek@redhat.com>
28394 * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
28395 function being thunked if the result type doesn't have fixed size.
28396 * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
28397 doesn't have fixed size.
28399 2016-03-16 Bin Cheng <bin.cheng@arm.com>
28401 * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
28402 reporting malformed loop nest.
28404 2016-03-16 Tom de Vries <tom@codesourcery.com>
28407 * ipa-devirt.c (possible_polymorphic_call_targets): Move
28408 nodes.length () == 1 test to before first nodes[0] access.
28410 2016-03-16 Tom de Vries <tom@codesourcery.com>
28412 PR tree-optimization/68715
28413 * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
28414 single_pred_p test.
28416 2016-03-16 Tom de Vries <tom@codesourcery.com>
28418 PR tree-optimization/68809
28419 * graphite-scop-detection.c (same_close_phi_node): Test if result types
28422 2016-03-16 Carlos O'Donell <carlos@redhat.com>
28423 Sandra Loosemore <sandra@codesourcery.com>
28425 * doc/extend.texi (Common Function Attributes): Describe ifunc impact
28426 on leaf attribute. Mention ELF interposition problems.
28428 2016-03-16 Alan Modra <amodra@gmail.com>
28430 PR rtl-optimization/69195
28431 PR rtl-optimization/47992
28432 * ira.c (indirect_jump_optimize): Ignore artificial defs.
28435 2016-03-15 Eric Botcazou <ebotcazou@adacore.com>
28438 * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
28440 2016-03-15 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
28442 * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
28444 2016-03-15 Jakub Jelinek <jakub@redhat.com>
28446 PR rtl-optimization/70222
28447 * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
28448 optimization if mode is different from result_mode, queue up masking
28449 of the result in outer_op. Formatting fix.
28451 PR middle-end/70239
28452 * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
28455 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
28457 PR rtl-optimization/69032
28458 * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
28459 looping backwards over basic block insns.
28461 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
28464 * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
28465 to non-speculative when propagating trap bits.
28467 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
28469 PR rtl-optimization/63384
28470 * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
28471 DEBUG_INSN_P insns.
28473 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
28476 * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
28477 factored out from ...
28478 (sched_analyze_insn): ... here.
28479 * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
28480 * sel-sched-ir.c (setup_id_implicit_regs): New function, use
28481 get_implicit_reg_pending_clobbers in it.
28482 (setup_id_reg_sets): Use setup_id_implicit_regs.
28483 (deps_init_id): Ditto.
28485 2016-03-15 Tom de Vries <tom@codesourcery.com>
28488 * cgraph.c (cgraph_node::get_body): Save, reset and restore
28490 * passes.c (execute_one_ipa_transform_pass): Add missing argument to
28491 execute_function_dump.
28492 (execute_one_pass): Don't dump function if it will be dumped after ipa
28495 2016-03-15 Segher Boessenkool <segher@kernel.crashing.org>
28497 * genrecog.c (match_pattern_2): If pred is NULL don't call
28498 safe_predicate_mode on it.
28500 2016-03-14 Jakub Jelinek <jakub@redhat.com>
28502 PR middle-end/70219
28503 * lra-constraints.c (delete_move_and_clobber): Change assertion
28504 to also allow dregno == 0.
28506 2016-03-14 Richard Henderson <rth@redhat.com>
28509 * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
28510 (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
28511 (reassociate_bb): Use optimize_vec_cond_expr; avoid
28512 optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
28515 2016-03-14 Bernd Schmidt <bschmidt@redhat.com>
28518 * lra-lives.c (process_bb_lives): Also update biggest mode for hard
28520 (lra_create_live_ranges_1): initialize hard register biggest_mode to
28522 * lra-constraints.c (split_reg): For hard regs, try to find the
28523 biggest single-register mode used in the function.
28525 2016-03-14 Richard Biener <rguenther@suse.de>
28527 PR tree-optimization/56365
28528 * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
28529 constants to compare against.
28531 2016-03-14 Segher Boessenkool <segher@kernel.crashing.org>
28534 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
28535 *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
28536 (define_split for the GPR case): Use int_reg_operand instead of
28537 gpc_reg_operand for the output.
28539 2016-03-14 Tom de Vries <tom@codesourcery.com>
28541 PR tree-optimization/70045
28542 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
28543 create_empty_if_region_on_edge argument.
28545 2016-03-13 Eric Botcazou <ebotcazou@adacore.com>
28547 * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
28548 (STACK_CHECK_PROTECT): Likewise.
28549 * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
28550 (STACK_CHECK_PROTECT): Likewise.
28551 * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
28552 (STACK_CHECK_PROTECT): Likewise.
28553 * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
28554 * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
28555 (STACK_CHECK_PROTECT): Likewise.
28557 2016-03-12 Andrey Belevantsev <abel@ispras.ru>
28559 PR rtl-optimization/69307
28560 * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
28561 registers in modes that span more than one register.
28563 2016-03-12 Vladimir Makarov <vmakarov@redhat.com>
28566 * lra-constraints.c (delete_move_and_clobber): New.
28567 (remove_inheritance_pseudos): Use it.
28569 2016-03-12 Eric Botcazou <ebotcazou@adacore.com>
28572 * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
28573 the libcall is LCT_THROW.
28574 * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
28575 for the checking routine.
28577 2016-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
28580 * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
28581 optimization if we have direct move.
28582 (roundu32<mode>2_fprs): Likewise.
28584 2016-03-11 Bernd Schmidt <bschmidt@redhat.com>
28587 * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
28589 (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
28590 Arguments swapped. All callers changed. Take reg_renumber into
28591 account, and Calculate and compare register ranges for hard regs.
28593 2016-03-11 Jeff Law <law@redhat.com>
28595 PR tree-optimization/70190
28596 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
28597 Handle cases where we can not extract the taken edge, even though we
28598 found a constant value.
28600 PR tree-optimization/64058
28601 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
28602 (num_coalesce_pairs): Move up earlier in file.
28603 (find_coalesce_pair): Initialize the INDEX field for each pair
28605 (compare_pairs): No longer sort on the elements in each pair.
28606 Instead break ties with the index of the coalesce pair.
28608 2016-03-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28611 * config/aarch64/aarch64-protos.h
28612 (aarch64_save_restore_target_globals): New prototype.
28613 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
28614 Call the above when popping pragma.
28615 * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
28617 (aarch64_set_current_function): Rewrite using the above.
28619 2016-03-11 Jakub Jelinek <jakub@redhat.com>
28621 PR tree-optimization/70177
28622 * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
28623 (extract_ops_from_tree): ... this. In the 2 argument
28624 overload remove _1 suffix.
28625 * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
28626 (extract_ops_from_tree): ... this.
28627 * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
28629 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
28630 * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
28631 extract_ops_from_tree instead of 2 operand one.
28633 2016-03-11 Alan Lawrence <alan.lawrence@arm.com>
28635 PR tree-optimization/70013
28636 * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
28637 for constant-pool entries.
28639 2016-03-11 Jakub Jelinek <jakub@redhat.com>
28641 PR rtl-optimization/70174
28642 * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
28643 followed by gen_lowpart on force_reg instead of just gen_lowpart.
28645 PR tree-optimization/70169
28646 * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
28647 LABEL_DECL like VAR_DECL. Emit nothing instead of gcc_unreachable
28650 2016-03-11 Ilya Enkovich <enkovich.gnu@gmail.com>
28651 Jakub Jelinek <jakub@redhat.com>
28654 * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
28655 of uninitialized values.
28657 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28659 * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
28661 ("*trunctddd2"): New pattern definition.
28662 ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
28665 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28667 * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
28668 definitions for BFP and DFP rounding modes.
28669 ("fixuns_truncdddi2", "fixuns_trunctddi2")
28670 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
28671 ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
28672 ("fix_trunctf<mode>2"): Use the new constants instead of magic
28675 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28677 * config/s390/constraints.md: Adjust comment.
28678 ("Y"): Adjust comment. Rename s390_decompose_shift_count to
28679 s390_decompose_addrstyle_without_index.
28680 * config/s390/predicates.md (shift_count_or_setmem_operand):
28681 Rename to setmem_operand.
28682 * config/s390/s390-protos.h
28683 (s390_decompose_shift_count): Rename to
28684 s390_decompose_addrstyle_without_index.
28685 * config/s390/s390.c (s390_decompose_shift_count)
28686 (s390_mem_constraint, print_shift_count_operand)
28687 (print_operand_address, print_operand): Rename
28688 s390_decompose_shift_count to
28689 s390_decompose_addrstyle_without_index and rename
28690 print_shift_count_operand to print_addrstyle_operand troughout the
28692 * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
28693 ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
28694 Rename shift_count_or_setmem_operand to setmem_operand.
28695 * config/s390/vx-builtins.md ("vec_insert<mode>")
28696 ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
28699 2016-03-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28702 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
28703 Handle overlapping retval and newval.
28705 2016-03-10 Nick Clifton <nickc@redhat.com>
28708 * config/aarch64/aarch64.c
28709 (aarch64_override_options_after_change_1): When forcing
28710 flag_omit_frame_pointer to be true, use a special value that can
28711 be detected if this function is called again, thus preventing
28712 flag_omit_leaf_frame_pointer from being forced to be false.
28714 2016-03-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28716 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
28717 Set x_flag_omit_leaf_frame_pointer when handling
28718 -momit-leaf-frame-pointer.
28720 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
28723 * cgraph.c (cgraph_node::dump): Dump split_part and
28724 indirect_call_target.
28725 * cgraph.h (cgraph_node): Add indirect_call_target flag.
28726 * ipa.c (has_addr_references_p): Cleanup.
28727 (is_indirect_call_target_p): New.
28728 (walk_polymorphic_call_targets): Do not mark virtuals that may be
28729 called indirectly as local.
28730 (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
28732 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
28735 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
28736 on cxa_pure_virtual.
28738 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
28741 * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
28743 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
28746 * tree.c (need_assembler_name_p): Only record main variant type names.
28748 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
28751 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
28752 Always define to 0 or 1.
28753 (TARGET_FIX_ERR_A53_843419): New macro.
28754 * config/aarch64/aarch64-elf-raw.h
28755 (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
28756 * config/aarch64/aarch64-linux.h: Likewise.
28757 * config/aarch64/aarch64.c
28758 (aarch64_override_options_after_change_1): Do not default
28759 aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
28761 (aarch64_attributes): Handle fix-cortex-a53-843419.
28762 (aarch64_can_inline_p): Likewise.
28763 * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
28765 2016-03-10 Alan Lawrence <alan.lawrence@arm.com>
28766 Jakub Jelinek <jakub@redhat.com>
28768 * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
28769 * tree.c (array_at_struct_end_p): Do not limit to size of decl for
28770 DECL_COMMONS if flag_unconstrained_commons is set.
28771 * tree-dfa.c (get_ref_base_and_extent): Likewise.
28772 * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
28773 (funconstrained-commons): Document.
28775 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
28777 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
28778 aarch64-fusion-pairs.def and aarch64-tuning-flags.def
28780 2016-03-10 Ilya Enkovich <enkovich.gnu@gmail.com>
28782 * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
28783 has a proper number of elements.
28785 2016-03-10 Alan Modra <amodra@gmail.com>
28787 PR rtl-optimization/69195
28788 PR rtl-optimization/47992
28789 * ira.c (recorded_label_ref): Delete.
28790 (update_equiv_regs): Return void.
28791 (indirect_jump_optimize): New function.
28792 (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
28793 before regstat_compute_ri. Don't rebuild_jump_labels here.
28794 Delete update_regstat.
28796 2016-03-10 Richard Biener <rguenther@suse.de>
28798 PR tree-optimization/70128
28799 * tree-ssa-structalias.c (set_uids_in_ptset): Set
28800 vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
28802 2016-03-09 Jakub Jelinek <jakub@redhat.com>
28804 PR tree-optimization/70152
28805 * tree-sra.c (replace_removed_params_ssa_names): Copy over
28806 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
28809 * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
28810 instead of gen_sse2_loadlpd.
28811 * config/i386/sse.md (*vec_concatv2df): Rename to...
28812 (vec_concatv2df): ... this.
28814 PR tree-optimization/70127
28815 * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
28817 2016-03-09 David Malcolm <dmalcolm@redhat.com>
28821 * diagnostic-show-locus.c (compatible_locations_p): New function.
28822 (layout::layout): Sanitize ranges using compatible_locations_p.
28824 2016-03-09 David Malcolm <dmalcolm@redhat.com>
28828 * diagnostic-show-locus.c (layout_range::layout_range): Replace
28829 location_range param with three const expanded_locations * and a
28831 (layout::layout): Replace call to
28832 rich_location::lazily_expand_location with get_expanded_location.
28833 Extract the range and perform location expansion here, passing
28834 the results to the layout_range ctor.
28835 * diagnostic.c (source_range::debug): Delete.
28836 * diagnostic.h (diagnostic_expand_location): Reimplement in terms
28837 of rich_location::get_expanded_location.
28838 * gcc-rich-location.c (get_range_for_expr): Delete.
28839 (gcc_rich_location::add_expr): Reimplement to avoid the
28840 rich_location::add_range overload that took a location_range,
28841 passing a location_t instead.
28843 2016-03-09 Richard Biener <rguenther@suse.de>
28844 Jakub Jelinek <jakub@redhat.com>
28846 PR tree-optimization/70138
28847 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
28848 Also skip vect_double_reduction_def.
28850 2016-03-09 Jakub Jelinek <jakub@redhat.com>
28853 * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
28854 if the operand is "m".
28856 2016-03-09 Nathan Sidwell <nathan@acm.org>
28858 * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
28860 2016-03-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
28862 * config/i386/i386.c (processor_target_table): Fix cost table
28863 intialization order for znver1.
28865 2016-03-08 Jakub Jelinek <jakub@redhat.com>
28867 * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
28868 - becuase -> because.
28869 * ipa-reference.c (ignore_module_statics): Likewise.
28870 * cgraph.c (cgraph_node::get_body): Likewise.
28871 * ipa-inline.c (early_inliner): Likewise.
28872 * ipa-devirt.c (types_same_for_odr): Likewise.
28873 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
28874 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
28876 2016-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28878 * tree-ssa-math-opts.c: Fix typo in comment.
28880 2016-03-08 Jakub Jelinek <jakub@redhat.com>
28883 * config/i386/i386.c (scalar_chain::make_vector_copies,
28884 scalar_chain::convert_reg): Call end_sequence in between
28885 get_insns and emit_conversion_insns rather than after both
28888 2016-03-07 Uros Bizjak <ubizjak@gmail.com>
28891 * config/i386/i386.h (machine_function): Add
28892 pc_thunk_call_expanded flag.
28893 (ix86_pc_thunk_call_expanded): New define.
28894 * config/i386/i386.md (set_got, set_got_labelled): New expanders.
28895 (*set_got): Rename insn pattern from set_got.
28896 (*set_got_labelled): Rename inst pattern from set_got_labelled.
28897 * config/i386/i386.c (ix86_compute_frame_layout): Use
28898 ix86_pc_thunk_call_expanded to prevent red-zone.
28900 2016-03-07 Martin Jambor <mjambor@suse.cz>
28902 * hsa.h (hsa_get_ctor_statements): Declare.
28903 (hsa_get_dtor_statements): Likewise.
28904 (hsa_get_kernel_dispatch_type): Likewise.
28905 * hsa.c (hsa_get_ctor_statements): New function.
28906 (hsa_get_dtor_statements): Likewise.
28907 (hsa_get_kernel_dispatch_type): Likewise.
28908 * hsa-brig.c (hsa_cdtor_statements): Removed.
28909 (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
28910 hsa_get_dtor_statements.
28911 * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
28912 (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
28914 2016-03-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
28916 * config/arm/arm-cores.def (cortex-r8): New.
28917 * config/arm/arm-tables.opt (cortex-r8): Regenerate.
28918 * config/arm/arm-tune.md: Likewise.
28919 * doc/invoke.texi: Add cortex-r8 to list of cpu values.
28921 2016-03-07 Martin Sebor <msebor@redhat.com>
28923 PR rtl-optimization/19705
28924 * doc/invoke.texi (Options That Control Optimization): Clarify
28925 -fno-branch-count-reg.
28927 2016-02-26 Richard Biener <rguenther@suse.de>
28928 Jeff Law <law@redhat.com>
28930 PR tree-optimization/69740
28931 * cfghooks.c (remove_edge): Request loop fixups if we delete
28932 an edge that might turn an irreducible loop into a natural
28934 * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
28935 Move after definition of loops_state_clear.
28937 2016-03-07 Bin Cheng <bin.cheng@arm.com>
28939 PR rtl-optimization/69052
28940 * rtlanal.c (commutative_operand_precedence): Set higher precedence
28943 2016-03-07 Tom de Vries <tom@codesourcery.com>
28945 PR tree-optimization/70116
28946 * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
28947 is_tm_ending stmts and ubsan/asan internal functions.
28948 (find_duplicate): Use it. Don't test is_tm_ending here.
28950 2016-03-07 Richard Biener <rguenther@suse.de>
28952 PR tree-optimization/70115
28953 * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
28954 (propagate_constants_for_unrolling): Use replace_uses_by.
28956 2016-03-07 Nathan Sidwell <nathan@codesourcery.com>
28958 PR middle-end/69916
28959 * omp-low.c (struct oacc_loop): Add ifns.
28960 (new_oacc_loop_raw): Initialize it.
28961 (finish_oacc_loop): Clear mask & flags if no ifns.
28962 (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
28963 (oacc_loop_xform_loop): Add ifns arg & adjust.
28964 (oacc_loop_process): Adjust oacc_loop_xform_loop call.
28966 2016-03-07 Richard Henderson <rth@redhat.com>
28969 * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
28970 (insert_value_copy_on_edge): Likewise.
28972 2016-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28974 * config/arm/arm_neon.h: Show error if using with soft-float ABI.
28976 2016-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28979 * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
28981 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
28983 * config/i386/i386.c (znver1_cost): Fix Multiply cost.
28985 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
28987 Fix sseimul type attribute.
28988 * config/i386/znver1.md
28989 (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
28990 znver1_sseimul_avx256_load) : Fix the type attribute.
28991 (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
28992 pipe usage and latency.
28994 2016-03-05 Jakub Jelinek <jakub@redhat.com>
28997 * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
28998 of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
29001 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
29004 * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
29006 PR rtl-optimization/69941
29007 * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
29008 the reg share its mode.
29010 2016-03-04 Jeff Law <law@redhat.com>
29012 PR tree-optimization/69196
29013 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
29014 If the both SSA_NAMEs are anonymous, then consider them unassociated
29015 and include the PHI in the statement count.
29017 2016-03-05 Tom de Vries <tom@codesourcery.com>
29019 * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
29020 construct in oacc routine. Check for oacc region in oacc routine.
29022 2016-03-04 Jakub Jelinek <jakub@redhat.com>
29025 * config/i386/i386.c (decide_alg): Add RECUR argument. Revert
29026 2016-02-22 changes, instead don't recurse if RECUR is already true.
29027 Don't change *dynamic_check if RECUR. Adjust recursive caller
29028 to pass true to the new argument.
29029 (ix86_expand_set_or_movmem): Adjust decide_alg caller.
29032 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
29033 <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
29035 (vec_set_hi_<mode><mask_name>): Likewise. Swap VEC_CONCAT operands.
29037 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
29039 PR rtl-optimization/57676
29040 * lra-assigns.c (lra_assign): Guard test for maximum iterations
29041 with flag_checking.
29043 2016-03-04 Ilya Enkovich <enkovich.gnu@gmail.com>
29045 * tree-vect-patterns.c (search_type_for_mask): Handle
29046 comparison of booleans.
29048 2016-03-04 Jakub Jelinek <jakub@redhat.com>
29050 * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
29054 * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
29055 all other ops that have dw_val_class_die_ref operands,
29056 and DW_OP_GNU_entry_value.
29058 2016-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29060 PR rtl-optimization/69904
29061 * config/arm/arm.c (arm_cannot_copy_insn_p):
29062 Return true for load-exclusive instructions.
29064 2016-03-03 Jakub Jelinek <jakub@redhat.com>
29067 * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
29068 argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
29069 the pattern no matter if it is used just by non-pattern, pattern
29071 (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
29072 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
29073 oprnd1 def_stmt is in pattern, don't look through it.
29075 2016-03-03 Marek Polacek <polacek@redhat.com>
29077 PR middle-end/70050
29078 * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
29080 2016-03-03 Martin Liska <mliska@suse.cz>
29082 PR tree-optimization/70043
29083 * tree-vect-loop.c (optimize_mask_stores): Move iterator to
29084 previous statement if we see a debug statement.
29086 2016-03-03 Richard Biener <rguenther@suse.de>
29088 PR tree-optimization/55936
29089 * tree-vrp.c (compare_name_with_value): Add use_equiv_p
29090 parameter and guard unsafe equivalence use.
29091 (vrp_evaluate_conditional_warnv_with_ops): Always use
29092 safe equivalences but not via the quadratic compare_names
29095 2016-03-03 Michael Collison <michael.collison@linaro.org>
29098 * config/arm/arm.md (*subsi3_carryin_const): Change predicate
29099 for operand 1 to s_register_operand. Change predicate for operand
29100 2 to arm_not_immediate_operand.
29102 2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
29104 * doc/tm.texi: Regenerated.
29106 2016-03-02 Richard Henderson <rth@redhat.com>
29109 * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
29110 simplification when all args are positive non-fixed registers.
29112 2016-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
29114 * target.def (lra_p): Specify that new ports should use LRA.
29116 2016-03-02 Jakub Jelinek <jakub@redhat.com>
29119 * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
29120 gimplify_type_sizes the type they refer to.
29121 (omp_notice_variable): Handle reference vars to VLAs.
29122 * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
29123 reference to VLA decls in the second pass instead of first pass.
29125 2016-03-02 Tom de Vries <tom@codesourcery.com>
29127 PR tree-optimization/68659
29128 * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
29129 new_expr == NULL_TREE.
29130 (get_new_name): Handle ADDR_EXPR.
29132 2016-03-02 Bin Cheng <bin.cheng@arm.com>
29134 PR rtl-optimization/69052
29135 * loop-invariant.c (canonicalize_address): New function.
29136 (inv_can_prop_to_addr_use): Check validity of address expression
29137 which is canonicalized by above function.
29139 2016-03-02 Alan Modra <amodra@gmail.com>
29142 * ipa-icf.c (sem_variable::merge): Do not merge an alias with
29145 2016-03-02 Jakub Jelinek <jakub@redhat.com>
29148 * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
29149 (*movhi_internal): Put mask moves from and to memory separately
29150 from moves from/to GPRs.
29152 2016-03-02 Richard Biener <rguenther@suse.de>
29154 * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
29155 GENERIC expressions in GIMPLE.
29157 2016-03-02 Richard Biener <rguenther@suse.de>
29159 * config/i386/i386.c (type_natural_mode): Fix typo.
29161 2016-03-02 Nick Clifton <nickc@redhat.com>
29163 * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
29165 2016-03-02 Richard Biener <rguenther@suse.de>
29166 Uros Bizjak <ubizjak@gmail.com>
29169 * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
29171 2016-03-02 Richard Biener <rguenther@suse.de>
29173 PR middle-end/67278
29174 * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
29176 2016-03-02 Marek Polacek <polacek@redhat.com>
29179 * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
29180 "is promoted to" warning.
29182 2016-03-01 DJ Delorie <dj@redhat.com>
29184 * config.gcc: Deprecate mep-*.
29186 2016-03-01 Vladimir Makarov <vmakarov@redhat.com>
29188 PR middle-end/70025
29189 * lra-constraints.c (regno_val_use_in): New.
29190 (match_reload): Use it instead of regno_use_in.
29192 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
29194 PR rtl-optimization/70007
29195 * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
29196 references present in REG_EQUAL notes attached to non-SET patterns.
29198 2016-03-01 Jeff Law <law@redhat.com>
29200 PR tree-optimization/69196
29201 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
29202 Appropriately clamp the number of statements to copy when the
29203 thread path does not traverse a loop backedge.
29205 PR tree-optimization/69196
29206 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
29207 Do count some PHIs in the thread path against the insn count. Decrease
29208 final statement count by one as the control statement in the last
29209 block will get removed. Remove special cased code for handling PHIs
29212 2016-03-01 Uros Bizjak <ubizjak@gmail.com>
29215 * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
29216 asm dialect alternatives to explicit GOTPCREL calls.
29218 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
29221 * ira.c (do_reload): Issue warning for generic stack checking here...
29222 * reload1.c (reload): ...instead of here and streamline it.
29224 2016-03-01 Nick Clifton <nickc@redhat.com>
29226 * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
29228 2016-03-01 Richard Biener <rguenther@suse.de>
29230 PR tree-optimization/69983
29231 * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
29232 types and fall back to operand_equal_p.
29234 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29237 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29239 * config/s390/constraints.md ("jm8"): New constraint.
29240 * config/s390/predicates.md ("const_int_8bitset_operand"): New
29242 * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
29244 ("*setmem_long<setmem_and>"): New pattern.
29245 ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
29247 ("*setmem_long_31z<setmem_and>"): New pattern.
29248 * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
29249 New substitution rules with the required attributes.
29252 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29255 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29257 * gensupport.c (process_substs_on_one_elem): Split loop to
29258 complete mark_operands_used_in_match_dup on all expressions in the
29260 (adjust_operands_numbers): Inline into process_substs_on_one_elem
29261 and remove function.
29263 2016-03-01 Richard Biener <rguenther@suse.de>
29265 PR middle-end/70022
29266 * fold-const.c (fold_indirect_ref_1): Fix range checking for
29267 vector BIT_FIELD_REF extract.
29269 2016-03-01 Richard Biener <rguenther@suse.de>
29271 PR tree-optimization/69994
29272 * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
29274 2016-03-01 Ilya Enkovich <enkovich.gnu@gmail.com>
29276 PR tree-optimization/69956
29277 * tree-vect-stmts.c (supportable_widening_operation): Support
29278 multi-step conversion of boolean vectors.
29279 (supportable_narrowing_operation): Likewise.
29281 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29283 * config/s390/s390.c (s390_decompose_address): Don't accept SImode
29286 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29288 * config/s390/subst.md (DSI_VI): New mode iterator.
29289 ("addr_style_op_subst"): Use DSI_VI instead of DSI.
29290 * config/s390/vector.md ("vec_set<mode>"): Move expander before
29291 the insn definition.
29292 ("*vec_set<mode>"): Change predicate and add alternative to
29293 support only either register or const_int operands as element
29295 ("*vec_set<mode>_plus"): New pattern to support reg + const_int
29297 ("vec_extract<mode>"): New expander.
29298 ("*vec_extract<mode>"): New insn definition supporting reg and
29299 const_int element selectors.
29300 ("*vec_extract<mode>_plus"): New insn definition supporting
29301 reg+const_int element selectors.
29302 ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
29303 following expander+insn definition.
29304 ("<vec_shifts_name><mode>3"): New expander.
29305 ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
29307 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29309 * config/s390/s390.md ("*tabort_1"): Change predicate to
29310 nonmemory_operand. Add a second alternative to cover
29311 register as well as const int operands.
29312 ("*tabort_1_plus"): New pattern definition.
29314 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29316 * config/s390/s390.md ("*ashrdi3_cc_31")
29317 ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
29318 ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
29319 Merge insn definitions into ...
29320 ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
29321 New pattern definition.
29322 ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
29323 ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
29324 ("*ashr<mode>3_and"): Merge insn definitions into ...
29325 ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
29326 New pattern definition.
29327 * config/s390/subst.md ("addr_style_op_cc_subst")
29328 ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
29329 substitutions patterns plus attributes.
29330 Add ashiftrt to SUBST iterator.
29332 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29334 * config/s390/s390.md ("<shift><mode>3"): Change predicate of
29335 op2 to nonmemory_operand.
29336 ("*<shift>di3_31", "*<shift>di3_31_and"):
29337 Merge into single pattern definition ...
29338 ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
29339 ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
29340 pattern definition ...
29341 ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
29342 * config/s390/subst.md: Add ashift and lshiftrt to SUBST
29345 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29347 * config/s390/predicates.md (const_int_6bitset_operand): New
29349 * config/s390/s390.md: Include subst.md.
29350 ("rotl<mode>3"): New expander.
29351 ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
29353 ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
29354 * config/s390/subst.md: New file.
29356 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29358 * config/s390/s390.md ("op_type", "atype", "length" attributes):
29359 Remove RRR type. It doesn't really exist.
29360 ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
29362 ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
29363 ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
29364 ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
29365 ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
29366 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
29367 ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
29368 `enabled' attribute.
29370 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29372 * gensupport.c (process_substs_on_one_elem): Split loop to
29373 complete mark_operands_used_in_match_dup on all expressions in the
29375 (adjust_operands_numbers): Inline into process_substs_on_one_elem
29376 and remove function.
29378 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
29381 * config/sparc/sparc.c (NWORDS_UP): Rename to...
29382 (CEIL_NWORDS): ...this. Use CEIL macro.
29383 (compute_fp_layout): Adjust to above renaming.
29384 (function_arg_union_value): Likewise.
29385 (sparc_arg_partial_bytes): Likewise.
29386 (sparc_function_arg_advance): Likewise.
29388 2016-02-29 Jeff Law <law@redhat.com>
29390 PR tree-optimization/70005
29391 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
29392 where an object with a boolean range is compared against a value
29395 PR tree-optimization/69999
29396 * gimple-ssa-split-paths.c (split_paths): When duplicating a block
29397 with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
29400 2016-02-29 Richard Biener <rguenther@suse.de>
29402 PR tree-optimization/69994
29403 * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
29404 (get_unary_op): Look through nop conversions.
29405 (ops_equal_values_p): New function, look for equality diregarding
29407 (eliminate_plus_minus_pair): Use ops_equal_values_p
29408 (repropagate_negates): Do not use get_unary_op here.
29410 2016-02-29 Martin Liska <mliska@suse.cz>
29412 * system.h: Poison ENABLE_CHECKING macro.
29414 2016-02-29 Martin Liska <mliska@suse.cz>
29416 * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
29417 is presented in dump flags.
29418 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
29419 (hsa_regalloc): Likewise.
29421 2016-02-19 Richard Biener <rguenther@suse.de>
29423 PR tree-optimization/69980
29424 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
29425 permutation of those we need to keep.
29427 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
29430 * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
29431 (NWORDS_UP): ...this
29432 (init_cumulative_args): Minor tweaks.
29433 (sparc_promote_function_mode): Likewise.
29434 (scan_record_type): Delete.
29435 (traverse_record_type): New function template.
29436 (classify_data_t): New structure type.
29437 (classify_registers): New inline function.
29438 (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
29439 exhausted. Instantiate traverse_record_type on classify_registers and
29440 deal with the case of a structure passed in slot #15 with no FP field
29442 (assign_data_t): New structure type.
29443 (compute_int_layout): New static function.
29444 (compute_fp_layout): Likewise.
29445 (count_registers): New inline function.
29446 (assign_int_registers): New static function.
29447 (assign_fp_registers): Likewise.
29448 (assign_registers): New inline function.
29449 (function_arg_record_value_1): Delete.
29450 (function_arg_record_value_2): Likewise.
29451 (function_arg_record_value_3): Likewise.
29452 (function_arg_record_value): Adjust to above changes. Instantiate
29453 traverse_record_type on count_registers to first count the number of
29454 registers to be used and then on assign_registers to assign them.
29455 (function_arg_union_value): Adjust to above renaming.
29456 (sparc_function_arg_1); Minor tweaks. Remove commented out code.
29457 (sparc_arg_partial_bytes): Adjust to above renaming. Deal with the
29458 case of a structure passed in slot #15
29459 (sparc_function_arg_advance): Likewise.
29460 (function_arg_padding): Minor tweak.
29462 2016-02-29 Richard Biener <rguenther@suse.de>
29464 PR tree-optimization/69720
29465 * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
29466 the adjustment_def path for possibly vectorized defs.
29467 (vect_create_epilog_for_reduction): Handle vectorized initial
29470 2016-02-28 Eric Botcazou <ebotcazou@adacore.com>
29472 * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
29474 2016-02-27 Jeff Law <law@redhat.com>
29477 2016-02-26 Richard Biener <rguenther@suse.de>
29478 Jeff Law <law@redhat.com>
29480 PR tree-optimization/69740
29481 * cfghooks.c (remove_edge): Request loop fixups if we delete
29482 an edge that might turn an irreducible loop into a natural
29485 2016-02-27 Jakub Jelinek <jakub@redhat.com>
29487 PR rtl-optimization/69896
29488 * tree-vect-generic.c (get_compute_type): Avoid single element
29491 2016-02-26 Evandro Menezes <e.menezes@samsung.com>
29493 Rename the AArch64 tuning option and related functions to enable the
29494 Newton series for the reciprocal square root to reflect its
29495 approximative characteristic.
29497 * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
29498 function to "aarch64_emit_approx_rsqrt".
29499 * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
29500 AARCH64_EXTRA_TUNE_APPROX_RSQRT.
29501 * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
29502 (xgene1_tunings): Likewise.
29503 (use_rsqrt_p): Likewise.
29504 (aarch64_emit_swrsqrt): Use new function name.
29505 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
29506 * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
29507 text explaining this option.
29508 * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
29510 2016-02-26 Jakub Jelinek <jakub@redhat.com>
29513 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
29514 complain about -mallow-movmisalign without -mvsx if
29515 TARGET_ALLOW_MOVMISALIGN was not set explicitly.
29517 2016-02-26 Joel Sherrill <joel@rtems.org>
29519 * config.gcc: Add x86_64-*-rtems*.
29520 * config/i386/rtems-64.h: New file.
29522 2016-02-26 Joel Sherrill <joel@rtems.org>
29524 * config.gcc: Add aarch64-*-rtems*.
29525 * config/aarch64/rtems.h: New file.
29527 2016-02-26 Segher Boessenkool <segher@kernel.crashing.org>
29530 * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
29531 shift amount using %h. Add comment.
29533 2016-02-26 Richard Biener <rguenther@suse.de>
29534 Jeff Law <law@redhat.com>
29536 PR tree-optimization/69740
29537 * cfghooks.c (remove_edge): Request loop fixups if we delete
29538 an edge that might turn an irreducible loop into a natural
29541 2016-02-26 Martin Jambor <mjambor@suse.cz>
29543 PR middle-end/69920
29544 * tree-sra.c (sra_modify_assign): Do not remove loads of
29545 uninitialized aggregates to SSA_NAMEs.
29547 2016-02-26 Richard Henderson <rth@redhat.com>
29550 * config/s390/s390.md (risbg and risbgn splitters): Allocate new
29551 pseudo in case the target rtx matches the source of the left
29554 2016-02-26 Martin Jambor <mjambor@suse.cz>
29557 * hsa.h (hsa_type_packed_p): Declare.
29558 * hsa.c (hsa_type_packed_p): New function.
29559 * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
29561 (gen_hsa_insns_for_store): Use hsa_type_packed_p.
29562 * hsa-brig.c (emit_basic_insn): Likewise.
29564 2016-02-26 Martin Jambor <mjambor@suse.cz>
29567 * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
29569 (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
29571 2016-02-26 Martin Jambor <mjambor@suse.cz>
29573 * hsa.h (is_a_helper): New overload for hsa_op_immed for
29574 hsa_op_with_type operands.
29575 (hsa_unsigned_type_for_type): Declare.
29576 * hsa.c (hsa_unsigned_type_for_type): New function.
29577 * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
29578 (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
29579 the finalizer. Do not emit extra move.
29581 2016-02-26 Martin Jambor <mjambor@suse.cz>
29583 * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
29584 atomic operations in private segment.
29586 2016-02-26 Martin Jambor <mjambor@suse.cz>
29588 * omp-low.c (grid_find_ungridifiable_statement): Store problematic
29589 statements to wi->info. Also disallow omp simd constructs.
29590 (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
29591 for not gridifying. Dump special string for omp_for.
29593 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29596 * config/aarch64/aarch64.c (aarch64_set_current_function):
29597 Save/restore target globals when switching to
29598 target_option_default_node.
29600 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29603 * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
29604 Return 0 if !SHIFT_COUNT_TRUNCATED.
29606 2016-02-26 Jakub Jelinek <jakub@redhat.com>
29607 Eric Botcazou <ebotcazou@adacore.com>
29609 PR rtl-optimization/69891
29610 * dse.c (scan_insn): If we can't figure out memset arguments
29611 or they are non-constant, call clear_rhs_from_active_local_stores.
29613 2016-02-26 Martin Liska <mliska@suse.cz>
29615 * doc/extend.texi: Mention clog10, clog10f an clog10l
29616 in Builtins section.
29618 2016-02-26 Martin Liska <mliska@suse.cz>
29620 * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
29622 (resolve_args_picking_1): Likewise.
29623 * dwarf2out.h (struct GTY): Likewise.
29625 2016-02-26 Martin Liska <mliska@suse.cz>
29627 * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
29628 with flag_checking.
29629 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
29631 2016-02-26 Markus Trippelsdorf <markus@trippelsdorf.de>
29632 Martin Liska <mliska@suse.cz>
29634 * doc/install.texi: Mention --enable-valgrind-annotations.
29636 2016-02-26 Richard Biener <rguenther@suse.de>
29638 PR tree-optimization/69551
29639 * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
29640 looking through aliases adjust DECL_PT_UID to refer to the
29641 ultimate alias target.
29643 2016-02-25 Martin Liska <mliska@suse.cz>
29645 PR middle-end/69919
29646 * alloc-pool.c (after_memory_report): New variable.
29647 * alloc-pool.h (base_pool_allocator ::release): Do not use
29648 the infrastructure if after_memory_report.
29649 * toplev.c (toplev::main): Mark after memory report.
29651 2016-02-25 Richard Biener <rguenther@suse.de>
29653 PR tree-optimization/48795
29654 * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
29656 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
29659 * config/gnu-user.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o if
29660 offloading is enabled and -fopenacc or -fopenmp is specified.
29661 (CRTOFFLOADEND): Likewise.
29662 (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
29663 (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
29664 * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
29665 (offload_objects_file_name): New static var.
29666 (tool_cleanup): Remove offload_objects_file_name file.
29667 (find_offloadbeginend): Replace with ...
29668 (find_crtoffloadtable): ... this.
29669 (run_gcc): Remove offload_argc and offload_argv.
29670 Get offload_objects_file_name from -foffload-objects=... option.
29671 Read names of object files with offload from this file, pass them to
29672 compile_images_for_offload_targets. Don't call find_offloadbeginend and
29673 don't pass offloadbegin and offloadend to the linker. Don't pass
29674 offload non-LTO files to the linker, because now they're not claimed.
29676 2016-02-25 Jan Hubicka <hubicka@ucw.cz>
29679 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
29680 on builtin_unreachable.
29682 2016-02-25 Jakub Jelinek <jakub@redhat.com>
29684 PR rtl-optimization/69896
29685 * regcprop.c: Include cfgrtl.h.
29686 (copyprop_hardreg_forward_1): If noop_p insn uses narrower
29687 than remembered mode, either delete it (if noop_move_p), or
29688 treat like copy_p but not noop_p instruction.
29690 2016-02-24 Jakub Jelinek <jakub@redhat.com>
29693 * dwarf2out.c (gen_variable_die): Work around buggy LTO
29694 - allow NULL decl for Fortran DW_TAG_common_block variables.
29696 2016-02-24 Jason Merrill <jason@redhat.com>
29698 * common.opt (flifetime-dse): Add -flifetime-dse=1.
29700 2016-02-24 Richard Biener <rguenther@suse.de>
29701 Jakub Jelinek <jakub@redhat.com>
29703 PR middle-end/69760
29704 * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
29705 conditionally executed ops to well-defined overflow behavior.
29707 2016-02-24 Jakub Jelinek <jakub@redhat.com>
29709 PR middle-end/69915
29710 * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
29713 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29715 PR rtl-optimization/69886
29716 * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
29717 argument. Use it when checking validity of set instructions.
29718 (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
29719 (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
29721 * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
29722 * store-motion.c (find_moveable_store): Update
29723 can_assign_to_reg_without_clobbers_p callsite.
29725 2016-02-24 Richard Biener <rguenther@suse.de>
29727 PR middle-end/68963
29728 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
29730 (record_nonwrapping_iv): Do not fall back to the low/high bound
29731 for non-constant IV bases if the stmt is not always executed.
29733 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29735 * config/arm/arm-cores.def (cortex-a32): New entry.
29736 * config/arm/arm-tables.opt: Regenerate.
29737 * config/arm/arm-tune.md: Regenerate.
29738 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
29739 * config/arm/t-aprofile: Handle mcpu=cortex-a32.
29740 * doc/invoke.texi (ARM Options): Document cortex-a32 as value
29741 for -mcpu and -mtune.
29743 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29746 * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
29747 * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
29748 * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
29749 (atomic_loaddi_1): Delete.
29750 (atomic_loaddi): Rewrite expander using the above changes.
29752 2016-02-24 Jakub Jelinek <jakub@redhat.com>
29755 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
29758 2016-02-24 Jakub Jelinek <jakub@redhat.com>
29759 Richard Biener <rguenth@suse.de>
29761 PR middle-end/69909
29762 * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
29763 set_mem_attributes if tem is SSA_NAME which got expanded
29766 2016-02-24 Richard Biener <rguenther@suse.de>
29768 PR tree-optimization/69907
29769 * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
29770 end of permutations for BB vectorization.
29772 2016-02-24 Christian Bruel <christian.bruel@st.com>
29774 * config/arm/arm-c.c (arm_option_override): Initialize
29775 target_option_current_node.
29776 * config/arm/arm.c (arm_pragma_target_parse): Replace
29777 build_target_option_node call by target_option_current_node.
29778 Set target_option_current_node.
29781 2016-02-23 David Edelsohn <dje.gcc@gmail.com>
29784 * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
29785 define_insn_and_split to define_insn.
29786 (zero_extendqi<mode>2_dot2): Same.
29787 (extendqi<mode>2_dot): Same.
29788 (extendqi<mode>2_dot2): Same.
29790 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
29792 * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
29793 and add bypass for AES{D,E} and AESMC pairs.
29794 * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
29797 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
29799 * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
29800 series for reciprocal square root in Exynos M1.
29802 2016-02-23 Martin Sebor <msebor@redhat.com>
29805 * doc/extend.texi (Other Builtins): Document __builtin_alloca and
29806 __builtin_alloca_with_align.
29808 2016-02-23 Richard Henderson <rth@redhat.com>
29810 * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
29811 (ix86_register_pragmas): Remove __seg_tls.
29812 * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
29813 * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
29814 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
29815 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
29816 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
29817 * doc/extend.texi (__seg_tls): Remove item.
29819 2016-02-23 Richard Biener <rguenther@suse.de>
29821 * alloc-pool.h (struct allocation_object): Make id member
29822 conditional on CHECKING_P again.
29823 (get_instance): Adjust.
29824 (base_pool_allocator): Likewise.
29826 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
29828 * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
29829 (parallelize_loops): In OpenACC kernels mode, set n_threads to
29831 (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
29833 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
29835 2016-02-23 Richard Biener <rguenther@suse.de>
29837 * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
29838 * bitmap.h (struct bitmap_usage): Likewise.
29839 (bitmap_move): Declare.
29840 * bitmap.c (register_overhead): Take size_t argument.
29841 (bitmap_move): New function.
29842 * df-problems.c (df_rd_transfer_function): Use bitmap_move
29843 to properly account overhead.
29844 * tree.c (free_node): Use tree_size.
29846 2016-02-23 Jakub Jelinek <jakub@redhat.com>
29849 * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
29850 when inverting comparison.
29853 * common.opt (Wunreachable-code): Add Warning flag.
29855 2016-02-23 Mark Wielaard <mjw@redhat.com>
29856 Jakub Jelinek <jakub@redhat.com>
29859 * cgraphunit.c (check_global_declaration): Check main_input_filename
29860 and DECL_SOURCE_FILE are not NULL.
29862 2016-02-23 Martin Jambor <mjambor@suse.cz>
29864 PR tree-optimization/69666
29865 * tree-sra.c (sra_modify_assign): Do not attempt to create
29866 default_def replacements for unscalarizable regions.
29868 2016-02-20 Mark Wielaard <mjw@redhat.com>
29871 * cgraphunit.c (check_global_declaration): Check level of
29872 warn_unused_const_variable and main_input_filename.
29873 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
29874 (-Wunused-variable): For C implies -Wunused-const-variable=1.
29875 (-Wunused-const-variable): Explain levels 1 and 2.
29877 2016-02-22 Jakub Jelinek <jakub@redhat.com>
29880 * config/i386/i386.c (decide_alg): Ensure we don't recurse with
29881 identical arguments. Formatting and spelling fixes.
29884 * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
29889 * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
29890 and m68k-devices.def.
29891 * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
29892 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
29894 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
29896 * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
29897 and HImode registers.
29899 2016-02-22 Richard Biener <rguenther@suse.de>
29901 PR tree-optimization/69882
29902 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
29903 preserve permutations present because of gaps.
29904 (vect_supported_load_permutation_p): Always continue checking
29905 permutations after vect_attempt_slp_rearrange_stmts.
29907 2016-02-22 Bin Cheng <bin.cheng@arm.com>
29909 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
29910 min_profitable_estimate, rather than min_profitable_iters.
29912 2016-02-22 Jakub Jelinek <jakub@redhat.com>
29915 * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
29916 SImode for last match_operand.
29918 2016-02-22 Martin Liska <mliska@suse.cz>
29920 * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
29921 return bitsize - 1 as the return value.
29923 2016-02-22 Oleg Endo <olegendo@gcc.gnu.org>
29927 * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
29928 Handle negative shift counts.
29929 * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
29930 force_reg on the shift constant.
29931 (lshrsi3): Likewise. Expand into lshrsi3_n* instead of lshrsi3_d.
29932 (lshrsi3_d): Handle negative shift counts.
29934 2016-02-22 Richard Biener <rguenther@suse.de>
29935 Tom de Vries <tom@codesourcery.com>
29937 * graph.c: Include dumpfile.h.
29938 (print_graph_cfg): Split into three overloads.
29939 * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
29941 2016-02-22 Tom de Vries <tom@codesourcery.com>
29943 * gdbhooks.py (class DumpFn): Add and instantiate, adding command
29946 2016-02-22 Richard Biener <rguenther@suse.de>
29949 * ipa-inline-transform.c (inline_call): When not updating
29950 overall summaries adjust self size by the growth estimate.
29951 * ipa-inline.c (inline_to_all_callers_1): Add to the callers
29952 hash-set, do not update overall summaries here. Renamed from ...
29953 (inline_to_all_callers): ... this which is now wrapping the
29954 above and performing delayed overall summary update.
29955 (early_inline_small_functions): Delay updating of the overall
29958 2016-02-21 Markus Trippelsdorf <markus@trippelsdorf.de>
29960 * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
29963 2016-02-19 Jakub Jelinek <jakub@redhat.com>
29966 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
29967 :%* in %:gt() argument.
29968 (greater_than_spec_func): Adjust for expecting only numbers,
29969 if there are more than two numbers, compare the last two.
29971 2016-02-19 Jonathan Wakely <jwakely@redhat.com>
29973 * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
29974 -Wnarrowing with -std.
29976 2016-02-19 Jakub Jelinek <jakub@redhat.com>
29979 * expr.c (store_field): Don't use bit-field path if exp is
29980 COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
29981 different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
29982 and the assignment can be performed by bitwise copy. Formatting
29985 PR middle-end/69838
29986 * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
29987 call copy_reg_eh_region_note_forward on before and/or after sequences
29988 and remove note from insn if it no longer can throw.
29991 * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
29992 if TARGET_AVX512BW.
29994 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29996 * config/s390/vector.md: Add missing commutative operand markers
29997 to the patterns which qualify for one.
29998 * config/s390/vx-builtins.md: Likewise.
30000 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30002 * config/s390/vector.md (VI, VI_QHS): Add single element vector
30003 types to mode iterators.
30004 (vec_double): ... and mode attribute.
30005 * config/s390/vx-builtins.md (non_vec_int): Likewise.
30007 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30009 * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
30010 Change the predicate of op2 from nonimmediate to general and let
30011 reload fix it if necessary.
30013 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30015 * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
30017 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30019 * config/s390/s390.c (s390_expand_vcond): Use the compare operand
30022 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30024 * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
30025 * config/s390/s390.c (s390_expand_vec_movstr): New function.
30026 * config/s390/s390.md ("movstr<P:mode>"): Call
30027 s390_expand_vec_movstr.
30029 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30031 * config/s390/s390.md: Add missing output modifier for operand 1
30032 to print it as address properly.
30034 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30036 * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
30037 * config/s390/2964.md: New file.
30038 * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
30039 of insn grouping attributes depending on the CPU level.
30040 (s390_get_unit_mask): New function.
30041 (s390_sched_score): Remove the OOO from the scheduling macros.
30042 Add loop to calculate a score for the instruction mix.
30043 (s390_sched_reorder): Likewise plus improve debug output.
30044 (s390_sched_variable_issue): Rename macros as above. Calculate
30045 the unit distances after actually scheduling an insn. Improve
30047 (s390_sched_init): Clear last_scheduled_unit_distance array.
30048 * config/s390/s390.md: Include 2964.md.
30050 2016-02-18 Jakub Jelinek <jakub@redhat.com>
30053 * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
30054 *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
30055 *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
30056 *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
30057 *avx512f_<code>v8div16qi2_mask_1): New insns.
30059 2016-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
30062 * config/rs6000/predicates.md (fusion_gpr_addis): Revert
30065 * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
30066 earlyclobber from target. Use wF constraint for fused memory
30068 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
30070 2016-02-18 Jakub Jelinek <jakub@redhat.com>
30071 Martin Liska <mliska@suse.cz>
30074 * cfgexpand.c (asan_sanitize_stack_p): New function.
30075 (partition_stack_vars): Use the function.
30076 (expand_stack_vars): Likewise.
30077 (defer_stack_allocation): Likewise.
30078 (expand_used_vars): Likewise.
30080 2016-02-18 Richard Biener <rguenther@suse.de>
30082 PR middle-end/69553
30083 * fold-const.c (operand_equal_p): Properly compare offsets for
30084 IMAGPART_EXPR and ARRAY_REF.
30086 2016-02-18 Nick Clifton <nickc@redhat.com>
30090 * config/arm/arm.c (arm_option_override_internal): Disable
30091 interworking if the target does not support thumb instructions.
30092 (arm_reload_in_hi): Handle the case where a register to register
30093 move needs reloading because there is no simple pattern to handle
30095 (arm_reload_out_hi): Likewise.
30097 2016-02-18 Richard Biener <rguenther@suse.de>
30099 PR middle-end/69854
30100 * match.pd: Don't use fold_binary or fold_unary for folding
30103 2016-02-17 Jakub Jelinek <jakub@redhat.com>
30106 * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
30107 on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
30108 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
30109 warn on gimple_no_warning_p statements.
30111 2016-02-17 Jonathan Wakely <jwakely@redhat.com>
30113 * doc/extend.texi (C++ Attributes): Correct description of
30114 warn_unused type attribute.
30116 2016-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30118 * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
30119 correct instruction.
30121 2016-02-17 Richard Biener <rguenther@suse.de>
30123 PR rtl-optimization/69609
30124 * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
30125 (find_traces_1_round): When ending a trace update cached priority
30127 (bb_to_key): Use cached priority when available.
30128 (copy_bb): Initialize cached priority.
30129 (reorder_basic_blocks_software_trace_cache): Likewise.
30131 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30134 * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
30136 (aarch64_comparison_operator): Break overly long line into two.
30137 (aarch64_comparison_operation): Likewise.
30138 * config/aarch64/aarch64.md (cstorecc4): Use
30139 aarch64_comparison_operator_mode instead of
30140 aarch64_comparison_operator.
30141 (cstore<mode>4): Likewise.
30142 (aarch64_cstore<mode>): Likewise.
30143 (*cstoresi_insn_uxtw): Likewise.
30144 (cstore<mode>_neg): Likewise.
30145 (*cstoresi_neg_uxtw): Likewise.
30147 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30150 * config/arm/predicates.md (arm_comparison_operator_mode):
30152 * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
30153 instead of arm_comparison_operator.
30154 (*mov_negscc): Likewise.
30155 (*mov_notscc): Likewise.
30156 * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
30157 (*thumb2_mov_negscc): Likewise.
30158 (*thumb2_mov_negscc_strict_it): Likewise.
30159 (*thumb2_mov_notscc): Likewise.
30160 (*thumb2_mov_notscc_strict_it): Likewise.
30162 2016-02-17 Wilco Dijkstra <wdijkstr@arm.com>
30164 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
30165 Add missing return.
30167 2016-02-17 Eric Botcazou <ebotcazou@adacore.com>
30169 * config/visium/visium.c (machine_libfunc_index): New enum.
30170 (machine_libfuncs): New structure.
30171 (visium_libfuncs): New static variable.
30172 (TARGET_INIT_LIBFUNCS): Define to...
30173 (visium_init_libfuncs): ...this. New function.
30174 (expand_block_move_4): Use the appropriate libfunc.
30175 (expand_block_move_2): Likewise.
30176 (expand_block_move_1): Likewise.
30177 (expand_block_set_4): Likewise.
30178 (expand_block_set_2): Likewise.
30179 (expand_block_set_1): Likewise.
30180 (visium_trampoline_init): Likewise.
30182 2016-02-17 Nick Clifton <nickc@redhat.com>
30184 * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
30185 TI's devices.csv file as of March 2016.
30187 2016-02-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
30190 * opts-global.c (handle_common_deferred_options): Introduce and
30191 initialize two global variables to remember command-line options
30192 specifying a stack-limiting register.
30193 * opts.h: Add extern declarations of the two new global variables.
30194 * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
30195 variable based on the values of the two new global variables.
30197 2016-02-16 Jakub Jelinek <jakub@redhat.com>
30200 * common.opt (Wnonnull-compare): New warning.
30201 * doc/invoke.texi (-Wnonnull): Remove text about comparison
30202 of arguments against NULL.
30203 (-Wnonnull-compare): Document.
30204 * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
30205 * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
30206 * passes.def (pass_warn_nonnull_compare): Add.
30207 * gimple-ssa-nonnull-compare.c: New file.
30209 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
30211 * config/aarch64/aarch64.c (cortexa57_tunings): Remove
30212 AARCH64_EXTRA_TUNE_RECIP_SQRT.
30214 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
30216 * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
30217 reciprocal sqrt for -mlow-precision-recip-sqrt.
30219 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
30220 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30222 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
30223 always use lane loads to construct non-constant vectors.
30225 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
30227 * config/aarch64/aarch64.md
30228 (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
30229 constraints for operand 3.
30230 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
30232 2016-02-16 Jakub Jelinek <jakub@redhat.com>
30233 Richard Biener <rguenther@suse.de>
30235 PR tree-optimization/69820
30236 * tree-vect-patterns.c (type_conversion_p): Return false if
30237 *orig_type is unsigned single precision or boolean.
30238 (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
30241 2016-02-16 Jakub Jelinek <jakub@redhat.com>
30243 PR rtl-optimization/69764
30244 PR rtl-optimization/69771
30245 * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
30246 op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
30248 2016-02-16 Richard Biener <rguenther@suse.de>
30250 PR tree-optimization/69776
30251 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
30253 (indirect_refs_may_alias_p): Likewise.
30254 (refs_may_alias_p_1): Pass alias sets as from ao_ref.
30255 * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
30256 according to tbaa_p.
30257 * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
30258 (optimize_stmt): For redundant store discovery do not allow tbaa.
30260 2016-02-16 Bernd Schmidt <bschmidt@redhat.com>
30262 PR tree-optimization/69714
30263 * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
30264 Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
30266 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
30268 * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
30269 * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
30270 (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
30271 * config/arc/arc.c (arc_init): Check FPU options.
30272 (get_arc_condition_code): Handle new CC_FPU* modes.
30273 (arc_select_cc_mode): Likewise.
30274 (arc_conditional_register_usage): Allow 64 bit datum into even-odd
30275 register pair only. Allow access for ARCv2 accumulator.
30276 (gen_compare_reg): Whenever we have FPU support use FPU compare
30278 (arc_reorg): Don't generate brcc insns when FPU compare
30279 instructions are involved.
30280 * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
30281 (TARGET_OPTFPE): Add condition when ARC EM can use optimized
30282 floating point emulation.
30283 (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
30284 (REVERSE_CONDITION): Add new CC_FPU* modes.
30285 (TARGET_FP_SP_BASE): Define.
30286 (TARGET_FP_DP_BASE): Likewise.
30287 (TARGET_FP_SP_FUSED): Likewise.
30288 (TARGET_FP_DP_FUSED): Likewise.
30289 (TARGET_FP_SP_CONV): Likewise.
30290 (TARGET_FP_DP_CONV): Likewise.
30291 (TARGET_FP_SP_SQRT): Likewise.
30292 (TARGET_FP_DP_SQRT): Likewise.
30293 (TARGET_FP_DP_AX): Likewise.
30294 * config/arc/arc.md (ARCV2_ACC): New constant.
30295 (type): New fpu type attribute.
30296 (SDF): Conditional iterator.
30297 (cstore<mode>, cbranch<mode>): Change expand condition.
30298 (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
30299 handles FPU/FPX cases as well.
30300 * config/arc/arc.opt (mfpu): New option.
30301 * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
30303 (adddf3, muldf3, subdf3): Removed.
30304 * config/arc/predicates.md (proper_comparison_operator): Recognize
30306 * config/arc/fpu.md: New file.
30307 * doc/invoke.texi (ARC Options): Document mfpu option.
30309 2016-02-16 Richard Biener <rguenther@suse.de>
30311 PR rtl-optimization/69291
30312 * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
30313 noce_operand_ok check.
30315 2016-02-16 Tom de Vries <tom@codesourcery.com>
30318 * omp-low.c (simd_clone_create): Remove call to
30319 symtab->call_cgraph_insertion_hooks.
30321 2016-02-16 Jakub Jelinek <jakub@redhat.com>
30323 PR tree-optimization/69802
30324 * tree-ssa-reassoc.c (update_range_test): If op is
30325 SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
30326 op == 1 test of precision 1 integral op, otherwise handle
30327 that case as op itself. Fix up formatting.
30328 (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
30331 2016-02-16 Richard Biener <rguenther@suse.de>
30333 PR tree-optimization/69586
30334 * tree-vrp.c (register_edge_assert_for_2): Handle all integral
30335 types for conversion sources.
30337 2016-02-16 Richard Biener <rguenther@suse.de>
30339 PR middle-end/69801
30340 * fold-const.c (operand_equal_p): For COND_EXPR zero operand
30341 mask OEP_ADDRESS_OF.
30343 2016-02-16 Alan Modra <amodra@gmail.com>
30346 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
30347 (p8_mtvsrd_df, p8_mtvsrd_sf): New.
30348 (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
30350 (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
30351 (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
30352 (p8_fmrgow_<mode>): Likewise.
30353 (reload_vsx_from_gpr<mode>): Make clobber IF. Adjust for above
30355 (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
30356 (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
30357 to use movdi_internal64. Remove op0_di.
30358 * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
30360 2016-02-15 Evandro Menezes <e.menezes@samsung.com>
30362 Add support for the FCCMP insn types
30364 * config/aarch64/aarch64.md (fccmp): Change insn type.
30365 (fccmpe): Likewise.
30366 * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
30367 * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
30368 * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
30369 * config/arm/xgene1.md (xgene1_fcmp): Likewise.
30370 * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
30371 * config/arm/types.md (fccmps): Add new insn type.
30372 (fccmpd): Likewise.
30374 2016-02-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
30376 * alias.c (get_alias_set): Fix a typo in comment.
30378 2016-02-15 Richard Biener <rguenther@suse.de>
30380 PR tree-optimization/69595
30381 * match.pd: Complete range test simplification to true.
30383 2016-02-15 Bernd Schmidt <bschmidt@redhat.com>
30385 PR rtl-optimization/69648
30386 * lra-constraints.c (update_ebb_live_info): Don't remove sets of
30387 pic_offset_table_rtx.
30389 PR rtl-optimization/69752
30390 * ira.c (update_equiv_regs): When looking for more than a single SET,
30391 also take other side effects into account.
30393 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
30395 * config/s390/s390.c (s390_function_profiler): Add a new sequence
30396 for z900+ CPUs in 31-bit mode.
30398 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
30400 * common/config/s390/s390-common.c (s390_supports_split_stack):
30402 (TARGET_SUPPORTS_SPLIT_STACK): New macro.
30403 * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
30404 * config/s390/s390.c (struct machine_function): New field
30405 split_stack_varargs_pointer.
30406 (s390_register_info): Mark r12 as clobbered if it'll be used as temp
30407 in s390_emit_prologue.
30408 (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
30410 (morestack_ref): New global.
30411 (SPLIT_STACK_AVAILABLE): New macro.
30412 (s390_expand_split_stack_prologue): New function.
30413 (s390_live_on_entry): New function.
30414 (s390_va_start): Use split-stack vararg pointer if appropriate.
30415 (s390_asm_file_end): Emit the split-stack note sections.
30416 (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
30417 * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
30418 (UNSPECV_SPLIT_STACK_CALL): New unspec.
30419 (UNSPECV_SPLIT_STACK_DATA): New unspec.
30420 (split_stack_prologue): New expand.
30421 (split_stack_space_check): New expand.
30422 (split_stack_data): New insn.
30423 (split_stack_call): New expand.
30424 (split_stack_call_*): New insn.
30425 (split_stack_cond_call): New expand.
30426 (split_stack_cond_call_*): New insn.
30428 2016-02-15 Richard Biener <rguenther@suse.de>
30430 PR tree-optimization/69783
30431 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
30432 Add trivially correct cases.
30434 2016-02-15 Tom de Vries <tom@codesourcery.com>
30437 * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
30439 * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
30441 2016-02-15 Richard Biener <rguenther@suse.de>
30443 PR tree-optimization/69776
30444 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
30445 * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
30446 indicate whether we can use TBAA to disambiguate against stores.
30447 Use alias-set zero if not.
30448 (visit_reference_op_store): Do not use TBAA when looking up
30450 * tree-ssa-pre.c (compute_avail): Use TBAA here.
30451 (eliminate_dom_walker::before_dom_children): But not when looking
30452 up redundant stores.
30454 2016-02-14 John David Anglin <danglin@gcc.gnu.org>
30456 * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
30458 2016-02-14 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
30460 * config/i386/znver1.md
30461 (znver1_pop, znver1_pop_mem,
30462 znver1_load_imov_double_store,
30463 znver1_load_imov_direct_store,
30464 znver1_load_imov_direct_load,
30465 znver1_load_imov_double_load): Add new.
30466 (znver1_insn, znver1_insn_load): Add icmov type.
30467 (znver1_sseavx_fma,
30468 znver1_sseavx_fma_load,
30470 znver1_avx256_fma_load): Fix pipe usage.
30472 2016-02-14 Alan Modra <amodra@gmail.com>
30475 * reload.c (find_reloads_address_1): For pre/post-inc/dec
30476 with an invalid hard reg, reload just the reg not the entire
30477 pre/post-inc/dec address expression.
30479 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
30482 * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
30483 fixed R1_REG scratch reg.
30484 (sibcall_value_pcrel_fdpic): Likewise.
30486 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
30490 * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
30492 2016-02-12 Walter Lee <walt@tilera.com>
30494 * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
30495 * config/tilegx/t-tilegx: Likewise.
30497 2016-02-12 David Malcolm <dmalcolm@redhat.com>
30500 * diagnostic-show-locus.c (struct line_span): New struct.
30501 (layout::get_first_line): Delete.
30502 (layout::get_last_line): Delete.
30503 (layout::get_num_line_spans): New member function.
30504 (layout::get_line_span): Likewise.
30505 (layout::print_heading_for_line_span_index_p): Likewise.
30506 (layout::get_expanded_location): Likewise.
30507 (layout::calculate_line_spans): Likewise.
30508 (layout::m_first_line): Delete.
30509 (layout::m_last_line): Delete.
30510 (layout::m_line_spans): New field.
30511 (layout::layout): Update comment. Replace m_first_line and
30512 m_last_line with m_line_spans, replacing their initialization
30513 with a call to calculate_line_spans.
30514 (diagnostic_show_locus): When printing source lines and
30515 annotations, rather than looping over a single span
30516 of lines, instead loop over each line_span within
30517 the layout, with an inner loop over the lines within them.
30518 Call the context's start_span callback when changing line spans.
30519 * diagnostic.c (diagnostic_initialize): Initialize start_span.
30520 (diagnostic_build_prefix): Break out the building of the location
30521 part of the string into...
30522 (diagnostic_get_location_text): ...this new function, rewriting
30523 it from nested ternary expressions to a sequence of "if"
30525 (default_diagnostic_start_span_fn): New function.
30526 * diagnostic.h (diagnostic_start_span_fn): New typedef.
30527 (diagnostic_context::start_span): New field.
30528 (default_diagnostic_start_span_fn): New prototype.
30530 2016-02-12 David Malcolm <dmalcolm@redhat.com>
30533 * gcc.c (driver::finalize): Fix cleanup of "specs".
30535 2016-02-12 David Malcolm <dmalcolm@redhat.com>
30539 * gcc.c (driver::driver): Initialize m_option_suggestions.
30540 (driver::~driver): Clean up m_option_suggestions.
30541 (suggest_option): Convert to...
30542 (driver::suggest_option): ...this, and split out into
30543 driver::build_option_suggestions and find_closest_string.
30544 (driver::build_option_suggestions): New function, from
30545 first half of suggest_option. Special-case
30546 OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
30547 the sanitizer_opts array. For options of enum types, add the
30548 various enum values to the candidate strings.
30549 (driver::handle_unrecognized_options): Remove "const".
30550 * gcc.h (driver::handle_unrecognized_options): Likewise.
30551 (driver::build_option_suggestions): New decl.
30552 (driver::suggest_option): New decl.
30553 (driver::m_option_suggestions): New field.
30554 * opts-common.c (add_misspelling_candidates): New function.
30555 * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
30556 and make non-static.
30557 * opts.h (sanitizer_opts): New array decl.
30558 (add_misspelling_candidates): New function decl.
30559 * spellcheck.c (find_closest_string): New function.
30560 * spellcheck.h (find_closest_string): New function decl.
30562 2016-02-12 Jakub Jelinek <jakub@redhat.com>
30564 PR rtl-optimization/69764
30565 PR rtl-optimization/69771
30566 * optabs.c (expand_binop_directly): For shift_optab_p, force
30567 convert_modes with VOIDmode if xop1 has VOIDmode.
30569 2016-02-12 Ilya Enkovich <enkovich.gnu@gmail.com>
30572 * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
30573 to correctly determine instrumentation thunks.
30575 2016-02-12 Jakub Jelinek <jakub@redhat.com>
30578 * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
30579 type by reference, force lhs on the call.
30582 * ipa-split.c (split_function): Don't compute/use main_part_return_p.
30583 Compute retval and retbnd early in all cases if split_part_return_p
30584 and return_bb is not EXIT. Remove all clobber stmts and reset
30585 all debug stmts that refer to SSA_NAMEs defined in split part,
30586 except if it is retval, in that case replace the old retval with the
30587 lhs of the call to the split part.
30589 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
30592 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
30594 PR middle-end/66726
30595 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
30596 whose result is used in PHI.
30597 (maybe_optimize_range_tests): Likewise.
30598 (final_range_test_p): Likweise.
30600 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
30602 PR middle-end/66726
30603 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
30604 whose result is used in PHI.
30605 (maybe_optimize_range_tests): Likewise.
30606 (final_range_test_p): Likweise.
30608 2016-02-12 Jakub Jelinek <jakub@redhat.com>
30610 * cgraph.c: Spelling fixes - behaviour -> behavior and
30611 neighbour -> neighbor.
30612 * target.def: Likewise.
30613 * sel-sched.c: Likewise.
30614 * config/mips/mips.c: Likewise.
30615 * config/arc/arc.md: Likewise.
30616 * config/arm/cortex-a57.md: Likewise.
30617 * config/arm/arm.c: Likewise.
30618 * config/arm/neon.md: Likewise.
30619 * config/arm/arm-c.c: Likewise.
30620 * config/vms/vms-c.c: Likewise.
30621 * config/s390/s390.c: Likewise.
30622 * config/i386/znver1.md: Likewise.
30623 * config/i386/i386.c: Likewise.
30624 * config/ia64/hpux-unix2003.h: Likewise.
30625 * config/msp430/msp430.md: Likewise.
30626 * config/rx/rx.c: Likewise.
30627 * config/rx/rx.md: Likewise.
30628 * config/aarch64/aarch64-simd.md: Likewise.
30629 * config/aarch64/aarch64.c: Likewise.
30630 * config/nvptx/nvptx.c: Likewise.
30631 * config/bfin/bfin.c: Likewise.
30632 * config/cris/cris.opt: Likewise.
30633 * config/rs6000/rs6000.c: Likewise.
30634 * target.h: Likewise.
30635 * spellcheck.c: Likewise.
30636 * ira-build.c: Likewise.
30637 * tree-inline.c: Likewise.
30638 * builtins.c: Likewise.
30639 * lra-constraints.c: Likewise.
30640 * explow.c: Likewise.
30641 * hwint.h: Likewise.
30642 * targhooks.c: Likewise.
30643 * tree-vect-data-refs.c: Likewise.
30644 * expr.c: Likewise.
30645 * doc/tm.texi: Likewise.
30646 * doc/extend.texi: Likewise.
30647 * doc/install.texi: Likewise.
30648 * doc/md.texi: Likewise.
30649 * tree-ssa-tail-merge.c: Likewise.
30650 * sched-int.h: Likewise.
30651 * match.pd: Likewise.
30652 * sched-ebb.c: Likewise.
30653 * target.def (omit_struct_return_reg): Likewise.
30654 * gimple-ssa-isolate-paths.c: Likewise.
30655 (find_implicit_erroneous_behaviour): Renamed to...
30656 (find_implicit_erroneous_behavior): ... this.
30657 (find_explicit_erroneous_behaviour): Renamed to...
30658 (find_explicit_erroneous_behavior): ... this.
30659 (gimple_ssa_isolate_erroneous_paths): Adjust caller.
30661 2016-02-11 Segher Boessenkool <segher@kernel.crashing.org>
30663 PR rtl-optimization/64682
30664 PR rtl-optimization/69567
30665 PR rtl-optimization/69737
30666 * combine.c (distribute_notes) <REG_DEAD>: If the register is set
30667 in I2 as well, just lose it.
30669 2016-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30671 * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
30673 (aarch64_last_printed_tune_string): Likewise.
30674 (aarch64_declare_function_name): Only output .arch assembler
30675 directive if it will be different from the previously output
30676 directive. Same for .tune comment but only if -dA is set.
30677 (aarch64_start_file): New function.
30678 (TARGET_ASM_FILE_START): Define.
30680 2016-02-11 David Malcolm <dmalcolm@redhat.com>
30683 * Makefile.in (PLUGIN_HEADERS): Add params.list.
30685 2016-02-11 Jakub Jelinek <jakub@redhat.com>
30688 * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
30689 -Wmaybe-uninitialized warning.
30691 2016-02-11 Oleg Endo <olegendo@gcc.gnu.org>
30694 * config/sh/sh.md (casesi_worker_0): Add T_REG use.
30696 2016-02-11 Richard Biener <rguenther@suse.de>
30698 PR rtl-optimization/69291
30699 * ifcvt.c (noce_try_store_flag_constants): Do not allow
30700 subexpressions affected by changing the result.
30702 2016-02-10 Vladimir Makarov <vmakarov@redhat.com>
30705 * lra-constraints.c (curr_insn_transform): Find in/out operands
30706 for secondary memory moves. Update dups.
30708 2016-02-10 Yuri Rumyantsev <ysrumyan@gmail.com>
30710 PR tree-optimization/69652
30711 * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
30712 to nested loop, did source re-formatting, skip debug statements,
30713 add check on statement with volatile operand, remove dead scalar
30716 2016-02-10 Jakub Jelinek <jakub@redhat.com>
30717 Patrick Palka <ppalka@gcc.gnu.org>
30721 * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
30722 calls if the return type is TREE_ADDRESSABLE.
30723 * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
30724 * ipa-split.c (split_function): Fix doubled "we" in comment.
30725 Use void return type for the split part even if
30726 !split_point->split_part_set_retval.
30728 2016-02-10 Bin Cheng <bin.cheng@arm.com>
30730 PR tree-optimization/68021
30731 * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
30732 when computing the value of biv cand by itself.
30734 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
30736 * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
30737 (cortexa57_tunings): Likewise.
30738 (cortexa72_tunings): Likewise.
30739 (arch_macro_fusion_pair_p): Add support for AES fusion.
30740 * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
30741 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
30742 Allow virtual registers before reload so early scheduling works.
30743 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
30744 correct latency and pipeline.
30745 (cortex_a57_crypto_complex): Likewise.
30746 (cortex_a57_crypto_xor): Likewise.
30747 (define_bypass): Add AES bypass.
30749 2016-02-10 Richard Biener <rguenther@suse.de>
30751 PR tree-optimization/69726
30752 * passes.def: Add DCE pass before late uninit.
30753 * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
30754 really fixup if-conversions job.
30756 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
30758 * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
30759 (arm_cortex_a57_tune): Likewise.
30760 (aarch_macro_fusion_pair_p): Add support for AES fusion.
30761 * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
30763 2016-02-10 Eric Botcazou <ebotcazou@adacore.com>
30765 * timevar.def (TV_PHASE_DBGINFO): Delete.
30766 (TV_PHASE_CHECK_DBGINFO): Likewise.
30767 * varpool.c (varpool_node::assemble_decl): Do not change timevar.
30769 2016-02-10 Richard Biener <rguenther@suse.de>
30771 PR tree-optimization/69719
30772 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
30773 Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
30775 2016-02-09 Andrew Pinski <apinski@cavium.com>
30778 * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
30779 get_vcond_mask_icode returns false.
30781 2016-02-09 Michael Meissner <meissner@linux.vnet.ibm.com>
30784 * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
30785 an ADDIS that adds a pointer to a large constant that sets the
30786 upper16 bits with a load operation.
30788 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
30791 * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
30793 * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
30795 (vzipq_s16): Likewise.
30796 (vzipq_s32): Likewise.
30797 (vzipq_f32): Likewise.
30798 (vzipq_u8): Likewise.
30799 (vzipq_u16): Likewise.
30800 (vzipq_u32): Likewise.
30801 (vzipq_p8): Likewise.
30802 (vzipq_p16): Likewise.
30804 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
30807 * config/arm/arm.c (neon_endian_lane_map): New function.
30808 (neon_vector_pair_endian_lane_map): New function.
30809 (arm_evpc_neon_vuzp): Allow for big endian lane order.
30810 * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
30812 (vuzpq_s16): Likewise.
30813 (vuzpq_s32): Likewise.
30814 (vuzpq_f32): Likewise.
30815 (vuzpq_u8): Likewise.
30816 (vuzpq_u16): Likewise.
30817 (vuzpq_u32): Likewise.
30818 (vuzpq_p8): Likewise.
30819 (vuzpq_p16): Likewise.
30821 2016-02-11 Alexandre Oliva <aoliva@redhat.com>
30824 * regstat.c (regstat_bb_compute_calls_crossed): Disregard
30827 2016-02-09 Uros Bizjak <ubizjak@gmail.com>
30829 * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
30830 truncate const_int operand 1 to QImode.
30832 2016-02-09 Eric Botcazou <ebotcazou@adacore.com>
30834 * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
30835 corresponding to an abnormal edge.
30837 2016-02-09 Tom de Vries <tom@codesourcery.com>
30839 PR tree-optimization/69599
30840 * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
30842 (find_func_aliases_for_builtin_call, find_func_clobbers)
30843 (ipa_pta_execute): Handle case that foo and foo._0 are not in same lto
30846 2016-02-09 Richard Biener <rguenther@suse.de>
30848 PR tree-optimization/69715
30849 * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
30850 LHS on calls as non-rewritable.
30852 2016-02-09 Tom de Vries <tom@codesourcery.com>
30855 * lto-wrapper.c (append_diag_options): New function.
30856 (compile_offload_image): Call append_diag_options.
30858 2016-02-08 Sandra Loosemore <sandra@codesourcery.com>
30861 * doc/extend.texi (Flag Output Operands): Correct sectioning.
30862 Minor copy-edit to fix verb tenses.
30864 2016-02-08 Jakub Jelinek <jakub@redhat.com>
30866 PR tree-optimization/69209
30867 * ipa-split.c (split_function): If split part is not
30868 returning retval, retval has gimple type but is not
30869 gimple value, force it into a SSA_NAME first.
30871 2016-02-08 Nicklas Bo Jensen <nbjensen@gmail.com>
30873 * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
30876 2016-02-08 Jason Merrill <jason@redhat.com>
30879 * convert.c (convert_to_integer_1): Check dofold on truncation
30881 (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
30882 (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
30883 Rename from *_nofold.
30884 * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
30885 (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
30887 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
30890 * tree.c (build_common_tree_nodes): Remove short_double argument.
30891 All callers changed.
30892 * tree.h (build_common_tree_nodes): Adjust declaration.
30893 * doc/invoke.texi (-fshort-double): Remove documentation.
30894 * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
30895 MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
30896 * lto-wrapper.c (merge_and_complain, append_compiler_options)
30897 (append_linker_options): Don't handle OPT_fshort_double.
30899 PR rtl-optimization/68730
30900 * lra-remat.c (insn_to_cand_activation): New static variable.
30901 (lra_remat): Allocate and free it.
30902 (create_cand): New arg activation. Initialize a field in
30903 insn_to_cand_activation if it is nonnull.
30904 (create_cands): Pass the activation insn to create_cand when making
30905 a candidate involving an output reload. Reorganize code a little.
30906 (do_remat): Keep track of active status of candidates in a separate
30909 2016-02-08 Richard Biener <rguenther@suse.de>
30911 PR tree-optimization/69719
30912 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
30913 Properly use absolute of the difference of the two offsets to
30914 compare or adjust the segment length.
30916 2016-02-08 Richard Biener <rguenther@suse.de>
30917 Jeff Law <law@redhat.com>
30920 * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
30921 types for anonymous SSA names.
30923 2016-02-08 Richard Biener <rguenther@suse.de>
30925 PR rtl-optimization/69274
30926 * ira.c (ira_setup_alts): Do not change recog_data.operand order.
30928 2016-02-08 Jeff Law <law@redhat.com>
30930 PR tree-optimization/65917
30931 * tree-ssa-dom.c (record_temporary_equivalences): Record both
30932 equivalences from if (x == y) style conditionals.
30933 (loop_depth_of_name): Remove.
30934 (record_equality): Remove loop depth check.
30935 * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
30936 (const_and_copies::record_const_or_copy_raw): New member function.
30937 * tree-ssa-scopedtables.c
30938 (const_and_copies::record_const_or_copy_raw): New, factored out of
30939 (const_and_copies::record_const_or_copy): Call new member function.
30941 2016-02-05 Jeff Law <law@redhat.com>
30943 PR tree-optimization/68541
30944 * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
30945 (count_stmts_in_block): New function.
30946 (poor_ifcvt_candidate_code): Likewise.
30947 (is_feasible_trace): Add some heuristics to determine when path
30948 splitting is profitable.
30949 (find_block_to_duplicate_for_splitting_paths): Make sure the graph
30950 is a diamond with a single exit.
30952 2016-02-05 Martin Sebor <msebor@redhat.com>
30955 * doc/invoke.texi: Update -Wplacement-new to take an optional
30958 2016-02-06 Richard Henderson <rth@redhat.com>
30961 * tree.c (tree_nop_conversion_p): Do not strip casts into or
30962 out of non-standard address spaces.
30964 2016-02-05 Jakub Jelinek <jakub@redhat.com>
30966 PR rtl-optimization/69691
30967 * lra-eliminations.c (move_plus_up): Don't add the addend twice.
30969 2016-02-05 Pat Haugen <pthaugen@us.ibm.com>
30971 * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
30972 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
30973 (*ieee128_mfvsrd_64bit): Likewise.
30974 (*ieee128_mfvsrd_32bit): Likewise.
30976 2016-02-05 Ilya Enkovich <enkovich.gnu@gmail.com>
30980 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
30982 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
30983 instrumented_version.
30985 2016-01-05 Jeremy Bennett <jeremy.bennett@embecosm.com>
30987 * doc/invoke.texi (Optimize Options): In table of --param options
30988 rename second occurrence of tracer-min-branch-ratio to
30989 tracer-min-branch-probability, rename
30990 tracer-min-branch-ratio-feedback to
30991 tracer-min-branch-probability-feedback and clarify description,
30992 rename sched-spec-state-edge-prob-cutoff to
30993 sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
30994 to selsched-insns-to-rename, rename lto-minpartition to
30995 lto-min-partition, delete reorder-blocks-duplicate and
30996 reorder-blocks-duplicate-feedback.
30998 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31000 * config/s390/s390.c (s390_register_info_set_ranges): Remove
31003 2016-02-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
31005 * doc/extend.texi: S/390: Correct some typos.
31007 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31009 * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
31011 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31014 * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
31015 (s390_register_info_gprtofpr): Use new macros above.
31016 (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
31018 (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
31019 its name. Adjust restore and save gpr ranges.
31020 (s390_register_info_set_ranges): New function.
31021 (s390_register_info): Use new macros above. Call
31022 s390_register_info_set_ranges.
31023 (s390_optimize_register_info): Likewise.
31024 (s390_hard_regno_rename_ok): Use new macros.
31025 (s390_hard_regno_scratch_ok): Likewise.
31026 (s390_emit_epilogue): Likewise.
31027 (s390_can_use_return_insn): Likewise.
31028 (s390_optimize_prologue): Likewise.
31029 * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
31031 2016-02-05 Jakub Jelinek <jakub@redhat.com>
31034 * config/i386/i386.c (convert_scalars_to_vector): Readd stack
31036 (ix86_option_override_internal): Disable TARGET_STV even for
31037 -m{incoming,preferred}-stack-boundary=3.
31039 2016-02-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31041 * config.gcc: Mark deprecated rtems targets as obsolete.
31043 2016-02-04 Segher Boessenkool <segher@kernel.crashing.org>
31045 PR rtl-optimization/64682
31046 PR rtl-optimization/69567
31047 * combine.c (distribute_notes) <REG_DEAD>: Place the death note
31048 before I2 only if the register is both used and set in I2.
31050 2016-02-04 DJ Delorie <dj@redhat.com>
31052 * config/msp430/msp430.c (msp430_start_function): Add function type.
31054 2016-02-04 Jakub Jelinek <jakub@redhat.com>
31057 * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
31059 2016-02-04 Uros Bizjak <ubizjak@gmail.com>
31061 PR rtl-optimization/69577
31063 2015-10-29 Richard Henderson <rth@redhat.com>
31067 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
31068 sse check to the exact conditions of PR 67609.
31070 2016-02-04 Michael Meissner <meissner@linux.vnet.ibm.com>
31073 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
31074 instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
31075 not allowed into the traditional Altivec registers.
31076 (movtd_64bit_nodm): Likewise.
31077 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
31079 2016-02-04 David Malcolm <dmalcolm@redhat.com>
31081 * config/aarch64/cortex-a57-fma-steering.c
31082 (aarch64_register_fma_steering): Remove "static" from arguments
31085 2016-02-04 Wilco Dijkstra <wdijkstr@arm.com>
31088 * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
31089 twice when complex.
31091 2016-02-04 Mike Frysinger <vapier@gentoo.org>
31093 * doc/invoke.texi: Delete -mno-fma4.
31095 2016-02-04 Richard Sandiford <richard.sandiford@arm.com>
31097 PR rtl-optimization/69577
31098 * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
31099 (find_subregs_of_mode): Update accordingly. Iterate over partial
31102 2016-02-04 Alan Lawrence <alan.lawrence@arm.com>
31104 * config/arm/arm-protos.h (neon_reinterpret): Remove.
31105 * config/arm/arm.c (neon_reinterpret): Remove.
31106 * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
31107 vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
31108 vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
31109 vreinterpretti): Remove.
31110 * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
31111 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
31112 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
31113 neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
31114 neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
31115 neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
31116 * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
31117 vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
31118 vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
31119 vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
31120 vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
31121 vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
31122 vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
31123 vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
31124 vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
31125 vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
31126 vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
31127 vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
31128 vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
31129 vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
31130 vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
31131 vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
31132 vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
31133 vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
31134 vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
31135 vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
31136 vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
31137 vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
31138 vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
31139 vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
31140 vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
31141 vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
31142 vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
31143 vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
31144 vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
31145 vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
31146 vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
31147 vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
31148 vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
31149 vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
31150 vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
31151 vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
31152 vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
31153 vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
31154 vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
31155 vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
31156 vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
31157 vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
31158 vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
31159 vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
31160 vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
31161 vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
31162 vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
31163 vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
31164 vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
31165 vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
31166 vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
31167 vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
31168 vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
31169 vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
31170 vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
31171 vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
31172 vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
31173 vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
31174 vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
31175 vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
31176 vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
31177 vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
31178 vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
31179 vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
31180 vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
31181 vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
31182 vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
31183 vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
31184 vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
31185 vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
31186 vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
31187 vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
31188 vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
31189 vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
31190 vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
31191 vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
31192 vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
31193 vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
31194 vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
31195 vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
31196 vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
31197 vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
31198 vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
31199 vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
31200 vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
31201 vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
31202 vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
31203 vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
31204 vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
31205 vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
31206 vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
31207 vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
31208 vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
31209 vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
31210 vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
31211 vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
31212 vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
31214 2016-02-04 Martin Liska <mliska@suse.cz>
31217 * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
31218 that are gimple_store_p.
31219 (maybe_instrument_call): Likewise.
31221 2016-02-04 Bin Cheng <bin.cheng@arm.com>
31223 * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
31224 register scaling out of memory reference and comment why.
31226 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31230 * cse.c (cse_insn): Pass NULL to fold_rtx when initially
31231 folding the source of a SET.
31233 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31237 * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
31238 the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
31240 2016-02-04 Jim Wilson <jim.wilson@linaro.org>
31244 * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
31247 2016-02-04 Christian Bruel <christian.bruel@st.com>
31249 * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
31250 * config/arm/arm.c (arm_set_current_function): Likewise.
31252 2016-02-04 Jakub Jelinek <jakub@redhat.com>
31253 Ilya Enkovich <enkovich.gnu@gmail.com>
31254 H.J. Lu <hongjiu.lu@intel.com>
31257 * config/i386/i386.c (convert_scalars_to_vector): Remove
31258 stack alignment fixes.
31259 (ix86_option_override_internal): Disable TARGET_STV if stack
31260 might not be aligned enough.
31261 (ix86_minimum_alignment): Assert that TARGET_STV is false.
31263 2016-02-04 Victoria Stepanyan <victoria.stepanyan@amd.com>
31265 * config/i386/x86-tune.def: Disable default prefetching
31268 2016-02-03 Michael Meissner <meissner@linux.vnet.ibm.com>
31269 Vladimir Makarov <vmakarov@redhat.com>
31272 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
31273 in validating fused toc addresses.
31275 2016-02-03 Jakub Jelinek <jakub@redhat.com>
31278 * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
31279 range->m_caret fields if range->m_show_caret_p is false.
31282 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
31283 Force oldval into register if it does not satisfy reg_or_short_operand
31284 predicate. Fix up formatting.
31286 2016-02-03 Vladimir Makarov <vmakarov@redhat.com>
31287 Alexandre Oliva <aoliva@redhat.com>
31290 * lra-constraints.c (simplify_operand_subreg): Check additionally
31291 address validity after potential reloading.
31292 (process_address_1): Check insns validity. In case of failure do
31295 2016-02-03 Kirill Yukhin <kirill.yukhin@intel.com>
31298 * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
31301 2016-02-02 Jakub Jelinek <jakub@redhat.com>
31303 * wide-int.cc (canonize_uhwi): New function.
31304 (wi::divmod_internal): Use it.
31306 2016-02-02 James Norris <jnorris@codesourcery.com>
31308 * gimplify.c (omp_notice_variable): Add usage check.
31310 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
31312 * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
31313 like LE, GE, LT, GT when emitting relational operator.
31315 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
31317 * ira-costs.c (find_costs_and_classes): Add extra argument.
31318 * target.def (ira_change_pseudo_allocno_class): Add parameter.
31319 * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
31320 * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
31321 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
31322 Add best_class parameter, and return it if not ALL_REGS.
31323 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
31325 * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
31326 Update target hook.
31328 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
31330 * config/aarch64/aarch64.c
31331 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
31332 (aarch64_ira_change_pseudo_allocno_class): New function.
31334 2016-02-02 Uros Bizjak <ubizjak@gmail.com>
31337 * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
31339 2016-02-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
31341 * config/avr/avr.c (avr_option_override): Set
31342 PARAM_ALLOW_STORE_DATA_RACES to 1.
31344 2016-02-02 Richard Biener <rguenther@suse.de>
31346 PR tree-optimization/69595
31347 * match.pd: Add range test simplifications to true/false.
31349 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
31351 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
31352 * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
31355 2016-02-02 Richard Biener <rguenther@suse.de>
31357 PR tree-optimization/69606
31358 * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
31359 info on the result before moving a stmt.
31361 2016-02-02 Yuri Rumyantsev <ysrumyan@gmail.com>
31363 PR middle-end/68542
31364 * config/i386/i386.c (ix86_expand_branch): Add support for conditional
31365 branch with vector comparison.
31366 * config/i386/sse.md (VI48_AVX): New mode iterator.
31367 (define_expand "cbranch<mode>4): Add support for conditional branch
31368 with vector comparison.
31369 * tree-vect-loop.c (optimize_mask_stores): New function.
31370 * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
31371 has_mask_store field of vect_info.
31372 * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
31373 vectorized loops having masked stores after vec_info destroy.
31374 * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
31375 correspondent macros.
31376 (optimize_mask_stores): Add prototype.
31378 2016-02-02 Alan Modra <amodra@gmail.com>
31381 * config/rs6000/predicates.md (quad_int_reg_operand): Don't
31384 2016-02-02 Alan Modra <amodra@gmail.com>
31387 * config/rs6000/rs6000.c (need_toc_init): New var, set it
31388 whenever toc_label_name used.
31389 (rs6000_file_start): Don't set up toc section here,
31390 (rs6000_output_function_epilogue): do so here instead,
31391 (rs6000_xcoff_file_start): and here.
31392 * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
31393 (load_toc_aix_di): Likewise.
31395 2016-02-01 Jakub Jelinek <jakub@redhat.com>
31397 PR rtl-optimization/69592
31398 * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
31399 (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
31400 (num_sign_bit_copies_binary_arith_p): New inline function.
31401 (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
31403 2016-02-01 Jeff Law <law@redhat.com>
31405 PR tree-optimization/69580
31406 * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
31407 * tree-ssa-threadbackward.c
31408 (fsm_find_control_statement_thread_paths): Do not try to walk
31409 through large PHI nodes.
31411 2016-02-01 Jakub Jelinek <jakub@redhat.com>
31413 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
31414 when count is incremented above limit, don't analyze further
31417 * omp-low.c (oacc_parse_default_dims): Avoid
31418 -Wsign-compare warning, make sure value fits into int
31419 rather than just unsigned int.
31421 2016-02-01 Bin Cheng <bin.cheng@arm.com>
31423 PR tree-optimization/67921
31424 * fold-const.c (split_tree): New parameters. Convert pointer
31425 type variable part to proper type before negating.
31426 (fold_binary_loc): Pass new arguments to split_tree.
31428 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
31430 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
31431 (nvptx_goacc_validate_dims): Extend to handle global defaults.
31432 * target.def (OACC_VALIDATE_DIMS): Extend documentation.
31433 * doc/tm.texti: Rebuilt.
31434 * doc/invoke.texi (fopenacc-dim): Document.
31435 * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
31436 (append_compiler_options): Likewise.
31437 * omp-low.c (oacc_default_dims, oacc_min_dims): New.
31438 (oacc_parse_default_dims): New.
31439 (oacc_validate_dims): Add USED arg. Select non-unity default when
31441 (oacc_loop_fixed_partitions): Return mask of used partitions.
31442 (oacc_loop_auto_partitions): Emit dump info.
31443 (oacc_loop_partition): Return mask of used partitions.
31444 (execute_oacc_device_lower): Parse default dimension arg. Adjust
31445 loop partitioning and validation calls.
31447 2016-02-01 Richard Biener <rguenther@suse.de>
31449 PR middle-end/69556
31450 * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
31452 2016-02-01 Richard Biener <rguenther@suse.de>
31454 PR tree-optimization/69574
31455 * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
31456 of asserting return chrec_dont_know.
31458 2016-02-01 Martin Liska <mliska@suse.cz>
31460 * mem-stats-traits.h: Add copyright header.
31461 * mem-stats.h: Likewise.
31463 2016-02-01 Richard Biener <rguenther@suse.de>
31465 PR tree-optimization/69579
31466 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
31467 Do not propagate through abnormal PHI results.
31469 2016-02-01 Eric Botcazou <ebotcazou@adacore.com>
31471 * postreload.c (reload_cse_simplify): Remove dead code.
31473 2016-02-01 Jakub Jelinek <jakub@redhat.com>
31475 PR rtl-optimization/69570
31476 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
31477 if there is more than one set, not if there is a single set.
31479 2016-02-01 Richard Henderson <rth@redhat.com>
31482 * combine.c (make_compound_operation): When looking through a
31483 subreg, make sure to re-extend to the width of the outer mode.
31485 2016-01-30 Jakub Jelinek <jakub@redhat.com>
31487 PR tree-optimization/69546
31488 * wide-int.cc (wi::divmod_internal): For unsigned division
31489 where both operands fit into uhwi, if o1 is 1 and o0 has
31490 msb set, if divident_prec is larger than bits per hwi,
31491 clear another quotient word and return 2 instead of 1.
31492 Similarly for remainder with msb in HWI set, if dividend_prec
31493 is larger than bits per hwi.
31495 2016-01-29 Martin Jambor <mjambor@suse.cz>
31497 * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
31498 Use short lowercase names.
31499 (get_memory_order): Mask with MEMMODEL_BASE_MASK. Support
31500 MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
31501 acq_rel one. Protect warning agains segfaults if
31502 get_memory_order_name returns NULL.
31503 (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
31504 with release semantics. Do not warn if get_memory_order already did.
31505 (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
31506 semantics. Fix check for relaxed or acquire semantics. Do not warn
31507 if get_memory_order already did.
31509 2016-01-29 Sebastian Pop <s.pop@samsung.com>
31511 * doc/install.texi: Document that isl-0.16 is supported.
31513 2016-01-29 Vladimir Makarov <vmakarov@redhat.com>
31516 * config/i386/constraints.md (Bm): Describe as special memory
31518 * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
31519 * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
31520 * genpreds.c (struct constraint_data): Add is_special_memory.
31521 (have_special_memory_constraints, special_memory_start): New
31523 (special_memory_end): Ditto.
31524 (add_constraint): Add new arg is_special_memory. Add code to
31525 process its true value. Update have_special_memory_constraints.
31526 (process_define_constraint): Pass the new arg.
31527 (process_define_register_constraint): Ditto.
31528 (choose_enum_order): Process special memory.
31529 (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
31530 function insn_extra_special_memory_constraint.
31531 (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
31532 * gensupport.c (process_rtx): Process
31533 DEFINE_SPECIAL_MEMORY_CONSTRAINT.
31534 * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
31535 * ira-lives.c (single_reg_class): Use
31536 insn_extra_special_memory_constraint.
31537 * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
31538 * lra-constraints.c (process_alt_operands): Ditto.
31539 (curr_insn_transform): Use insn_extra_special_memory_constraint.
31540 * recog.c (asm_operand_ok, preprocess_constraints): Process
31542 * reload.c (find_reloads): Ditto.
31543 * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
31544 * stmt.c (parse_input_constraint): Use
31545 insn_extra_special_memory_constraint.
31547 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
31550 * lra-splill.c (lra_final_code_change): Revert r229087 by
31551 removing all sub-registers.
31553 2016-01-29 Steve Ellcey <sellcey@imgtec.com>
31556 * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
31558 2016-01-29 Jakub Jelinek <jakub@redhat.com>
31561 * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
31562 SSE1, copy target into the temporary reg first before recursing
31565 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
31567 * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
31570 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
31572 * ginclude/stdarg.h: Test __cplusplus instead of
31573 __GXX_EXPERIMENTAL_CXX0X__.
31575 2016-01-29 Richard Biener <rguenther@suse.de>
31577 PR tree-optimization/69547
31578 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
31579 Do not mark clobbers necessary.
31580 (mark_all_reaching_defs_necessary_1): Likewise.
31582 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
31584 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
31585 declaration name with %qs and print it in both error messages.
31586 Also fix indentation.
31588 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
31591 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
31592 trailing blank line from error message.
31594 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
31597 * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
31600 2016-01-29 Richard Biener <rguenther@suse.de>
31602 PR middle-end/69537
31603 * match.pd: Allow all integral types when simplifying a
31604 widening or sign-changing conversion.
31606 2016-01-28 Sebastian Pop <s.pop@samsung.com>
31608 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
31609 back to setting codegen_error to fail codegen.
31611 2016-01-28 Uros Bizjak <ubizjak@gmail.com>
31614 * config/i386/constraints.md (C): Only accept constant zero operand.
31615 (BC): New constraint.
31616 * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
31617 instead of C constraint.
31618 * doc/md.texi (Machine Constraints): Update description
31621 2016-01-28 Steve Ellcey <sellcey@imgtec.com>
31624 * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
31626 2016-01-28 Jakub Jelinek <jakub@redhat.com>
31628 PR middle-end/69542
31629 * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
31632 2016-01-28 Pat Haugen <pthaugen@us.ibm.com>
31634 * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
31635 branches if using guessed profile.
31637 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
31639 * graphite-optimize-isl.c (optimize_isl): Fix dump.
31641 2016-01-28 Richard Henderson <rth@redhat.com>
31644 * config/aarch64/aarch64-modes.def (CC_Cmode): New
31645 * config/aarch64/aarch64-protos.h: Update.
31646 * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
31647 (aarch64_select_cc_mode): Add check for use of CC_Cmode.
31648 (aarch64_get_condition_code_1): Handle CC_Cmode.
31649 * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
31650 (*add<mode>3_compareC_cconly_imm): New.
31651 (*add<mode>3_compareC_cconly): New.
31652 (*add<mode>3_compareC_imm): New.
31653 (add<mode>3_compareC): New.
31654 (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
31655 to be first. Use aarch64_carry_operation.
31656 (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
31657 (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
31658 (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
31659 (subti3): Use subdi3_compare1.
31660 (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
31661 (sub<mode>3_compare1): New.
31662 (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
31663 (*sub<mode>3_carryin): Use aarch64_borrow_operation.
31664 (*subsi3_carryin_uxtw): Likewise.
31665 (*ngc<mode>, *ngcsi_uxtw): Likewise.
31666 (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
31667 * config/aarch64/iterators.md (DWI): New.
31668 * config/aarch64/predicates.md (aarch64_carry_operation): New.
31669 (aarch64_borrow_operation): New.
31671 2016-01-28 Abderrazek Zaafrani <a.zaafrani@samsung.com>
31673 * graphite-optimize-isl.c (optimize_isl): Print a different debug
31674 message when isl does not return a valid schedule.
31676 2016-01-28 Sebastian Pop <s.pop@samsung.com>
31678 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
31679 Remove comments from class declarations: they are already in the code
31682 2016-01-28 Sebastian Pop <s.pop@samsung.com>
31684 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
31686 (ternary_op_to_tree): Same.
31687 (unary_op_to_tree): Same.
31688 (nary_op_to_tree): Same.
31689 (gcc_expression_from_isl_expr_op): Same.
31690 (gcc_expression_from_isl_expression): Same.
31691 (graphite_create_new_loop): Same.
31692 (graphite_create_new_loop_guard): Same.
31693 (build_iv_mapping): Same.
31694 (graphite_create_new_guard): Same.
31695 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
31696 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
31698 2016-01-28 Sebastian Pop <s.pop@samsung.com>
31700 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
31701 instead of setting codegen_error to fail codegen.
31703 2016-01-28 Jason Merrill <jason@redhat.com>
31705 * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
31707 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
31709 * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
31710 Remove CONST_INT_P check in CCMP cost calculation.
31712 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
31714 * config/aarch64/aarch64.c (generic_vector_cost):
31715 Set vec_permute_cost.
31716 (cortexa57_vector_cost): Likewise.
31717 (exynosm1_vector_cost): Likewise.
31718 (xgene1_vector_cost): Likewise.
31719 (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
31720 * config/aarch64/aarch64-protos.h (cpu_vector_cost):
31721 Add vec_permute_cost entry.
31723 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
31725 * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
31727 (add<mode>3_compare0): Likewise.
31728 (addsi3_compare0_uxtw): Likewise.
31729 (add<mode>3nr_compare0): Likewise.
31730 (compare_neg<mode>): Likewise.
31731 (<optab><mode>3): Likewise.
31733 2016-01-28 Ilya Enkovich <enkovich.gnu@gmail.com>
31735 * tree-vect-stmts.c (vectorizable_comparison): Add
31736 NULL check for vectype.
31738 2016-01-28 Richard Biener <rguenther@suse.de>
31740 PR tree-optimization/69466
31741 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
31742 Account for PHIs we couldn't duplicate.
31744 2016-01-28 Martin Liska <mliska@suse.cz>
31747 * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
31748 instead of ENABLE_VALGRIND_CHECKING.
31750 2016-01-27 Richard Henderson <rth@redhat.com>
31753 * lra-remat.c (subreg_regs): New.
31754 (dump_candidates_and_remat_bb_data): Dump it.
31755 (operand_to_remat): Reject if operand in subreg_regs.
31756 (set_bb_regs): Collect subreg_regs.
31757 (lra_remat): Init and free subreg_regs. Compute
31758 calculate_local_reg_remat_bb_data before create_cands.
31760 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
31763 * config/i386/i386.c (ix86_update_stack_boundary): Don't
31764 change stack_alignment_needed for __tls_get_addr call.
31766 2016-01-27 Segher Boessenkool <segher@kernel.crashing.org>
31768 * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
31770 2016-01-27 Jeff Law <law@redhat.com>
31772 PR tree-optimization/68398
31773 PR tree-optimization/69196
31774 * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
31775 (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
31776 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
31777 Only count PHIs in the last block in the path. The others will
31778 const/copy propagate away. Add heuristic to allow more irreducible
31779 subloops to be created when it is likely profitable to do so.
31781 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
31782 Fix typo in comment. Use gsi_after_labels and remove the GIMPLE_LABEL
31783 check from within the loop. Use gsi_next_nondebug rather than gsi_next.
31785 2016-01-27 Jakub Jelinek <jakub@redhat.com>
31788 * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
31789 END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
31790 * asan.c (DEF_BUILTIN_STUB): Temporarily define.
31791 * tree-streamer-in.c: Include asan.h.
31792 (streamer_get_builtin_tree): For builtins in sanitizer
31793 range call initialize_sanitizer_builtins and retry.
31795 2016-01-27 Ian Lance Taylor <iant@google.com>
31797 * common.opt (fkeep-gc-roots-live): New undocumented option.
31798 * tree-ssa-loop-ivopts.c (add_candidate_1): If
31799 -fkeep-gc-roots-live, skip pointers.
31800 (add_iv_candidate_for_biv): Handle add_candidate_1 returning
31803 2016-01-27 Uros Bizjak <ubizjak@gmail.com>
31806 * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
31807 (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
31809 2016-01-27 Thomas Klausner <wiz@NetBSD.org>
31812 * configure.ac: NetBSD provides SSP in its C library.
31813 * configure: Updated.
31815 2016-01-27 Richard Biener <rguenther@suse.de>
31817 PR tree-optimization/69166
31818 * tree-vect-loop.c (vect_is_simple_reduction): Always check
31819 reduction code for commutativity / associativity.
31821 2016-01-27 Martin Jambor <mjambor@suse.cz>
31823 PR tree-optimization/69355
31824 * tree-sra.c (analyze_access_subtree): Correct hole detection when
31825 total_scalarization fails.
31827 2016-01-27 David Edelsohn <dje.gcc@gmail.com>
31829 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
31832 2016-01-27 Christian Bruel <christian.bruel@st.com>
31835 * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
31836 Move arm_reset_previous_fndecl and set_target_option_current_node in
31837 the conditional part. Call save_restore_target_globals.
31838 * config/arm/arm.c (arm_set_current_function):
31839 Refactor to better support #pragma target and attribute mix.
31840 Call save_restore_target_globals.
31841 * config/arm/arm-protos.h (save_restore_target_globals): New function.
31843 2016-01-27 Martin Liska <mliska@suse.cz>
31845 * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
31846 reference for an HSA kernel and its host function.
31848 2016-01-27 Jakub Jelinek <jakub@redhat.com>
31850 PR tree-optimization/69399
31851 * wide-int.h (wi::lrshift): For larger precisions, only
31852 use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
31854 2016-01-27 Claudiu Zissulescu <claziss@synopsys.com>
31856 * config/arc/predicates.md (proper_comparison_operator): Reject
31857 constant-constant comparison.
31859 2016-01-26 Tom de Vries <tom@codesourcery.com>
31861 PR tree-optimization/69110
31862 * tree-data-ref.c (initialize_data_dependence_relation): Handle
31863 DR_NUM_DIMENSIONS == 0.
31865 2016-01-26 Abderrazek Zaafrani <a.zaafrani@samsung.com>
31866 Sebastian Pop <s.pop@samsung.com>
31868 * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
31869 isl_ast_op_cond and isl_ast_op_select.
31870 (gcc_expression_from_isl_expr_op): Same.
31872 2016-01-26 Jason Merrill <jason@redhat.com>
31875 * tree.c (recompute_constructor_flags): Split out from
31877 (verify_constructor_flags): New.
31878 * tree.h: Declare them.
31880 2016-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
31882 PR rtl-optimization/69217
31883 * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
31884 are no TYPE_FIELDS set for the record type.
31886 2016-01-26 Jakub Jelinek <jakub@redhat.com>
31889 * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
31890 toc_label_name unconditionally.
31891 (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
31892 SYMBOL_REF string. Use toc_label_name instead of constructing
31894 (rs6000_elf_declare_function_name): Use toc_label_name instead of
31895 constructing LCTOC1.
31897 2016-01-26 Martin Sebor <msebor@redhat.com>
31900 * doc/extend.texi (Common Type Attributes): Move text that talks about
31901 attribute packed from attribute aligned to the section discussing
31902 the former attribute for clarity.
31904 2016-01-26 Richard Henderson <rth@redhat.com>
31906 PR middle-end/60908
31907 * trans-mem.c (tm_region_init): Mark entry block as visited.
31909 2016-01-26 David Malcolm <dmalcolm@redhat.com>
31912 * diagnostic-show-locus.c (layout::print_source_line): Replace
31913 call to pp_newline with call to layout::print_newline.
31914 (layout::print_annotation_line): Likewise.
31915 (layout::move_to_column): Likewise.
31916 (layout::print_any_fixits): After printing any fixits, print a
31917 trailing newline, if necessary.
31918 (layout::print_newline): New method, resetting any colorization
31920 (diagnostic_show_locus): Move the pp_newline to before the
31921 early bailout. Remove dummy block enclosing the layout instance.
31922 * diagnostic.c (default_diagnostic_finalizer): Replace invocation
31923 of pp_newline_and_flush with pp_flush.
31924 (diagnostic_append_note): Delete use of pp_newline.
31925 (diagnostic_append_note_at_rich_loc): Delete.
31926 * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
31927 * pretty-print.h (output_buffer_append_r): Reset buff->line_length
31928 when newline characters are added to the buffer.
31930 2016-01-26 Michael Matz <matz@suse.de>
31932 * configure.ac (ac_cv_std_swap_in_utility): New test.
31933 * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
31934 * configure: Regenerate.
31935 * config.in: Regenerate.
31937 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
31939 * config/arc/arc.md (cstoresi4): Force operand into register.
31940 (arcset<code>): Fix predicate.
31941 (arcsetltu): Likewise.
31942 (arcsetgeu): Likewise.
31943 (arcsethi): Likewise.
31944 (arcsetls): Likewise.
31946 2016-01-26 Jakub Jelinek <jakub@redhat.com>
31948 PR tree-optimization/69483
31949 * gimple-fold.c (canonicalize_constructor_val): Return NULL
31950 if base has error_mark_node type.
31952 2016-01-26 Christophe Lyon <christophe.lyon@linaro.org>
31955 * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
31956 * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
31958 (vget_lane_f16): Handle big-endian.
31959 (vgetq_lane_f16): Likewise.
31960 (vset_lane_f16): Likewise.
31961 (vsetq_lane_f16): Likewise.
31962 * config/arm/iterators.md (VQXMOV): Add V8HF.
31963 (VDQ): Add V4HF and V8HF.
31964 (V_reg): Handle V4HF and V8HF.
31965 (Is_float_mode): Likewise.
31966 * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
31967 neon_vdup_nv8hf): New patterns.
31968 (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
31969 Use VD_LANE iterator.
31970 (neon_vld1_dup<mode>): Use VQ2 iterator.
31972 2016-01-26 Nathan Sidwell <nathan@acm.org>
31974 * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
31975 (set_oacc_fn_attrib): Add IS_KERNEL arg.
31976 * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
31977 (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
31978 (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
31979 (oacc_validate_dims): Add LEVEL arg, don't return level.
31980 (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
31981 oacc_validate_dims.
31982 (execute_oacc_device_lower): Adjust, add more dump output.
31983 * tree-ssa-loop.c (gate_oacc_kernels): Use
31984 oacc_fn_attrib_kernels_p.
31985 * tree-parloops.c (create_parallel_loop): Adjust
31986 set_oacc_fn_attrib call.
31988 2016-01-26 Jakub Jelinek <jakub@redhat.com>
31991 * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
31992 (append_compiler_options): Handle -fcilkplus.
31993 (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
31995 2016-01-26 Nick Clifton <nickc@redhat.com>
31998 * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
31999 been marked as DECL_ONE_ONLY but we do not the means to make it
32000 so, then do not allow it to bind locally.
32002 2016-01-26 Jakub Jelinek <jakub@redhat.com>
32005 * opts.h (parse_sanitizer_options): New prototype.
32006 * opts.c (sanitizer_opts): New array.
32007 (parse_sanitizer_options): New function.
32008 (common_handle_option): Use parse_sanitizer_options.
32010 2016-01-26 H.J. Lu <hongjiu.lu@intel.com>
32013 * config/i386/i386.c (ix86_compute_frame_layout): Move stack
32014 alignment adjustment to ...
32015 (ix86_update_stack_boundary): Here. Don't over-align stack for
32017 (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
32018 if __tls_get_addr is called.
32020 2016-01-26 Christian Bruel <christian.bruel@st.com>
32022 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
32024 2016-01-26 Eric Botcazou <ebotcazou@adacore.com>
32026 * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
32028 2016-01-26 Richard Biener <rguenther@suse.de>
32030 PR middle-end/69467
32031 * match.pd: Guard X * CST CMP 0 pattern with single_use.
32033 2016-01-26 Richard Biener <rguenther@suse.de>
32035 PR tree-optimization/69452
32036 * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
32037 (move_computations_dom_walker::before_dom_children): Rename
32039 (move_computations_worker): This.
32040 (move_computations): Perform an RPO rather than a DOM walk.
32042 2016-01-26 Jakub Jelinek <jakub@redhat.com>
32045 * combine.c (combine_instructions): For REG_EQUAL note with
32046 SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
32047 to the underlying register.
32048 * doc/rtl.texi (REG_EQUAL): Document the behavior of
32049 REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
32051 2016-01-26 Roger Ferrer Ibáñez <rofirrim@gmail.com>
32054 * config/aarch64/aarch64-builtins.c
32055 (aarch64_init_simd_builtin_types): Do not set structural
32056 equality to __Poly{8,16,64,128}_t types.
32058 2016-01-26 Richard Sandiford <richard.sandiford@arm.com>
32060 PR tree-optimization/69400
32061 * wide-int.cc (wi_pack): Take the precision as argument and
32062 perform canonicalization here rather than in the callers.
32063 Use the main loop to handle all full-width HWIs. Add a
32064 zero HWI if in_len isn't a full result.
32065 (wi::divmod_internal): Update accordingly.
32066 (wi::mul_internal): Likewise. Simplify.
32068 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
32069 Sebastian Pop <s.pop@samsung.com>
32071 * graphite-poly.c (apply_poly_transforms): Simplify.
32072 (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
32073 (print_isl_map): Same.
32074 (print_isl_union_map): Same.
32075 (print_isl_schedule): New.
32076 (debug_isl_schedule): New.
32077 * graphite-dependences.c (scop_get_reads): Do not call
32078 isl_union_map_add_map that is undocumented isl functionality.
32079 (scop_get_must_writes): Same.
32080 (scop_get_may_writes): Same.
32081 (scop_get_original_schedule): Remove.
32082 (scop_get_dependences): Do not call isl_union_map_compute_flow that
32083 is deprecated in isl 0.15. Instead, use isl_union_access_* interface.
32084 (compute_deps): Remove.
32085 * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
32086 (debug_schedule_ast): New.
32087 (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
32088 set_separate_option.
32089 (graphite_regenerate_ast_isl): Add dump.
32090 (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
32091 from scop->transformed_schedule.
32092 (graphite_regenerate_ast_isl): Add more dump.
32093 * graphite-optimize-isl.c (optimize_isl): Set
32094 scop->transformed_schedule. Check whether schedules are equal.
32095 (apply_poly_transforms): Move here.
32096 * graphite-poly.c (apply_poly_transforms): ... from here.
32097 (free_poly_bb): Static.
32098 (free_scop): Static.
32099 (pbb_number_of_iterations_at_time): Remove.
32100 (print_isl_ast): New.
32101 (debug_isl_ast): New.
32102 (debug_scop_pbb): New.
32103 * graphite-scop-detection.c (print_edge): Move.
32104 (print_sese): Move.
32105 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
32106 (build_scop_scattering): Remove.
32107 (create_pw_aff_from_tree): Assert instead of bailing out.
32108 (add_condition_to_pbb): Remove unused code, do not fail.
32109 (add_conditions_to_domain): Same.
32110 (add_conditions_to_constraints): Remove.
32111 (build_scop_context): New.
32112 (add_iter_domain_dimension): New.
32113 (build_iteration_domains): Initialize pbb->iterators.
32114 Call add_conditions_to_domain.
32117 (index_outermost_in_loop): New.
32118 (index_pbb_in_loop): New.
32119 (outermost_pbb_in): New.
32120 (add_in_sequence): New.
32121 (add_outer_projection): New.
32122 (outer_projection_mupa): New.
32123 (add_loop_schedule): New.
32124 (build_schedule_pbb): New.
32125 (build_schedule_loop): New.
32126 (embed_in_surrounding_loops): New.
32127 (build_schedule_loop_nest): New.
32128 (build_original_schedule): New.
32129 (build_poly_scop): Call build_original_schedule.
32130 * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
32131 (free_poly_dr): Remove.
32132 (struct poly_bb): Add iterators. Remove schedule, transformed, saved.
32133 (free_poly_bb): Remove.
32134 (debug_loop_vec): Remove.
32135 (print_isl_ast): Declare.
32136 (debug_isl_ast): Declare.
32137 (scop_do_interchange): Remove.
32138 (scop_do_strip_mine): Remove.
32139 (scop_do_block): Remove.
32140 (flatten_all_loops): Remove.
32141 (optimize_isl): Remove.
32142 (pbb_number_of_iterations_at_time): Remove.
32143 (debug_scop_pbb): Declare.
32144 (print_schedule_ast): Declare.
32145 (debug_schedule_ast): Declare.
32146 (struct scop): Remove schedule. Add original_schedule,
32147 transformed_schedule.
32148 (free_gimple_poly_bb): Remove.
32149 (print_generated_program): Remove.
32150 (debug_generated_program): Remove.
32151 (unify_scattering_dimensions): Remove.
32152 * sese.c (print_edge): ... here.
32153 (print_sese): ... here.
32154 (debug_edge): ... here.
32155 (debug_sese): ... here.
32156 * sese.h (print_edge): Declare.
32157 (print_sese): Declare.
32158 (dump_edge): Declare.
32159 (dump_sese): Declare.
32161 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
32162 Sebastian Pop <s.pop@samsung.com>
32164 * Makefile.in: Set ISLVER in site.exp.
32166 2016-01-25 Jakub Jelinek <jakub@redhat.com>
32168 * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
32169 DECL_VALUE_EXPR of new_var even for the non-array case. Look
32170 through DECL_VALUE_EXPR for expansion.
32172 2016-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
32174 * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
32175 the frame info after reload completed.
32177 2016-01-25 Jeff Law <law@redhat.com>
32179 PR tree-optimization/69196
32180 PR tree-optimization/68398
32181 * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
32182 tree-ssa-threadupdate.c.
32183 (determine_bb_domination_status): Prototype
32184 * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
32185 (determine_bb_domination_status): No longer static.
32186 (valid_jump_thread_path): Remove code to detect characteristics
32187 of the jump thread path not associated with correctness.
32188 * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
32189 Correct test for thread path length. Count PHIs for real operands as
32190 statements that need to be copied. Do not count ASSERT_EXPRs.
32191 Look at all the blocks in the thread path. Compute and selectively
32192 filter thread paths based on threading through the latch, threading
32193 a multiway branch or crossing a multiway branch.
32195 2016-01-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32197 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): Add
32198 decl with __attribute__ ((unused)) annotation.
32200 2016-01-25 Ilya Enkovich <enkovich.gnu@gmail.com>
32203 * tree-vect-stmts.c (vectorizable_condition): Check vectype
32204 of operands is compatible with a statement vectype.
32206 2016-01-25 Eric Botcazou <ebotcazou@adacore.com>
32208 * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
32209 improve wording for mixed storage order support.
32211 2016-01-25 Bilyan Borisov <bilyan.borisov@arm.com>
32213 * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
32214 (vcvt_u64_f64): Likewise.
32215 (vcvta_s64_f64): Likewise.
32216 (vcvta_u64_f64): Likewise.
32217 (vcvtm_s64_f64): Likewise.
32218 (vcvtm_u64_f64): Likewise.
32219 (vcvtn_s64_f64): Likewise.
32220 (vcvtn_u64_f64): Likewise.
32221 (vcvtp_s64_f64): Likewise.
32222 (vcvtp_u64_f64): Likewise.
32224 2016-01-25 Claudiu Zissulescu <claziss@synopsys.com>
32226 * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
32227 (arc_init): Check validity mll64 option.
32228 (arc_save_restore): Use double load/store instruction.
32229 (arc_expand_movmem): Likewise.
32230 (arc_split_move): Don't split if we have double load/store
32231 instructions. Returns a boolean.
32232 (arc_process_double_reg_moves): Change function to return boolean
32233 instead of a sequence of instructions.
32234 (arc_dwarf_register_span): New function.
32235 * config/arc/arc-protos.h (arc_split_move): Change prototype.
32236 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
32237 * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
32238 (*movdf_insn): Likewise.
32239 * config/arc/arc.opt (mll64): New option.
32240 * config/arc/predicates.md (even_register_operand): New predicate.
32241 * doc/invoke.texi (ARC Options): Add mll64 documentation.
32243 2016-01-25 Richard Biener <rguenther@suse.de>
32246 * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
32247 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
32249 * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
32251 2016-01-25 Richard Biener <rguenther@suse.de>
32253 PR tree-optimization/69376
32254 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
32256 (VN_INFO_ANTI_RANGE_P): New inline.
32257 (VN_INFO_RANGE_TYPE): Likewise.
32258 * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
32259 SSA_NAME_ANTI_RANGE_P.
32260 (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
32261 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
32262 Properly query VN_INFO_RANGE_TYPE.
32264 2016-01-25 Nick Clifton <nickc@redhat.com>
32267 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
32269 2016-01-23 Tom de Vries <tom@codesourcery.com>
32271 PR tree-optimization/69426
32272 * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
32275 2016-01-23 Jakub Jelinek <jakub@redhat.com>
32277 * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
32278 "the the" with "the" in the comments.
32279 * ipa-devirt.c (build_type_inheritance_graph,
32280 update_type_inheritance_graph): Likewise.
32281 * tree.c (build_function_type_list_1): Likewise.
32282 * cfgloopmanip.c (scale_loop_profile): Likewise.
32283 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
32284 * gimple-ssa-split-paths.c
32285 (find_block_to_duplicate_for_splitting_paths): Likewise.
32286 * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
32287 * expr.c (convert_move): Likewise.
32288 * var-tracking.c (vt_stack_adjustments): Likewise.
32289 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
32290 * tree-vrp.c (test_for_singularity): Likewise.
32292 * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
32293 directly instead of building a temporary tree.
32296 * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
32297 remove <algorithm> include.
32299 2016-01-22 Jakub Jelinek <jakub@redhat.com>
32302 * config/i386/i386.c: Include dojump.h.
32303 (expand_small_movmem_or_setmem,
32304 expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
32306 (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
32307 if dynamic_check != -1.
32309 2016-01-21 Jeff Law <law@redhat.com>
32311 PR middle-end/69347
32312 * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
32313 record_temporary_equivalences. Rewritten to avoid unnecessary calls
32314 into dominated_by_p.
32315 (cprop_into_successor_phis): Avoid unnecessary tests.
32317 2016-01-22 Richard Henderson <rth@redhat.com>
32320 * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
32321 (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
32323 2016-01-22 Michael Matz <matz@suse.de>
32325 * system.h (string, algorithm): Include only conditionally.
32326 (new): Include always under C++.
32327 * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
32328 * final.c (toplevel): Ditto.
32329 * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
32330 * genconditions.c (write_header): Make gencondmd.c define
32332 * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
32334 * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
32335 * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
32337 2016-01-22 Christian Bruel <christian.bruel@st.com>
32340 * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
32342 2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32345 * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
32346 define_insn_and_split. Ensure operands[1] and operands[0] do not
32347 get assigned the same register.
32349 2016-01-22 Kugan Vivekanandarajah <kuganv@linaro.org>
32351 * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
32353 2016-01-22 Christian Bruel <christian.bruel@st.com>
32355 * config/arm/arm-c.c (arm_pragma_target_parse):
32356 Remove warn_builtin_macro_redefined overwrite.
32358 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
32360 * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
32361 flag_non_call_exceptions compatibility.
32363 2016-01-22 Jakub Jelinek <jakub@redhat.com>
32366 * dwarf2out.c (add_child_die_after): New function.
32367 (dwarf_qual_info_t): New type.
32368 (dwarf_qual_info): New variable.
32369 (qualified_die_p): New function.
32370 (modified_type_die): For -fdebug-types-section, ensure
32371 canonical order of qualifiers. Put qualified DIEs adjacent
32372 to the corresponding non-qualified type DIE and search there
32373 for existing qualified DIEs.
32375 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
32377 * doc/extend.texi (scalar_storage_order type attribute): Document
32378 restriction on type punning and aliasing, and remove future tense.
32380 2016-01-21 Roman Zhuykov <zhroma@ispras.ru>
32383 * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
32386 2016-01-21 Jeff Law <law@redhat.com>
32388 PR middle-end/69347
32389 * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
32390 useless call to record_temporary_equivalences.
32391 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
32392 allocate 10 slots in the bb_path vector and let it grow as needed.
32393 (fsm_find_control_statement_thread_paths): Similarly for the next_path
32396 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
32398 * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
32400 * configure: Regenerate.
32402 2016-01-21 Pat Haugen <pthaugen@us.ibm.com>
32404 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
32405 * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
32407 2016-01-21 Bernd Schmidt <bschmidt@redhat.com>
32409 PR middle-end/66178
32410 * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
32411 drop EXPAND_INITIALIZER.
32412 * rtl.h (contains_symbolic_reference_p): Declare.
32413 * rtlanal.c (contains_symbolic_reference_p): New function.
32414 * simplify-rtx.c (simplify_binary_operation_1): Don't turn
32415 a subtraction into a NOT if symbolic constants are involved.
32417 2016-01-21 Anton Blanchard <anton@samba.org>
32418 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32421 * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
32423 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
32426 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
32428 * config/microblaze/microblaze.c
32429 (get_branch_target): New.
32430 (insert_wic_for_ilb_runout): New.
32432 (microblaze_machine_dependent_reorg): New.
32433 (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
32434 * config/microblaze/microblaze.md
32435 (UNSPEC_IPREFETCH): Define.
32436 (iprefetch): New pattern
32437 * config/microblaze/microblaze.opt
32438 (mxl-prefetch): New flag.
32440 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
32442 * config/microblaze/microblaze.h
32443 (FIXED_REGISTERS): Update in macro.
32444 (CALL_USED_REGISTERS): Update in macro.
32446 2016-01-21 Yuri Rumyantsev <ysrumyan@gmail.com>
32448 PR rtl-optimization/68920
32449 * ifcvt.c (cond_move_process_if_block): Limit number of conditional
32452 2016-01-21 Vladimir Makarov <vmakarov@redhat.com>
32454 PR rtl-optimization/68990
32455 * lra-coalesce.c (lra_coalesce): Invalidate value for the result
32456 pseudo instead of inheritance ones.
32458 2016-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
32459 Nick Clifton <nickc@redhat.com>
32463 * config/mips/mips.c (mips_compute_frame_info): Initialise
32464 args_size and hard_frame_pointer_offset fields of the frame
32465 structure before calling mips_global_pointer.
32467 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
32469 * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
32471 * configure: Regenerate.
32473 2016-01-21 Richard Biener <rguenther@suse.de>
32475 * graphite-optimize-isl.c (get_schedule_map): Fix typo.
32477 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
32479 * config/s390/s390.c (s390_asm_declare_function_size): Add code
32480 to actually emit the .size directive.
32482 2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
32483 Jakub Jelinek <jakub@redhat.com>
32487 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
32488 args array size by one to avoid buffer overflow.
32490 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
32492 * config/s390/s390.md (pool_section_start): Use switch_to_section
32493 to select proper read-only data section instead of hardcoding
32495 (pool_section_end): Use switch_to_section to match the above.
32497 2016-01-21 Richard Biener <rguenther@suse.de>
32499 PR tree-optimization/69378
32500 * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
32501 (set_ssa_val_to): Use it for dominance checks taking into
32502 account not executable edges.
32504 2016-01-21 Jakub Jelinek <jakub@redhat.com>
32507 * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
32508 for bitsize instead of GET_MODE_PRECISION (mode).
32510 2016-01-20 Martin Sebor <msebor@redhat.com>
32513 * extend.texi (__sync Builtins): Clarify the semantics of
32514 __sync_fetch_and_OP built-ins on pointers.
32515 (__atomic Builtins): Same.
32517 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
32518 Sebastian Pop <s.pop@samsung.com>
32520 * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
32521 (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
32522 (is_valid_rename): Same.
32523 (translate_isl_ast_to_gimple::get_rename): Same.
32524 (translate_isl_ast_to_gimple::rename_all_uses): Same.
32525 (translate_isl_ast_to_gimple::rename_uses): Same.
32526 (get_new_name): Check for close_phi nodes.
32527 (copy_loop_phi_args): Use phi_node_kind.
32528 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
32529 (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
32531 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
32532 Sebastian Pop <s.pop@samsung.com>
32534 Revert commit r229783.
32535 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
32536 Remove use of parameter_rename_map.
32537 (copy_def): Remove.
32538 (copy_internal_parameters): Remove.
32539 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
32540 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
32541 (free_sese_info): Do not free parameter_rename_map.
32542 (set_rename): Do not use parameter_rename_map.
32543 (rename_uses): Update call to set_rename.
32544 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
32545 * sese.h (parameter_rename_map_t): Remove.
32546 (struct sese_info_t): Remove field parameter_rename_map.
32548 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
32549 Sebastian Pop <s.pop@samsung.com>
32551 * graphite-isl-ast-to-gimple.c: Fix comment.
32552 * graphite-scop-detection.c (defined_in_loop_p): New.
32553 (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
32554 names defined in loop.
32556 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
32557 Sebastian Pop <s.pop@samsung.com>
32559 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
32560 Discard unstructured if-then-else regions.
32562 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
32563 Sebastian Pop <s.pop@samsung.com>
32565 * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
32566 (cleanup_loop_iter_dom): Remove.
32567 (build_loop_iteration_domains): Remove.
32568 (build_scop_context): Remove.
32569 (build_scop_iteration_domain): Remove.
32570 (add_loop_constraints): New.
32571 (build_iteration_domains): New.
32572 (build_poly_scop): Call build_iteration_domains.
32574 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
32575 Sebastian Pop <s.pop@samsung.com>
32577 * graphite-scop-detection.c
32578 (scop_detection::harmful_loop_in_region): Free dom and loops.
32579 (scop_detection::loop_body_is_valid_scop): Free bbs.
32581 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
32582 Sebastian Pop <s.pop@samsung.com>
32584 * graphite-scop-detection.c (record_loop_in_sese): New.
32585 (gather_bbs::before_dom_children): Call record_loop_in_sese.
32586 (build_scops): Remove call to build_sese_loop_nests.
32587 * sese.c (sese_record_loop): Remove.
32588 (build_sese_loop_nests): Remove.
32589 (new_sese_info): Remove region->loops.
32590 (free_sese_info): Same.
32591 * sese.h (sese_contains_loop): Same.
32592 (build_sese_loop_nests): Remove.
32593 (sese_contains_loop): Remove.
32595 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
32596 Sebastian Pop <s.pop@samsung.com>
32598 * graphite-scop-detection.c (loop_is_valid_scop): Renamed
32599 loop_is_valid_in_scop.
32600 (scop_detection::harmful_stmt_in_region): Renamed
32601 harmful_loop_in_region.
32602 Call loop_is_valid_in_scop.
32604 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
32605 Sebastian Pop <s.pop@samsung.com>
32607 * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
32610 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
32611 Sebastian Pop <s.pop@samsung.com>
32613 * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
32614 * graphite.h (struct poly_bb): Remove field is_reduction.
32615 (PBB_IS_REDUCTION): Remove.
32617 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
32618 Sebastian Pop <s.pop@samsung.com>
32620 * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
32621 (add_pdr_constraints): Same.
32622 (scop_get_reads): Same.
32623 (scop_get_must_writes): Same.
32624 (scop_get_may_writes): Same.
32625 (scop_get_original_schedule): Same.
32626 (extend_schedule): Same.
32627 (apply_schedule_on_deps): Same.
32628 (carries_deps): Same.
32629 (compute_deps): Same.
32630 (scop_get_dependences): Same.
32631 * graphite-isl-ast-to-gimple.c
32632 (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
32633 * graphite-optimize-isl.c (get_schedule_for_band): Same.
32634 (get_schedule_for_band_list): Same.
32635 (get_schedule_map): Same.
32636 (apply_schedule_map_to_scop): Same.
32637 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
32638 (build_loop_iteration_domains): Same.
32639 (add_condition_to_pbb): Same.
32640 (add_param_constraints): Same.
32641 (pdr_add_memory_accesses): Same.
32642 (pdr_add_data_dimensions): Same.
32644 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
32646 * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
32649 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
32651 * common.opt (feliminate-dwarf2-dups): Replace references to
32652 "DWARF 2" with just "DWARF".
32653 * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
32654 * doc/extend.texi: Likewise.
32655 * doc/cpp.texi: Likewise.
32656 * doc/invoke.texi: Likewise.
32657 (Option Summary): Add -gdwarf to list of Debugging Options.
32658 (Debugging Options): Document -gdwarf.
32659 * doc/contrib.texi: Spell "DWARF" like that.
32661 2016-01-21 Jakub Jelinek <jakub@redhat.com>
32663 * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
32664 warning. Fix up formatting.
32666 PR middle-end/67653
32667 * gimplify.c (gimplify_asm_expr): Warn if it is too late to
32668 attempt to mark memory input operand addressable and
32669 call prepare_gimple_addressable in that case. Don't adjust
32670 input_location for diagnostics, use error_at instead.
32672 2016-01-20 Peter Bergner <bergner@vnet.ibm.com>
32674 * config/rs6000/ppc-auxv.h: New file.
32675 * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
32676 (cpu_is): Likewise.
32677 (cpu_supports): Likewise.
32678 * config/rs6000/rs6000.c: include "ppc-auxv.h".
32679 (cpu_is_info): New variable.
32680 (cpu_supports_info): Likewise.
32681 (tcb_verification_symbol): Likewise.
32682 (cpu_builtin_p): Likewise.
32683 (cpu_expand_builtin): New function.
32684 (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
32685 (rs6000_init_builtins): Likewise.
32686 (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
32687 * config/rs6000/rs6000.h (TLS_REGNUM): New define.
32688 * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
32689 * configure: Regenerate.
32690 * config.in: Likewise.
32691 * doc/extend.texi (PowerPC Built-in Functions): Document
32692 __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
32694 2016-01-20 David Edelsohn <dje.gcc@gmail.com>
32697 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
32699 * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
32702 2016-01-20 Richard Henderson <rth@redhat.com>
32708 * tree.c (tm_define_builtin): New.
32709 (find_tm_vector_type): New.
32710 (build_tm_vector_builtins): New.
32711 (build_common_builtin_nodes): Call it.
32713 2016-01-20 Christophe Lyon <christophe.lyon@linaro.org>
32715 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
32716 (arm_fp_ok): Likewise.
32717 (arm_fp): Likewise.
32718 (arm_crypto): Likewise.
32720 2016-01-20 Ilya Enkovich <enkovich.gnu@gmail.com>
32721 Richard Biener <rguenther@suse.de>
32723 PR tree-optimization/69328
32724 * tree-vect-stmts.c (vect_is_simple_cond): Check compared
32725 vectors have same number of elements.
32726 (vectorizable_condition): Fix masked version recognition.
32728 2016-01-20 Richard Biener <rguenther@suse.de>
32730 PR tree-optimization/69345
32731 * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
32732 (VN_INFO_PTR_INFO): Likewise.
32733 * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
32734 info when it is equal between non-dominating SSA names.
32735 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
32736 Make sure to look at original SSA infos.
32738 2016-01-20 Jeff Law <law@redhat.com>
32741 * config/m68k/predicates.md (pow2_m1_operand): New predicate
32743 (reg_or_pow2_m1_operand): Call pow2_m1_operand.
32744 (pc_or_label_operand): New predicate.
32745 * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
32746 tests for small integers that are 2^n - 1.
32748 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
32750 * doc/invoke.texi (Options Summary): Add '.' after @xref.
32752 2016-01-19 Jeff Law <law@redhat.com>
32754 PR middle-end/69347
32755 * tree-ssa-threadbackwards.c
32756 (fsm_find_control_statement_thread_paths): Do not try to lookup
32757 FSM paths for SSA_NAMEs appearing in abnormal PHIs.
32759 2016-01-20 Kugan Vivekanandarajah <kuganv@linaro.org>
32761 * doc/lto.texi: Remove text that says only Gold has linker plugin
32764 2016-01-19 Eric Botcazou <ebotcazou@adacore.com>
32766 * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
32767 (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
32768 the DIE accordingly.
32769 (modified_type_die): Add REVERSE parameter and pass it recursively,
32770 as well as to base_type_die. Adjust presence check accordingly.
32771 (base_type_for_mode): Adjust call to modified_type_die.
32772 (add_type_attribute): Add REVERSE parameter and pass it to
32774 (generic_parameter_die): Adjust call to add_type_attribute.
32775 (add_scalar_info): Likewise.
32776 (add_subscript_info): Likewise.
32777 (gen_array_type_die): Likewise.
32778 (gen_descr_array_type_die): Likewise.
32779 (gen_entry_point_die): Likewise.
32780 (gen_enumeration_type_die): Likewise.
32781 (gen_formal_parameter_die): Likewise.
32782 (gen_subprogram_die): Likewise.
32783 (gen_variable_die ): Likewise.
32784 (gen_const_die): Likewise.
32785 (gen_field_die): Likewise.
32786 (gen_pointer_type_die): Likewise.
32787 (gen_reference_type_die): Likewise.
32788 (gen_ptr_to_mbr_type_die): Likewise.
32789 (gen_inheritance_die): Likewise.
32790 (gen_subroutine_type_die): Likewise.
32791 (gen_typedef_die): Likewise.
32792 (force_type_die): Adjust call to modified_type_die.
32794 2016-01-19 Sandra Loosemore <sandra@codesourcery.com>
32796 * doc/standards.texi: Copy-editing for grammar, markup, and sentence
32797 flow throughout the file. Fix broken link to Objective-C 2.0
32799 * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
32802 2016-01-19 Wilco Dijkstra <wdijkstr@arm.com>
32804 * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
32806 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
32809 * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
32810 (maybe_record_node): Record cxa_pure_virtual as the only possible
32811 target if there are not ohter candidates.
32812 (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
32814 2016-01-19 Richard Biener <rguenther@suse.de>
32816 * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
32817 (get_memory_order): Likewise.
32819 2016-01-19 Kirill Yukhin <kirill.yukhin@intel.com>
32821 * tree-vect-stmts.c (vectorizable_store): Check
32824 2016-01-19 David Malcolm <dmalcolm@redhat.com>
32827 * gcc.c (driver::decode_argv): Add call to
32828 init_opts_obstack before init_options_struct.
32829 * opts.c (init_opts_obstack): Remove idempotency.
32830 (init_options_struct): Replace call to init_opts_obstack
32831 with a gcc_assert to verify that it has already been called.
32832 * toplev.c (toplev::main): Add call to init_opts_obstack before
32833 calls to init_options_struct.
32834 (toplev::finalize): Move cleanup of opts_obstack next to
32835 cleanup of save_decoded_options, clearing the latter, and
32836 save_decoded_options_count.
32838 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32841 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
32842 attribute to unconditional. Remove %? from output template.
32844 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
32845 Jiong Wang <jiong.wang@arm.com>
32847 * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
32848 generated from different expand order.
32850 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
32852 * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
32853 Add support for CCMP costing.
32855 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
32857 * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
32858 * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
32859 (fccmpe<mode>): Likewise.
32860 (fcmp): Rename to fcmp and globalize pattern.
32862 * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
32863 (aarch64_gen_ccmp_next): Add FP support.
32865 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
32867 * target.def (gen_ccmp_first): Update documentation.
32868 (gen_ccmp_next): Likewise.
32869 * doc/tm.texi (gen_ccmp_first): Update documentation.
32870 (gen_ccmp_next): Likewise.
32871 * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
32872 expand_ccmp_expr_1. Improve comments.
32873 * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
32874 (ccmp_ior<mode>): Remove pattern.
32875 (cmp<mode>): Remove expand.
32876 (cmp): Globalize pattern.
32877 (cstorecc4): Use cc_register.
32878 (mov<mode>cc): Remove ccmp_cc_register check.
32879 * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
32880 Simplify after removal of CC_DNE/* modes.
32881 (aarch64_ccmp_mode_to_code): Remove.
32882 (aarch64_print_operand): Remove 'K' case. Merge 'm' and 'M' cases.
32883 In 'k' case use integer as condition.
32884 (aarch64_nzcv_codes): Remove inverted cases.
32885 (aarch64_code_to_ccmode): Remove.
32886 (aarch64_gen_ccmp_first): Use cmp pattern directly. Return the correct
32887 comparison with CC register to be used in folowing CCMP/branch/CSEL.
32888 (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
32889 pattern. Return the comparison with CC register. Invert conditions
32890 when bitcode is OR.
32891 * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
32892 * config/aarch64/predicates.md (ccmp_cc_register): Remove.
32894 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
32896 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
32897 instrumented_version.
32899 2016-01-19 Richard Biener <rguenther@suse.de>
32901 PR tree-optimization/69336
32902 * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
32903 handled components with get_ref_base_and_extent.
32904 (equal_mem_array_ref_p): Adjust.
32906 2016-01-19 Jakub Jelinek <jakub@redhat.com>
32909 * shrink-wrap.c: Include valtrack.h.
32910 (move_insn_for_shrink_wrap): Add DEBUG argument. If
32911 MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
32912 in between insn and where it will be moved to. Call
32913 dead_debug_insert_temp.
32914 (prepare_shrink_wrap): Adjust caller. Call dead_debug_local_init
32915 first and dead_debug_local_finish at the end.
32916 For uses and defs bitmap, handle all regs in between REGNO and
32917 END_REGNO, not just the first one.
32919 2016-01-19 Richard Biener <rguenther@suse.de>
32921 PR tree-optimization/69352
32922 * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
32923 (equal_mem_array_ref_p): Constrain size and max size properly.
32924 Compare the reverse flag.
32926 2016-01-19 Bernd Schmidt <bschmidt@redhat.com>
32928 * ira.c (ira): Update regstat data if we deleted insns.
32930 2016-01-19 Jakub Jelinek <jakub@redhat.com>
32932 PR rtl-optimization/68955
32933 PR rtl-optimization/64557
32934 * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
32935 here. Fix up formatting.
32936 * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
32938 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
32941 * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
32942 assume that the node has body.
32943 * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
32946 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
32948 * lto-streamer-out.c (lto_output): Do not stream instrumentation
32951 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
32953 * symtab.c (symtab_node::asm_name): Do not call printable name directly.
32954 (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
32956 2016-01-19 Martin Jambor <mjambor@suse.cz>
32957 Martin Liska <mliska@suse.cz>
32958 Michael Matz <matz@suse.de>
32960 * Makefile.in (OBJS): Add new source files.
32961 (GTFILES): Add hsa.c.
32962 * common.opt (disable_hsa): New variable.
32963 (-Whsa): New warning.
32964 * config.in (ENABLE_HSA): New.
32965 * configure.ac: Treat hsa differently from other accelerators.
32966 (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
32967 $enable_offloading.
32968 (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
32969 * doc/install.texi (Configuration): Document --with-hsa-runtime,
32970 --with-hsa-runtime-include, --with-hsa-runtime-lib and
32971 --with-hsa-kmt-lib.
32972 * doc/invoke.texi (-Whsa): Document.
32973 (hsa-gen-debug-stores): Likewise.
32974 * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
32975 to invoke offload compiler for hsa acclerator.
32976 * opts.c (common_handle_option): Determine whether HSA offloading
32977 should be performed.
32978 * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
32979 * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
32980 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
32981 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
32982 * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
32983 * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
32984 GF_OMP_FOR_KIND_GRID_LOOP.
32985 (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
32986 (pp_gimple_stmt_1): Likewise.
32987 * gimple-walk.c (walk_gimple_stmt): Likewise.
32988 * gimple.c (gimple_build_omp_grid_body): New function.
32989 (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
32990 * gimple.def (GIMPLE_OMP_GRID_BODY): New.
32991 * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
32992 GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
32993 GF_OMP_TEAMS_GRID_PHONY.
32994 (gimple_statement_omp_single_layout): Updated comments.
32995 (gimple_build_omp_grid_body): New function.
32996 (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
32997 (gimple_omp_for_grid_phony): New function.
32998 (gimple_omp_for_set_grid_phony): Likewise.
32999 (gimple_omp_parallel_grid_phony): Likewise.
33000 (gimple_omp_parallel_set_grid_phony): Likewise.
33001 (gimple_omp_teams_grid_phony): Likewise.
33002 (gimple_omp_teams_set_grid_phony): Likewise.
33003 (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
33004 * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
33005 (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
33006 (BUILT_IN_GOMP_TARGET): Updated type.
33007 * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
33008 (adjust_for_condition): New function.
33009 (get_omp_for_step_from_incr): Likewise.
33010 (extract_omp_for_data): Moved parts to adjust_for_condition and
33011 get_omp_for_step_from_incr.
33012 (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
33013 (fixup_child_record_type): Bail out if receiver_decl is NULL.
33014 (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
33015 (scan_omp_parallel): Do not create child functions for phony
33017 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
33018 (scan_omp_1_op): Checking assert we are not remapping to
33019 ERROR_MARK. Also also handle GIMPLE_OMP_GRID_BODY.
33020 (parallel_needs_hsa_kernel_p): New function.
33021 (expand_parallel_call): Register apprpriate parallel child
33022 functions as HSA kernels.
33023 (grid_launch_attributes_trees): New type.
33024 (grid_attr_trees): New variable.
33025 (grid_create_kernel_launch_attr_types): New function.
33026 (grid_insert_store_range_dim): Likewise.
33027 (grid_get_kernel_launch_attributes): Likewise.
33028 (get_target_argument_identifier_1): Likewise.
33029 (get_target_argument_identifier): Likewise.
33030 (get_target_argument_value): Likewise.
33031 (push_target_argument_according_to_value): Likewise.
33032 (get_target_arguments): Likewise.
33033 (expand_omp_target): Call get_target_arguments instead of looking
33034 up for teams and thread limit.
33035 (grid_expand_omp_for_loop): New function.
33036 (grid_arg_decl_map): New type.
33037 (grid_remap_kernel_arg_accesses): New function.
33038 (grid_expand_target_kernel_body): New function.
33039 (expand_omp): Call it.
33040 (lower_omp_for): Do not emit phony constructs.
33041 (lower_omp_taskreg): Do not emit phony constructs but create for them
33042 a temporary variable receiver_decl.
33043 (lower_omp_taskreg): Do not emit phony constructs.
33044 (lower_omp_teams): Likewise.
33045 (lower_omp_grid_body): New function.
33046 (lower_omp_1): Call it.
33047 (grid_reg_assignment_to_local_var_p): New function.
33048 (grid_seq_only_contains_local_assignments): Likewise.
33049 (grid_find_single_omp_among_assignments_1): Likewise.
33050 (grid_find_single_omp_among_assignments): Likewise.
33051 (grid_find_ungridifiable_statement): Likewise.
33052 (grid_target_follows_gridifiable_pattern): Likewise.
33053 (grid_remap_prebody_decls): Likewise.
33054 (grid_copy_leading_local_assignments): Likewise.
33055 (grid_process_kernel_body_copy): Likewise.
33056 (grid_attempt_target_gridification): Likewise.
33057 (grid_gridify_all_targets_stmt): Likewise.
33058 (grid_gridify_all_targets): Likewise.
33059 (execute_lower_omp): Call grid_gridify_all_targets.
33060 (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
33061 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
33062 (tree_omp_clause): Added union field dimension.
33063 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
33064 * tree.c (omp_clause_num_ops): Added number of arguments of
33065 OMP_CLAUSE__GRIDDIM_.
33066 (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
33067 (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
33068 * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
33069 (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
33070 (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
33071 (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
33072 * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
33073 * tree-pass.h (make_pass_gen_hsail): Declare.
33074 (make_pass_ipa_hsa): Likewise.
33075 * ipa-hsa.c: New file.
33076 * lto-section-in.c (lto_section_name): Add hsa section name.
33077 * lto-streamer.h (lto_section_type): Add hsa section.
33078 * timevar.def (TV_IPA_HSA): New.
33079 * hsa-brig-format.h: New file.
33080 * hsa-brig.c: New file.
33081 * hsa-dump.c: Likewise.
33082 * hsa-gen.c: Likewise.
33085 * toplev.c (compile_file): Call hsa_output_brig.
33086 * hsa-regalloc.c: New file.
33088 2016-01-18 Jeff Law <law@redhat.com>
33090 PR tree-optimization/69320
33091 * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
33092 ranged object, do nothing if the RHS constant is not [0..1].
33093 (optimize_stmt): Comparing a boolean ranged object against a
33094 constant outside [0..1] results in a compile-time constant.
33096 * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
33099 2016-01-18 Sandra Loosemore <sandra@codesourcery.com>
33101 * doc/invoke.texi (Invoking GCC): Add new section to menu.
33102 (Option Summary): Update to reflect new section and moved options.
33103 (C++ Dialect Options): Move -fstats to new section.
33104 (Debugging Options): Move all dump, statistics, and other GCC
33105 developer options to new section. Rewrite section introduction
33106 and re-order remaining options to put the more basic ones first.
33107 (Optimization Options): Move -fira-verbose and -flto-report* to
33109 (Developer Options): New section incorporating moved options.
33110 * doc/cppopts.texi (-dM): Update cross-reference.
33112 2016-01-18 Richard Henderson <rth@redhat.com>
33115 * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
33116 operands to pseudo only if CSE is expected. Split long immediate
33117 operands only after reload, and for the stack pointer.
33118 (*add<GPI>3_pluslong): Remove.
33119 (*addsi3_aarch64, *adddi3_aarch64): Merge into...
33120 (*add<GPI>3_aarch64): ... here. Add r/rk/Upl alternative.
33121 (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
33122 (*add<GPI>3 peepholes): New.
33123 (*add<GPI>3 splitters): New.
33124 * config/aarch64/constraints.md (Upl): New.
33125 * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
33127 2016-01-18 Richard Biener <rguenther@suse.de>
33129 PR tree-optimization/69297
33130 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
33132 (vect_bb_vectorization_profitable_p): Clear visited flag again.
33134 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
33136 PR middle-end/68542
33137 * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
33138 of mixind vector and scalar types.
33139 (fold_relational_const): Add handling of vector
33140 comparison with boolean result.
33141 * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
33142 comparison of vector operands with boolean result for EQ/NE only.
33143 (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
33144 (verify_gimple_cond): Likewise.
33145 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
33148 2016-01-18 Joseph Myers <joseph@codesourcery.com>
33150 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
33153 2016-01-18 Richard Biener <rguenther@suse.de>
33155 PR middle-end/69308
33156 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
33158 2016-01-18 Tom de Vries <tom@codesourcery.com>
33160 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
33162 2016-01-18 Tom de Vries <tom@codesourcery.com>
33164 * omp-low.c (set_oacc_fn_attrib): Make extern.
33165 * omp-low.h (set_oacc_fn_attrib): Declare.
33166 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
33167 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
33168 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
33169 Add and handle function parameter oacc_kernels_p.
33170 (find_reduc_addr, get_omp_data_i_param): New function.
33171 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
33172 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
33173 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
33174 Calculate dominance info. Skip loops that are not in a kernels region
33175 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
33176 (pass_parallelize_loops::execute): Call parallelize_loops with
33177 oacc_kernels_p argument.
33178 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
33179 New member function.
33180 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
33181 * passes.def: Add argument to pass_parallelize_loops instantation.
33183 2016-01-18 Tom de Vries <tom@codesourcery.com>
33185 * tree-parloops.c (pass_parallelize_loops::execute): Allow
33186 pass_parallelize_loops to be run outside the loop pipeline.
33188 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
33190 * tree-scalar-evolution.c (follow_copies_to_constant): New.
33191 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
33193 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
33196 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
33197 using get_ref_base_and_extent.
33198 (equal_mem_array_ref_p): New.
33199 (hashable_expr_equal_p): Add call to previous.
33201 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
33204 * tree-sra.c (disqualified_constants, constant_decl_p): New.
33205 (sra_initialize): Allocate disqualified_constants.
33206 (sra_deinitialize): Free disqualified_constants.
33207 (disqualify_candidate): Update disqualified_constants when appropriate.
33208 (create_access): Scan for constant-pool entries as we go along.
33209 (scalarizable_type_p): Add check against type_contains_placeholder_p.
33210 (maybe_add_sra_candidate): Allow constant-pool entries.
33211 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
33212 (initialize_constant_pool_replacements): New.
33213 (sra_modify_assign): Avoid mangling assignments created by previous,
33214 and don't generate writes into constant pool.
33215 (sra_modify_function_body): Call initialize_constant_pool_replacements.
33217 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
33219 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
33220 andnot instruction.
33221 (scalar_chain::convert_op): Likewise.
33222 * config/i386/i386.md (*andndi3_doubleword): New.
33224 2016-01-18 Richard Biener <rguenther@suse.de>
33226 PR tree-optimization/69170
33227 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
33228 building a vector from scalar results of a pattern stmt.
33230 2016-01-18 Jakub Jelinek <jakub@redhat.com>
33232 * haifa-sched.c (autopref_multipass_init): Work around
33233 -Wmaybe-uninitialized warning.
33235 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
33237 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
33238 against the constant 0.
33240 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33242 PR tree-optimization/68799
33243 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
33244 look up phi candidates in the statement-candidate map.
33245 (phi_add_costs): Likewise.
33246 (record_phi_increments): Likewise.
33247 (phi_incr_cost): Likewise.
33248 (ncd_with_phi): Likewise.
33249 (all_phi_incrs_profitable): Likewise.
33251 2016-01-17 Jakub Jelinek <jakub@redhat.com>
33253 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
33254 -Wmaybe-uninitialized warning.
33256 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
33258 * doc/invoke.texi (Invoking GCC): Add new section to menu.
33259 (Option Summary): Update to reflect new section and moved options.
33260 (C++ Dialect Options): Move -fvtable-verify and related options.
33261 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
33262 and profiling-related options.
33263 (Optimization Options): Move profile generation options and
33264 -fstack-protector and related options.
33265 (Instrumentation Options): New section incorporating moved options.
33266 (Code Generation Options): Move -finstrument-functions and
33267 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
33269 2016-01-16 Tom de Vries <tom@codesourcery.com>
33271 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
33273 2016-01-16 Tom de Vries <tom@codesourcery.com>
33275 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
33277 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
33279 * hash-table.h (hash_table::empty): Turn into an inline wrapper
33280 that checks whether the table is already empty. Rename the
33281 original implementation to...
33282 (hash_table::empty_slot): ...this new private function.
33284 2016-01-15 David Malcolm <dmalcolm@redhat.com>
33286 PR diagnostic/68899
33287 * diagnostic-show-locus.c (layout::print_source_line): Move x
33288 offset of line until after call to
33289 get_line_width_without_trailing_whitespace.
33291 2016-01-15 Jeff Law <law@redhat.com>
33293 PR tree-optimization/69270
33294 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
33295 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
33296 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
33297 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
33298 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
33299 ssa_name_has_boolean_range and constant_boolean_node.
33301 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
33303 PR rtl-optimization/69030
33304 * lra-spills.c (remove_pseudos): Check nrefs and make the function
33306 (spill_pseudos): Delete debug insn for dead pseudo.
33307 (lra_spill): Initiate spill_hard_reg and slots memory separately.
33309 2016-01-15 Jiong Wang <jiong.wang@arm.com>
33311 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
33313 (TYPES_UNOPUS): Likewise.
33314 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
33315 builtin type, from UNOP to UNOPUS.
33316 (lbtruncuv4sf): Likewise.
33317 (lbtruncuv2df): Likewise.
33318 (lrounduv2sf): Likewise.
33319 (lrounduv4sf): Likewise.
33320 (lrounduv2df): Likewise.
33321 (lroundusf): Likewise.
33322 (lroundusf): Likewise.
33323 (lceiluv2sf): Likewise.
33324 (lceiluv4sf): Likewise.
33325 (lceiluv2df): Likewise.
33326 (lceilusf): Likewise.
33327 (lceiludf): Likewise.
33328 (lflooruv2sf): Likewise.
33329 (lflooruv4sf): Likewise.
33330 (lflooruv2df): Likewise.
33331 (lfloorusf): Likewise.
33332 (lfloorudf): Likewise.
33333 (lfrintnuv2sf): Likewise.
33334 (lfrintnuv4sf): Likewise.
33335 (lfrintnuv2df): Likewise.
33336 (lfrintnusf): Likewise.
33337 (lfrintnudf): Likewise.
33338 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
33340 (vcvtq_u32_f32): Likewise.
33341 (vcvtq_u64_f64): Likewise.
33342 (vcvta_u32_f32): Likewise.
33343 (vcvtaq_u32_f32): Likewise.
33344 (vcvtaq_u64_f64): Likewise.
33345 (vcvtm_u32_f32): Likewise.
33346 (vcvtmq_u32_f32): Likewise.
33347 (vcvtmq_u64_f64): Likewise.
33348 (vcvtn_u32_f32): Likwise.
33349 (vcvtnq_u32_f32): Likewise.
33350 (vcvtnq_u64_f64): Likewise.
33351 (vcvtp_u32_f32): Likewise.
33352 (vcvtpq_u32_f32): Likewise.
33353 (vcvtpq_u64_f64): Likewise.
33354 (vcvtmd_u64_f64): Likewise.
33355 (vcvtms_u32_f32): Likewise.
33356 (vcvtad_u64_f64): Likewise.
33357 (vcvtas_u32_f32): Likewise.
33358 (vcvtnd_u64_f64): Likewise.
33359 (vcvtns_u32_f32): Likewise.
33360 (vcvtpd_u64_f64): Likewise.
33361 (vcvtps_u32_f32): Likewise.
33363 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33365 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
33366 CSEL of zero_extended registers.
33368 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33370 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
33371 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
33373 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33375 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
33376 false when argument string is not found in the attributes table
33379 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
33382 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
33383 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
33384 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
33385 precision estimate.
33387 2016-01-15 Richard Biener <rguenther@suse.de>
33389 PR tree-optimization/66856
33390 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
33391 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
33392 (vect_create_new_slp_node): Increment stmt reference count.
33393 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
33394 an SLP tree before swapping operands.
33395 (vect_build_slp_tree): Likewise.
33396 (destroy_bb_vec_info): Free stmt info after SLP instances.
33397 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
33398 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
33399 (STMT_VINFO_NUM_SLP_USES): New macro.
33401 2016-01-15 Richard Biener <rguenther@suse.de>
33404 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
33405 (add_linkage_name): ... here.
33406 (gen_typedef_die): Use add_linkage_name_raw instead of
33407 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
33410 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
33412 * gimplify.c (oacc_default_clause): Decode reference and pointer
33413 types for both kernels and parallel regions.
33415 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
33417 PR middle-end/69246
33418 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
33420 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
33422 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
33423 (convert_scalars_to_vector): Likewise.
33425 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
33427 * doc/extend.texi (Type Traits): Fix grammar.
33429 2016-01-15 Martin Jambor <mjambor@suse.cz>
33431 * tree-inline.c (remap_decl): Use existing dclarations if
33432 remapping a type and prevent_decl_creation_for_types.
33433 (replace_locals_stmt): Do an initial remapping of non-VLA typed
33434 decls first. Do real remapping with
33435 prevent_decl_creation_for_types set.
33436 * tree-inline.h (copy_body_data): New field
33437 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
33440 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
33442 * config/s390/s390.opt (mmvcle): More verbose help text.
33444 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
33446 * config/s390/s390.opt: Add period to -mzvector option text.
33448 2016-01-15 Richard Biener <rguenther@suse.de>
33450 PR tree-optimization/68961
33451 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
33452 of invariants in stores again.
33454 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
33456 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
33458 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
33460 * config/i386/i386.c (ix86_expand_branch): Don't split
33461 DI mode xor instruction to SI mode.
33463 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
33466 * ipa-icf.c (sem_function::merge): Virtual functions may become
33467 reachable even if they address is not taken and there are no
33470 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
33472 * lto-streamer-out.c (subtract_estimated_size): New function.
33473 (get_symbol_initial_value): Use it.
33475 2016-01-15 Christian Bruel <christian.bruel@st.com>
33478 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
33479 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
33480 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
33481 use add_builtin_function_ext_scope instead of add_builtin_function.
33482 (neon_set_p, neon_crypto_set_p): Remove.
33483 (arm_init_builtins): Always call arm_init_neon_builtins and
33484 arm_init_crypto_builtins.
33485 (arm_expand_builtin): Check that builtins are allowed for the arch.
33486 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
33487 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
33488 arm_init_neon_builtins call.
33490 2016-01-15 Richard Biener <rguenther@suse.de>
33492 PR tree-optimization/69117
33493 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
33494 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
33495 of the leader conservatively.
33496 (free_scc_vn): Restore original SSA name infos.
33498 2016-01-14 Jeff Law <law@redhat.com>
33500 PR tree-optimization/69270
33501 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
33502 single bit of precision, verify it's also unsigned.
33503 (record_edge_info): Use constant_boolean_node rather than fold_convert
33504 to convert boolean_true/boolean_false to the right type.
33506 2016-01-14 Richard Henderson <rth@redhat.com>
33509 * loop-doloop.c (record_reg_sets): New.
33510 (doloop_optimize): Reject the transform if the sequence
33511 clobbers registers live at the end of the loop block.
33512 (doloop_optimize_loops): Enable df_live if needed.
33514 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
33516 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
33517 * config/rs6000/rs6000.c: Likewise.
33518 * config/rs6000/rs6000.h: Likewise.
33519 * config/rs6000/rs6000.md: Likewise.
33520 * doc/extend.texi: Likewsie.
33522 2016-01-14 Jeff Law <law@redhat.com>
33524 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
33527 2016-01-14 Richard Henderson <rth@redhat.com>
33531 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
33532 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
33533 instead of builtin_decl_declared_p to test for declaration.
33535 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
33537 * doc/loop.texi (Loop Analysis and Representation): Document
33538 loop_depth function.
33540 2016-01-14 Tom de Vries <tom@codesourcery.com>
33542 PR tree-optimization/68773
33543 * omp-low.c (expand_omp_target): Don't set force_output.
33544 * varpool.c (varpool_node::get_create): Same.
33545 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
33546 offload_funcs with force_output.
33548 2016-01-14 Jakub Jelinek <jakub@redhat.com>
33551 * lra-eliminations.c (move_plus_up): Don't change anything if either
33552 the outer or inner subreg mode is not MODE_INT.
33553 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
33554 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
33556 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
33558 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
33559 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
33560 reduc_uplus_@var{m}): Remove.
33561 * expr.c (expand_expr_real_2): Remove expansion path for
33562 reduc_[us](min|max|plus) optabs.
33563 * optabs-tree.c (scalar_reduc_to_vector): Remove.
33564 * optabs-tree.h (scalar_reduc_to_vector): Remove.
33565 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
33566 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
33567 * tree-vect-loop.c (vectorizable_reduction): Remove test for
33568 reduc_[us](min|max|plus) optabs.
33570 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
33572 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
33573 (reduc_plus_scal_v2sf): New.
33574 (reduc_smax_v2sf): Rename to...
33575 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
33576 (reduc_smin_v2sf): Rename to...
33577 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
33579 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
33581 * alias.c (compare_base_symbol_refs): New function.
33582 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
33585 2016-01-14 Jakub Jelinek <jakub@redhat.com>
33587 PR middle-end/68146
33588 PR tree-optimization/69155
33589 * tree-complex.c: Include cfganal.h.
33590 (phis_to_revisit): New variable.
33591 (extract_component): Add phiarg_p argument. Assert that returned
33592 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
33593 (update_phi_components): Partly rewrite to use loop over real/imag
33594 components instead of code duplication. If extract_component returns
33595 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
33596 create_tmp_reg into the PHI node instead, and mention the phi triplet
33597 in phis_to_revisit.
33598 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
33599 in phis_to_revisit at the end.
33601 2016-01-14 Richard Biener <rguenther@suse.de>
33603 PR tree-optimization/68060
33604 * tree-vect-loop.c (vect_is_simple_reduction): Check the
33605 outer loop reduction is only used in the inner loop before
33606 detecting a double reduction.
33608 2016-01-14 Jakub Jelinek <jakub@redhat.com>
33611 * combine.c (expand_field_assignment): Punt if compute_mode is
33612 unsupported scalar mode.
33614 2016-01-14 Richard Biener <rguenther@suse.de>
33616 PR tree-optimization/66856
33617 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
33618 SLP node only if it built successfully.
33619 (vect_analyze_slp_instance): Adjust.
33621 2016-01-14 Jeff Law <law@redhat.com>
33623 PR tree-optimization/69270
33624 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
33625 (record_edge_info): Use it. Convert boolean_{true,false}_node
33626 to the type of op0.
33628 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
33631 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
33632 use block_ultimate_origin
33633 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
33635 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
33637 * doc/invoke.texi (Submodel Options): Rename section to
33638 "Machine-Dependent Options" to better reflect its content.
33639 Rewrite introductory text to remove archaic CPU names.
33642 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
33644 * doc/invoke.texi (Code Gen Options): Move section up in file,
33645 before target-specific options. Update menu and option summary
33646 to reflect the new section ordering.
33648 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
33650 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
33651 (C++ Dialect Options): Add cross-reference to -std option.
33652 * doc/standards.texi (C++ Language): Document C++14 support.
33654 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
33656 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
33657 for pack/unpack functions for __ibm128.
33658 (PACK_IF): Likewise.
33659 (UNPACK_IF): Likewise.
33661 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
33662 support for __ibm128 pack/unpack functions.
33663 (rs6000_invalid_builtin): Likewise.
33664 (rs6000_init_builtins): Likewise.
33665 (rs6000_opt_masks): Likewise.
33667 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
33668 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
33670 (RS6000_BTM_COMMON): Likewise.
33672 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
33673 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
33674 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
33675 128-bit floating point. Add support for the double values to be
33676 in Altivec registers for TF/IF packing and unpacking, but restrict
33677 TD packing sub-fields to be FPR registers. Don't allow overlapped
33678 register support for packing. Allow pack inputs to be memory
33679 locations. Don't build generator functions for unpack<mode>_dm
33680 and unpack<mode>_nodm.
33681 (unpack<mode>_dm): Likewise.
33682 (unpack<mode>_nodm): Likewise.
33683 (pack<mode>): Likewise.
33685 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
33686 built-in functions to pack/unpack explicit __ibm128 values.
33687 (__builtin_unpack_ibm128): Likewise.
33689 * doc/extend.texi (PowerPC Built-in Functions): Document
33690 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
33692 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
33695 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
33696 Add new arg loc and pass it down as context.
33697 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
33698 to the location to use for the warning.
33699 (check_function_arguments): New arg loc. All callers changed. Pass
33700 it to check_function_nonnull.
33701 * c-common.h (check_function_arguments): Adjust declaration.
33703 2016-01-13 Jakub Jelinek <jakub@redhat.com>
33705 PR tree-optimization/69156
33706 * gimple.c (validate_type): Removed.
33707 (gimple_builtin_call_types_compatible_p): Use
33708 useless_type_conversion_p instead of validate_type.
33709 * value-prof.c (gimple_stringop_fixed_value): Fold
33710 icall_size to correct type.
33712 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
33714 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
33717 2016-01-13 Richard Henderson <rth@redhat.com>
33720 * target.def (builtin_tm_load, builtin_tm_store): Remove.
33721 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
33722 (ix86_builtin_tm_store): Remove.
33723 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
33724 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
33725 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
33726 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
33727 * doc/tm.texi: Rebuild.
33729 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
33730 (BUILT_IN_TM_MEMCPY_RTWN): New.
33731 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
33732 fallback from vector to integer helpers.
33733 (build_tm_load): Handle vector types directly, instead of
33735 (build_tm_store): Likewise.
33736 (expand_assign_tm): Prepare for register types not handled by
33737 the above. Copy them to memory and use memcpy.
33738 * tree.c (tm_define_builtin): New.
33739 (find_tm_vector_type): New.
33740 (build_tm_vector_builtins): New.
33741 (build_common_builtin_nodes): Call it.
33743 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
33745 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
33746 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
33748 2016-01-13 Tom de Vries <tom@codesourcery.com>
33750 PR tree-optimization/69169
33751 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
33752 handled_struct_type param.
33753 (create_variable_info_for, intra_create_variable_infos): Call
33754 create_variable_info_for_1 with extra arg.
33756 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
33758 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
33759 and "armv8.1-a+crc" entries.
33761 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
33764 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
33765 Change first operand predicate from register_or_constm1_operand
33766 to register_operand.
33767 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
33768 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
33769 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
33770 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
33771 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
33772 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
33773 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
33774 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
33775 comparison with constm1_rtx from vec_prefetch_gen part.
33777 2016-01-13 Richard Biener <rguenther@suse.de>
33779 PR tree-optimization/69013
33780 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
33781 Exchange assert for a test.
33783 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
33786 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
33788 2016-01-13 Richard Biener <rguenther@suse.de>
33790 PR tree-optimization/69242
33791 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
33792 assert with a check.
33794 2016-01-13 Richard Biener <rguenther@suse.de>
33796 PR tree-optimization/69186
33797 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
33798 Properly guard vect_update_misalignment_for_peel call.
33800 2016-01-12 Jeff Law <law@redhat.com>
33802 PR tree-optimization/pr67755
33803 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
33804 "need_profile_correction".
33805 (thread_block_1): Initialize new field to false by default. If we
33806 have multiple thread paths through a common joiner to different
33807 final targets, then set new field to true.
33808 (compute_path_counts): Only do count adjustment when it's really
33811 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
33813 * doc/invoke.texi (Spec Files): Move section down in file, past
33814 all command-line option descriptions.
33816 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33818 PR middle-end/54809
33819 * doc/gty.texi: Remove documentation of mark_hook.
33820 * gengtype.c (struct write_types_data): Remove code to support
33821 mark_hook attribute.
33822 (walk_type): Likewise.
33823 (write_func_for_structure): Likewise.
33825 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
33827 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
33828 Directory Options, and -specs= to Overall Options.
33829 (Overall Options): Adjust similarly. Reorder to group related
33830 options together. Make -specs= cross-reference the spec file details.
33831 (Directory Options): Adjust similarly.
33833 2016-01-12 Jeff Law <law@redhat.com>
33835 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
33837 2016-01-12 Olivier Hainque <hainque@adacore.com>
33839 * gcc.c (spec_undefvar_allowed): New global.
33840 (process_command): Set to true when running for --version or --help,
33842 (getenv_spec_function): When the variable is not defined, use the
33843 variable name as the variable value if we're allowed not to issue
33846 2016-01-12 Bin Cheng <bin.cheng@arm.com>
33848 PR tree-optimization/68911
33849 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
33850 information computed for expression "init + nit * step".
33852 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
33854 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
33855 about name of GCC executable. Remove deleted node from menu.
33856 (Directory Options) <-B>: Remove cross-reference to deleted node.
33857 (Target Options): Delete section.
33859 2016-01-12 Christian Bruel <christian.bruel@st.com>
33862 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
33863 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
33865 2016-01-12 Jakub Jelinek <jakub@redhat.com>
33868 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
33869 aligned_mem is properly set for AVX512-VL floating point masked
33873 * ifcvt.c (cond_exec_process_if_block): When removing the last
33874 insn from then_bb, remove also any possible barriers that follow it.
33876 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
33880 * config/i386/iamcu.h (SIZE_TYPE): New macro.
33881 (PTRDIFF_TYPE): Likewise.
33882 (WCHAR_TYPE): Likewise.
33883 (WCHAR_TYPE_SIZE): Likewise.
33884 (STDINT_LONG32): Likewise.
33886 2016-01-12 Richard Biener <rguenther@suse.de>
33888 PR tree-optimization/69053
33889 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
33890 convert initial value for cond reductions.
33892 2016-01-12 Richard Biener <rguenther@suse.de>
33894 PR tree-optimization/69007
33895 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
33896 widen_sum after dot_prod and sad.
33898 2016-01-12 Richard Biener <rguenther@suse.de>
33900 PR tree-optimization/69168
33901 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
33902 pattern stmt SLP type.
33903 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
33904 end up unused so cope with that case.
33906 2016-01-12 Richard Biener <rguenther@suse.de>
33908 PR tree-optimization/69157
33909 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
33910 stmts def type only during analyze phase.
33911 (vectorizable_call): Likewise.
33912 (vectorizable_simd_clone_call): Likewise.
33913 (vectorizable_conversion): Likewise.
33914 (vectorizable_assignment): Likewise.
33915 (vectorizable_shift): Likewise.
33916 (vectorizable_operation): Likewise.
33917 (vectorizable_store): Likewise.
33918 (vectorizable_load): Likewise.
33920 2016-01-12 Richard Biener <rguenther@suse.de>
33922 PR tree-optimization/69174
33923 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
33925 (vectorizable_load): Properly compute the number of loads needed
33926 for permuted strided SLP loads and do not spuriously assign
33927 to SLP_TREE_VEC_STMTS.
33929 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
33931 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
33932 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
33933 (MD_EXEC_PREFIX): Remove.
33934 (MD_STARTFILE_PREFIX) Removee.
33935 (FILE_NAME_ABSOLUTE_P): Remove.
33936 (CPP_SPEC): Do not read macros from sys/version.h.
33937 (LINK_COMMAND_SPEC): Remove.
33938 (LOCAL_INCLUDE_DIR): Remove.
33939 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
33940 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
33941 (POST_LINK_SPEC): Define to invoke stubify after linker
33942 (LIBSTDCXX): Remove define
33943 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
33944 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
33945 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
33946 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
33947 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
33948 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
33949 (i386_djgpp_asm_named_section): Add propotype of new procedure
33951 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
33952 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
33953 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
33954 in config/i386/djgpp.h).
33955 (STANDARD_STARTFILE_PREFIX_2): Define identical to
33956 STANDARD_STARTFILE_PREFIX_1.
33957 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
33958 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
33959 installation errors.
33960 (MAX_OFILE_ALIGNMENT): Define to 128.
33961 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
33963 * config/i386/djgpp.c: New file. Add implementation of
33964 i386_djgpp_asm_named_section.
33966 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
33968 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
33969 Add rule for building djgpp.o.
33971 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33973 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
33974 (rtx_is_swappable_p): Reductions are swappable.
33975 (insn_is_swappable_p): V2DF reductions are swappable.
33977 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
33979 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
33980 reloads for other unsupported memory operands.
33982 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
33983 Jim Wilson <jim.wilson@linaro.org>
33986 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
33987 copy_to_mode_reg instead of force_reg.
33989 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
33992 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
33993 TARGET_80387 is true.
33995 2016-01-11 Jakub Jelinek <jakub@redhat.com>
33998 * lra-eliminations.c (move_plus_up): Only move plus up
33999 if subreg of the constant can be simplified into constant
34000 and use the simplified subreg of the constant instead of
34001 the original constant.
34003 * fold-const.c (fold_convertible_p): Don't return true
34004 for conversion of VECTOR_TYPE to same sized integral type.
34005 (fold_convert_loc): Fix up formatting. Fold conversion of
34006 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
34007 instead of NOP_EXPR.
34009 PR tree-optimization/69214
34010 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
34011 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
34014 PR tree-optimization/69207
34015 * tree-vect-slp.c (vect_get_constant_vectors): For
34016 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
34017 fold_convertible_p to vector_type's element type, and always
34018 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
34020 2016-01-11 Richard Biener <rguenther@suse.de>
34022 PR tree-optimization/69173
34023 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
34024 fixup the cycle if all stmts are in a pattern.
34026 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
34028 PR middle-end/68999
34029 * alias.c (base_alias_check): Move check for addresses with
34030 alignment ANDs before the call for compare_base_decls.
34031 (memrefs_conflict_p): Return -1 for different decls
34032 that went through alignment adjustments.
34034 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34036 PR rtl-optimization/68796
34037 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
34038 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
34039 and QImode comparisons against zero with CC_NZmode.
34040 * config/aarch64/iterators.md (short_mask): New mode_attr.
34042 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
34044 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
34045 (<avx512>_store<mode>_mask): Likewise.
34047 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
34048 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34050 PR rtl-optimization/68841
34051 * ifcvt.c (struct noce_if_info): Add orig_x field.
34052 (bbs_ok_for_cmove_arith): Add to_rename parameter.
34053 Don't record conflicts on to_rename if it's present.
34054 Allow memory destinations in sets.
34055 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
34056 blocks, passing orig_x to the checks.
34057 (noce_process_if_block): Set if_info->orig_x appropriately.
34059 2016-01-11 Tom de Vries <tom@codesourcery.com>
34061 PR tree-optimization/69069
34062 * tree-parloops.c (create_parallel_loop): Add missing phi args.
34064 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
34066 PR rtl-optimization/68920
34067 * config/i386/i386.c (ix86_option_override_internal): Restrict number
34068 of conditional moves for RTL if-conversion to 1 for
34069 TARGET_ONE_IF_CONV_INSN.
34070 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
34071 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
34072 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
34073 parameter to restirct number of conditional moves for
34075 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
34076 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
34079 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
34082 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
34083 onepart vars. Fix typo in comment. Fix reversed condition in
34085 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
34088 * var-tracking.c (dump_onepart_variable_differences): New.
34089 (dataflow_set_different): If a detailed dump is requested,
34090 delay early returns and dump differences between onepart
34091 variables present before and after, and added variables.
34093 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
34096 * expr.c (expand_expr_real_1): For boolean vector constants
34097 with a scalar mode use const_scalar_mask_from_tree.
34098 (const_scalar_mask_from_tree): New.
34099 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
34100 assigned to a mask type to handle constants.
34102 2016-01-11 Martin Jambor <mjambor@suse.cz>
34105 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
34106 useless parameters if we cannot change function signature.
34108 2016-01-11 Martin Jambor <mjambor@suse.cz>
34111 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
34114 2016-01-11 Tom de Vries <tom@codesourcery.com>
34116 PR tree-optimization/69109
34117 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
34120 2016-01-11 Tom de Vries <tom@codesourcery.com>
34122 PR tree-optimization/69108
34123 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
34124 res is not used in a phi.
34126 2016-01-11 Yury Gribov <y.gribov@samsung.com>
34129 * common.opt (frandom-seed): Fix parameter name.
34130 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
34132 2016-01-11 Tom de Vries <tom@codesourcery.com>
34134 PR tree-optimization/69058
34135 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
34138 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
34140 * config/arc/arc.opt (mdiv-rem): Add period to the end.
34141 (mcode-density): Likewise.
34143 2016-01-10 Tom de Vries <tom@codesourcery.com>
34145 PR tree-optimization/69062
34146 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
34147 (parallelize_loops): Don't paralelize loop that has phi with address
34150 2016-01-10 Tom de Vries <tom@codesourcery.com>
34152 PR tree-optimization/69039
34153 * tree-parloops.c (try_create_reduction_list): Only allow single exit
34156 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
34158 PR middle-end/68743
34159 * match.pd: Require target has function_c99_misc before doing
34160 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
34162 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
34164 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
34166 * configure: Regenerate.
34168 2016-01-09 Jakub Jelinek <jakub@redhat.com>
34170 PR middle-end/50865
34171 PR tree-optimization/69097
34172 * fold-const.h (expr_not_equal_to): New prototype.
34173 * fold-const.c: Include stringpool.h and tree-ssanames.h.
34174 (expr_not_equal_to): New function.
34175 * match.pd (X % -Y is the same as X % Y): Don't optimize
34176 unless X is known not to be equal to minimum or Y is known
34177 not to be equal to -1.
34178 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
34179 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
34180 (simplify_stmt_using_ranges): Adjust caller.
34181 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
34182 substitute_and_fold.
34184 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
34186 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
34189 2016-01-08 Jakub Jelinek <jakub@redhat.com>
34191 PR tree-optimization/69167
34192 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
34193 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
34195 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
34197 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
34198 Richard Biener <rguenther@suse.de>
34200 PR tree-optimization/68707
34201 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
34202 instances that can be handled via vect_load_lanes.
34204 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
34206 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
34207 if we can't determine address equivalence.
34208 * alias.c (compare_base_decl): Update for changed return value of
34209 symtab_node::equal_address_to.
34211 2016-01-08 Jason Merrill <jason@redhat.com>
34215 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
34216 * expr.c (store_field): Not here.
34217 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
34218 call with TREE_ADDRESSABLE type.
34219 * tree-cfg.c (verify_gimple_call): Adjust.
34221 2016-01-08 Olivier Hainque <hainque@adacore.com>
34223 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
34226 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
34228 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
34229 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
34230 (reduc_smin_v2sf): Rename to...
34231 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
34232 (reduc_splus_v2sf): Rename to...
34233 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
34235 2016-01-08 Jakub Jelinek <jakub@redhat.com>
34237 PR tree-optimization/69162
34238 * gimplify.c (gimplify_va_arg_expr): Encode original type of
34239 valist argument in another argument.
34240 (gimplify_modify_expr): Adjust for the above change. Cleanup.
34241 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
34242 to determine the va_list type, build a MEM_REF instead of
34243 build_fold_indirect_ref.
34245 PR tree-optimization/69172
34246 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
34249 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
34251 PR tree-optimization/67781
34252 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
34253 and cmpnop in two steps: first the ones not accessed in original
34254 gimple expression in a endian independent way and then the ones not
34255 accessed in the final result in an endian-specific way.
34257 2016-01-08 Jakub Jelinek <jakub@redhat.com>
34259 PR tree-optimization/69083
34260 * tree-vect-slp.c (vect_get_constant_vectors): For
34261 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
34262 element type. If op is fold_convertible_p to vector_type's element
34263 type, use NOP_EXPR instead of VCE.
34265 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
34267 PR rtl-optimization/67778
34268 PR rtl-optimization/68634
34269 PR rtl-optimization/68909
34270 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
34271 block from the stack until done with it. Remove a superfluous
34272 bitmap set. Remove a superfluous bitmap test.
34274 2016-01-07 Martin Sebor <msebor@redhat.com>
34277 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
34278 constraint on the type of arguments.
34280 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
34282 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
34283 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
34284 unaligned_access on the gcc_options set.
34285 * config/arm/arm.c (arm_option_override_internal): Use
34286 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
34288 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
34291 * config/i386/i386.c (ix86_frame_pointer_required): Enable
34292 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
34294 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
34297 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
34300 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
34301 depending on frame_pointer_needed before remaining integer and SSE
34302 registers are saved.
34304 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
34307 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
34309 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
34312 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
34313 Use the "xBm" constraint.
34314 (float<sseintvecmodelower><mode>2<mask_name><round_name):
34316 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
34317 (sse_cvtsi2ssq<round_name>): Likewise.
34318 (sse_cvtss2si<round_name>): Likewise.
34319 (sse_cvtss2siq<round_name>): Likewise.
34320 (sse2_cvtsi2sdq<round_name>): Likewise.
34321 (sse2_cvtsd2si<round_name>): Likewise.
34322 (sse2_cvtsd2siq<round_name>): Likewise.
34323 * config/i386/subst.md (round_nimm_scalar_predicate): New
34326 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
34328 PR middle-end/67639
34329 * varasm.c (make_decl_rtl): Mark invalid register vars as
34332 PR rtl-optimization/66206
34333 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
34334 All callers changed.
34336 2016-01-07 Jakub Jelinek <jakub@redhat.com>
34338 PR tree-optimization/69141
34339 * tree-ssa-pre.c: Include langhooks.h.
34340 (eliminate_dom_walker::before_dom_children): Use
34341 lang_hooks.decl_printable_name instead of
34342 cgraph_node::get ()->name ().
34344 PR middle-end/68960
34345 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
34346 it and DECL_ALIGN too.
34348 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
34350 * config/mips/mips-ftypes.def: Sort to lexicographical order.
34352 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
34355 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
34356 depending on frame_pointer_needed before remaining integer and SSE
34357 registers are saved.
34359 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34361 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
34362 mode iterator with VSX_M2.
34363 (*p9_vecstore_<mode>): Likewise.
34364 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
34365 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
34366 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
34367 (define_split for VSX_LE128 stores): Likewise.
34368 (define_peephole2 for TImode LE swaps): Likewise.
34369 (define_split for VSX_LE128 post-reload stores): Likewise.
34371 2016-01-06 Marek Polacek <polacek@redhat.com>
34374 * convert.c (convert_to_integer_1): Adjust call to
34375 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
34376 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
34377 EXPR instead of ARG.
34378 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
34380 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
34383 * doc/extend.texi (RL78 Variable Attributes): New section.
34385 2016-01-05 Marek Polacek <polacek@redhat.com>
34388 * builtins.c (get_memmodel): Use expansion point location rather than
34389 the input location. Call warning_at rather than warning.
34390 (expand_builtin_atomic_compare_exchange): Likewise.
34391 (expand_builtin_atomic_load): Likewise.
34392 (expand_builtin_atomic_store): Likewise.
34393 (expand_builtin_atomic_clear): Likewise.
34395 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
34398 * config/i386/i386.c (ix86_expand_vector_logical_operator):
34399 Replace nonimmediate_operand with vector_operand.
34400 * config/i386/predicates.md (vector_operand): New predicate.
34401 (general_vector_operand): Replace nonimmediate_operand with
34403 * config/i386/sse.md: Replace nonimmediate_operand with
34404 vector_operand and m constraint with Bm constraint on SSE
34405 patterns with 16-byte memory operand.
34406 * config/i386/subst.md (round_nimm_predicate): Replace
34407 nonimmediate_operand with vector_operand.
34408 (round_saeonly_nimm_predicate): Likewise.
34409 (round_saeonly_nimm_scalar_predicate): New.
34411 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
34414 * config/i386/constraints.md (Bm): New constraint.
34415 * config/i386/predicates.md (vector_memory_operand): New
34417 * config/i386/sse.md: Replace xm with xBm in plusminus and
34418 any_logic patterns.
34420 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
34423 * doc/extend.texi (V850 Function Attributes): New section.
34424 (V850 Variable Attributes): New section.
34426 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
34429 * doc/extend.texi (MicroBlaze Function Attributes): Document
34430 interrupt_handler and fast_interrupt attributes.
34432 2016-01-05 Sergei Trofimovich <siarheit@google.com>
34435 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
34436 for local symbolic operands.
34437 * config/ia64/predicates.md (local_symbolic_operand64): New
34440 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34442 PR rtl-optimization/68651
34443 * combine.c (combine_simplify_rtx): Canonicalize x + x into
34446 2016-01-05 Nathan Sidwell <nathan@acm.org>
34448 * alias.c (compare_base_decls): Use symtab_node::get.
34450 2016-01-05 Nick Clifton <nickc@redhat.com>
34453 * ira-costs.c (copy_cost): Initialise the t_icode field of the
34454 secondary_reload_info structure.
34457 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
34458 decls if weak support is available.
34460 2016-01-04 Martin Sebor <msebor@redhat.com>
34462 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
34464 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
34466 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
34467 OPTION_MASK_P9_DFORM.
34469 * config/rs6000/constraints.md (wo constraint): New constraint for
34472 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
34474 (rs6000_init_hard_regno_mode_ok): Likewise.
34476 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
34479 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
34480 expanders not to have constraints. Add support for ISA 3.0 xxperm
34481 instruction. Add support for fusing xxlor with xxperm.
34482 (altivec_vperm_<mode>_internal): Likewise.
34483 (altivec_vperm_v8hiv16qi): Likewise.
34484 (altivec_vperm_<mode>v16q): Likewise.
34485 (altivec_vperm_<mode>_uns): Likewise.
34486 (vperm_v8hiv4si): Likewise.
34487 (vperm_v16qiv8hi): Likewise.
34489 * doc/md.texi (RS/6000 constraints): Document wo constraint.
34491 2016-01-04 Jakub Jelinek <jakub@redhat.com>
34493 Update copyright years.
34495 * gcc.c (process_command): Update copyright notice dates.
34496 * gcov-dump.c (print_version): Ditto.
34497 * gcov.c (print_version): Ditto.
34498 * gcov-tool.c (print_version): Ditto.
34499 * gengtype.c (create_file): Ditto.
34500 * doc/cpp.texi: Bump @copying's copyright year.
34501 * doc/cppinternals.texi: Ditto.
34502 * doc/gcc.texi: Ditto.
34503 * doc/gccint.texi: Ditto.
34504 * doc/gcov.texi: Ditto.
34505 * doc/install.texi: Ditto.
34506 * doc/invoke.texi: Ditto.
34508 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
34510 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
34511 modes larger than TImode as TImode if NEON is not enabled.
34513 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
34516 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
34517 mode for %f0-%f31 only if TARGET_FPU.
34519 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
34522 * config/sparc/sparc.c (scan_record_type): Take into account subfields
34523 to compute the PACKED_P predicate.
34524 (function_arg_record_value): Minor tweaks.
34526 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
34528 * doc/install.texi (--with-multilib-list): Describe the meaning of the
34529 option for arm*-*-* targets.
34531 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
34533 * doc/extend.texi (Common Function Attributes): Move docs for
34534 MSP430-specific attributes to....
34535 (MSP430 Function Attributes): ...here. Delete the redundant
34536 entries and copy-edit the remaining text.
34537 (MSP430 Variable Attributes): Use uniform format for index
34538 entries and add a cross-reference to the corresponding function
34541 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
34543 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
34545 (x86 Options): Likewise.
34547 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
34551 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
34552 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
34553 to corresponding attribute.
34555 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
34557 * doc/extend.texi (Common Function Attributes) <noplt>: Move
34558 to correct alphabetization of table. Copy-edit and correct
34560 <stack_protect>: Likewise.
34561 <target_clones>: Likewise.
34563 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
34564 Correct punctuation.
34565 (Code Gen Options) <-fno-plt>: Copy-edit.
34567 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
34570 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
34571 SI values. Explicitly convert SI to DI and vice-versa.
34573 2016-01-01 Jakub Jelinek <jakub@redhat.com>
34575 PR tree-optimization/69070
34576 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
34577 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
34580 * ubsan.c (ubsan_instrument_float_cast): Call
34581 initialize_sanitizer_builtins.
34584 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
34586 Copyright (C) 2016 Free Software Foundation, Inc.
34588 Copying and distribution of this file, with or without modification,
34589 are permitted in any medium without royalty provided the copyright
34590 notice and this notice are preserved.