1 2017-02-28 Jakub Jelinek <jakub@redhat.com>
3 * config/i386/i386.c: Include intl.h.
4 (ix86_option_override_internal): Use cond ? G_("...") : G_("...")
5 instead of just cond ? "..." : "...".
6 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Likewise.
7 * coverage.c (read_counts_file): Likewise.
8 * omp-offload.c: Include intl.h.
9 (oacc_loop_fixed_partitions): Use cond ? G_("...") : G_("...") instead
10 of just cond ? "..." : "...".
11 * gcov.c (read_count_file): Use cond ? N_("...") : N_("...") instead
12 of just cond ? "..." : "...".
14 2017-02-28 Richard Earnshaw <rearnsha@arm.com>
17 * config/arm/parsecpu.awk (gen_data): Set tuning target to 'tune for'
19 * config/arm/arm-cpus.in (cortex-m0plus.small-multiply): Correct
21 * config/arm/arm-cpu-data.h: Regenerated.
23 2017-02-28 Richard Biener <rguenther@suse.de>
25 PR tree-optimization/79732
26 * tree-inline.c (expand_call_inline): Do not shadow var.
28 2017-02-28 Richard Biener <rguenther@suse.de>
30 PR tree-optimization/79723
31 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Preserve
32 address-space properly.
34 2017-02-28 Thomas Schwinge <thomas@codesourcery.com>
36 * doc/optinfo.texi (Optimization groups): Fix option used for
38 * doc/invoke.texi (-fopt-info): Document "omp".
39 * dumpfile.h: Sort OPTGROUP_OMP before OPTGROUP_VEC.
40 (OPTGROUP_ALL): Add OPTGROUP_OMP.
41 * hsa-gen.c (pass_data_gen_hsail): Use OPTGROUP_OMP.
42 * ipa-hsa.c (pass_data_ipa_hsa): Likewise.
43 * omp-simd-clone.c (pass_data_omp_simd_clone): Likewise.
45 * dumpfile.h (OPTGROUP_OPENMP): Rename to OPTGROUP_OMP. Adjust
47 * dumpfile.c (optgroup_options): Instead of "openmp", associate
48 OPTGROUP_OMP with "omp".
50 2017-02-27 Pat Haugen <pthaugen@us.ibm.com>
53 * config/rs6000/rs6000-c.c (struct altivec_builtin_types): Use VSRAD
54 for arithmetic shift of unsigned V2DI.
56 2017-02-27 Claudiu Zissulescu <claziss@synopsys.com>
58 * config.gcc (arc*-): Clean up, use arc/big.h, arc/elf.h, and
60 * config/arc/arc.h (TARGET_OS_CPP_BUILTINS): Remove.
61 (LINK_SPEC): Likewise.
62 (ARC_TLS_EXTRA_START_SPEC): Likewise.
63 (EXTRA_SPECS): Likewise.
64 (STARTFILE_SPEC): Likewise.
65 (ENDFILE_SPEC): Likewise.
67 (TARGET_SDATA_DEFAULT): Likewise.
68 (TARGET_MMEDIUM_CALLS_DEFAULT): Likewise.
69 (MULTILIB_DEFAULTS): Likewise.
70 (DWARF2_UNWIND_INFO): Likewise.
71 * config/arc/big.h: New file.
72 * config/arc/elf.h: Likewise.
73 * config/arc/linux.h: Likewise.
74 * config/arc/t-uClibc: Remove.
76 2017-02-27 Bin Cheng <bin.cheng@arm.com>
78 PR tree-optimization/77536
79 * tree-ssa-loop-manip.c (niter_for_unrolled_loop): New function.
80 (tree_transform_and_unroll_loop): Use above function to compute the
81 estimated niter of unrolled loop and use it when scaling profile.
82 Also use count info rather than frequency if it's non-zero.
83 * tree-ssa-loop-manip.h niter_for_unrolled_loop(): New declaration.
84 * tree-vect-loop.c (scale_profile_for_vect_loop): New function.
85 (vect_transform_loop): Call above function.
87 2017-02-27 Richard Biener <rguenther@suse.de>
89 PR tree-optimization/45397
90 * tree-ssa-pre.c (eliminate_insert): Handle BIT_AND_EXPR.
91 * tree-ssa-sccvn.c (valueized_wider_op): New helper.
92 (visit_nary_op): Add pattern matching for CSEing sign-changed
93 or truncated operations with wider ones.
95 2017-02-27 Richard Biener <rguenther@suse.de>
97 PR tree-optimization/79690
98 * tree-vect-stmts.c (vectorizable_store): Use vector type
99 built from the DR with address-space.
101 2017-02-26 Gerald Pfeifer <gerald@pfeifer.com>
103 * doc/invoke.texi (Optimize Options): Refine the description
104 of asan-use-after-return.
106 2017-02-25 Alan Modra <amodra@gmail.com>
108 PR rtl-optimization/79584
109 * lra-constraints.c (base_to_reg): Reload ad->base, the entire
110 base, not ad->base_term, the reg within base. Remove assertion
111 that ad->base == ad->base_term. Replace gen_int_mode using
112 bogus mode with const0_rtx.
114 2017-02-25 Jakub Jelinek <jakub@redhat.com>
117 * tree-eh.c (operation_could_trap_p, stmt_could_throw_1_p): Handle
118 FMA_EXPR like tcc_binary or tcc_unary.
120 * tree-ssa-loop-niter.c (number_of_iterations_exit): Simplify warning.
123 * dwarf2out.c (struct dw_loc_list_struct): Add noted_variable_value
125 (size_of_loc_descr): Handle DW_OP_GNU_variable_value.
126 (output_loc_operands): Handle DW_OP_call_ref and
127 DW_OP_GNU_variable_value.
128 (struct variable_value_struct): New type.
129 (struct variable_value_hasher): Likewise.
130 (variable_value_hash): New variable.
131 (string_types): Remove.
132 (copy_loc_descr): New function.
133 (add_loc_descr_to_each): Clarify comment. Use copy_loc_descr.
134 (prepend_loc_descr_to_each): New function.
135 (add_loc_list): Fix comment typo. Use prepend_loc_descr_to_each
136 instead of add_loc_descr_to_each if the first argument is single
137 location list and the second has multiple.
138 (resolve_args_picking_1): Handle DW_OP_GNU_variable_value.
139 (loc_list_from_tree_1): For early_dwarf, emit DW_OP_GNU_variable_value
140 when looking for variable value which doesn't have other location info.
141 (loc_list_from_tree): Formatting fix.
142 (gen_array_type_die): Simplify DW_AT_string_length handling.
143 (adjust_string_types): Remove.
144 (gen_subprogram_die): Don't call adjust_string_types nor test/set
145 string_types. Call resolve_variable_values.
146 (prune_unused_types_walk_loc_descr): Handle DW_OP_GNU_variable_value.
147 (resolve_addr_in_expr): Likewise. Add A argument.
148 (copy_deref_exprloc): Remove deref argument. Adjust for the
149 original expression being DW_OP_GNU_variable_value with optionally
150 DW_OP_stack_value after it instead of DW_OP_call4 with DW_OP_deref
152 (optimize_string_length): Rework for DW_OP_GNU_variable_value.
153 (resolve_addr): Adjust optimize_string_length and resolve_addr_in_expr
154 callers. Set remove_AT_byte_size if removing DW_AT_string_length.
155 (variable_value_hasher::hash, variable_value_hasher::equal): New
157 (resolve_variable_value_in_expr, resolve_variable_value,
158 resolve_variable_values, note_variable_value_in_expr,
159 note_variable_value): New functions.
160 (dwarf2out_early_finish): Call note_variable_value on all toplevel
163 2017-02-24 Jakub Jelinek <jakub@redhat.com>
166 * opts.h (handle_generated_option): Add GENERATED_P argument.
167 * opts-common.c (handle_option): Adjust function comment.
168 (handle_generated_option): Add GENERATED_P argument, pass it to
170 (control_warning_option): Pass false to handle_generated_option
172 * opts.c (maybe_default_option): Pass true to handle_generated_option
174 * optc-gen.awk: Likewise.
176 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
178 * config/sh/sh.md (tstsi_t): If operands[0] is a SUBREG instead of
179 a REG, look at the REG it is a SUBREG of.
180 (splitter for cmpeqsi_t): Ditto.
182 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
184 * config/pa/pa.c (pa_combine_instructions): Do not share RTL. Make
185 the special USEs with the pattern of the insn, not the insn itself.
187 2017-02-24 Matthew Fortune <matthew.fortune@imgtec.com>
190 * doc/invoke.texi: Document -mload-store-pairs.
192 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
193 Sandra Loosemore <sandra@codesourcery.com>
195 * config/nios2/nios2.c (nios2_simple_const_p): Returns false if the
196 argument isn't a CONST_INT.
197 (nios2_alternate_compare_const): Assert op is a CONST_INT.
198 (nios2_valid_compare_const_p): Assert op is a CONST_INT.
199 (nios2_validate_compare): Bypass alternate compare logic if *op2
201 (ldstwm_operation_p): Return false if first_base is not a REG or
202 if first_offset is not a CONST_INT.
204 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
206 * config/cris/cris.md: Use correct operand in a define_peephole2.
208 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
210 * config/c6x/c6x.c (predicate_insn): Do not incorrectly share RTL.
212 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
214 * config/arc/arc.c (arc_ccfsm_advance): Only take the PATTERN of
215 this_insn if it is an INSN or JUMP_INSN.
216 (force_offsettable): Look at base, not at addr.
217 * config/arc/predicates.md (brcc_nolimm_operator): Don't call INTVAL
218 on things that aren't necessarily CONST_INTs.
220 2017-02-24 Uros Bizjak <ubizjak@gmail.com>
222 * doc/invoke.texi (x86 Options, -mfpmath=sse): Mention that
223 -mfpmath=sse is the default also for x86-32 targets with SSE2
224 instruction set when @option{-ffast-math} is enabled
226 2017-02-24 Jeff Law <law@redhat.com>
228 PR rtl-optimizatoin/79286
229 * ira.c (update_equiv_regs): Drop may_trap_p exception to
232 2017-02-24 Richard Biener <rguenther@suse.de>
234 PR tree-optimization/79389
235 * gimple-ssa-split-paths.c (is_feasible_trace): Properly skip
238 2017-02-24 Aldy Hernandez <aldyh@redhat.com>
240 * tree-ssa-loop-niter.c (number_of_iterations_exit): Update
241 function comment to reflect reality.
242 (loop_exits_before_overflow): Fix typo in function description.
244 2017-02-24 Richard Biener <rguenther@suse.de>
246 PR tree-optimization/79389
247 * gimple-ssa-split-paths.c (is_feasible_trace): Verify more
248 properly that a threading opportunity exists. Detect conditional
249 copy/constant propagation opportunities.
251 2017-02-23 Eric Botcazou <ebotcazou@adacore.com>
253 * config/visium/visium.md (type): Add trap.
254 (b): New mode attribute.
255 (*btst): Rename into...
256 (*btst<mode>): ...this and adjust.
257 (*cbranchsi4_btst_insn): Rename into...
258 (*cbranch<mode>4_btst_insn): ...this and adjust.
259 (trap): New define_insn.
261 2017-02-23 Jakub Jelinek <jakub@redhat.com>
263 PR tree-optimization/79389
264 * ifcvt.c (struct noce_if_info): Add rev_cond field.
265 (noce_reversed_cond_code): New function.
266 (noce_emit_store_flag): Use rev_cond if non-NULL instead of
267 reversed_comparison_code. Formatting fix.
268 (noce_try_store_flag): Test rev_cond != NULL in addition to
269 reversed_comparison_code.
270 (noce_try_store_flag_constants): Likewise.
271 (noce_try_store_flag_mask): Likewise.
272 (noce_try_addcc): Use rev_cond if non-NULL instead of
273 reversed_comparison_code.
274 (noce_try_cmove_arith): Likewise. Formatting fixes.
275 (noce_try_minmax, noce_try_abs): Clear rev_cond.
276 (noce_find_if_block): Initialize rev_cond.
277 (find_cond_trap): Call noce_get_condition with then_bb == trap_bb
278 instead of false as last argument never attempt to reverse it
281 2017-02-23 Bin Cheng <bin.cheng@arm.com>
283 PR tree-optimization/79663
284 * tree-predcom.c (combine_chains): Process refs in reverse order
285 only for ZERO length chains, and add explaining comment.
287 2017-02-23 Jeff Law <law@redhat.com>
289 PR tree-optimization/79578
290 * tree-ssa-dse.c (clear_bytes_written_by): Use OEP_ADDRESS_OF
291 in call to operand_equal_p.
293 2017-01-23 Dominique d'Humieres <dominiq@lps.ens.fr>
296 * config/i386/cpuid.h: Fix another undefined behavior.
298 2017-02-23 Richard Biener <rguenther@suse.de>
300 PR tree-optimization/79683
301 * tree-vect-stmts.c (vect_analyze_stmt): Do not overwrite
302 vector types for data-refs.
304 2017-02-23 Martin Liska <mliska@suse.cz>
306 * params.def (PARAM_MIN_NONDEBUG_INSN_UID): Change default to 0.
308 2017-02-23 Jakub Jelinek <jakub@redhat.com>
311 * internal-fn.c (get_range_pos_neg): Moved to ...
312 * tree.c (get_range_pos_neg): ... here. No longer static.
313 * tree.h (get_range_pos_neg): New prototype.
314 * expr.c (expand_expr_real_2) <case TRUNC_DIV_EXPR>: If both arguments
315 are known to be in between 0 and signed maximum inclusive, try to
316 expand both unsigned and signed divmod and use the cheaper one from
319 2017-02-22 Jeff Law <law@redhat.com>
321 PR tree-optimization/79578
322 * tree-ssa-dse.c (clear_bytes_written_by): Use operand_equal_p
323 to compare base operands.
325 2017-02-22 Segher Boessenkool <segher@kernel.crashing.org>
328 * config/rs6000/rs6000.md (*fsel<SFDF:mode><SFDF2:mode>4): Use
329 gpc_reg_operand instead of fpr_reg_operand.
331 2017-02-22 Sameera Deshpande <sameera.deshpande@imgtec.com>
333 * config/mips/mips.c (mips_return_in_memory): Force FP
334 vector types to be returned in memory for o32 ABI.
336 2017-02-22 Jakub Jelinek <jakub@redhat.com>
338 * dwarf2out.c (gen_variable_die): For -gdwarf-5, use DW_TAG_variable
339 instead of DW_TAG_member for static data member declarations and don't
340 set no_linkage_name for static inline data members.
341 (gen_member_die): For -gdwarf-5 don't change DW_TAG_variable
344 2017-02-22 Martin Liska <mliska@suse.cz>
346 * doc/invoke.texi: Replace inequality signs with square brackets
349 2017-02-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
351 PR tree-optimization/68644
352 * gcc.dg/tree-ssa/ivopts-lt-2.c: Skip for powerpc*-*-*.
354 2017-02-22 Matthew Fortune <matthew.fortune@imgtec.com>
357 * lra-constraints.c (simplify_operand_subreg): Handle
358 WORD_REGISTER_OPERATIONS targets.
360 2017-02-22 Jakub Jelinek <jakub@redhat.com>
363 * reg-stack.c (emit_swap_insn): Treat (float_extend:?F (mem:?F))
364 and (const_double:?F) like (mem:?F) for the purpose of fxch %st(1)
365 elimination by swapping fld*.
367 2017-02-22 Richard Biener <rguenther@suse.de>
369 PR tree-optimization/79673
370 * tree-ssa-pre.c (compute_avail): Use wide_int_to_tree to
371 convert the [TARGET_]MEM_REF offset INTEGER_CST, scrapping off
372 irrelevant address-space qualifiers and avoiding a
373 ADDR_SPACE_CONVERT_EXPR from fold_convert.
375 2017-02-22 Richard Biener <rguenther@suse.de>
377 PR tree-optimization/79666
378 * tree-vrp.c (extract_range_from_binary_expr_1): Make sure
379 to not symbolically negate if that may introduce undefined
382 2017-02-22 Martin Liska <mliska@suse.cz>
385 * data-streamer-in.c (streamer_read_gcov_count): Remove assert.
386 * data-streamer-out.c (streamer_write_gcov_count_stream):
388 * value-prof.c (stream_out_histogram_value): Make assert more
389 precise based on type of counter.
391 2017-02-21 Uros Bizjak <ubizjak@gmail.com>
394 * config/i386/i386.md (standard_x87sse_constant_load splitter):
395 Use nonimmediate_operand instead of memory_operand for operand 1.
396 (float-extend standard_x87sse_constant_load splitter): Ditto.
398 2017-02-21 Jeff Law <law@redhat.com>
400 PR tree-optimization/79621
401 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior): Ignore
402 blocks with edges to themselves.
404 2017-02-21 Jakub Jelinek <jakub@redhat.com>
407 * tree-chkp-opt.c (chkp_optimize_string_function_calls): Use
408 is_gimple_call instead of comparing gimple_code with GIMPLE_CALL.
409 Use gimple_call_builtin_p.
412 * sel-sched.c (moveup_expr_cached): Don't call sel_bb_head
413 on temporarily removed DEBUG_INSNs.
415 PR tree-optimization/79649
416 * tree-loop-distribution.c (classify_partition): Give up on
417 non-generic address space loads/stores.
419 2017-02-21 Aldy Hernandez <aldyh@redhat.com>
421 * doc/loop.texi (Loop manipulation): Remove nonexistent
422 tree_ssa_loop_version from the documentation.
423 * cfgloopmanip.c (loop_version): Document CONDITION_BB argument.
425 2017-02-21 Jakub Jelinek <jakub@redhat.com>
428 * config/i386/i386.c (ix86_expand_split_stack_prologue): Call
429 make_reg_eh_region_note_nothrow_nononlocal on call_insn.
430 * config/rs6000/rs6000.c: Include except.h.
431 (rs6000_expand_split_stack_prologue): Call
432 make_reg_eh_region_note_nothrow_nononlocal on the call insn.
434 2017-02-21 Martin Jambor <mjambor@suse.cz>
437 * ipa-prop.c (ipa_prop_write_jump_functions): Bail out if no edges
440 2017-02-21 Martin Jambor <mjambor@suse.cz>
442 * common.opt (-fipa-cp-alignment): Mark as ignored and preserved
443 for backward compatibility only.
444 * doc/invoke.texi (Option Summary): Remove all references to
447 2017-02-21 Matthew Fortune <matthew.fortune@imgtec.com>
451 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
453 * lra-constraints.c (curr_insn_transform): Handle
454 WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
456 2017-02-21 Martin Liska <mliska@suse.cz>
458 * config/i386/i386.opt: Replace -masm-dialect with -masm.
460 2017-02-21 Thomas Schwinge <thomas@codesourcery.com>
463 * config/nvptx/nvptx.c (ENTRY_TEMPLATE): Single out "%ntid.y".
465 2017-02-21 Eric Botcazou <ebotcazou@adacore.com>
468 * config/arm/arm.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
469 (arm_function_ok_for_sibcall): Return false for an indirect call by
470 descriptor if all the argument registers are used.
471 (arm_relayout_function): Use FUNCTION_ALIGNMENT macro to adjust the
472 alignment of the function.
474 2017-02-21 Jakub Jelinek <jakub@redhat.com>
476 PR tree-optimization/61441
477 * simplify-rtx.c (simplify_const_unary_operation): For
478 -fsignaling-nans and sNaN operand, return NULL_RTX rather than
481 2017-02-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
483 * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
484 (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
485 instead of SYSTEM_HEADER_DIR.
487 2017-02-20 Gerald Pfeifer <gerald@pfeifer.com>
488 Martin Liška <mliska@suse.cz>
490 * doc/invoke.texi (use-after-scope-direct-emission-threshold):
491 Fix typos and grammar, use active voice, and clarify.
493 2017-02-20 Marek Polacek <polacek@redhat.com>
496 * gimplify.c (gimplify_expr): Handle unused *&&L;.
499 * ubsan.c (ubsan_type_descriptor): Check if TYPE_MAX_VALUE is null.
501 2017-02-20 Jakub Jelinek <jakub@redhat.com>
504 * config/i386/i386.c (ix86_expand_builtin): Handle
505 OPTION_MASK_ISA_AVX512VL and OPTION_MASK_ISA_64BIT in
506 ix86_builtins_isa[fcode].isa as a requirement of those
507 flags and any other flag in the bitmask.
508 (ix86_init_mmx_sse_builtins): Use 0 instead of
509 ~OPTION_MASK_ISA_64BIT as mask.
510 * config/i386/i386-builtin.def (__builtin_ia32_rdtsc,
511 __builtin_ia32_rdtscp, __builtin_ia32_pause, __builtin_ia32_bsrsi,
512 __builtin_ia32_rdpmc, __builtin_ia32_rolqi, __builtin_ia32_rolhi,
513 __builtin_ia32_rorqi, __builtin_ia32_rorhi): Likewise.
515 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
518 * lra-constraints.c (split_reg): Check requested split mode
519 is supported by the register.
521 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
523 * lra-constraints.c (simplify_operand_subreg): Remove early
526 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
529 * lra-constraints.c (curr_insn_transform): Tighten condition
530 for converting SUBREG reloads from OP_OUT to OP_INOUT.
532 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
535 * lra-constraints.c (curr_insn_transform): Handle
536 WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
538 2017-02-19 Uros Bizjak <ubizjak@gmail.com>
541 2016-05-30 Uros Bizjak <ubizjak@gmail.com>
543 * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
545 2017-02-19 Jonathan Wakely <jwakely@redhat.com>
548 * doc/invoke.texi (C++ Dialect Options) [-Wliteral-suffix]: Update
551 2017-02-19 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
553 * gimple-pretty-print.c (dump_ternary_rhs): Adjust gimple dump format
556 2017-02-18 Jakub Jelinek <jakub@redhat.com>
558 * final.c (last_columnnum, override_columnnum): New variables.
559 (final_start_function): Set last_columnnum, pass it to begin_prologue
560 hook and pass 0 to dwarf2out_begin_prologue.
561 (final_scan_insn): Update override_columnnum. Pass last_columnnum
562 to source_line debug hook.
563 (notice_source_line): Compute last_columnnum and for debug_column_info
564 return true on column changes.
565 * debug.h (struct gcc_debug_hooks): Add column argument to
566 source_line and begin_prologue hooks.
567 (debug_nothing_int_charstar_int_bool): Remove prototype.
568 (debug_nothing_int_int_charstar,
569 debug_nothing_int_int_charstar_int_bool): New prototypes.
570 (dwarf2out_begin_prologue): Add column argument.
571 * debug.c (do_nothing_debug_hooks): Adjust source_line and
572 begin_prologue hooks.
573 (debug_nothing_int_charstar_int_bool): Remove.
574 (debug_nothing_int_int_charstar,
575 debug_nothing_int_int_charstar_int_bool): New functions.
576 * dwarf2out.c (dwarf2out_begin_prologue): Add column argument, pass it
577 through to dwarf2out_source_line.
578 (dwarf2_lineno_debug_hooks): Adjust begin_prologue hook.
579 (dwarf2out_source_line): Add column argument, emit it if requested.
580 * sdbout.c (sdbout_source_line, sdbout_begin_prologue): Add column
582 * xcoffout.h (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
583 * xcoffout.c (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
584 * vmsdbgout.c (vmsdbgout_begin_prologue): Add column argument, pass it
585 through to dwarf2out_begin_prologue.
586 (vmsdbgout_source_line): Add column argument, pass it through to
587 dwarf2out_source_line.
588 * dbxout.c (dbxout_begin_prologue): Add column argument, adjust
589 dbxout_source_line caller.
590 (dbxout_source_line): Add column argument.
592 * common.opt (gno-column-info, gcolumn-info): New options.
593 * dwarf2out.c (dwarf2_lineno_debug_hooks): Formatting fix.
594 (check_die): Also test for multiple DW_AT_decl_column attributes.
595 (add_src_coords_attributes, dwarf2out_imported_module_or_decl_1): Add
596 DW_AT_decl_column if requested.
597 (gen_subprogram_die): Compare and/or add also DW_AT_decl_column
599 (gen_variable_die): Likewise.
600 (add_call_src_coords_attributes): Add DW_AT_call_column if requested.
601 * doc/invoke.texi (-gcolumn-info, -gno-column-info): Document.
604 * config/i386/i386.opt (m3dnowa): Replace Undocumented with Report.
605 * common/config/i386/i386-common.c (OPTION_MASK_ISA_3DNOW_A_SET): Define.
606 (ix86_handle_option): Handle OPT_m3dnowa.
607 * doc/invoke.texi (-m3dnowa): Document.
608 * doc/extend.texi (__builtin_ia32_pmulhuw, __builtin_ia32_pf2iw): Use
609 -m3dnowa instead of -m3dnow -march=athlon.
612 * config/i386/i386.c (ix86_print_operand): Use output_operand_lossage
613 instead of gcc_assert for K, r and R code checks. Formatting fixes.
615 2017-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
618 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
619 support for CODE_FOR_vsx_xxpermdi_v2d[fi]_be.
620 * config/rs6000/rs6000.md (reload_gpr_from_vsx<mode>): Call
621 generator for vsx_xxpermdi_<mode>_be.
622 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Remove logic to
623 force big-endian semantics.
624 (vsx_xxpermdi_<mode>_be): New define_expand with same
625 implementation as previous version of vsx_xxpermdi_<mode>.
627 2017-02-17 Jakub Jelinek <jakub@redhat.com>
629 PR tree-optimization/79327
630 * gimple-ssa-sprintf.c (format_integer): Remove likely_adjust
631 variable, its initialization and use.
633 2017-02-17 Julia Koval <julia.koval@intel.com>
635 * common/config/i386/i386-common.c (OPTION_MASK_ISA_RDPID_SET): New.
636 (OPTION_MASK_ISA_PKU_UNSET): New.
637 (ix86_handle_option): Handle -mrdpid.
638 * config/i386/cpuid.h (bit_RDPID): New.
639 * config/i386/driver-i386.c (host_detect_local_cpu):
640 Detect RDPID feature.
641 * config/i386/i386-builtin.def (__builtin_ia32_rdpid): New.
642 * config/i386/i386-c.c (ix86_target_macros_internal):
644 * config/i386/i386.c (ix86_target_string): Add -mrdpid to isa2_opts.
645 (ix86_valid_target_attribute_inner_p): Add "rdpid".
646 (ix86_expand_builtin): Handle IX86_BUILTIN_RDPID.
647 * config/i386/i386.h (TARGET_RDPID, TARGET_RDPID_P): New.
648 * config/i386/i386.md (define_insn "rdpid"): New.
649 * config/i386/i386.opt Add -mrdpid.
650 * config/i386/immintrin.h (_rdpid_u32): New.
652 2017-02-17 Vladimir Makarov <vmakarov@redhat.com>
654 PR rtl-optimization/79541
655 * lra-constraints.c (curr_insn_transform): Remove wrong asm insn
656 instead of transforming it into USE.
658 2017-02-17 Segher Boessenkool <segher@kernel.crashing.org>
660 * config/rs6000/rs6000.md (extendsfdf2): Remove default arguments.
661 If HONOR_SNANS (SFmode) force the input to a register.
662 (*extendsfdf2_fpr): Add !HONOR_SNANS (SFmode) condition.
663 (*extendsfdf2_snan): New pattern, used when using SNaNs; it generates
664 an frsp or similar insn.
666 2017-02-17 Martin Liska <mliska@suse.cz>
668 PR rtl-optimization/79577
669 * params.def (selsched-max-sched-times): Increase minimum to 1.
671 2017-02-17 Martin Liska <mliska@suse.cz>
673 PR rtl-optimization/79574
674 * gcse.c (want_to_gcse_p): Prevent integer overflow.
676 2017-02-17 Martin Liska <mliska@suse.cz>
678 PR tree-optimization/79529
679 * tree-ssa-loop-unswitch.c (is_maybe_undefined): Use
680 ssa_defined_default_def_p to handle cases which are implicitly
682 * tree-ssa.c (ssa_defined_default_def_p): New function.
683 (ssa_undefined_value_p): Use ssa_defined_default_def_p to handle cases
684 which are implicitly defined.
685 * tree-ssa.h (ssa_defined_default_def_p): Declare.
687 2017-02-17 Richard Biener <rguenther@suse.de>
690 * params.def (max-ssa-name-query-depth): Limit to 10.
692 2017-02-17 Richard Biener <rguenther@suse.de>
694 PR tree-optimization/79552
695 * tree-ssa-structalias.c (visit_loadstore): Properly verify
698 2017-02-17 Richard Biener <rguenther@suse.de>
701 * genmatch.c (output_line_directive): Handle DIR_SEPARATOR_2.
703 2017-02-17 Marek Polacek <polacek@redhat.com>
706 * fold-const.c (fold_negate_expr_1): Renamed from fold_negate_expr.
707 (fold_negate_expr): New wrapper.
709 2017-02-16 Sandra Loosemore <sandra@codesourcery.com>
711 * doc/invoke.texi (C++ Dialect Options) [-Wno-non-template-friend]:
712 Correct terminology and de-emphasize pre-standard behavior.
714 2017-02-16 Alan Modra <amodra@gmail.com>
716 PR rtl-optimization/79286
717 * ira.c (def_dominates_uses): New function.
718 (update_equiv_regs): Don't create an equivalence for insns that
719 may trap where the register def does not dominate the use.
721 2017-02-16 Vladimir Makarov <vmakarov@redhat.com>
723 PR rtl-optimization/78127
724 * lra.c (lra): Call lra_eliminate before finish the loop after
727 2017-02-16 Richard Biener <rguenther@suse.de>
729 * graphite.h: Do not include isl/isl_val_gmp.h, instead include
731 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): Remove.
732 (gcc_expression_from_isl_expr_int): Use generic isl_val interface.
733 * graphite-sese-to-poly.c: Do not include isl/isl_val_gmp.h.
734 (isl_val_int_from_wi): New function.
735 (extract_affine_gmp): Rename to ...
736 (extract_affine_wi): ... this, take a widest_int.
737 (extract_affine_int): Just wrap extract_affine_wi.
738 (add_param_constraints): Use isl_val_int_from_wi.
739 (add_loop_constraints): Likewise, and extract_affine_wi.
741 2017-02-15 Jeff Law <law@redhat.com>
744 * ira-costs.c (scan_one_insn): Check have_regs_of_mode before calling
745 ira_init_register_move_cost_if_necessary.
747 2017-02-15 Martin Sebor <msebor@redhat.com>
750 * doc/invoke.texi (-fdump-final-insns): Replace option accidentally
751 removed in a prior commit.
753 2017-02-15 Bin Cheng <bin.cheng@arm.com>
755 PR tree-optimization/79347
756 * tree-vect-loop-manip.c (vect_do_peeling): Maintain profile
757 counters during peeling.
759 2017-02-15 Thomas Schwinge <thomas@codesourcery.com>
761 * Makefile.in (site.exp): Remove "set ISLVER".
763 2017-02-15 Jakub Jelinek <jakub@redhat.com>
766 * real.c (real_from_integer): Call real_convert even for decimal.
768 2017-02-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
771 * config/s390/s390.c: define TARGET_CUSTOM_FUNCTION_DESCRIPTORS.
773 2017-02-14 Andrew Pinski <apinski@cavium.com>
775 * config/aarch64/aarch64-cores.def (thunderx2t99): Move to under 'C"
776 cores and change the partno/implementer to be correct.
777 (thunderx2t99p1): New core which replaces thunderx2t99 and still has
778 the 'B" as the implementer.
779 * config/aarch64/aarch64-tune.md: Regenerate.
781 2017-02-14 Carl Love <cel@us.ibm.com>
783 * config/rs6000/rs6000.c: Add case statement entry to make the
784 xvcvuxdsp built-in argument unsigned.
785 * config/rs6000/vsx.md: Fix the source and return operand types so they
786 match the instruction definitions from the ISA document. Fix typo
787 in the instruction generation for the (define_insn "vsx_xvcvuxdsp"
790 2017-02-14 Vladimir Makarov <vmakarov@redhat.com>
793 * lra-int.h (struct lra_operand_data, struct lra_insn_reg): Add
794 member early_clobber_alts.
795 * lra-lives.c (reg_early_clobber_p): New.
796 (process_bb_lives): Use it.
797 * lra.c (new_insn_reg): New arg early_clobber_alts. Use it.
798 (debug_operand_data): Initialize early_clobber_alts.
799 (setup_operand_alternative): Set up early_clobber_alts.
800 (collect_non_operand_hard_regs): Ditto. Pass early clobber
801 alternatives to new_insn_reg.
802 (add_regs_to_insn_regno_info): Add arg early_clobber_alts. Use
804 (lra_update_insn_regno_info): Pass the new arg.
806 2017-02-14 Jakub Jelinek <jakub@redhat.com>
809 * omp-offload.c (free_oacc_loop): Release loop->ifns vector.
810 (new_oacc_loop_raw): Don't clear already cleared fields.
813 * config/i386/avx512pfintrin.h (_mm512_prefetch_i32gather_pd,
814 _mm512_prefetch_i32gather_ps, _mm512_prefetch_i64gather_pd,
815 _mm512_prefetch_i64gather_ps): New inline functions and macros.
817 2017-02-14 Uros Bizjak <ubizjak@gmail.com>
820 * config/i386/i386.md (*movxf_internal): Add (o,rC) alternative.
822 2017-02-14 H.J. Lu <hongjiu.lu@intel.com>
825 * config/i386/i386.c (timode_scalar_chain::convert_insn): Insert
826 the extra instruction to the right place to store 128-bit constant
829 2017-02-14 Martin Sebor <msebor@redhat.com>
832 * gimple-ssa-sprintf.c (format_directive): Avoid issuing INT_MAX
833 warning for strings of unknown length.
835 2017-02-13 Segher Boessenkool <segher@kernel.crashing.org>
837 * config.gcc (supported_defaults) [powerpc*-*-*]: Update.
839 2017-02-14 Jeff Law <law@redhat.com>
842 * ira-costs.c (scan_one_insn): Initialize register move costs
843 for pseudos seen in USE/CLOBBER insns.
845 PR tree-optimization/79095
846 * tree-vrp.c (extract_range_from_binary_expr_1): For EXACT_DIV_EXPR,
847 if the numerator has the range ~[0,0] make the resultant range ~[0,0].
848 (extract_range_from_binary_expr): For MINUS_EXPR with no derived range,
849 if the operands are known to be not equal, then the resulting range
851 (intersect_ranges): If the new range is ~[0,0] and the old range is
852 wide, then prefer ~[0,0].
853 * tree-vrp.c (overflow_comparison_p_1): New function.
854 (overflow_comparison_p): New function.
855 * tree-vrp.c (register_edge_assert_for_2): Register additional asserts
856 if NAME is used in an overflow test.
857 (vrp_evaluate_conditional_warnv_with_ops): If the ops represent an
858 overflow check that can be expressed as an equality test, then adjust
859 ops to be that equality test.
861 2017-02-14 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
863 * config/s390/s390-builtin-types.def: Remove flags argument.
864 * config/s390/s390.c (s390_init_builtins): Likewise.
866 2017-02-14 Martin Liska <mliska@suse.cz>
868 * tree-ssa-loop-unswitch.c (hoist_guard): Release get_loop_body
869 vector. Fix trailing white spaces.
871 2017-02-14 James Greenhalgh <james.greenhalgh@arm.com>
873 * config/aarch64/aarch64.c (aarch64_simd_container_mode): Handle
876 2017-02-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
878 PR rtl-optimization/68664
879 * config/arm/arm.c (arm_sched_can_speculate_insn):
880 New function. Declare prototype.
881 (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
883 2017-02-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
885 PR rtl-optimization/68664
886 * config/aarch64/aarch64.c (aarch64_sched_can_speculate_insn):
888 (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
890 2017-02-14 Amit Pawar <amit.pawar@amd.com>
892 * config/i386/i386.c (znver1_cost): Fix the alignment for function and
893 max skip bytes for function, loop and jump.
895 2017-02-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
897 * gimple-pretty-print.c (dump_unary_rhs): Adjust dump format for
898 ABS_EXPR for gimple dump.
900 2017-02-14 Jakub Jelinek <jakub@redhat.com>
903 * config/sh/sh.c (expand_cbranchdi4): Don't clear operands[4].
905 PR tree-optimization/79408
906 * tree-vrp.c (simplify_div_or_mod_using_ranges): Handle also the
907 case when on TRUNC_MOD_EXPR op0 is INTEGER_CST.
908 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
909 also if rhs1 is INTEGER_CST.
911 2017-02-14 Richard Biener <rguenther@suse.de>
914 * tree-into-ssa.c (insert_phi_nodes): When the function can
915 have abnormal edges rewrite SSA names with broken use-def
916 dominance out of SSA and register them for PHI insertion.
918 2017-02-13 Martin Sebor <msebor@redhat.com>
921 * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call): Avoid
922 clearing info.nowrite flag when snprintf size argument is a range.
924 2017-02-13 Jakub Jelinek <jakub@redhat.com>
926 * cprop.c (cprop_jump): Add missing space in string literal.
927 * tree-ssa-structalias.c (rewrite_constraints): Likewise.
928 (get_constraint_for_component_ref): Likewise.
929 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
930 * tree-outof-ssa.c (insert_partition_copy_on_edge): Likewise.
931 * lra-constraints.c (process_alt_operands): Likewise.
932 * ipa-inline.c (inline_small_functions): Likewise.
933 * tree-ssa-sccvn.c (visit_reference_op_store): Likewise.
934 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
935 * trans-mem.c (diagnose_tm_1_op): Likewise.
936 * omp-grid.c (grid_find_single_omp_among_assignments): Likewise.
937 (grid_parallel_clauses_gridifiable): Likewise.
939 * config/nvptx/mkoffload.c (process): Add space in between
942 * config/i386/i386.h (REG_CLASS_NAMES): Add , in between
943 "MOD4_SSE_REGS" and "ALL_REGS".
945 * spellcheck.c (test_data): Add , in between "foo" and "food".
947 2017-02-13 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
950 * config/rs6000/rs6000.c (expand_block_compare): Make sure runtime
951 boundary crossing check and subsequent code generation agree.
953 2017-02-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
955 * config/aarch64/aarch64.c (has_memory_op): Delete.
956 (aarch64_madd_needs_nop): Use contains_mem_rtx_p instead of
959 2017-02-13 Jakub Jelinek <jakub@redhat.com>
961 PR rtl-optimization/79388
962 PR rtl-optimization/79450
963 * combine.c (distribute_notes): When removing TEM_INSN for which
964 corresponding dest has last value recorded, invalidate that last
967 2017-02-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
969 * config/arm/arm.c (arm_print_tune_info): Use ASM_COMMENT_START instead
970 of explicit '@'. Add missing assembly comment marker on branch costs
973 2017-02-13 Nathan Sidwell <nathan@acm.org>
975 * gengtype-lex.l (<in_struct>): Add '/'.
977 2017-02-13 Martin Liska <mliska@suse.cz>
980 * calls.c (expand_call): Replace XALLOCAVEC with XCNEWVEC.
982 2017-02-13 Richard Biener <rguenther@suse.de>
984 * configure.ac (HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS):
986 * configure: Re-generate.
987 * config.in: Likewise.
988 * graphite-dependences.c: Simplify as if
989 HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS was defined.
990 * graphite-isl-ast-to-gimple.c: Likewise.
991 * graphite-optimize-isl.c: Likewise.
992 * graphite-poly.c: Likewise.
993 * graphite-sese-to-poly.c: Likewise.
994 * graphite.h: Likewise.
995 * toplev.c: Include isl/version.h and use isl_version () for
996 printing the ISL version.
997 * doc/install.texi: Update ISL requirement.
999 2017-02-12 Gerald Pfeifer <gerald@pfeifer.com>
1001 * doc/standards.texi (Standards): Update reference to
1004 2017-02-12 Gerald Pfeifer <gerald@pfeifer.com>
1006 * doc/extend.texi (Named Address Spaces): sourceware.org now
1008 * doc/install.texi (Binaries): Ditto.
1011 2017-02-11 Sandra Loosemore <sandra@codesourcery.com>
1013 * doc/cpp.texi: Replace "stringify"/"stringification" with C
1014 standard terminology "stringize"/"stringizing" throughout.
1015 * doc/cppinternals.texi: Likewise.
1017 2017-02-11 Sandra Loosemore <sandra@codesourcery.com>
1019 * doc/extend.texi: Fix some spelling mistakes and typos.
1020 * doc/invoke.texi: Likewise.
1022 2017-02-11 Jan Hubicka <hubicka@ucw.cz>
1025 * params.def (inline-min-speedup) Change from 10 to 8.
1027 2017-02-11 Jakub Jelinek <jakub@redhat.com>
1029 * doc/invoke.texi (fopenmp): Bump OpenMP version from 4.0 to
1032 2017-02-11 Jan Hubicka <hubicka@ucw.cz>
1035 * ipa-inline-analysis.c (get_minimal_bb): New function.
1036 (record_modified): Use it.
1037 (remap_edge_change_prob): Handle also ancestor functions.
1039 2017-02-11 Gerald Pfeifer <gerald@pfeifer.com>
1041 * doc/contrib.texi (Contributors): Remove broken link into
1042 the Mauve CVS repository.
1044 2017-02-11 Jakub Jelinek <jakub@redhat.com>
1047 * internal-fn.c (expand_vector_ubsan_overflow): Use piece-wise
1048 result computation whenever lhs doesn't have vector mode, not
1049 just when it has BLKmode.
1051 2017-02-10 Gerald Pfeifer <gerald@pfeifer.com>
1053 * doc/makefile.texi (profiledbootstrap): Refer to the
1054 installation instructions only in textual form.
1056 2017-02-10 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
1059 * config/rs6000/altivec.md (bcd<bcd_add_sub>): Fix constraints.
1061 2017-02-10 Gerald Pfeifer <gerald@pfeifer.com>
1063 * doc/install.texi (Specific): Use https for blackfin.uclinux.org.
1064 (Specific): Update mingw-w64 reference.
1066 (Specific): Remove broken link to Renesas RX processor.
1068 2017-02-10 Richard Biener <rguenther@suse.de>
1070 * toplev.c (process_options): Do not mention obsolete graphite
1071 options when printing sorry message about missing graphite support.
1072 Mention -floop-nest-optimize.
1074 2017-02-10 Christophe Lyon <christophe.lyon@linaro.org>
1076 * config/aarch64/arm_neon.h (vtst_p8): Rewrite without asm.
1077 (vtst_p16): Likewise.
1078 (vtstq_p8): Likewise.
1079 (vtstq_p16): Likewise.
1081 (vtstq_p64): Likewise.
1082 * config/arm/arm_neon.h (vgetq_lane_p64): New.
1083 (vset_lane_p64): New.
1084 (vsetq_lane_p64): New.
1086 2017-02-10 Jakub Jelinek <jakub@redhat.com>
1088 PR tree-optimization/79411
1089 * tree-ssa-reassoc.c (is_reassociable_op): Return false if
1090 stmt operands are SSA_NAMEs used in abnormal phis.
1091 (can_reassociate_p): Return false if op is SSA_NAME used in abnormal
1094 2017-02-09 Jan Hubicka <hubicka@ucw.cz>
1097 * cgraphunit.c (cgraph_node::add_new_function): Set externally_visible
1100 2017-02-09 Jan Hubicka <hubicka@ucw.cz>
1102 * tree-ssa-loop-unswitch.c (hoist_guard): Update profile.
1104 2017-02-09 Jakub Jelinek <jakub@redhat.com>
1106 * omp-offload.c (oacc_loop_auto_partitions): Use || instead of |
1110 * gimplify.h (is_gimple_sizepos): Only test for INTEGER_CST constants,
1111 not arbitrary TREE_CONSTANT.
1114 * gimplify.c (gimplify_adjust_omp_clauses): Ignore
1115 "omp declare target link" attribute unless is_global_var.
1116 * omp-offload.c (find_link_var_op): Likewise.
1118 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
1119 Chung-Lin Tang <cltang@codesourcery.com>
1121 * gimplify.c (gimplify_scan_omp_clauses): No special handling for
1123 (gimplify_adjust_omp_clauses): Don't delete TILE.
1124 (gimplify_omp_for): Deal with TILE.
1125 * internal-fn.c (expand_GOACC_TILE): New function.
1126 * internal-fn.def (GOACC_DIM_POS): Comment may be overly conservative.
1128 * omp-expand.c (struct oacc_collapse): Add tile and outer fields.
1129 (expand_oacc_collapse_init): Add LOC paramter. Initialize tile
1131 (expand_oacc_collapse_vars): Add INNER parm, adjust for tiling,
1132 avoid DIV for outermost collapse var.
1133 (expand_oacc_for): Insert tile element loop as needed. Adjust.
1134 Remove out of date comments, fix whitespace.
1135 * omp-general.c (omp_extract_for_data): Deal with tiling.
1136 * omp-general.h (enum oacc_loop_flags): Add OLF_TILE flag,
1137 adjust OLF_DIM_BASE value.
1138 (struct omp_for_data): Add tiling field.
1139 * omp-low.c (scan_sharing_clauses): Allow OMP_CLAUSE_TILE.
1140 (lower_oacc_head_mark): Add OLF_TILE as appropriate. Ensure 2 levels
1141 for auto loops. Remove default auto determining, moved to
1142 oacc_loop_fixed_partitions.
1143 * omp-offload.c (struct oacc_loop): Change 'ifns' to vector of call
1144 stmts, add e_mask field.
1145 (oacc_dim_call): New function, abstracted out from oacc_thread_numbers.
1146 (oacc_thread_numbers): Use oacc_dim_call.
1147 (oacc_xform_tile): New.
1148 (new_oacc_loop_raw): Initialize e_mask, adjust for ifns vector.
1149 (finish_oacc_loop): Adjust for ifns vector.
1150 (oacc_loop_discover_walk): Append loop abstraction sites to list,
1151 add case for GOACC_TILE fns.
1152 (oacc_loop_xform_loop): Delete.
1153 (oacc_loop_process): Iterate over call list directly, and add
1154 handling for GOACC_TILE fns.
1155 (oacc_loop_fixed_partitions): Determine default auto, deal with TILE,
1157 (oacc_loop_auto_partitions): Add outer_assign parm. Assign all but
1158 vector partitioning to outer loops. Assign 2 partitions to loops
1159 when available. Add TILE handling.
1160 (oacc_loop_partition): Adjust oacc_loop_auto_partitions call.
1161 (execite_oacc_device_lower): Process GOACC_TILE fns, ignore unknown specs.
1162 * tree-nested.c (convert_nonlocal_omp_clauses): Allow OMP_CLAUSE_TILE.
1163 * tree.c (omp_clause_num_ops): Adjust TILE ops.
1164 * tree.h (OMP_CLAUSE_TILE_ITERVAR, OMP_CLAUSE_TILE_COUNT): New.
1166 2017-02-09 Gerald Pfeifer <gerald@pfeifer.com>
1168 * configure.ac (ACX_BUGURL): Update.
1169 * configure: Regenerate.
1171 2017-02-09 Richard Biener <rguenther@suse.de>
1173 PR tree-optimization/69823
1174 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
1175 Properly enumerate all BBs in the region. Use auto_vec/auto_bitmap.
1177 2017-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
1179 * config/arc/arc-c.def: Add __NPS400__ definition.
1180 * config/arc/arc.h (CPP_SPEC): Don't define __NPS400__ here.
1181 (TARGET_NPS400): Define.
1183 2017-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
1185 * config/arc/arc-arch.h (arc_arch_t): Move unchanged to earlier in
1187 (arc_cpu_t): Change base_architecture field, arch, to a arc_arc_t
1189 (arc_cpu_types): Fill the arch_info field with a pointer into the
1190 arc_arch_types table.
1191 (arc_selected_cpu): Declare.
1192 * config/arc/arc.c (arc_selected_cpu): Make global.
1193 (arc_selected_arch): Delete.
1194 (arc_base_cpu): Delete.
1195 (arc_override_options): Remove references to deleted variables,
1196 update access to arch information.
1197 (ARC_OPT): Update access to arch information.
1198 (ARC_OPTX): Likewise.
1199 * config/arc/arc.h (arc_base_cpu): Remove declaration.
1200 (TARGET_ARC600): Update access to arch information.
1201 (TARGET_ARC601): Likewise.
1202 (TARGET_ARC700): Likewise.
1203 (TARGET_EM): Likewise.
1204 (TARGET_HS): Likewise.
1205 * config/arc/driver-arc.c (arc_cpu_to_as): Update access to arch
1208 2017-02-08 Pat Haugen <pthaugen@us.ibm.com>
1211 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Invert
1212 condition/operands for integer GE/LE/GEU/LEU operations.
1214 2017-02-08 Segher Boessenkool <segher@kernel.crashing.org>
1216 PR translation/79397
1217 * config/rs6000/rs6000.opt (maltivec=le, maltivec=be): Fix spelling
1220 2017-02-08 Martin Jambor <mjambor@suse.cz>
1223 * ipa-prop.c (ipa_alloc_node_params): Make static, return bool
1224 whether allocation happened.
1225 (ipa_initialize_node_params): Do not call ipa_alloc_node_params if
1226 nothing was allocated.
1228 2017-02-08 Jakub Jelinek <jakub@redhat.com>
1230 PR tree-optimization/79408
1231 * tree-vrp.c (simplify_div_or_mod_using_ranges): If op1 is not
1232 constant, but SSA_NAME with a known integer range, use the minimum
1233 of that range instead of op1 to determine if modulo can be replaced
1234 with its first operand.
1236 2016-02-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1238 * config/riscv/riscv.c (riscv_build_integer_1): Avoid use of INT16_MAX.
1240 2017-02-08 Richard Biener <rguenther@suse.de>
1242 PR tree-optimization/71824
1243 * graphite-scop-detection.c (scop_detection::build_scop_breadth):
1244 Check all loops contained in the merged region.
1246 2017-02-07 Andrew Pinski <apinski@cavium.com>
1248 * config/aarch64/aarch64.md (popcount<mode>2): New pattern.
1250 2017-02-07 Andrew Pinski <apinski@cavium.com>
1252 * config/aarch64/aarch64-cores.def (thunderx): Disable LSE.
1253 (thunderxt88): Likewise.
1254 (thunderxt81): Disable LSE and change v8.1 to v8.
1255 (thunderxt83): Likewise.
1257 2017-02-07 Jakub Jelinek <jakub@redhat.com>
1258 Richard Biener <rguenther@suse.de>
1261 * ira-int.h (struct target_ira_int): Change x_max_struct_costs_size
1262 type from int to size_t.
1263 * ira-costs.c (struct_costs_size): Change type from int to size_t.
1265 2017-02-07 Jakub Jelinek <jakub@redhat.com>
1267 PR rtl-optimization/79386
1268 * cprop.c (bypass_conditional_jumps): Initialize
1269 bypass_last_basic_block already before splitting bbs after
1270 unconditional traps...
1271 (bypass_conditional_jumps): ... rather than here.
1274 * config/i386/sse.md (xtg_mode, gatherq_mode): New mode attrs.
1275 (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2,
1276 *avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2): Use them,
1277 fix -masm=intel patterns.
1279 2017-02-07 Richard Biener <rguenther@suse.de>
1281 PR tree-optimization/79256
1283 * builtins.c (get_object_alignment_2): Use min_align_of_type
1284 to extract alignment for MEM_REFs to honor BIGGEST_FIELD_ALIGNMENT
1285 and ADJUST_FIELD_ALIGN.
1287 * doc/tm.texi.in (ADJUST_FIELD_ALIGN): Adjust to take additional
1289 * doc/tm.texi: Regenerate.
1290 * stor-layout.c (layout_decl): Adjust.
1291 (update_alignment_for_field): Likewise.
1292 (place_field): Likewise.
1293 (min_align_of_type): Likewise.
1294 * config/arc/arc.h (ADJUST_FIELD_ALIGN): Adjust.
1295 * config/epiphany/epiphany.h (ADJUST_FIELD_ALIGN): Likewise.
1296 * config/epiphany/epiphany.c (epiphany_adjust_field_align): Likewise.
1297 * config/frv/frv.h (ADJUST_FIELD_ALIGN): Likewise.
1298 * config/frv/frv.c (frv_adjust_field_align): Likewise.
1299 * config/i386/i386.h (ADJUST_FIELD_ALIGN): Likewise.
1300 * config/i386/i386.c (x86_field_alignment): Likewise.
1301 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
1302 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Likewise.
1303 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
1304 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
1305 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Likewise.
1306 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
1310 2017-01-30 Richard Biener <rguenther@suse.de>
1312 PR tree-optimization/79256
1313 * targhooks.c (default_builtin_vector_alignment_reachable): Honor
1314 BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
1317 2017-02-07 Toma Tabacu <toma.tabacu@imgtec.com>
1319 * config/mips/mips.c (mips_expand_builtin_insn): Convert the QImode
1320 argument of the pshufh, psllh, psllw, psrah, psraw, psrlh, psrlw
1321 builtins to SImode and emit a zero-extend, if necessary.
1323 2017-02-06 Palmer Dabbelt <palmer@dabbelt.com>
1325 * docs/invoke.texi (RISC-V Options): Alphabetize.
1327 2017-02-06 Palmer Dabbelt <palmer@dabbelt.com>
1329 * doc/invoke.texi (RISC-V Options): Use two spaces to separate
1332 2017-02-06 Palmer Dabbelt <palmer@dabbelt.com>
1334 * config/riscv/riscv.c: New file.
1335 * gcc/common/config/riscv/riscv-common.c: Likewise.
1336 * config.gcc: Likewise.
1337 * config/riscv/constraints.md: Likewise.
1338 * config/riscv/elf.h: Likewise.
1339 * config/riscv/generic.md: Likewise.
1340 * config/riscv/linux.h: Likewise.
1341 * config/riscv/multilib-generator: Likewise.
1342 * config/riscv/peephole.md: Likewise.
1343 * config/riscv/pic.md: Likewise.
1344 * config/riscv/predicates.md: Likewise.
1345 * config/riscv/riscv-builtins.c: Likewise.
1346 * config/riscv/riscv-c.c: Likewise.
1347 * config/riscv/riscv-ftypes.def: Likewise.
1348 * config/riscv/riscv-modes.def: Likewise.
1349 * config/riscv/riscv-opts.h: Likewise.
1350 * config/riscv/riscv-protos.h: Likewise.
1351 * config/riscv/riscv.h: Likewise.
1352 * config/riscv/riscv.md: Likewise.
1353 * config/riscv/riscv.opt: Likewise.
1354 * config/riscv/sync.md: Likewise.
1355 * config/riscv/t-elf-multilib: Likewise.
1356 * config/riscv/t-linux: Likewise.
1357 * config/riscv/t-linux-multilib: Likewise.
1358 * config/riscv/t-riscv: Likewise.
1359 * configure.ac: Likewise.
1360 * doc/contrib.texi: Add Kito Cheng, Palmer Dabbelt, and Andrew
1361 Waterman as RISC-V maintainers.
1362 * doc/install.texi: Add RISC-V entries.
1363 * doc/invoke.texi: Add RISC-V options section.
1364 * doc/md.texi: Add RISC-V constraints section.
1365 * configure: Regenerated.
1367 2017-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
1370 * config/rs6000/vector.md (vcond<mode><mode>): Allow the true and
1371 false values to be constant vectors with all 0 or all 1 bits set.
1372 (vcondu<mode><mode>): Likewise.
1373 * config/rs6000/predicates.md (vector_int_reg_or_same_bit): New
1375 (fpmask_comparison_operator): Update comment.
1376 (vecint_comparison_operator): New predicate.
1377 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Optimize
1378 vector conditionals when the true and false values are constant
1379 vectors with all 0 bits or all 1 bits set.
1381 2017-02-06 Martin Sebor <msebor@redhat.com>
1383 PR tree-optimization/79376
1384 * gimple-fold.c (get_range_strlen): Set the minimum length to zero.
1386 2017-02-06 Uros Bizjak <ubizjak@gmail.com>
1388 * config/i386/sse.md (vector modes -> vec_extract* splitter): Use
1389 explicit subreg RTX with operand 1. Use VECTOR_MODE_P predicate
1390 to simplify split condition.
1392 2017-02-06 Jakub Jelinek <jakub@redhat.com>
1394 * omp-expand.c (oxpand_omp_atomic_fetch_op,
1395 expand_omp_atomic_pipeline): Return false if can_atomic_load_p is
1398 2017-02-06 Segher Boessenkool <segher@kernel.crashing.org>
1400 PR rtl-optimization/68664
1401 * target.def (can_speculate_insn): New hook.
1402 * doc/tm.texi.in (TARGET_SCHED_CAN_SPECULATE_INSN): New hook.
1403 * doc/tm.texi: Regenerate.
1404 * sched-rgn.c (can_schedule_ready_p): Use the new hook.
1405 * config/rs6000/rs6000.c (TARGET_SCHED_CAN_SPECULATE_INSN): New macro.
1406 (rs6000_sched_can_speculate_insn): New function.
1408 2017-02-06 Jakub Jelinek <jakub@redhat.com>
1410 PR tree-optimization/79284
1411 * tree-vectorizer.h (VECT_SCALAR_BOOLEAN_TYPE_P): Define.
1412 * tree-vect-stmts.c (vect_get_vec_def_for_operand,
1413 vectorizable_mask_load_store, vectorizable_operation,
1414 vect_is_simple_cond, get_same_sized_vectype): Use it instead
1415 of comparing TREE_CODE of a type against BOOLEAN_TYPE.
1416 * tree-vect-patterns.c (check_bool_pattern, search_type_for_mask_1,
1417 vect_recog_bool_pattern, vect_recog_mask_conversion_pattern): Likewise.
1418 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
1419 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
1420 Remove redundant gimple_code (stmt) == GIMPLE_ASSIGN test after
1421 is_gimple_assign (stmt). Replace another such test with
1422 is_gimple_assign (stmt).
1424 2017-02-06 Georg-Johann Lay <avr@gjlay.de>
1427 * config/avr/avr.c (rtl-iter.h): Include it.
1428 (TARGET_LEGITIMATE_COMBINED_INSN): New hook define...
1429 (avr_legitimate_combined_insn): ...and implementation.
1431 2017-02-06 Dominik Vogt <vogt@linux.vnet.ibm.com>
1433 * config/s390/predicates.md ("larl_operand"): Use macros from hwint.h.
1434 * config/s390/s390.c (s390_const_operand_ok)
1435 (s390_canonicalize_comparison, s390_extract_part)
1436 (s390_single_part, s390_contiguous_bitmask_nowrap_p)
1437 (s390_contiguous_bitmask_p, s390_rtx_costs)
1438 (legitimize_pic_address): Likewise.
1439 * config/s390/s390.md ("clzdi2", "clztidi2"): Likewise.
1440 * config/s390/vx-builtins.md ("vec_genbytemaskv16qi")
1441 ("vec_permi<mode>", "vfae<mode>", "*vfaes<mode>", "vstrc<mode>")
1442 ("*vstrcs<mode>"): Use UINTVAL() to set unsigned HOST_WIDE_INT.
1443 * config/s390/vector.md ("vec_vfenes<mode>"): Likewise.
1445 2017-02-06 Georg-Johann Lay <avr@gjlay.de>
1447 * config/avr/avr.md (*addhi3_zero_extend): Add alternative where
1448 REGNO($0) == REGNO($1).
1450 2017-02-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1452 * config/s390/linux.h(SIZE_TYPE): Add comment.
1454 2017-02-06 Julian Brown <julian@codesourcery.com>
1455 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
1456 Virendra Pathak <virendra.pathak@broadcom.com>
1458 * config/aarch64/aarch64-cores.def: Change the scheduler
1460 * config/aarch64/aarch64.md: Include thunderx2t99.md.
1461 * config/aarch64/thunderx2t99.md: New file.
1463 2017-02-05 Gerald Pfeifer <gerald@pfeifer.com>
1465 * doc/standards.texi (Go Language): Update link to language
1468 2017-02-05 Jan Hubicka <hubicka@ucw.cz>
1470 * tree-eh.c (lower_resx): Sanitize profile.
1471 (cleanup_empty_eh_move_lp): Likewise.
1473 2017-02-05 Jan Hubicka <hubicka@ucw.cz>
1476 * cfgloopmanip.c (lv_adjust_loop_entry_edge, loop_version): Add
1478 * cfgloopmanip.h (loop_version): Update prototype.
1479 * modulo-sched.c (sms_schedule): Update call of loop_version.
1480 * tree-if-conv.c(version_loop_for_if_conversion): Likewise.
1481 * tree-parloops.c (gen_parallel_loop): Likewise.
1482 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise.
1483 * tree-ssa-loop-split.c (split_loop): Likewise.
1484 * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Likewise.
1485 * tree-vect-loop-manip.c (vect_loop_versioning): Likewise.
1487 2017-02-05 Martin Liska <mliska@suse.cz>
1490 * config/s390/s390.c (s390_gimplify_va_arg): Initialize local
1492 (print_operand_address): Initialize a struct to zero.
1494 2017-02-05 Gerald Pfeifer <gerald@pfeifer.com>
1496 * doc/contrib.texi (Contributors): Refer to Hans Boehm's
1497 garbage collector only in textual form.
1499 2017-02-05 Gerald Pfeifer <gerald@pfeifer.com>
1501 * doc/extend.texi (x86 specific memory model extensions for
1502 transactional memory): Simplify a phrase.
1504 2017-02-05 Eric Botcazou <ebotcazou@adacore.com>
1507 * config/sparc/sync.md (atomic_loaddi_1): Replace 'U' constraint with
1508 'r', 'm' constraint with 'T' and !TARGET_ARCH64 with TARGET_ARCH32.
1509 (atomic_storedi_1): Likewise.
1511 2017-02-04 Jakub Jelinek <jakub@redhat.com>
1513 PR tree-optimization/79338
1514 * tree-parloops.c (gather_scalar_reductions): Don't call
1515 vect_analyze_loop_form for loop->inner before destroying loop's
1518 2017-02-03 Martin Sebor <msebor@redhat.com>
1520 PR tree-optimization/79327
1521 * gimple-ssa-sprintf.c (tree_digits): Avoid adding the base prefix
1522 when precision has resulted in leading zeros.
1523 (format_integer): Adjust the likely counter to assume an unknown
1524 argument that may be zero is non-zero.
1526 2017-02-03 Jason Merrill <jason@redhat.com>
1529 * tree-inline.c (copy_tree_body_r) [COND_EXPR]: Revert change to
1530 avoid copying non-taken branch.
1532 2017-02-03 Jakub Jelinek <jakub@redhat.com>
1534 PR tree-optimization/79340
1535 * tree-vect-loop.c (vectorizable_reduction): Release
1536 vec_defs elements after safe_splicing them into other vectors.
1539 PR tree-optimization/79327
1540 * gimple-ssa-sprintf.c (adjust_range_for_overflow): If returning
1541 true, always set *argmin and *argmax to TYPE_{MIN,MAX}_VALUE of
1543 (format_integer): Use wide_int_to_tree instead of build_int_cst
1544 + to_?hwi. If argmin is NULL, just set argmin and argmax to
1545 TYPE_{MIN,MAX}_VALUE of argtype. Simplify and fix computation
1546 of shortest and longest sequence.
1548 2017-02-03 Uros Bizjak <ubizjak@gmail.com>
1550 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
1551 Use pextrd for TARGET_SSE4_1 when creating scalar copy.
1553 2017-02-03 Walter Lee <walt@tilera.com>
1556 * config/tilegx/tilegx.md (tilegx_expand_prologue): Add blockage
1557 after initial stackframe link reg save.
1558 * config/tilepro/tilepro.md (tilepro_expand_prologue): Likewise.
1560 2017-02-03 Jakub Jelinek <jakub@redhat.com>
1563 * config/rs6000/rs6000.md (movsi_from_sf): Use wb constraint instead of
1564 wu for stxssp alternative.
1566 2017-02-03 Martin Sebor <msebor@redhat.com>
1568 PR tree-optimization/79352
1569 * gimple-fold.c (get_range_strlen): Add argument.
1570 (get_range_strlen): Change return type to bool.
1571 (get_maxval_strlen): Pass in a dummy argument.
1572 * gimple-fold.h (get_range_strlen): Change return type to bool.
1573 * gimple-ssa-sprintf.c (get_string_length): Set unlikely counter.
1574 * tree.h (array_at_struct_end_p): Add argument.
1575 * tree.c (array_at_struct_end_p): Handle it.
1577 2017-02-03 Martin Liska <mliska@suse.cz>
1580 * multiple_target.c (create_dispatcher_calls): Redirect edge
1581 from a caller of a dispatcher.
1582 (expand_target_clones): Make the clones local.
1583 (ipa_target_clone): Do both target clones and resolvers.
1584 (ipa_dispatcher_calls): Remove the pass.
1585 (pass_dispatcher_calls::gate): Likewise.
1586 (make_pass_dispatcher_calls): Likewise.
1587 * passes.def (pass_target_clone): Put as very first IPA early
1590 2017-02-03 Martin Liska <mliska@suse.cz>
1592 * symtab.c (symtab_node::binds_to_current_def_p): Bail out
1593 in case of a function with ifunc attribute.
1595 2017-02-03 Martin Liska <mliska@suse.cz>
1597 * cgraph.c (cgraph_node::dump): Dump function version info.
1598 * symtab.c (symtab_node::dump_base): Add missing new line.
1600 2017-02-02 Jan Hubicka <hubicka@ucw.cz>
1602 * tree-ssa-ifcombine.c (update_profile_after_ifcombine): New function.
1603 (ifcombine_ifandif): Use it.
1605 2017-02-03 Martin Liska <mliska@suse.cz>
1607 * doc/invoke.texi: Document default value for
1608 use-after-scope-direct-emission-threshold.
1610 2017-02-03 Martin Liska <mliska@suse.cz>
1612 PR tree-optimization/79339
1613 * gimple-ssa-sprintf.c (format_floating_max): Call mpfr_clear.
1614 (format_floating): Likewise.
1616 2017-02-03 Martin Liska <mliska@suse.cz>
1619 * ipa-prop.c (ipa_node_params_t::insert): Remove current
1621 (ipa_node_params_t::remove): Likewise.
1622 * ipa-prop.h (ipa_node_params::ipa_node_params): Make default
1623 initialization from removed ipa_node_params_t::insert.
1624 (ipa_node_params::~ipa_node_params): Move from removed
1625 ipa_node_params_t::release.
1626 * symbol-summary.h (symbol_summary::m_released): New member.
1627 Do not release a summary twice. Do not allow to call finalizer
1628 for types of a summary that live in GGC memory.
1630 2017-02-02 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
1632 * config/aarch64/aarch64.c (thunderx2t99_tunings): Enable AES and
1635 2017-02-02 Martin Sebor <msebor@redhat.com>
1638 * gimple-ssa-sprintf.c (get_string_length): Set lower bound to zero.
1639 (format_string): Tighten up the range of output for non-constant
1640 strings and correct the expected range for wide non-constant strings.
1642 2017-02-02 Martin Sebor <msebor@redhat.com>
1644 * doc/invoke.texi (-maccumulate-args): Fix bad grammar.
1647 * doc/invoke.texi (-fdump-tree-): Remove pass-specific options from
1649 (-fdump-tree-@var): Add to index and document how to come up
1650 with pass-specific option and dump file names.
1651 (-fdump-passes): Clarify where to look for output.
1653 2017-02-02 Jan Hubicka <hubicka@ucw.cz>
1656 * tree-ssa-threadbackward.c (profitable_jump_thread_path): Dump
1657 statistics of the analyzed path; allow threading for speed when
1658 any of BBs along the path are optimized for speed.
1660 2017-02-02 Eric Botcazou <ebotcazou@adacore.com>
1663 * emit-rtl.c (init_emit): Add ??? comment for problematic alignment
1664 settings of the virtual registers.
1667 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
1669 * explow.c (get_dynamic_stack_size): Take known alignment of stack
1670 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
1673 2017-02-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1675 * config/s390/vx-builtins.md ("vec_ceil", "vec_floor")
1676 ("vec_trunc", "vec_roundc", "vec_round"): Remove expanders.
1678 2017-02-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1680 * config/s390/s390.md: Add missing comments with the expanded
1682 * config/s390/vector.md: Likewise.
1683 * config/s390/vx-builtins.md: Likewise.
1685 2017-02-02 Jakub Jelinek <jakub@redhat.com>
1688 * config/rs6000/rs6000.md (*fixuns_trunc<mode>di2_fctiduz): Rename to ...
1689 (fixuns_trunc<mode>di2): ... this, remove previous expander. Put all
1690 conditions on a single line.
1692 2017-02-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1694 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
1695 __S390_VX__ to __VX__.
1697 2017-02-01 Andrew Pinski <apinski@cavium.com>
1699 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost): Pass
1700 stmt_info to record_stmt_cost.
1701 (vect_get_known_peeling_cost): Pass stmt_info if known to
1703 * config/aarch64/aarch64-protos.h (cpu_vector_cost): Split
1704 cpu_vector_cost field into
1705 scalar_int_stmt_cost and scalar_fp_stmt_cost. Split vec_stmt_cost
1706 field into vec_int_stmt_cost and vec_fp_stmt_cost.
1707 * config/aarch64/aarch64.c (generic_vector_cost): Update for the
1708 splitting of scalar_stmt_cost and vec_stmt_cost.
1709 (thunderx_vector_cost): Likewise.
1710 (cortexa57_vector_cost): LIkewise.
1711 (exynosm1_vector_cost): Likewise.
1712 (xgene1_vector_cost): Likewise.
1713 (thunderx2t99_vector_cost): Improve after the splitting of the two
1715 (aarch64_builtin_vectorization_cost): Update for the splitting of
1716 scalar_stmt_cost and vec_stmt_cost.
1718 2017-02-01 Torvald Riegel <triegel@redhat.com>
1719 Richard Henderson <rth@redhat.com>
1721 * builtins.c (fold_builtin_atomic_always_lock_free): Make "lock-free"
1722 conditional on existance of a fast atomic load.
1723 * optabs-query.c (can_atomic_load_p): New function.
1724 * optabs-query.h (can_atomic_load_p): Declare it.
1725 * optabs.c (expand_atomic_exchange): Always delegate to libatomic if
1726 no fast atomic load is available for the particular size of access.
1727 (expand_atomic_compare_and_swap): Likewise.
1728 (expand_atomic_load): Likewise.
1729 (expand_atomic_store): Likewise.
1730 (expand_atomic_fetch_op): Likewise.
1731 * testsuite/lib/target-supports.exp
1732 (check_effective_target_sync_int_128): Remove x86 because it provides
1733 no fast atomic load.
1734 (check_effective_target_sync_int_128_runtime): Likewise.
1736 2017-02-01 Richard Biener <rguenther@suse.de>
1738 * graphite.c: Include tree-vectorizer.h for find_loop_location.
1739 (graphite_transform_loops): Provide opt-info for optimized nests.
1740 * tree-parloop.c (parallelize_loops): Provide opt-info for
1743 2017-02-01 Richard Biener <rguenther@suse.de>
1746 * tree-cfg.c (move_stmt_op): Never set TREE_BLOCK when it
1749 2017-02-01 Richard Biener <rguenther@suse.de>
1751 PR tree-optimization/71824
1752 * graphite-scop-detection.c (scop_detection::build_scop_breadth):
1753 Verify the loops are valid in the merged SESE region.
1754 (scop_detection::can_represent_loop_1): Check analyzing the
1755 evolution of the number of iterations in the region succeeds.
1757 2017-01-31 Ian Lance Taylor <iant@golang.org>
1759 * config/i386/i386.c (ix86_expand_split_stack_prologue): Add
1760 REG_ARGS_SIZE note to 32-bit push insns and call insn.
1762 2017-01-31 David Malcolm <dmalcolm@redhat.com>
1764 PR preprocessor/79210
1765 * input.c (get_substring_ranges_for_loc): Replace line_width
1766 assertion with error-handling.
1768 2017-01-31 Richard Biener <rguenther@suse.de>
1770 PR tree-optimization/77318
1771 * graphite-sese-to-poly.c (extract_affine): Fix assert.
1772 (create_pw_aff_from_tree): Take loop parameter.
1773 (add_condition_to_pbb): Pass loop of the condition to
1774 create_pw_aff_from_tree.
1776 2017-01-31 Jakub Jelinek <jakub@redhat.com>
1778 * config/s390/s390.c (s390_asan_shadow_offset): New function.
1779 (TARGET_ASAN_SHADOW_OFFSET): Redefine.
1781 2017-01-31 Michael Meissner <meissner@linux.vnet.ibm.com>
1785 * config/rs6000/rs6000-protos.h (convert_float128_to_int): Delete,
1787 (convert_int_to_float128): Likewise.
1788 * config/rs6000/rs6000.c (convert_float128_to_int): Likewise.
1789 (convert_int_to_float128): Likewise.
1790 * config/rs6000/rs6000.md (UNSPEC_IEEE128_MOVE): Likewise.
1791 (UNSPEC_IEEE128_CONVERT): Likewise.
1792 (floatsi<mode>2, FLOAT128 iterator): Bypass calling
1793 rs6000_expand_float128_convert if we have IEEE 128-bit hardware.
1794 Use local variables for IBM extended format.
1795 (fix_trunc<mode>si2, FLOAT128 iterator): Likewise.
1796 (fix_trunc<mode>si2_fprs): Likewise.
1797 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
1798 (floatuns<IEEE128:mode>2, IEEE128 iterator): Likewise.
1799 (fix<uns>_<mode>si2_hw): Rework the IEEE 128-bt hardware support
1800 to know that we can now have integers of all sizes in vector
1802 (fix<uns>_<mode>di2_hw): Likewise.
1803 (float<uns>_<mode>si2_hw): Likewise.
1804 (fix_<mode>si2_hw): Likewise.
1805 (fixuns_<mode>si2_hw): Likewise.
1806 (float<uns>_<mode>di2_hw): Likewise.
1807 (float_<mode>di2_hw): Likewise.
1808 (float_<mode>si2_hw): Likewise.
1809 (floatuns_<mode>di2_hw): Likewise.
1810 (floatuns_<mode>si2_hw): Likewise.
1811 (xscvqp<su>wz_<mode>): Delete, no longer used.
1812 (xscvqp<su>dz_<mode>): Likewise.
1813 (xscv<su>dqp_<mode>): Likewise.
1814 (ieee128_mfvsrd_64bit): Likewise.
1815 (ieee128_mfvsrd_32bit): Likewise.
1816 (ieee128_mfvsrwz): Likewise.
1817 (ieee128_mtvsrw): Likewise.
1818 (ieee128_mtvsrd_64bit): Likewise.
1819 (ieee128_mtvsrd_32bit): Likewise.
1821 2017-01-31 Martin Liska <mliska@suse.cz>
1824 * ipa-prop.c (ipa_free_all_node_params): Call release method
1825 instead of ~sumbol_summary to not to trigger double times
1828 2017-01-31 Aldy Hernandez <aldyh@redhat.com>
1830 PR tree-optimization/71691
1831 * bitmap.h (class auto_bitmap): New.
1832 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Call
1833 is_maybe_undefined instead of ssa_undefined_value_p.
1835 2017-01-31 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1837 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
1838 __S390_ARCH_LEVEL__ to __ARCH__.
1840 2017-01-31 Jakub Jelinek <jakub@redhat.com>
1842 PR tree-optimization/79267
1843 * value-prof.c (gimple_ic): Only drop lhs for noreturn calls
1844 if should_remove_lhs_p is true.
1846 2017-01-30 Alexandre Oliva <aoliva@redhat.com>
1849 * dwarf2out.c (clone_as_declaration): Drop DW_AT_alignment.
1850 (add_alignment_attribute): New.
1851 (base_type_die): Add alignment attribute.
1852 (subrange_type_die): Likewise.
1853 (modified_type_die): Likewise.
1854 (gen_array_type_die): Likewise.
1855 (gen_descr_array_type_die: Likewise.
1856 (gen_enumeration_type_die): Likewise.
1857 (gen_subprogram_die): Likewise.
1858 (gen_variable_die): Likewise.
1859 (gen_field_die): Likewise.
1860 (gen_ptr_to_mbr_type_die): Likewise.
1861 (gen_struct_or_union_type_die): Likewise.
1862 (gen_subroutine_type_die): Likewise.
1863 (gen_typedef_die): Likewise.
1864 (base_type_cmp): Compare alignment attribute.
1866 2017-01-30 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
1869 * config/rs6000/altivec.md (*setb_internal): Rename to setb_signed.
1870 (setb_unsigned) New pattern for setb with CCUNS.
1871 * config/rs6000/rs6000.c (expand_block_compare): Use a different
1872 subfc./subfe sequence to avoid overflow problems. Generate a
1873 shorter sequence with cmpld/setb for power9.
1874 * config/rs6000/rs6000.md (subf<mode>3_carry_dot2): Add a new pattern
1875 for generating subfc. instruction.
1876 (cmpstrsi): Add TARGET_POPCNTD predicate as the generate sequence
1877 now uses this instruction.
1879 2017-01-30 Ian Lance Taylor <iant@google.com>
1882 * dwarf2out.c (gen_type_die_with_usage): When picking a variant
1883 for FUNCTION_TYPE/METHOD_TYPE, use the first matching one.
1885 2017-01-30 Martin Sebor <msebor@redhat.com>
1887 * gimple-ssa-sprintf.c (fmtresult::adjust_for_width_or_precision):
1888 Move constant to the right of a relational operator.
1889 (get_mpfr_format_length, format_character, format_string): Ditto.
1890 (should_warn_p, maybe_warn): Same.
1892 * doc/invoke.texi (-Wformat-truncation=1): Fix typo.
1894 2017-01-30 Maxim Ostapenko <m.ostapenko@samsung.com>
1897 * asan.c (get_translation_unit_decl): Remove function.
1898 (asan_add_global): Force has_dynamic_init to zero in LTO mode.
1900 2017-01-30 Martin Liska <mliska@suse.cz>
1902 PR gcov-profile/79259
1903 * opts.c (common_handle_option): Enable flag_ipa_bit_cp w/
1906 2017-01-30 Martin Liska <mliska@suse.cz>
1909 * config/aarch64/cortex-a57-fma-steering.c (func_fma_steering::analyze):
1910 Initialize variables with NULL value.
1912 2017-01-30 Richard Earnshaw <rearnsh@arm.com>
1915 * config.gcc (arm*-*-*): Add arm/arm-flags.h and arm/arm-isa.h to
1917 * arm/arm-protos.h: Don't directly include arm-flags.h and arm-isa.h.
1919 2017-01-30 Richard Biener <rguenther@suse.de>
1921 PR tree-optimization/79276
1922 * tree-vrp.c (process_assert_insertions): Properly adjust common
1923 when removing a duplicate.
1925 * gcc.dg/torture/pr79276.c: New testcase.
1927 2017-01-30 Richard Biener <rguenther@suse.de>
1929 PR tree-optimization/79256
1930 * targhooks.c (default_builtin_vector_alignment_reachable): Honor
1931 BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
1933 * tree.c (build_aligned_type): Set TYPE_USER_ALIGN.
1935 2017-01-30 Dominik Vogt <vogt@linux.vnet.ibm.com>
1938 * config/s390/s390.md ("*r<noxa>sbg_<mode>_srl_bitmask")
1939 ("*r<noxa>sbg_<mode>_sll_bitmask")
1940 ("*extzv_<mode>_srl<clobbercc_or_nocc>")
1941 ("*extzv_<mode>_sll<clobbercc_or_nocc>"):
1942 Use contiguous_bitmask_nowrap_operand.
1944 2017-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1947 * config/rs6000/altivec.h (vec_xl): Revise #define.
1948 (vec_xst): Likewise.
1950 2017-01-27 Uros Bizjak <ubizjak@gmail.com>
1952 * config/i386/i386.c (print_reg): Use REGNO instead of true_regnum.
1954 2017-01-27 Bernd Schmidt <bschmidt@redhat.com>
1956 PR rtl-optimization/79194
1957 * cprop.c (one_cprop_pass): Move deletion of code after unconditional
1958 traps before call to bypass_conditional_jumps.
1960 2017-01-27 Vladimir Makarov <vmakarov@redhat.com>
1962 PR tree-optimization/71374
1963 * lra-constraints.c (check_conflict_input_operands): New.
1964 (match_reload): Use it.
1966 2017-01-27 Vladimir Makarov <vmakarov@redhat.com>
1969 * lra-assigns.c (find_hard_regno_for_1): Take endianess for into
1970 account to calculate conflict_set.
1972 2017-01-27 Bin Cheng <bin.cheng@arm.com>
1974 PR rtl-optimization/78559
1975 * combine.c (try_combine): Discard REG_EQUAL and REG_EQUIV for
1976 other_insn in combine.
1978 2017-01-27 Pekka Jääskeläinen <pekka.jaaskelainen@parmance.com>
1980 * builtin-types.def: Use unsigned_char_type_node for BT_UINT8. Use
1981 uint16_type_node for BT_UINT16.
1983 2017-01-27 David Malcolm <dmalcolm@redhat.com>
1985 * doc/sourcebuild.texi (Testsuites): Add "GIMPLE Tests" and
1986 "RTL Tests" to menu.
1987 (GIMPLE Tests): New node.
1988 (RTL Tests): New node.
1990 2017-01-27 Richard Biener <rguenther@suse.de>
1992 PR tree-optimization/79245
1993 * tree-loop-distribution.c (distribute_loop): Apply cost
1994 modeling also to detected patterns.
1996 2017-01-27 Richard Biener <rguenther@suse.de>
1998 PR tree-optimization/71433
1999 * tree-vrp.c (register_new_assert_for): Revert earlier changes.
2000 (compare_assert_loc): New function.
2001 (process_assert_insertions): Sort and optimize assert locations
2002 to remove duplicates and push down identical assertions on
2003 edges to their destination block.
2005 2017-01-27 Richard Biener <rguenther@suse.de>
2007 PR tree-optimization/79244
2008 * tree-vrp.c (remove_range_assertions): Forcefully propagate
2009 out SSA names even if abnormal.
2011 2017-01-27 Jakub Jelinek <jakub@redhat.com>
2013 * realmpfr.h: Poison MPFR_RND{N,Z,U,D}.
2014 * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN
2015 instead of MPFR_RNDN.
2017 2017-01-27 Richard Earnshaw <rearnsha@arm.com>
2020 * arm.c (arm_option_override): Don't call build_target_option_node
2021 until after doing all option overrides.
2022 (arm_valid_target_attribute_tree): Likewise.
2024 2017-01-27 Martin Liska <mliska@suse.cz>
2026 * doc/invoke.texi (-fprofile-arcs): Document profiling support
2027 for {cd}tors and C++ {cd}tors.
2029 2017-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
2031 * config/s390/s390.md ("*setmem_long_and")
2032 ("*setmem_long_and_31z"): Use zero_extend instead of and.
2034 2017-01-26 Martin Sebor <msebor@redhat.com>
2036 * gimple-ssa-sprintf.c (format_floating): Simplify the computation
2039 2017-01-26 Martin Sebor <msebor@redhat.com>
2041 * gimple-ssa-sprintf.c (format_floating): Test HAVE_XFmode and
2042 HAVE_DFmode before using XFmode or DFmode.
2043 (parse_directive): Avoid using the z length modifier to avoid
2044 the ISO C++98 does not support the ‘z’ gnu_printf length modifier.
2047 * gimple-ssa-sprintf.c (adjust_for_width_or_precision): Change
2048 to accept adjustment as an array.
2049 (get_int_range): New function.
2050 (struct directive): Make width and prec arrays.
2051 (directive::set_width, directive::set_precision): Call get_int_range.
2052 (format_integer, format_floating): Handle width and precision ranges.
2053 (format_string, parse_directive): Same.
2055 2017-01-26 Jakub Jelinek <jakub@redhat.com>
2058 * dwarf2out.c (generate_skeleton_bottom_up): For children with
2059 comdat_type_p set, just clone them, but keep the children in the
2063 * dwarf2out.c (prune_unused_types): Mark all functions with DIEs
2064 which have direct callers with -fvar-tracking-assignments enabled
2066 (resolve_addr): Avoid adding skeleton DIEs for DW_AT_call_origin
2067 inside of type units.
2069 2017-01-26 Martin Sebor <msebor@redhat.com>
2072 * gimple-ssa-sprintf.c (struct result_range): Add likely and
2074 (struct format_result): Replace number_chars, number_chars_min,
2075 and number_chars_max with a single member of struct result_range.
2077 (format_result::operator+=): Adjust.
2078 (struct fmtresult): Remove bounded. Handle likely and unlikely
2080 (fmtresult::adjust_for_width_or_precision): New function.
2081 (fmtresult:type_max_digits): New function.
2082 (bytes_remaining): Handle likely and unlikely counters.
2083 (min_bytes_remaining): Remove.
2084 (format_percent): Simplify.
2085 (format_integer, format_floating): Set likely and unlikely counters.
2086 (get_string_length, format_character, format_string): Same.
2087 (format_plain, should_warn_p): New function.
2088 (maybe_warn): Call should_warn_p. Update diagnostic messages
2089 and handle those for all directives, including plain strings.
2090 (format_directive): Handle likely and unlikely counters.
2091 Remove unnecessary quoting from diagnostics. Add an informational
2093 (add_bytes): Remove.
2094 (pass_sprintf_length::compute_format_length): Simplify.
2095 (try_substitute_return_value): Handle likely and unlikely counters.
2097 2017-01-26 Carl Love <cel@us.ibm.com>
2099 * config/rs6000/rs6000-c (altivec_overloaded_builtins): Remove
2100 bogus entries for the P8V_BUILTIN_VEC_VGBBD built-ins
2102 2017-01-26 Vladimir Makarov <vmakarov@redhat.com>
2105 * lra-assigns.c (setup_live_pseudos_and_spill_after_risky): Take
2106 endianess for subregs into account.
2107 * lra-constraints.c (lra_constraints): Do risky transformations
2108 always on the first iteration.
2109 * lra-lives.c (check_pseudos_live_through_calls): Add arg
2110 last_call_used_reg_set.
2111 (process_bb_lives): Define and use last_call_used_reg_set.
2112 * lra.c (lra): Always continue after lra_constraints on the first
2115 2017-01-26 Kirill Yukhin <kirill.yukhin@gmail.com>
2117 * gcc.target/i386/avx512bw-kshiftlq-2.c: Use unsigned long long
2119 * gcc.target/i386/avx512bw-kshiftrq-2.c: Ditto.
2121 2017-01-26 Jakub Jelinek <jakub@redhat.com>
2123 * config/i386/avx512fintrin.h (_ktest_mask16_u8,
2124 _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): Move to ...
2125 * config/i386/avx512dqintrin.h (_ktest_mask16_u8,
2126 _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): ... here.
2127 * config/i386/i386-builtin.def (__builtin_ia32_ktestchi,
2128 __builtin_ia32_ktestzhi, __builtin_ia32_kaddhi): Use
2129 OPTION_MASK_ISA_AVX512DQ instead of OPTION_MASK_ISA_AVX512F.
2130 * config/i386/sse.md (SWI1248_AVX512BWDQ2): New mode iterator.
2131 (kadd<mode>, ktest<mode>): Use it instead of SWI1248_AVX512BWDQ.
2133 2017-01-26 Marek Polacek <polacek@redhat.com>
2136 * fold-const.c (operand_equal_p) [COND_EXPR]: Use OP_SAME_WITH_NULL
2137 for the third operand.
2139 2017-01-26 Jakub Jelinek <jakub@redhat.com>
2142 * omp-low.c (struct omp_context): Add simt_stmt field.
2143 (scan_omp_for): Return omp_context *.
2144 (scan_omp_simd): Set simt_stmt on the non-_simt_ SIMD
2145 context to the _simt_ SIMD stmt.
2146 (lower_omp_for): For combined SIMD with sibling _simt_
2147 SIMD, make sure to use the same decls in _looptemp_
2148 clauses as in the sibling.
2150 2017-01-26 David Sherwood <david.sherwood@arm.com>
2153 * gimplify.c (omp_notice_variable): Add GOVD_SEEN flag to variables in
2156 2017-01-26 Jakub Jelinek <jakub@redhat.com>
2159 * reg-stack.c (emit_swap_insn): Instead of fld a; fld b; fxchg %st(1);
2160 emit fld b; fld a; if possible.
2162 * brig-builtins.def: Update copyright years.
2163 * config/arm/arm_acle_builtins.def: Update copyright years.
2165 2017-01-25 Michael Meissner <meissner@linux.vnet.ibm.com>
2168 * config/rs6000/vsx.md (vsx_extract_<mode>_store): Use wY
2169 constraint instead of o for the stxsd instruction.
2171 2017-01-25 Carl Love <cel@us.ibm.com>
2173 * config/rs6000/rs6000-c (altivec_overloaded_builtins): Fix order
2174 of entries for ALTIVEC_BUILTIN_VEC_PACKS and P8V_BUILTIN_VEC_VGBBD.
2176 2017-01-25 Jonathan Wakely <jwakely@redhat.com>
2178 * doc/invoke.texi (C++ Dialect Options): Fix typo.
2180 2017-01-25 Richard Biener <rguenther@suse.de>
2182 PR tree-optimization/69264
2183 * target.def (vector_alignment_reachable): Improve documentation.
2184 * doc/tm.texi: Regenerate.
2185 * targhooks.c (default_builtin_vector_alignment_reachable): Simplify
2187 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Revert
2188 earlier changes with respect to TYPE_USER_ALIGN.
2189 (vector_alignment_reachable_p): Likewise. Improve dumping.
2191 2016-01-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2194 * config/arm/arm.md (xordi3): Force constant operand into a register
2197 2016-01-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2199 * doc/invoke.texi (-fstore-merging): Correct default optimization
2200 levels at which it is enabled.
2201 (-O): Move -fstore-merging from list to...
2204 2017-01-25 Richard Biener <rguenther@suse.de>
2207 * omp-expand.c: Include debug.h.
2208 (expand_omp_taskreg): Make sure to generate early debug before
2209 outlining anything from a function.
2210 (expand_omp_target): Likewise.
2211 (grid_expand_target_grid_body): Likewise.
2213 2017-01-25 Maxim Ostapenko <m.ostapenko@samsung.com>
2216 * asan.c (get_translation_unit_decl): New function.
2217 (asan_add_global): Extract modules file name from globals
2218 TRANSLATION_UNIT_DECL name.
2220 2017-01-24 Eric Botcazou <ebotcazou@adacore.com>
2223 * config/arm/arm.c (arm_function_ok_for_sibcall): Add back restriction
2224 for long calls with APCS frame and VFP.
2226 2017-01-24 David Malcolm <dmalcolm@redhat.com>
2228 * cfg.c (original_copy_tables_initialized_p): New function.
2229 * cfg.h (original_copy_tables_initialized_p): New decl.
2230 * cfgrtl.c (relink_block_chain): Guard the call to
2231 free_original_copy_tables with a call to
2232 original_copy_tables_initialized_p.
2233 * cgraph.h (symtab_node::native_rtl_p): New decl.
2234 * cgraphunit.c (symtab_node::native_rtl_p): New function.
2235 (symtab_node::needed_p): Don't assert for early assembly output
2236 for __RTL functions.
2237 (cgraph_node::finalize_function): Set "force_output" for __RTL
2239 (cgraph_node::analyze): Bail out early for __RTL functions.
2240 (analyze_functions): Update assertion to support __RTL functions.
2241 (cgraph_node::expand): Bail out early for __RTL functions.
2242 * final.c (rest_of_clean_state): Don't call delete_tree_ssa for
2244 * function.h (struct function): Update comment for field
2246 * gimple-expr.c: Include "tree-pass.h".
2247 (gimple_has_body_p): Return false for __RTL functions.
2248 * Makefile.in (OBJS): Add run-rtl-passes.o.
2249 * pass_manager.h (gcc::pass_manager::get_rest_of_compilation): New
2251 (gcc::pass_manager::get_clean_slate): New accessor.
2252 * passes.c: Include "insn-addr.h".
2253 (should_skip_pass_p): Add logging. Update logic for running
2254 "expand" to be compatible with both __GIMPLE and __RTL. Guard
2255 property-provider override so it is only done for gimple passes.
2257 (skip_pass): New function.
2258 (execute_one_pass): Call skip_pass when skipping passes.
2259 * read-md.c (md_reader::read_char): Support filtering
2260 the input to a subset of line numbers.
2261 (md_reader::md_reader): Initialize fields
2262 m_first_line and m_last_line.
2263 (md_reader::read_file_fragment): New function.
2264 * read-md.h (md_reader::read_file_fragment): New decl.
2265 (md_reader::m_first_line): New field.
2266 (md_reader::m_last_line): New field.
2267 * read-rtl-function.c (function_reader::create_function): Only
2268 create cfun if it doesn't already exist. Set PROP_rtl on cfun's
2269 curr_properties. Set DECL_INITIAL to a dummy block.
2270 (read_rtl_function_body_from_file_range): New function.
2271 * read-rtl-function.h (read_rtl_function_body_from_file_range):
2273 * run-rtl-passes.c: New file.
2274 * run-rtl-passes.h: New file.
2276 2017-01-24 Jeff Law <law@redhat.com>
2278 * config/microblaze/microblaze.h (ASM_FORMAT_PRIVATE_NAME): Increase
2281 2017-01-24 Bin Cheng <bin.cheng@arm.com>
2283 PR tree-optimization/79159
2284 * tree-ssa-loop-niter.c (get_cst_init_from_scev): New function.
2285 (record_nonwrapping_iv): Improve boundary using above function if no
2286 value range information.
2288 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
2289 Martin Jambor <mjambor@suse.cz>
2291 * brig-builtins.def: New file.
2292 * builtins.def (DEF_HSAIL_BUILTIN): New macro.
2293 (DEF_HSAIL_ATOMIC_BUILTIN): Likewise.
2294 (DEF_HSAIL_SAT_BUILTIN): Likewise.
2295 (DEF_HSAIL_INTR_BUILTIN): Likewise.
2296 (DEF_HSAIL_CVT_ZEROI_SAT_BUILTIN): Likewise.
2297 * builtin-types.def (BT_INT8): New.
2298 (BT_INT16): Likewise.
2299 (BT_UINT8): Likewise.
2300 (BT_UINT16): Likewise.
2301 (BT_FN_ULONG): Likewise.
2302 (BT_FN_UINT_INT): Likewise.
2303 (BT_FN_UINT_ULONG): Likewise.
2304 (BT_FN_UINT_LONG): Likewise.
2305 (BT_FN_UINT_PTR): Likewise.
2306 (BT_FN_ULONG_PTR): Likewise.
2307 (BT_FN_INT8_FLOAT): Likewise.
2308 (BT_FN_INT16_FLOAT): Likewise.
2309 (BT_FN_UINT32_FLOAT): Likewise.
2310 (BT_FN_UINT16_FLOAT): Likewise.
2311 (BT_FN_UINT8_FLOAT): Likewise.
2312 (BT_FN_UINT64_FLOAT): Likewise.
2313 (BT_FN_UINT16_UINT32): Likewise.
2314 (BT_FN_UINT32_UINT16): Likewise.
2315 (BT_FN_UINT16_UINT16_UINT16): Likewise.
2316 (BT_FN_INT_PTR_INT): Likewise.
2317 (BT_FN_UINT_PTR_UINT): Likewise.
2318 (BT_FN_LONG_PTR_LONG): Likewise.
2319 (BT_FN_ULONG_PTR_ULONG): Likewise.
2320 (BT_FN_VOID_UINT64_UINT64): Likewise.
2321 (BT_FN_UINT8_UINT8_UINT8): Likewise.
2322 (BT_FN_INT8_INT8_INT8): Likewise.
2323 (BT_FN_INT16_INT16_INT16): Likewise.
2324 (BT_FN_INT_INT_INT): Likewise.
2325 (BT_FN_UINT_FLOAT_UINT): Likewise.
2326 (BT_FN_FLOAT_UINT_UINT): Likewise.
2327 (BT_FN_ULONG_UINT_UINT): Likewise.
2328 (BT_FN_ULONG_UINT_PTR): Likewise.
2329 (BT_FN_ULONG_ULONG_ULONG): Likewise.
2330 (BT_FN_UINT_UINT_UINT): Likewise.
2331 (BT_FN_VOID_UINT_PTR): Likewise.
2332 (BT_FN_UINT_UINT_PTR: Likewise.
2333 (BT_FN_UINT32_UINT64_PTR): Likewise.
2334 (BT_FN_INT_INT_UINT_UINT): Likewise.
2335 (BT_FN_UINT_UINT_UINT_UINT): Likewise.
2336 (BT_FN_UINT_UINT_UINT_PTR): Likewise.
2337 (BT_FN_UINT_ULONG_ULONG_UINT): Likewise.
2338 (BT_FN_ULONG_ULONG_ULONG_ULONG): Likewise.
2339 (BT_FN_LONG_LONG_UINT_UINT): Likewise.
2340 (BT_FN_ULONG_ULONG_UINT_UINT): Likewise.
2341 (BT_FN_VOID_UINT32_UINT64_PTR): Likewise.
2342 (BT_FN_VOID_UINT32_UINT32_PTR): Likewise.
2343 (BT_FN_UINT_UINT_UINT_UINT_UINT): Likewise.
2344 (BT_FN_UINT_FLOAT_FLOAT_FLOAT_FLOAT): Likewise.
2345 (BT_FN_ULONG_ULONG_ULONG_UINT_UINT): Likewise.
2346 * doc/frontends.texi: List BRIG FE.
2347 * doc/install.texi (Testing): Add BRIG tesring requirements.
2348 * doc/invoke.texi (Overall Options): Mention BRIG.
2349 * doc/standards.texi (Standards): Doucment BRIG HSA version.
2351 2017-01-24 Richard Biener <rguenther@suse.de>
2353 PR translation/79208
2354 * ipa-devirt.c (odr_types_equivalent_p): Fix typo in diagnostic.
2356 2017-01-24 Martin Jambor <mjambor@suse.cz>
2359 * ipa-prop.c (ipa_free_all_node_params): Call summary destructor.
2360 * ipa-prop.c (ipa_node_params_t::insert): Initialize fields known_csts
2363 2017-01-24 Aldy Hernandez <aldyh@redhat.com>
2366 * gimple-ssa-warn-alloca.c (alloca_call_type): Make sure
2367 casts from signed to unsigned really don't have a range.
2369 2017-01-24 Markus Trippelsdorf <markus@trippelsdorf.de>
2371 * gimple-ssa-sprintf.c (format_floating): Change MPFR_RNDx to
2372 GMP_RNDx for compatiblity.
2374 2017-01-24 Martin Liska <mliska@suse.cz>
2377 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Insert assert
2378 that would prevent us to call alloca with -1 as argument.
2380 2017-01-24 Jakub Jelinek <jakub@redhat.com>
2382 * dwarf2out.c (output_compilation_unit_header, output_file_names):
2383 Avoid -Wformat-security warning.
2385 2017-01-23 Andrew Pinski <apinski@cavium.com>
2387 * config/aarch64/aarch64.c (thunderx2t99_addrcost_table): Improve
2390 2017-01-23 Martin Sebor <msebor@redhat.com>
2393 * gimple-ssa-sprintf.c (warn_level): New global.
2394 (format_integer): Use it here and throughout the rest of the file.
2395 Use the same switch to compute sign as base.
2396 (maybe_warn): New function.
2397 (format_directive): Factor out warnings into maybe_warn.
2398 Add debugging output. Use warn_level.
2399 (add_bytes): Use warn_level.
2400 (pass_sprintf_length::compute_format_length): Add debugging output.
2401 (try_substitute_return_value): Same.
2402 (pass_sprintf_length::handle_gimple_call): Set and use warn_level.
2405 * gimple-ssa-sprintf.c (struct format_result): Remove constant member.
2406 (struct fmtresult, format_integer, format_floating): Adjust.
2407 (fmtresult::fmtresult): Set max correctly in two argument ctor.
2408 (get_string_length, format_string,format_directive): Same.
2409 (pass_sprintf_length::compute_format_length): Same.
2410 (try_substitute_return_value): Simplify slightly.
2413 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust formatting.
2414 (fmtresult::operator+=): Outlined.
2415 (struct fmtresult): Add ctors.
2416 (struct conversion_spec): Rename...
2417 (struct directive): ...to this. Add and remove data members.
2418 (directive::set_width, directive::set_precision): New functions.
2419 (format_percent): Use fmtresult ctor.
2420 (get_width_and_precision): Remove.
2421 (format_integer): Make naming changes. Avoid computing width and
2423 (format_floating): Same. Adjust indentation.
2424 (format_character, format_none): New functions.
2425 (format_string): Moved character handling to format_character.
2426 (format_directive): Remove arguments, change return type.
2427 (parse_directive): New function.
2428 (pass_sprintf_length::compute_format_length): Move directive
2429 parsing to parse_directive.
2431 2017-01-23 Jakub Jelinek <jakub@redhat.com>
2433 * tree.h (assign_assembler_name_if_neeeded): Rename to ...
2434 (assign_assembler_name_if_needed): ... this.
2435 * tree.c (assign_assembler_name_if_neeeded): Rename to ...
2436 (assign_assembler_name_if_needed): ... this.
2437 (free_lang_data_in_cgraph): Adjust callers.
2438 * cgraphunit.c (cgraph_node::analyze): Likewise.
2439 * omp-expand.c (expand_omp_taskreg, expand_omp_target):
2442 2017-01-23 Richard Biener <rguenther@suse.de>
2444 PR tree-optimization/79088
2445 PR tree-optimization/79188
2446 * tree-ssa-threadupdate.c (mark_threaded_blocks): Move code
2447 resetting loop bounds after last path deletion. Reset loop
2448 bounds of the target loop, make code match the comments.
2449 * tree-ssa-threadbackwards.c (pass_early_thread_jumps::execute):
2450 Make sure loops need no fixups.
2452 2017-01-23 Kelvin Nilsen <kelvin@gcc.gnu.org>
2454 * config/rs6000/rs6000-builtin.def (VSIEDPF): Add scalar insert
2455 exponent support with double type for first argument.
2456 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Changed
2457 type returned by __builtin_vec_extract_sig,
2458 __builtin_vec_extract_sig_sp, and __builtin_vec_extract_sig_dp
2459 functions from "vector int" to "vector unsigned int" or from
2460 "vector long long int" to "vector unsigned long long int".
2461 Changed type returned by __builtin_vec_extract_exp,
2462 __builtin_vec_extract_exp_sp, and __builtin_vec_extract_exp_dp
2463 functions from "vector int" to "vector unsigned int" or from
2464 "vector long long int" to "vector unsigned long long int".
2465 Changed return type of __builtin_vec_test_data_class,
2466 __builtin_vec_test_data_class_sp, and
2467 __builtin_vec_test_data_class_dp from "vector int" to
2468 "vector bool int" or from "vector long long int" to "vector bool
2469 long long int" and changed second argument type from "unsigned
2470 int" to "int". Added new overloaded function forms "vector float
2471 __builtin_vec_insert_exp (vector float, vector unsigned int)" and
2472 "vector float __builtin_vec_insert_exp_sp (vector float, vector
2473 unsigned int)" and "vector double __builtin_vec_insert_exp (vector
2474 double, vector unsigned long long int)" and "vector double
2475 __builtin_vec_insert_exp_dp (vector double, vector unsigned long
2476 long int)". Changed return type of
2477 __builtin_scalar_test_data_class and
2478 __builtin_scalar_test_data_class_sp and
2479 __builtin_scalar_test_data_class_dp from "unsigned int" to "bool
2480 int" and changed second argument from "unsigned int" to "int".
2481 Changed type returned by __builtin_scalar_test_neg,
2482 __builtin_scalar_test_neg_sp, and __builtin_scalar_test_neg_dp
2483 from "int" to "bool int". Added new overloaded function form
2484 "double __builtin_scalar_insert_exp (double, unsigned long long int)".
2485 * config/rs6000/vsx.md (xsiexpdpf): New insn for scalar insert
2486 exponent double-precision with floating point first argument.
2487 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Adjust
2488 documentation of scalar_test_data_class, scalar_test_neg,
2489 scalar_extract_sig, scalar_extract_exp, scalar_insert_exp,
2490 vector_extract_exp, vec_extract_sig, vec_insert_exp, and
2491 vec_test_data_class built-in functions to reflect refinements in
2492 their type signatures.
2494 2017-01-23 Andreas Tobler <andreast@gcc.gnu.org>
2496 * config/aarch64/aarch64.c (aarch64_elf_asm_constructor): Increase
2498 (aarch64_elf_asm_destructor): Likewise.
2500 2017-01-23 Bernd Schmidt <bschmidt@redhat.com>
2502 PR rtl-optimization/78634
2503 * config/i386/i386.c (ix86_max_noce_ifcvt_seq_cost): New function.
2504 (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Define.
2505 * ifcvt.c (noce_try_cmove): Add missing cost check.
2507 PR rtl-optimization/71724
2508 * combine.c (if_then_else_cond): Look for situations where it is
2509 beneficial to undo the work of one of the recursive calls.
2511 2017-01-23 Bin Cheng <bin.cheng@arm.com>
2513 PR tree-optimization/70754
2514 * tree-predcom.c (stmt_combining_refs): New parameter INSERT_BEFORE.
2515 (reassociate_to_the_same_stmt): New parameter INSERT_BEFORE. Insert
2516 combined stmt before it if not NULL.
2517 (combine_chains): Process refs reversely and compute dominance point
2520 2017-01-23 Martin Liska <mliska@suse.cz>
2522 PR tree-optimization/79196
2523 * tree-ssa-strlen.c (fold_strstr_to_memcmp): Rename to ...
2524 (fold_strstr_to_strncmp): ... this. Fold the pattern to strncmp
2526 (strlen_optimize_stmt): Call the renamed function.
2528 2017-01-23 Michael Matz <matz@suse.de>
2530 PR tree-optimization/78384
2531 * tree-ssa-loop-split.c (patch_loop_exit): Use correct edge.
2533 2017-01-23 Richard Biener <rguenther@suse.de>
2535 PR tree-optimization/79186
2536 * tree-vrp.c (register_new_assert_for): Make sure we've seen
2537 both incoming edges before moving an assert.
2539 2017-01-23 Martin Jambor <mjambor@suse.cz>
2541 * ipa-prop.c (load_from_param_1): Removed.
2542 (load_from_unmodified_param): Bits from load_from_param_1 put back
2544 (load_from_param): Removed.
2545 (compute_complex_assign_jump_func): Removed stmt2 and just replaced it
2546 with stmt. Reverted back to use of load_from_unmodified_param.
2548 2017-01-23 Martin Jambor <mjambor@suse.cz>
2551 * ipa-prop.h (ipa_param_descriptor): Anotate with with GTY(()).
2552 (ipa_node_params): Annotate with GTY((for_user)). Make descriptors
2553 field a pointer to garbage collected vector, mark lattices and
2554 ipcp_orig_node with GTY((skip)).
2555 (ipa_get_param_count): Adjust to descriptors being a pointer.
2556 (ipa_get_param): Likewise.
2557 (ipa_get_type): Likewise.
2558 (ipa_get_param_move_cost): Likewise.
2559 (ipa_set_param_used): Likewise.
2560 (ipa_get_controlled_uses): Likewise.
2561 (ipa_set_controlled_uses): Likewise.
2562 (ipa_is_param_used): Likewise.
2563 (ipa_node_params_t): Move into garbage collector. New methods insert
2565 (ipa_node_params_sum): Annotate wth GTY(()).
2566 (ipa_check_create_node_params): Adjust to ipa_node_params_sum being
2568 (ipa_load_from_parm_agg): Adjust declaration.
2569 * ipa-icf.c (param_used_p): Adjust to descriptors being a pointer.
2570 * ipa-profile.c (ipa_profile): Likewise.
2571 * ipa-prop.c (ipa_get_param_decl_index_1): Likewise.
2572 (ipa_populate_param_decls): Make descriptors parameter garbage
2574 (ipa_dump_param): Adjust to descriptors being a pointer.
2575 (ipa_alloc_node_params): Likewise.
2576 (ipa_initialize_node_params): Likewise.
2577 (load_from_param_1): Make descriptors parameter garbage collected.
2578 (load_from_unmodified_param): Likewise.
2579 (load_from_param): Likewise.
2580 (ipa_load_from_parm_agg): Likewise.
2581 (ipa_node_params::~ipa_node_params): Removed.
2582 (ipa_free_all_node_params): Remove call to delete operator.
2583 (ipa_node_params_t::insert): New.
2584 (ipa_node_params_t::remove): Likewise.
2585 (ipa_node_params_t::duplicate): Adjust to descriptors being a pointer,
2586 copy known_csts and known_contexts vectors.
2587 (ipa_read_node_info): Adjust to descriptors being a pointer.
2588 (ipcp_modif_dom_walker): Make m_descriptors field garbage
2590 (ipcp_transform_function): Make descriptors variable garbage
2593 2017-01-23 Andrew Senkevich <andrew.senkevich@intel.com>
2595 * config/i386/avx512bwintrin.h: Add k-mask test, kortest intrinsics.
2596 * config/i386/avx512dqintrin.h: Ditto.
2597 * config/i386/avx512fintrin.h: Ditto.
2598 * gcc/config/i386/i386.c: Handle new builtins.
2599 * config/i386/i386-builtin.def: Add new builtins.
2600 * config/i386/sse.md (ktest<mode>, kortest<mode>): New.
2601 (UNSPEC_KORTEST, UNSPEC_KTEST): New.
2603 2017-01-23 Jakub Jelinek <jakub@redhat.com>
2604 Martin Liska <mliska@suse.cz>
2606 * asan.h: Define ASAN_USE_AFTER_SCOPE_ATTRIBUTE.
2607 * asan.c (asan_expand_poison_ifn): Support stores and use
2608 appropriate ASAN report function.
2609 * internal-fn.c (expand_ASAN_POISON_USE): New function.
2610 * internal-fn.def (ASAN_POISON_USE): Declare.
2611 * tree-into-ssa.c (maybe_add_asan_poison_write): New function.
2612 (maybe_register_def): Create ASAN_POISON_USE when sanitizing.
2613 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove
2614 ASAN_POISON calls w/o LHS.
2615 * tree-ssa.c (execute_update_addresses_taken): Create clobber
2616 for ASAN_MARK (UNPOISON, &x, ...) in order to prevent usage of a LHS
2617 from ASAN_MARK (POISON, &x, ...) coming to a PHI node.
2618 * gimplify.c (asan_poison_variables): Add attribute
2619 use_after_scope_memory to variables that really needs to live
2621 * tree-ssa.c (is_asan_mark_p): Do not rewrite into SSA when
2622 having the attribute.
2624 2017-01-23 Martin Liska <mliska@suse.cz>
2626 * asan.c (create_asan_shadow_var): New function.
2627 (asan_expand_poison_ifn): Likewise.
2628 * asan.h (asan_expand_poison_ifn): New declaration.
2629 * internal-fn.c (expand_ASAN_POISON): Likewise.
2630 * internal-fn.def (ASAN_POISON): New builtin.
2631 * sanopt.c (pass_sanopt::execute): Expand
2632 asan_expand_poison_ifn.
2633 * tree-inline.c (copy_decl_for_dup_finish): Make function
2635 * tree-inline.h (copy_decl_for_dup_finish): Likewise.
2636 * tree-ssa.c (is_asan_mark_p): New function.
2637 (execute_update_addresses_taken): Rewrite local variables
2638 (identified just by use-after-scope as addressable) into SSA.
2640 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
2642 * doc/install.texi (Specific): opensource.apple.com uses https
2643 now. Remove trailing slash.
2645 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
2647 * README.Portability: Remove note on an Irix compatibility issue.
2649 2017-01-22 Dimitry Andric <dim@FreeBSD.org>
2651 * gcov.c (INCLUDE_ALGORITHM): Define.
2652 (INCLUDE_VECTOR): Define.
2653 No longer include <vector> and <algorithm> directly.
2655 2017-01-21 Gerald Pfeifer <gerald@pfeifer.com>
2657 * doc/extend.texi (Thread-Local): Change www.akkadia.org reference
2659 * doc/invoke.texi (Code Gen Options): Ditto.
2661 2017-01-21 Jan Hubicka <hubicka@ucw.cz>
2664 * cfg.c (update_bb_profile_for_threading): Fix updating of probablity.
2666 2017-01-21 Bernd Schmidt <bschmidt@redhat.com>
2668 rtl-optimization/79125
2669 * cprop.c (local_cprop_pass): Handle cases where we make an
2672 2017-01-20 Segher Boessenkool <segher@kernel.crashing.org>
2676 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Adjust address to
2677 read from, for big endian.
2679 2017-01-20 Jiong Wang <jiong.wang@arm.com>
2681 * config/aarch64/aarch64-builtins.c (aarch64_init_builtins): Register
2682 register pauth builtins for LP64 only.
2684 2017-01-20 Marek Polacek <polacek@redhat.com>
2687 * gimplify.c (should_warn_for_implicit_fallthrough): Handle consecutive
2690 2017-01-20 Alexander Monakov <amonakov@ispras.ru>
2692 * omp-expand.c (expand_omp_simd): Clear PROP_gimple_lomp_dev regardless
2694 * omp-offload.c (pass_omp_device_lower::gate): Use PROP_gimple_lomp_dev.
2695 * passes.c (dump_properties): Handle PROP_gimple_lomp_dev.
2696 * tree-inline.c (expand_call_inline): Propagate PROP_gimple_lomp_dev.
2698 2017-01-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2701 * config/arm/arm.c (neon_valid_immediate): Reject vector constants
2702 in big-endian mode when they are not a single duplicated value.
2704 2017-01-20 Richard Biener <rguenther@suse.de>
2706 * BASE-VER: Bump to 7.0.1.
2708 2017-01-20 Alexander Monakov <amonakov@ispras.ru>
2710 * omp-low.c (omplow_simd_context): New struct. Use it...
2711 (lower_rec_simd_input_clauses): ...here and...
2712 (lower_rec_input_clauses): ...here to hold common data. Adjust all
2713 references to idx, lane, max_vf, is_simt.
2715 2017-01-20 Graham Markall <graham.markall@embecosm.com>
2717 * config/arc/arc.h (LINK_SPEC): Use arclinux_nps emulation when
2720 2017-01-20 Martin Jambor <mjambor@suse.cz>
2722 * hsa.h: Renaed to hsa-common.h. Adjusted a comment.
2723 * hsa.c: Renaed to hsa-common.c. Change include of gt-hsa.h to
2725 * Makefile.in (OBJS): Rename hsa.o to hsa-common.o.
2726 (GTFILES): Rename hsa.c to hsa-common.c.
2727 * hsa-brig.c: Change include of hsa.h to hsa-common.h.
2728 * hsa-dump.c: Likewise.
2729 * hsa-gen.c: Likewise.
2730 * hsa-regalloc.c: Likewise.
2731 * ipa-hsa.c: Likewise.
2732 * omp-expand.c: Likewise.
2733 * omp-low.c: Likewise.
2734 * toplev.c: Likewise.
2736 2017-01-20 Marek Polacek <polacek@redhat.com>
2739 * doc/invoke.texi: Document -Wduplicated-branches.
2740 * fold-const.c (operand_equal_p): Handle MODIFY_EXPR, INIT_EXPR,
2741 COMPOUND_EXPR, PREDECREMENT_EXPR, PREINCREMENT_EXPR,
2742 POSTDECREMENT_EXPR, POSTINCREMENT_EXPR, CLEANUP_POINT_EXPR, EXPR_STMT,
2743 STATEMENT_LIST, and RETURN_EXPR. For non-pure non-const functions
2744 return 0 only when not OEP_LEXICOGRAPHIC.
2745 (fold_build_cleanup_point_expr): Use the expression
2746 location when building CLEANUP_POINT_EXPR.
2747 * tree-core.h (enum operand_equal_flag): Add OEP_LEXICOGRAPHIC.
2748 * tree.c (add_expr): Handle error_mark_node.
2750 2017-01-20 Martin Liska <mliska@suse.cz>
2753 * tree-profile.c (init_ic_make_global_vars): Do not call
2755 (gimple_init_gcov_profiler): Likewise.
2757 2017-01-20 Martin Liska <mliska@suse.cz>
2760 * cgraph.h (maybe_create_reference): Remove argument and
2762 * cgraphclones.c (cgraph_node::create_virtual_clone): Remove one
2764 * ipa-cp.c (create_specialized_node): Likewise.
2765 * symtab.c (symtab_node::maybe_create_reference): Handle
2766 VAR_DECLs and ADDR_EXPRs and select ipa_ref_use type.
2768 2017-01-20 Martin Liska <mliska@suse.cz>
2770 * read-rtl-function.c (function_reader::create_function): Use
2771 build_decl instread of build_decl_stat.
2773 2017-01-20 Andrew Senkevich <andrew.senkevich@intel.com>
2775 * config/i386/avx512bwintrin.h: Add k-mask registers shift intrinsics.
2776 * config/i386/avx512dqintrin.h: Ditto.
2777 * config/i386/avx512fintrin.h: Ditto.
2778 * config/i386/i386-builtin-types.def: Add new types.
2779 * gcc/config/i386/i386.c: Handle new types.
2780 * config/i386/i386-builtin.def (__builtin_ia32_kshiftliqi)
2781 (__builtin_ia32_kshiftlihi, __builtin_ia32_kshiftlisi)
2782 (__builtin_ia32_kshiftlidi, __builtin_ia32_kshiftriqi)
2783 (__builtin_ia32_kshiftrihi, __builtin_ia32_kshiftrisi)
2784 (__builtin_ia32_kshiftridi): New.
2785 * config/i386/sse.md (k<code><mode>): Rename *k<code><mode>.
2787 2017-01-19 Segher Boessenkool <segher@kernel.crashing.org>
2791 * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Unconditionally
2792 define to rs6000_init_stack_protect_guard.
2793 (rs6000_init_stack_protect_guard): New function.
2795 2017-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
2796 Yunqiang Su <yunqiang.su@imgtec.com>
2798 * config.gcc (supported_defaults): Add madd4.
2799 (with_madd4): Add validation.
2800 (all_defaults): Add madd4.
2801 * config/mips/mips.opt (mmadd4): New option.
2802 * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
2804 (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
2806 (ISA_HAS_UNFUSED_MADD4): Gate with mips_madd4.
2807 (ISA_HAS_FUSED_MADD4): Likewise.
2808 * gcc/doc/invoke.texi (-mmadd4): Document the new option.
2809 * gcc/doc/install.texi (--with-madd4): Document the new option.
2811 2017-01-19 Jiong Wang <jiong.wang@arm.com>
2813 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): New
2814 entries for AARCH64_PAUTH_BUILTIN_XPACLRI,
2815 AARCH64_PAUTH_BUILTIN_PACIA1716, AARCH64_PAUTH_BUILTIN_AUTIA1716.
2816 (aarch64_init_pauth_hint_builtins): New.
2817 (aarch64_init_builtins): Call aarch64_init_pauth_hint_builtins.
2818 (aarch64_expand_builtin): Expand new builtins.
2820 2017-01-19 Jiong Wang <jiong.wang@arm.com>
2822 * reg-notes.def (CFA_TOGGLE_RA_MANGLE): New reg-note.
2823 * combine-stack-adj.c (no_unhandled_cfa): Handle
2824 REG_CFA_TOGGLE_RA_MANGLE.
2825 * dwarf2cfi.c (dwarf2out_frame_debug): Handle REG_CFA_TOGGLE_RA_MANGLE.
2826 * config/aarch64/aarch64.c (aarch64_expand_prologue): Generates DWARF
2827 info for return address signing.
2828 (aarch64_expand_epilogue): Likewise.
2830 2017-01-19 Jiong Wang <jiong.wang@arm.com>
2832 * config/aarch64/aarch64-opts.h (aarch64_function_type): New enum.
2833 * config/aarch64/aarch64-protos.h
2834 (aarch64_return_address_signing_enabled): New declaration.
2835 * config/aarch64/aarch64.c (aarch64_return_address_signing_enabled):
2837 (aarch64_expand_prologue): Sign return address before it's pushed onto
2839 (aarch64_expand_epilogue): Authenticate return address fetched from
2841 (aarch64_override_options): Sanity check for ILP32 and ISA level.
2842 (aarch64_attributes): New function attributes for "sign-return-address".
2843 * config/aarch64/aarch64.md (UNSPEC_AUTI1716, UNSPEC_AUTISP,
2844 UNSPEC_PACI1716, UNSPEC_PACISP, UNSPEC_XPACLRI): New unspecs.
2845 ("*do_return"): Generate combined instructions according to key index.
2846 ("<pauth_mnem_prefix>sp", "<pauth_mnem_prefix1716", "xpaclri"): New.
2847 * config/aarch64/iterators.md (PAUTH_LR_SP, PAUTH_17_16): New integer
2849 (pauth_mnem_prefix, pauth_hint_num_a): New integer attributes.
2850 * config/aarch64/aarch64.opt (msign-return-address=): New.
2851 * doc/extend.texi (AArch64 Function Attributes): Documents
2852 "sign-return-address=".
2853 * doc/invoke.texi (AArch64 Options): Documents "-msign-return-address=".
2855 2017-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
2857 * doc/invoke.texi: Add missing -mlxc1-sxc1 options to
2858 overall option summary.
2860 2017-01-19 Jiong Wang <jiong.wang@arm.com>
2862 * config/aarch64/aarch64-arches.def: New entry for "armv8.3-a".
2863 * config/aarch64/aarch64.h (AARCH64_FL_V8_3, AARCH64_FL_FOR_ARCH8_3,
2864 AARCH64_ISA_V8_3, TARGET_ARMV8_3): New.
2865 * doc/invoke.texi (AArch64 Options): Document "armv8.3-a".
2867 2017-01-19 Michael Meissner <meissner@linux.vnet.ibm.com>
2869 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Enable
2870 -mpower9-minmax by default for -mcpu=power9.
2871 (ISA_3_MASKS_IEEE): Require -mvsx-small-integer to enable IEEE
2872 128-bit floating point.
2874 2017-01-20 Alan Modra <amodra@gmail.com>
2876 * config/rs6000/rs6000.md (cmpstrnsi, cmpstrsi): Fail if
2877 optimizing for size.
2879 2017-01-20 Alan Modra <amodra@gmail.com>
2882 * config/rs6000/rs6000.c (expand_strn_compare): Get the asm name
2883 for strcmp and strncmp from corresponding builtin decl.
2885 2017-01-19 Uros Bizjak <ubizjak@gmail.com>
2887 * config.gcc (x86_64-*-rtems*): Use i386/rtemself.h
2888 instead of i386/rtems-64.h.
2889 * config/i386/rtems-64.h: Remove.
2891 2017-01-19 Uros Bizjak <ubizjak@gmail.com>
2895 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
2897 * config/i386/rtemself.h (LONG_DOUBLE_TYPE_SIZE): New define.
2899 2017-01-19 Tamar Christina <tamar.christina@arm.com>
2901 * config/aarch64/aarch64.c (aarch64_simd_gen_const_vector_dup):
2902 Change int to HOST_WIDE_INT.
2903 * config/aarch64/aarch64-protos.h
2904 (aarch64_simd_gen_const_vector_dup): Likewise.
2905 * config/aarch64/aarch64-simd.md: Add copysign<mode>3.
2907 2017-01-19 David Malcolm <dmalcolm@redhat.com>
2909 * langhooks-def.h (lhd_type_for_size): New decl.
2910 (LANG_HOOKS_TYPE_FOR_SIZE): Define as lhd_type_for_size.
2911 * langhooks.c (lhd_type_for_size): New function, taken from
2914 2017-01-19 Pat Haugen <pthaugen@us.ibm.com>
2916 * config/rs6000/power9.md (power9-alu): Remove 'cmp' type and add
2917 define_bypass for CR latency.
2918 (power9-cracked-alu): Update bypass latency and remove power9-branch.
2919 (power9-alu2): Add define_bypass for CR latency.
2921 (power9-mul): Update insn latency.
2922 (power9-mul-compare): Update insn latency, bypass latency and remove
2925 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2927 * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
2929 * config/aarch64/aarch64.md
2930 (aarch64_reload_movcp<GPF_TF:mode><P:mode>): Delete reference to
2931 aarch64_nopcrelative_literal_loads.
2932 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
2934 2017-01-19 Chenghua Xu <paul.hua.gm@gmail.com>
2936 * config/mips/mips.h (ISA_HAS_FUSED_MADD4): Enable for
2938 (ISA_HAS_UNFUSED_MADD4): Exclude TARGET_LOONGSON_3A.
2940 2017-01-19 Doug Gilmore <doug.gilmore@imgtec.com>
2943 * config.gcc (supported_defaults): Add lxc1-sxc1.
2944 (with_lxc1_sxc1): Add validation.
2945 (all_defaults): Add lxc1-sxc1.
2946 * config/mips/mips.opt (mlxc1-sxc1): New option.
2947 * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
2949 (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
2950 __mips_no_lxc1_sxc1.
2951 (ISA_HAS_LXC1_SXC1): Gate with mips_lxc1_sxc1.
2952 * gcc/doc/invoke.texi (-mlxc1-sxc1): Document the new option.
2953 * doc/install.texi (--with-lxc1-sxc1): Document the new option.
2955 2017-01-19 Richard Biener <rguenther@suse.de>
2957 PR tree-optimization/72488
2958 * tree-ssa-sccvn.c (run_scc_vn): When we abort the VN make
2959 sure to restore SSA info.
2960 * tree-ssa.c (verify_ssa): Verify SSA info is not shared.
2962 2017-01-19 Richard Earnshaw <rearnsha@arm.com>
2964 PR rtl-optimization/79121
2965 * expr.c (expand_expr_real_2, case LSHIFT_EXPR): Look at the signedness
2966 of the inner type when shifting an extended value.
2968 2017-01-17 Jan Hubicka <hubicka@ucw.cz>
2971 * symtab.c (symtab_node::equal_address_to): Fix comparing of
2972 interposable aliases.
2974 2017-01-18 Peter Bergner <bergner@vnet.ibm.com>
2977 * config/rs6000/spe.md (mov_si<mode>_e500_subreg0): Fix constraints.
2978 Use the evmergelohi instruction.
2979 (mov_si<mode>_e500_subreg4_2_le): Likewise.
2980 (mov_sitf_e500_subreg8_2_be): Likewise.
2981 (mov_sitf_e500_subreg12_2_le): Likewise.
2982 (mov_si<mode>_e500_subreg0_2_le): Fix constraints.
2983 (mov_si<mode>_e500_subreg4_2_be): Likewise.
2984 (mov_sitf_e500_subreg8_2_le): Likewise.
2985 (mov_sitf_e500_subreg12_2_be): Likewise.
2987 2017-01-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2989 * config/rs6000/altivec.md (altivec_vbpermq): Change "type"
2990 attribute from vecsimple to vecperm.
2991 (altivec_vbpermq2): Likewise.
2993 2017-01-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2996 * config/rs6000/altivec.h: Fix typo of vec_cntlz to vec_cnttz.
2998 2017-01-18 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
2999 * config/rs6000/rs6000-protos.h (expand_strn_compare): Add arg.
3000 * config/rs6000/rs6000.c (expand_strn_compare): Add ability to expand
3001 strcmp. Fix bug where comparison didn't stop with zero byte. Fix
3002 case where N arg is SIZE_MAX.
3003 * config/rs6000/rs6000.md (cmpstrnsi): Args to expand_strn_compare.
3004 (cmpstrsi): Add pattern.
3006 2017-01-18 Michael Meissner <meissner@linux.vnet.ibm.com>
3008 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
3009 __builtin_vec_revb builtins.
3010 * config/rs6000/rs6000-builtins.def (P9V_BUILTIN_XXBRQ_V16QI): Add
3011 built-in functions to support generation of the ISA 3.0 XXBR<x>
3012 vector byte reverse instructions.
3013 (P9V_BUILTIN_XXBRQ_V1TI): Likewise.
3014 (P9V_BUILTIN_XXBRD_V2DI): Likewise.
3015 (P9V_BUILTIN_XXBRD_V2DF): Likewise.
3016 (P9V_BUILTIN_XXBGW_V4SI): Likewise.
3017 (P9V_BUILTIN_XXBGW_V4SF): Likewise.
3018 (P9V_BUILTIN_XXBGH_V8HI): Likewise.
3019 (P9V_BUILTIN_VEC_REVB): Likewise.
3020 * config/rs6000/vsx.md (p9_xxbrq_v1ti): New insns/expanders to
3021 generate the ISA 3.0 XXBR<x> vector byte reverse instructions.
3022 (p9_xxbrq_v16qi): Likewise.
3023 (p9_xxbrd_<mode>, VSX_D iterator): Likewise.
3024 (p9_xxbrw_<mode>, VSX_W iterator): Likewise.
3025 (p9_xxbrh_v8hi): Likewise.
3026 * config/rs6000/altivec.h (vec_revb): Define if ISA 3.0.
3027 * doc/extend.texi (RS/6000 Altivec Built-ins): Document the
3028 vec_revb built-in functions.
3030 2017-01-18 Uros Bizjak <ubizjak@gmail.com>
3032 PR rtl-optimization/78952
3033 * config/i386/i386.md (any_extract): New code iterator.
3034 (*insvqi_2): Use any_extract for source operand.
3035 (*insvqi_3): Use any_shiftrt for source operand.
3037 2017-01-18 Wilco Dijkstra <wdijkstr@arm.com>
3039 * config/aarch64/aarch64.c (aarch64_sched_adjust_priority)
3041 (TARGET_SCHED_ADJUST_PRIORITY): Define target hook.
3043 2017-01-18 Matthias Klose <doko@ubuntu.com>
3045 * doc/install.texi: Allow default for --with-target-bdw-gc-include.
3047 2016-01-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3049 * config/rs6000/altivec.h (vec_bperm): Change #define.
3050 * config/rs6000/altivec.md (UNSPEC_VBPERMD): New enum constant.
3051 (altivec_vbpermq2): New define_insn.
3052 (altivec_vbpermd): Likewise.
3053 * config/rs6000/rs6000-builtin.def (VBPERMQ2): New monomorphic
3055 (VBPERMD): Likewise.
3056 (VBPERM): New polymorphic function interface.
3057 * config/rs6000/r6000-c.c (altivec_overloaded_builtins_table):
3058 Add entries for P9V_BUILTIN_VEC_VBPERM.
3059 * doc/extend.texi: Add interfaces for vec_bperm.
3061 2017-01-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3063 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Downcase
3064 first letter of error messages.
3065 (s390_resolve_overloaded_builtin): Likewise.
3066 * config/s390/s390.c (s390_expand_builtin): Likewise.
3067 (s390_invalid_arg_for_unprototyped_fn): Likewise.
3068 (s390_valid_target_attribute_inner_p): Likewise.
3069 * config/s390/s390.md ("tabort"): Likewise.
3071 2017-01-18 Toma Tabacu <toma.tabacu@imgtec.com>
3073 * config/mips/mips.h (ISA_HAS_DIV3): Remove unused macro.
3074 (ISA_AVOID_DIV_HILO): New macro.
3075 (ISA_HAS_DIV): Use new ISA_AVOID_DIV_HILO macro.
3076 (ISA_HAS_DDIV): Likewise.
3078 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
3080 * doc/invoke.texi (fabi-version): Correct number of occurrences.
3082 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
3084 * doc/invoke.texi (fabi-version): Spelling fix.
3086 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
3089 * doc/invoke.texi (fabi-version): Mention mangling fix for
3092 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
3095 * doc/invoke.texi (fabi-version): Document discriminator mangling.
3097 2017-01-17 Segher Boessenkool <segher@kernel.crashing.org>
3100 * config/rs6000/rs6000-opts.h (stack_protector_guard): New enum.
3101 * config/rs6000/rs6000.c (rs6000_option_override_internal): Handle
3103 * config/rs6000/rs6000.md (stack_protect_set): Handle the new more
3105 (stack_protect_test): Ditto.
3106 * config/rs6000/rs6000.opt (mstack-protector-guard=,
3107 mstack-protector-guard-reg=, mstack-protector-guard-offset=): New
3109 * doc/invoke.texi (Option Summary) [RS/6000 and PowerPC Options]:
3110 Add -mstack-protector-guard=, -mstack-protector-guard-reg=, and
3111 -mstack-protector-guard-offset=.
3112 (RS/6000 and PowerPC Options): Ditto.
3114 2017-01-17 Uros Bizjak <ubizjak@gmail.com>
3116 * config/i386/i386.h (MASK_CLASS_P): New define.
3117 * config/i386/i386.c (inline_secondary_memory_needed): Ensure that
3118 there are no registers from different register sets also when
3119 mask registers are used. Update function comment.
3120 * config/i386/i386.md (*movsi_internal): Split (*k/*krm) alternative
3121 to (*k/*r) and (*k/*km) alternatives.
3123 2017-01-17 Wilco Dijkstra <wdijkstr@arm.com>
3125 * config/aarch64/aarch64.md (eh_return): Remove pattern and splitter.
3126 * config/aarch64/aarch64.h (AARCH64_EH_STACKADJ_REGNUM): Remove.
3127 (EH_RETURN_HANDLER_RTX): New define.
3128 * config/aarch64/aarch64.c (aarch64_frame_pointer_required):
3129 Force frame pointer in EH return functions.
3130 (aarch64_expand_epilogue): Add barrier for eh_return.
3131 (aarch64_final_eh_return_addr): Remove.
3132 (aarch64_eh_return_handler_rtx): New function.
3133 * config/aarch64/aarch64-protos.h (aarch64_final_eh_return_addr):
3135 (aarch64_eh_return_handler_rtx): New prototype.
3137 2017-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3139 * config/rs6000/altivec.h (vec_rlmi): New #define.
3140 (vec_vrlnm): Likewise.
3141 (vec_rlnm): Likewise.
3142 * config/rs6000/altivec.md (UNSPEC_VRLMI): New UNSPEC enum value.
3143 (UNSPEC_VRLNM): Likewise.
3144 (VIlong): New mode iterator.
3145 (altivec_vrl<VI_char>mi): New define_insn.
3146 (altivec_vrl<VI_char>nm): Likewise.
3147 * config/rs6000/rs6000-builtin.def (VRLWNM): New monomorphic
3150 (RLNM): New polymorphic function entry.
3151 (VRLWMI): New monomorphic function entry.
3153 (RLMI): New polymorphic function entry.
3154 * config/rs6000/r6000-c.c (altivec_overloaded_builtin_table): Add
3155 new entries for P9V_BUILTIN_VEC_RLMI and P9V_BUILTIN_VEC_RLNM.
3156 * doc/extend.texi: Add description of vec_rlmi, vec_rlnm, and
3159 2017-01-17 Jakub Jelinek <jakub@redhat.com>
3162 * dwarf2out.c (field_byte_offset): Restore the
3163 PCC_BITFIELD_TYPE_MATTERS behavior for INTEGER_CST DECL_FIELD_OFFSET
3164 and DECL_FIELD_BIT_OFFSET. Use fold_build2 instead of build2 + fold.
3165 (analyze_variants_discr, gen_variant_part): Use fold_build2 instead
3168 2017-01-17 Eric Botcazou <ebotcazou@adacore.com>
3171 * config/aarch64/aarch64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define
3173 2017-01-17 Jakub Jelinek <jakub@redhat.com>
3176 * dwarf2out.c (add_data_member_location_attribute): For constant
3177 offset bitfield emit for -gdwarf-5 DW_AT_data_bit_offset attribute
3178 instead of DW_AT_data_member_location, DW_AT_bit_offset and
3179 DW_AT_byte_size attributes.
3181 2017-01-17 Eric Botcazou <ebotcazou@adacore.com>
3183 * config/rs6000/rs6000.c (rs6000_emit_move): Also use a TOC reference
3184 after forcing to constant memory when the code model is medium.
3186 2017-01-17 Julia Koval <julia.koval@intel.com>
3189 * config/i386/avx512fintrin.h
3190 (_mm512_i32gather_ps): Change __addr type to void const*.
3191 (_mm512_mask_i32gather_ps): Ditto.
3192 (_mm512_i32gather_pd): Ditto.
3193 (_mm512_mask_i32gather_pd): Ditto.
3194 (_mm512_i64gather_ps): Ditto.
3195 (_mm512_mask_i64gather_ps): Ditto.
3196 (_mm512_i64gather_pd): Ditto.
3197 (_mm512_mask_i64gather_pd): Ditto.
3198 (_mm512_i32gather_epi32): Ditto.
3199 (_mm512_mask_i32gather_epi32): Ditto.
3200 (_mm512_i32gather_epi64): Ditto.
3201 (_mm512_mask_i32gather_epi64): Ditto.
3202 (_mm512_i64gather_epi32): Ditto.
3203 (_mm512_mask_i64gather_epi32): Ditto.
3204 (_mm512_i64gather_epi64): Ditto.
3205 (_mm512_mask_i64gather_epi64): Ditto.
3206 (_mm512_i32scatter_ps): Change __addr type to void*.
3207 (_mm512_mask_i32scatter_ps): Ditto.
3208 (_mm512_i32scatter_pd): Ditto.
3209 (_mm512_mask_i32scatter_pd): Ditto.
3210 (_mm512_i64scatter_ps): Ditto.
3211 (_mm512_mask_i64scatter_ps): Ditto.
3212 (_mm512_i64scatter_pd): Ditto.
3213 (_mm512_mask_i64scatter_pd): Ditto.
3214 (_mm512_i32scatter_epi32): Ditto.
3215 (_mm512_mask_i32scatter_epi32): Ditto.
3216 (_mm512_i32scatter_epi64): Ditto.
3217 (_mm512_mask_i32scatter_epi64): Ditto.
3218 (_mm512_i64scatter_epi32): Ditto.
3219 (_mm512_mask_i64scatter_epi32): Ditto.
3220 (_mm512_i64scatter_epi64): Ditto.
3221 (_mm512_mask_i64scatter_epi64): Ditto.
3222 * config/i386/avx512pfintrin.h
3223 (_mm512_mask_prefetch_i32gather_pd): Change __addr type to void const*.
3224 (_mm512_mask_prefetch_i32gather_ps): Ditto.
3225 (_mm512_mask_prefetch_i64gather_pd): Ditto.
3226 (_mm512_mask_prefetch_i64gather_ps): Ditto.
3227 (_mm512_prefetch_i32scatter_pd): Change __addr type to void*.
3228 (_mm512_prefetch_i32scatter_ps): Ditto.
3229 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
3230 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
3231 (_mm512_prefetch_i64scatter_pd): Ditto.
3232 (_mm512_prefetch_i64scatter_ps): Ditto.
3233 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
3234 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
3235 * config/i386/avx512vlintrin.h
3236 (_mm256_mmask_i32gather_ps): Change __addr type to void const*.
3237 (_mm_mmask_i32gather_ps): Ditto.
3238 (_mm256_mmask_i32gather_pd): Ditto.
3239 (_mm_mmask_i32gather_pd): Ditto.
3240 (_mm256_mmask_i64gather_ps): Ditto.
3241 (_mm_mmask_i64gather_ps): Ditto.
3242 (_mm256_mmask_i64gather_pd): Ditto.
3243 (_mm_mmask_i64gather_pd): Ditto.
3244 (_mm256_mmask_i32gather_epi32): Ditto.
3245 (_mm_mmask_i32gather_epi32): Ditto.
3246 (_mm256_mmask_i32gather_epi64): Ditto.
3247 (_mm_mmask_i32gather_epi64): Ditto.
3248 (_mm256_mmask_i64gather_epi32): Ditto.
3249 (_mm_mmask_i64gather_epi32): Ditto.
3250 (_mm256_mmask_i64gather_epi64): Ditto.
3251 (_mm_mmask_i64gather_epi64): Ditto.
3252 (_mm256_i32scatter_ps): Change __addr type to void*.
3253 (_mm256_mask_i32scatter_ps): Ditto.
3254 (_mm_i32scatter_ps): Ditto.
3255 (_mm_mask_i32scatter_ps): Ditto.
3256 (_mm256_i32scatter_pd): Ditto.
3257 (_mm256_mask_i32scatter_pd): Ditto.
3258 (_mm_i32scatter_pd): Ditto.
3259 (_mm_mask_i32scatter_pd): Ditto.
3260 (_mm256_i64scatter_ps): Ditto.
3261 (_mm256_mask_i64scatter_ps): Ditto.
3262 (_mm_i64scatter_ps): Ditto.
3263 (_mm_mask_i64scatter_ps): Ditto.
3264 (_mm256_i64scatter_pd): Ditto.
3265 (_mm256_mask_i64scatter_pd): Ditto.
3266 (_mm_i64scatter_pd): Ditto.
3267 (_mm_mask_i64scatter_pd): Ditto.
3268 (_mm256_i32scatter_epi32): Ditto.
3269 (_mm256_mask_i32scatter_epi32): Ditto.
3270 (_mm_i32scatter_epi32): Ditto.
3271 (_mm_mask_i32scatter_epi32): Ditto.
3272 (_mm256_i32scatter_epi64): Ditto.
3273 (_mm256_mask_i32scatter_epi64): Ditto.
3274 (_mm_i32scatter_epi64): Ditto.
3275 (_mm_mask_i32scatter_epi64): Ditto.
3276 (_mm256_i64scatter_epi32): Ditto.
3277 (_mm256_mask_i64scatter_epi32): Ditto.
3278 (_mm_i64scatter_epi32): Ditto.
3279 (_mm_mask_i64scatter_epi32): Ditto.
3280 (_mm256_i64scatter_epi64): Ditto.
3281 (_mm256_mask_i64scatter_epi64): Ditto.
3282 (_mm_i64scatter_epi64): Ditto.
3283 (_mm_mask_i64scatter_epi64): Ditto.
3284 * config/i386/i386-builtin-types.def (V16SF_V16SF_PCFLOAT_V16SI_HI_INT)
3285 (V8DF_V8DF_PCDOUBLE_V8SI_QI_INT, V8SF_V8SF_PCFLOAT_V8DI_QI_INT)
3286 (V8DF_V8DF_PCDOUBLE_V8DI_QI_INT, V16SI_V16SI_PCINT_V16SI_HI_INT)
3287 (V8DI_V8DI_PCINT64_V8SI_QI_INT, V8SI_V8SI_PCINT_V8DI_QI_INT)
3288 (V8DI_V8DI_PCINT64_V8DI_QI_INT, V2DF_V2DF_PCDOUBLE_V4SI_QI_INT)
3289 (V4DF_V4DF_PCDOUBLE_V4SI_QI_INT, V2DF_V2DF_PCDOUBLE_V2DI_QI_INT)
3290 (V4DF_V4DF_PCDOUBLE_V4DI_QI_INT, V4SF_V4SF_PCFLOAT_V4SI_QI_INT)
3291 (V8SF_V8SF_PCFLOAT_V8SI_QI_INT, V4SF_V4SF_PCFLOAT_V2DI_QI_INT)
3292 (V4SF_V4SF_PCFLOAT_V4DI_QI_INT, V2DI_V2DI_PCINT64_V4SI_QI_INT)
3293 (V4DI_V4DI_PCINT64_V4SI_QI_INT, V2DI_V2DI_PCINT64_V2DI_QI_INT)
3294 (V4DI_V4DI_PCINT64_V4DI_QI_INT, V4SI_V4SI_PCINT_V4SI_QI_INT)
3295 (V8SI_V8SI_PCINT_V8SI_QI_INT, V4SI_V4SI_PCINT_V2DI_QI_INT)
3296 (V4SI_V4SI_PCINT_V4DI_QI_INT, VOID_PFLOAT_HI_V16SI_V16SF_INT)
3297 (VOID_PFLOAT_QI_V8SI_V8SF_INT, VOID_PFLOAT_QI_V4SI_V4SF_INT)
3298 (VOID_PDOUBLE_QI_V8SI_V8DF_INT, VOID_PDOUBLE_QI_V4SI_V4DF_INT)
3299 (VOID_PDOUBLE_QI_V4SI_V2DF_INT, VOID_PFLOAT_QI_V8DI_V8SF_INT)
3300 (VOID_PFLOAT_QI_V4DI_V4SF_INT, VOID_PFLOAT_QI_V2DI_V4SF_INT)
3301 (VOID_PDOUBLE_QI_V8DI_V8DF_INT, VOID_PDOUBLE_QI_V4DI_V4DF_INT)
3302 (VOID_PDOUBLE_QI_V2DI_V2DF_INT, VOID_PINT_HI_V16SI_V16SI_INT)
3303 (VOID_PINT_QI_V8SI_V8SI_INT, VOID_PINT_QI_V4SI_V4SI_INT)
3304 (VOID_PLONGLONG_QI_V8SI_V8DI_INT, VOID_PLONGLONG_QI_V4SI_V4DI_INT)
3305 (VOID_PLONGLONG_QI_V4SI_V2DI_INT, VOID_PINT_QI_V8DI_V8SI_INT)
3306 (VOID_PINT_QI_V4DI_V4SI_INT, VOID_PINT_QI_V2DI_V4SI_INT)
3307 (VOID_PLONGLONG_QI_V8DI_V8DI_INT, VOID_QI_V8SI_PCINT64_INT_INT)
3308 (VOID_PLONGLONG_QI_V4DI_V4DI_INT, VOID_PLONGLONG_QI_V2DI_V2DI_INT)
3309 (VOID_HI_V16SI_PCINT_INT_INT, VOID_QI_V8DI_PCINT64_INT_INT)
3310 (VOID_QI_V8DI_PCINT_INT_INT): Remove.
3311 (V16SF_V16SF_PCVOID_V16SI_HI_INT, V8DF_V8DF_PCVOID_V8SI_QI_INT)
3312 (V8SF_V8SF_PCVOID_V8DI_QI_INT, V8DF_V8DF_PCVOID_V8DI_QI_INT)
3313 (V16SI_V16SI_PCVOID_V16SI_HI_INT, V8DI_V8DI_PCVOID_V8SI_QI_INT)
3314 (V8SI_V8SI_PCVOID_V8DI_QI_INT, V8DI_V8DI_PCVOID_V8DI_QI_INT)
3315 (VOID_PVOID_HI_V16SI_V16SF_INT, VOID_PVOID_QI_V8SI_V8DF_INT)
3316 (VOID_PVOID_QI_V8DI_V8SF_INT, VOID_PVOID_QI_V8DI_V8DF_INT)
3317 (VOID_PVOID_HI_V16SI_V16SI_INT, VOID_PVOID_QI_V8SI_V8DI_INT)
3318 (VOID_PVOID_QI_V8DI_V8SI_INT, VOID_PVOID_QI_V8DI_V8DI_INT)
3319 (V2DF_V2DF_PCVOID_V4SI_QI_INT, V4DF_V4DF_PCVOID_V4SI_QI_INT)
3320 (V2DF_V2DF_PCVOID_V2DI_QI_INT, V4DF_V4DF_PCVOID_V4DI_QI_INT
3321 (V4SF_V4SF_PCVOID_V4SI_QI_INT, V8SF_V8SF_PCVOID_V8SI_QI_INT)
3322 (V4SF_V4SF_PCVOID_V2DI_QI_INT, V4SF_V4SF_PCVOID_V4DI_QI_INT)
3323 (V2DI_V2DI_PCVOID_V4SI_QI_INT, V4DI_V4DI_PCVOID_V4SI_QI_INT)
3324 (V2DI_V2DI_PCVOID_V2DI_QI_INT, V4DI_V4DI_PCVOID_V4DI_QI_INT)
3325 (V4SI_V4SI_PCVOID_V4SI_QI_INT, V8SI_V8SI_PCVOID_V8SI_QI_INT)
3326 (V4SI_V4SI_PCVOID_V2DI_QI_INT, V4SI_V4SI_PCVOID_V4DI_QI_INT)
3327 (VOID_PVOID_QI_V8SI_V8SF_INT, VOID_PVOID_QI_V4SI_V4SF_INT)
3328 (VOID_PVOID_QI_V4SI_V4DF_INT, VOID_PVOID_QI_V4SI_V2DF_INT)
3329 (VOID_PVOID_QI_V4DI_V4SF_INT, VOID_PVOID_QI_V2DI_V4SF_INT)
3330 (VOID_PVOID_QI_V4DI_V4DF_INT, VOID_PVOID_QI_V2DI_V2DF_INT)
3331 (VOID_PVOID_QI_V8SI_V8SI_INT, VOID_PVOID_QI_V4SI_V4SI_INT)
3332 (VOID_PVOID_QI_V4SI_V4DI_INT, VOID_PVOID_QI_V4SI_V2DI_INT)
3333 (VOID_PVOID_QI_V4DI_V4SI_INT, VOID_PVOID_QI_V2DI_V4SI_INT)
3334 (VOID_PVOID_QI_V4DI_V4DI_INT, VOID_PVOID_QI_V2DI_V2DI_INT)
3335 (VOID_QI_V8SI_PCVOID_INT_INT, VOID_HI_V16SI_PCVOID_INT_INT)
3336 (VOID_QI_V8DI_PCVOID_INT_INT): Add.
3337 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Adjust builtin
3338 definitions accordingly.
3340 2017-01-17 Kito Cheng <kito.cheng@gmail.com>
3341 Kuan-Lin Chen <kuanlinchentw@gmail.com>
3344 * internal-fn.c (expand_mul_overflow): Use convert_modes instead of
3347 2017-01-17 Vladimir Makarov <vmakarov@redhat.com>
3350 * ira-conflicts.c (ira_build_conflicts): Update total conflict
3351 hard regs for inner regno.
3353 2017-01-17 Martin Liska <mliska@suse.cz>
3356 * ipa-polymorphic-call.c (contains_type_p): Fix wrong
3357 assumption and add comment.
3359 2017-01-17 Nathan Sidwell <nathan@acm.org>
3361 * ipa-visibility.c (localize_node): New function, broken out of ...
3362 (function_and_variable_visibility): ... here. Call it.
3364 2017-01-17 Jan Hubicka <hubicka@ucw.cz>
3367 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
3368 correctly set frequency of oudgoing edge.
3369 (duplicate_thread_path): Fix profile updating.
3371 2017-01-17 Jakub Jelinek <jakub@redhat.com>
3374 * configure.ac: Add GCC_BASE_VER.
3375 * Makefile.in (version): Use @get_gcc_base_ver@ instead of cat to get
3376 version from BASE-VER file.
3377 (CFLAGS-gcc.o): Add -DBASEVER=$(BASEVER_s).
3378 (gcc.o): Depend on $(BASEVER).
3379 * common.opt (dumpfullversion): New option.
3380 * gcc.c (driver_handle_option): Handle OPT_dumpfullversion.
3381 * doc/invoke.texi: Document -dumpfullversion.
3382 * doc/install.texi: Document --with-gcc-major-version-only.
3383 * configure: Regenerated.
3385 2017-01-17 Richard Biener <rguenther@suse.de>
3387 PR tree-optimization/71433
3388 * tree-vrp.c (register_new_assert_for): Merge same asserts
3389 on all incoming edges.
3390 (process_assert_insertions_for): Handle insertions at the
3393 2017-01-17 Gerald Pfeifer <gerald@pfeifer.com>
3395 * config/i386/cygwin.h (LIBGCJ_SONAME): Remove.
3396 * config/i386/mingw32.h (LIBGCJ_SONAME): Remove.
3398 2017-01-17 Kaz Kojima <kkojima@gcc.gnu.org>
3401 * config/sh/sh.md (cmpeqsi_t+1): Call copy_rtx to avoid invalid
3404 2017-01-17 Alan Modra <amodra@gmail.com>
3407 * config/rs6000/rs6000.md (elf_high, elf_low): Disable when pic.
3408 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Don't allow
3409 symbolic stack limit when pic.
3411 2017-01-16 Martin Sebor <msebor@redhat.com>
3413 PR tree-optimization/78608
3414 * gimple-ssa-sprintf.c (tree_digits): Avoid negating TYPE_MIN.
3416 2017-01-16 Jeff Law <law@redhat.com>
3419 2016-12-02 Tadek Kijkowski <tkijkowski@gmail.com>
3420 * Makefile.in (PREPROCESSOR_DEFINES): Add a level of indirection
3421 for several include directories that may be relative to sysroot.
3422 * config/i386/x-mingw32 (gplus_includedir): Define.
3423 (gplus_tool_includedir, gplus_backward_include_dir): Likewise.
3424 (native_system_includedir): Likewise.
3425 * config/i386/mingw32.h (STANDARD_STARTFILE_PREFIX_1): Do not
3426 override if TARGET_SYSTEM_ROOT is defined.
3427 (NATIVE_SYSTEM_HEADER_DIR): Likewise.
3429 PR tree-optimization/79090
3430 PR tree-optimization/33562
3431 PR tree-optimization/61912
3432 PR tree-optimization/77485
3433 * tree-ssa-dse.c (compute_trims): Accept STMT argument. Dump STMT
3434 and computed trims into the dump file.
3436 2017-01-17 Uros Bizjak <ubizjak@gmail.com>
3438 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Remove.
3440 2017-01-16 Jakub Jelinek <jakub@redhat.com>
3443 * gimplify.c (gimplify_init_constructor): If want_value and
3444 object == lhs, unshare lhs to avoid invalid tree sharing. Formatting
3448 * loop-doloop.c (doloop_modify): Call unshare_all_rtl_in_chain on
3449 sequence. Formatting fixes.
3450 (doloop_optimize): Formatting fixes.
3453 * gcc.c (debug_level_greater_than_spec_func): New function.
3454 (static_spec_functions): Add debug-level-gt spec function.
3455 (ASM_DEBUG_SPEC, cpp_options): Use %:debug-level-gt(0) instead of
3457 * config/darwin.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
3458 * config/darwin9.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
3459 * common.opt (g, gcoff, gdwarf, gdwarf-, ggdb, gno-pubnames,
3460 gpubnames, ggnu-pubnames, gno-record-gcc-switches,
3461 grecord-gcc-switches, gno-strict-dwarf, gstrict-dwarf, gstabs,
3462 gstabs+, gtoggle, gvms, gxcoff, gxcoff+): Add Driver flag.
3464 2017-01-16 Uros Bizjak <ubizjak@gmail.com>
3466 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Apply HImode and
3467 QImode fixups to general and mask registers only.
3469 2017-01-16 Carl Love <cel@us.ibm.com>
3471 * config/rs6000/rs6000-c (altivec_overloaded_builtins): Add support
3472 for built-in functions
3473 vector signed char vec_nabs (vector signed char)
3474 vector signed short vec_nabs (vector signed short)
3475 vector signed int vec_nabs (vector signed int)
3476 vector signed long long vec_nabs (vector signed long long)
3477 vector float vec_nabs (vector float)
3478 vector double vec_nabs (vector double)
3479 * config/rs6000/rs6000-builtin.def: Add definitions for NABS functions
3481 * config/rs6000/altivec.md: New define_expand nabs<mode>2 types
3482 * config/rs6000/altivec.h: New define for vec_nabs built-in function.
3483 * doc/extend.texi: Update the documentation file for the new built-in
3486 2017-01-16 Martin Sebor <msebor@redhat.com>
3488 * gimple-ssa-sprintf.c (format_directive): Correct a typo in a warning
3491 2017-01-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3493 * config/rs6000/rs6000.c (rtx_is_swappable_p): Change
3494 UNSPEC_VSX__XXSPLTD to require special splat handling.
3496 2017-01-16 David Malcolm <dmalcolm@redhat.com>
3499 * system.h: Poison strndup.
3501 2017-01-16 Alan Modra <amodra@gmail.com>
3504 * config/rs6000/rs6000.c (rs6000_legitimate_combined_insn): Don't
3507 2017-01-16 Georg-Johann Lay <avr@gjlay.de>
3509 * config/avr/avr.h (BRANCH_COST) [reload_completed]: Increase by 4.
3511 2017-01-15 Uros Bizjak <ubizjak@gmail.com>
3513 * config/i386/i386.c (ix86_legitimate_combined_insn): Do not
3514 call recog here. Assert that INSN_CODE (insn) is non-negative.
3516 2017-01-15 Segher Boessenkool <segher@kernel.crashing.org>
3519 * cfgrtl.c (rtl_split_edge): Also patch jump insns that jump to the
3521 * haifa-sched.c (dump_insn_stream): Don't crash if there is a label
3522 in the currently scheduled RTL fragment.
3524 2017-01-15 Segher Boessenkool <segher@kernel.crashing.org>
3526 PR rtl-optimization/78751
3527 * ifcvt.c (find_cond_trap): If we generated a non-existing insn,
3530 2017-01-14 Jeff Law <law@redhat.com>
3532 PR tree-optimization/79090
3533 * tree-ssa-dse.c (valid_ao_ref_for_dse): Reject zero length and
3534 variable length stores.
3535 (compute_trims): Delete dead assignment to *trim_tail.
3536 (dse_dom_walker::dse_optimize_stmt): Optimize mem* calls with
3539 2017-01-14 Bernd Schmidt <bschmidt@redhat.com>
3541 PR rtl-optimization/78626
3542 PR rtl-optimization/78727
3543 * cprop.c (one_cprop_pass): Collect unconditional traps in the middle
3544 of a block, and split such blocks after everything else is finished.
3546 2017-01-14 Alan Modra <amodra@gmail.com>
3549 * combine.c (recog_for_combine_1): Set INSN_CODE before calling
3550 target legitimate_combined_insn.
3551 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_COMBINED_INSN): Define.
3552 (rs6000_legitimate_combined_insn): New function.
3553 * config/rs6000/rs6000.md (UNSPEC_DOLOOP): Delete, and remove
3555 (ctr<mode>_internal3): Rename from *ctr<mode>_internal5.
3556 (ctr<mode>_internal4): Rename from *ctr<mode>_internal6.
3557 (ctr<mode>_internal1, ctr<mode>_internal2): Remove '*' from name.
3559 2017-01-14 Gerald Pfeifer <gerald@pfeifer.com>
3561 * doc/frontends.texi (G++ and GCC): Remove references to Java.
3563 2017-01-13 Jeff Law <law@redhat.com>
3565 PR tree-optimization/33562
3566 PR tree-optimization/61912
3567 PR tree-optimization/77485
3568 * tree-ssa-dse.c (delete_dead_call): Accept gsi rather than
3570 (delete_dead_assignment): Likewise.
3571 (dse_dom_walker::dse_optimize_stmt): Pass in the gsi rather than
3572 statement to delete_dead_call and delete_dead_assignment.
3574 2017-01-13 David Malcolm <dmalcolm@redhat.com>
3577 * substring-locations.c (format_warning_va): Strengthen case 1 so
3578 that both endpoints of the substring must be within the format
3579 range for just the substring to be printed.
3581 2017-01-13 Uros Bizjak <ubizjak@gmail.com>
3583 * config/i386/i386.opt (msgx): Use ix86_isa_flags2 variable.
3584 * config/i386/i386.c (ix86_target_string): Add missing options
3585 to isa_opts and reorder options by implied ISAs. Rename isa_opts2 to
3586 isa2_opts, ix86_flag_opts to flag2_opts, ix86_target_other to
3587 flags_other and ix86_target_other to flags2_other. Display unknown
3589 (ix86_valid_target_attribute_inner_p): Add missing options and
3590 reorder options by implied ISAs, as in ix86_target_string.
3592 2017-01-13 Richard Sandiford <richard.sandiford@arm.com>
3594 * hash-table.h (hash_table::too_empty_p): New function.
3595 (hash_table::expand): Use it.
3596 (hash_table::traverse): Likewise.
3597 (hash_table::empty_slot): Use sizeof (value_type) instead of
3598 sizeof (PTR) to convert bytes to elements. Shrink the table
3599 if the current size is excessive for the current number of
3602 2017-01-13 Richard Sandiford <richard.sandiford@arm.com>
3604 * ira-costs.c (record_reg_classes): Break from the inner loop
3605 early once alt_fail is known to be true. Update outer loop
3606 handling accordingly.
3608 2017-01-13 Jeff Law <law@redhat.com>
3610 * tree-ssa-dse.c (decrement_count): New function.
3611 (increment_start_addr, maybe_trim_memstar_call): Likewise.
3612 (dse_dom_walker::optimize_stmt): Call maybe_trim_memstar_call directly
3613 when we know the partially dead statement is a mem* function.
3615 PR tree-optimization/61912
3616 PR tree-optimization/77485
3617 * tree-ssa-dse.c: Include expr.h.
3618 (maybe_trim_constructor_store): New function.
3619 (maybe_trim_partially_dead_store): Call maybe_trim_constructor_store.
3621 PR tree-optimization/33562
3622 PR tree-optimization/61912
3623 PR tree-optimization/77485
3624 * doc/invoke.texi: Document new dse-max-object-size param.
3625 * params.def (PARM_DSE_MAX_OBJECT_SIZE): New PARAM.
3626 * tree-ssa-dse.c: Include params.h.
3627 (dse_store_status): New enum.
3628 (initialize_ao_ref_for_dse): New, partially extracted from
3630 (valid_ao_ref_for_dse, normalize_ref): New.
3631 (setup_live_bytes_from_ref, compute_trims): Likewise.
3632 (clear_bytes_written_by, maybe_trim_complex_store): Likewise.
3633 (maybe_trim_partially_dead_store): Likewise.
3634 (maybe_trim_complex_store): Likewise.
3635 (dse_classify_store): Renamed from dse_possibly_dead_store_p.
3636 Track what bytes live from the original store. Return tri-state
3637 for dead, partially dead or live.
3638 (dse_dom_walker): Add constructor, destructor and new private members.
3639 (delete_dead_call, delete_dead_assignment): New extracted from
3641 (dse_optimize_stmt): Make a member of dse_dom_walker.
3642 Use initialize_ao_ref_for_dse.
3644 PR tree-optimization/33562
3645 PR tree-optimization/61912
3646 PR tree-optimization/77485
3647 * sbitmap.h (bitmap_count_bits): Prototype.
3648 (bitmap_clear_range, bitmap_set_range): Likewise.
3649 * sbitmap.c (bitmap_clear_range): New function.
3650 (bitmap_set_range, sbitmap_popcount, bitmap_count_bits): Likewise.
3652 2017-01-13 Martin Liska <mliska@suse.cz>
3655 * function.c (set_cfun): Add new argument force.
3656 * function.h (set_cfun): Likewise.
3657 * ipa-inline-transform.c (inline_call): Use the function when
3658 strict alising from is dropped for function we inline to.
3660 2017-01-13 Richard Biener <rguenther@suse.de>
3662 * tree-pretty-print.c (dump_generic_node): Fix inverted condition
3663 for dumping GIMPLE INTEGER_CSTs.
3665 2017-01-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3667 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define __STDC_VERSION__
3668 to 201112L since C++17.
3670 2017-01-13 Maxim Ostapenko <m.ostapenko@samsung.com>
3673 * asan.c (asan_needs_odr_indicator_p): Don't emit ODR indicators
3674 if -fsanitize=kernel-address is present.
3676 2017-01-13 Richard Biener <rguenther@suse.de>
3678 * tree-pretty-print.c (dump_generic_node): Dump INTEGER_CSTs
3679 as _Literal ( type ) number in case usual suffixes do not
3680 preserve all information.
3682 2017-01-13 Richard Biener <rguenther@suse.de>
3684 PR tree-optimization/77283
3685 * gimple-ssa-split-paths.c: Include gimple-ssa.h, tree-phinodes.h
3686 and ssa-iterators.h.
3687 (is_feasible_trace): Implement a cost model based on joiner
3690 2017-01-12 Michael Meissner <meissner@linux.vnet.ibm.com>
3693 * config/rs6000/rs6000.md (FP_ISA3): Do not optimize converting
3694 char or short to __float128/_Float128 directly.
3696 2017-01-12 Martin Sebor <msebor@redhat.com>
3698 to -Wformat-overflow.
3699 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust.
3700 (min_bytes_remaining): Same.
3701 (get_string_length): Same.
3702 (format_string): Same.
3703 (format_directive): Same.
3705 (pass_sprintf_length::handle_gimple_call): Same.
3707 2017-01-12 Jakub Jelinek <jakub@redhat.com>
3709 * gimple-ssa-sprintf.c (try_substitute_return_value): Remove
3710 info.nowrite calls with no lhs that can't throw. Return bool
3711 whether gsi_remove has been called or not.
3712 (pass_sprintf_length::handle_gimple_call): Return bool whether
3713 try_substitute_return_value called gsi_remove. Formatting fix.
3714 (pass_sprintf_length::execute): Don't use gsi_remove if
3715 handle_gimple_call returned true.
3718 * cfgrtl.c (rtl_tidy_fallthru_edge): For any_uncondjump_p that can't
3719 be removed due to side-effects, don't remove following barrier nor
3720 turn the successor edge into fallthru edge.
3722 2017-01-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3725 * config/rs6000/rs6000.c (insn_is_swappable_p): Mark
3726 element-reversing loads and stores as not swappable.
3728 2017-01-12 Nathan Sidwell <nathan@acm.org>
3729 Nicolai Stange <nicstange@gmail.com>
3731 * combine.c (try_combine): Don't ignore result of overlap checking
3732 loop. Combine overlap & asm check into single loop.
3734 2017-01-12 Richard Biener <rguenther@suse.de>
3736 * tree-pretty-print.c (dump_generic_node): Provide -gimple
3737 variant for MEM_REF. Sanitize INTEGER_CST for -gimple.
3739 2017-01-12 Richard Biener <rguenther@suse.de>
3741 * tree.c (initialize_tree_contains_struct): Make TS_OPTIMIZATION
3742 and TS_TARGET_OPTION directly derive from TS_BASE.
3743 * tree-core.h (tree_optimization_option): Derive from tree_base.
3744 (tree_target_option): Likewise.
3746 2017-01-11 Uros Bizjak <ubizjak@gmail.com>
3748 * config/i386/i386.c (memory_address_length): Increase len
3749 only when rip_relative_addr_p returns false.
3751 2017-01-11 Julia Koval <julia.koval@intel.com>
3753 * common/config/i386/i386-common.c (OPTION_MASK_ISA_SGX_UNSET): New.
3754 (OPTION_MASK_ISA_SGX_SET): New.
3755 (ix86_handle_option): Handle OPT_msgx.
3756 * config.gcc: Added sgxintrin.h.
3757 * config/i386/driver-i386.c (host_detect_local_cpu): Detect sgx.
3758 * config/i386/i386-c.c (ix86_target_macros_internal): Define __SGX__.
3759 * config/i386/i386.c (ix86_target_string): Add -msgx.
3761 (ix86_option_override_internal): Handle new options.
3762 (ix86_valid_target_attribute_inner_p): Add sgx.
3763 * config/i386/i386.h (TARGET_SGX, TARGET_SGX_P): New.
3764 * config/i386/i386.opt: Add msgx.
3765 * config/i386/sgxintrin.h: New file.
3766 * config/i386/x86intrin.h: Add sgxintrin.h.
3768 2017-01-11 Jakub Jelinek <jakub@redhat.com>
3771 * fold-const.c (maybe_nonzero_address): Return 1 for function
3773 (tree_single_nonzero_warnv_p): Don't handle function local objects
3777 * gcc.c (default_compilers): Don't add -o %g.s for -S -save-temps
3780 2017-01-11 David Malcolm <dmalcolm@redhat.com>
3783 * opts.c: Include "spellcheck.h"
3784 (struct string_fragment): New struct.
3785 (struct edit_distance_traits<const string_fragment &>): New
3787 (get_closest_sanitizer_option): New function.
3788 (parse_sanitizer_options): Offer suggestions for unrecognized arguments.
3790 2017-01-11 Jakub Jelinek <jakub@redhat.com>
3792 * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): For DWARF5 decrease
3794 (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): Always
3795 DWARF_COMPILE_UNIT_HEADER_SIZE plus 12.
3796 (DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE): Define.
3797 (calc_base_type_die_sizes): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE
3798 for initial die_offset if dwarf_split_debug_info.
3799 (output_comp_unit): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE for
3800 initial next_die_offset if dwo_id is non-NULL. Don't emit padding
3802 (output_skeleton_debug_sections): Formatting fix. Use
3803 DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE instead of
3804 DWARF_COMPILE_UNIT_HEADER_SIZE. Don't emit padding.
3806 2017-01-11 Wilco Dijkstra <wdijkstr@arm.com>
3808 * config/arm/cortex-a53.md: Add bypasses for
3810 (cortex_a53_r2f): Only use for transfers.
3811 (cortex_a53_f2r): Likewise.
3812 (cortex_a53_r2f_cvt): Add reservation for conversions.
3813 (cortex_a53_f2r_cvt): Likewise.
3815 2017-01-11 Tamar Christina <tamar.christina@arm.com>
3817 * config/arm/arm_neon.h: Add __artificial__ and gnu_inline
3818 to all inlined functions, change static to extern.
3820 2017-01-11 Christophe Lyon <christophe.lyon@linaro.org>
3823 * config/arm/arm.c (legitimize_pic_address): Handle reference to
3825 (arm_assemble_integer): Likewise.
3827 2017-01-11 Richard Earnshaw <rearnsha@arm.com>
3829 * config.gcc: Use new awk script to check CPU, FPU and architecture
3830 parameters for --with-... options.
3831 * config/arm/parsecpu.awk: New file
3832 * config/arm/arm-cpus.in: New file.
3833 * config/arm/arm-opts.h: Include arm-cpu.h instead of processing .def
3835 * config/arm/arm.c: Include arm-cpu-data.h instead of processing .def
3837 * config/arm/t-arm: Update dependency rules.
3838 * common/config/arm/arm-common.c: Include arm-cpu-cdata.h instead
3839 of processing .def files.
3840 * config/arm/genopt.sh: Deleted.
3841 * config/arm/gentune.sh: Deleted.
3842 * config/arm/arm-cores.def: Deleted.
3843 * config/arm/arm-arches.def: Deleted.
3844 * config/arm/arm-fpus.def: Deleted.
3845 * config/arm/arm-tune.md: Regenerated.
3846 * config/arm/arm-tables.opt: Regenerated.
3847 * config/arm/arm-cpu.h: New generated file.
3848 * config/arm/arm-cpu-data.h: New generated file.
3849 * config/arm/arm-cpu-cdata.h: New generated file.
3851 2017-01-11 Maxim Ostapenko <m.ostapenko@samsung.com>
3854 * lto-cgraph.c (lto_output_varpool_node): Pack dynamically_initialized
3856 (input_varpool_node): Unpack dynamically_initialized bit.
3858 2017-01-11 Eric Botcazou <ebotcazou@adacore.com>
3860 PR rtl-optimization/79032
3861 * lra-constraints.c (simplify_operand_subreg): In the MEM case, test
3862 the alignment of the adjusted memory reference against that of MODE,
3863 instead of the alignment of the original memory reference.
3865 2017-01-11 Martin Jambor <mjambor@suse.cz>
3867 * hsa.c (hsa_callable_function_p): Revert addition of DECL_ARTIFICIAL
3869 * ipa-hsa.c (process_hsa_functions): Only duplicate non-artificial
3870 decorated functions.
3872 2017-01-11 Richard Biener <rguenther@suse.de>
3874 * tree-vrp.c (evrp_dom_walker::before_dom_children): Also
3875 set range/nonnull info for PHI results. Do not set it on
3876 stmts marked for removal.
3878 2017-01-10 Eric Botcazou <ebotcazou@adacore.com>
3880 * expr.c (store_field): In the bitfield case, fetch the return value
3881 from the registers before applying a single big-endian adjustment.
3882 Always do a final load for a BLKmode value not larger than a word.
3884 2017-01-10 David Malcolm <dmalcolm@redhat.com>
3887 * input.c (selftest::test_accessing_ordinary_linemaps): Verify
3888 that we correctly handle column numbers greater than
3889 LINE_MAP_MAX_COLUMN_NUMBER.
3891 2017-01-10 Martin Sebor <msebor@redhat.com>
3894 * gimple-ssa-sprintf.c (get_destination_size): Call
3895 {init,fini}object_sizes.
3896 * tree-object-size.c (addr_object_size): Adjust.
3897 (pass_through_call): Adjust.
3898 (pass_object_sizes::execute): Adjust.
3899 * tree-object-size.h (fini_object_sizes): Declare.
3901 2017-01-10 Martin Sebor <msebor@redhat.com>
3903 PR tree-optimization/78775
3904 * builtins.c (get_size_range): Move...
3905 * calls.c: ...to here.
3906 (alloc_max_size): Accept zero argument.
3907 (operand_signed_p): Remove.
3908 (maybe_warn_alloc_args_overflow): Call get_size_range.
3909 * calls.h (get_size_range): Declare.
3911 2017-01-10 Joe Seymour <joe.s@somniumtech.com>
3913 * config/msp430/driver-msp430.c (msp430_mcu_data): Sync with data
3914 from TI's devices.csv file as of September 2016.
3915 * config/msp430/msp430.c (msp430_mcu_data): Likewise.
3917 2017-01-10 Sandra Loosemore <sandra@codesourcery.com>
3919 * doc/extend.texi: Tweak formatting to fix overfull hbox warnings.
3920 * doc/invoke.texi: Likewise.
3921 * doc/md.texi: Likewise.
3922 * doc/objc.texi: Likewise.
3924 2017-01-10 Joshua Conner <joshconner@google.com>
3926 * config/arm/fuchsia-elf.h: New file.
3927 * config/fuchsia.h: New file.
3928 * config.gcc (*-*-fuchsia*): Set native_system_header_dir.
3929 (aarch64*-*-fuchsia*, arm*-*-fuchsia*, x86_64-*-fuchsia*): Add to
3931 * config.host: (aarch64*-*-fuchsia*, arm*-*-fuchsia*): Add to hosts.
3933 2016-01-10 Richard Biener <rguenther@suse.de>
3935 PR tree-optimization/79034
3936 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
3937 Propagate out degenerate PHIs in the joiner.
3939 2017-01-10 Martin Liska <mliska@suse.cz>
3941 * ipa-icf.c (sort_sem_items_by_decl_uid): New function.
3942 (sort_congruence_classes_by_decl_uid): Likewise.
3943 (sort_congruence_class_groups_by_decl_uid): Likewise.
3944 (sem_item_optimizer::merge_classes): Sort class, groups in these
3945 classes and members in the groups by DECL_UID of declarations.
3946 This would make merge operations stable.
3948 2017-01-10 Martin Liska <mliska@suse.cz>
3950 * ipa-icf.c (sem_item_optimizer::sem_item_optimizer): Remove
3951 usage of m_classes_vec.
3952 (sem_item_optimizer::~sem_item_optimizer): Likewise.
3953 (sem_item_optimizer::get_group_by_hash): Likewise.
3954 (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
3955 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): Likewise.
3956 (sem_item_optimizer::verify_classes): Likewise.
3957 (sem_item_optimizer::process_cong_reduction): Likewise.
3958 (sem_item_optimizer::dump_cong_classes): Likewise.
3959 (sem_item_optimizer::merge_classes): Likewise.
3960 * ipa-icf.h (congruence_class_hash): Rename from
3961 congruence_class_group_hash. Remove declaration of m_classes_vec.
3963 2017-01-10 Andrew Senkevich <andrew.senkevich@intel.com>
3965 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VPOPCNTDQ_SET,
3966 OPTION_MASK_ISA_AVX512VPOPCNTDQ_UNSET): New.
3967 * config.gcc: Add avx512vpopcntdqintrin.h.
3968 * config/i386/avx512vpopcntdqintrin.h: New.
3969 * config/i386/cpuid.h (bit_AVX512VPOPCNTDQ): New.
3970 * config/i386/i386-builtin-types.def: Add new types.
3971 * config/i386/i386-builtin.def (__builtin_ia32_vpopcountd_v16si,
3972 __builtin_ia32_vpopcountd_v16si_mask, __builtin_ia32_vpopcountq_v8di,
3973 __builtin_ia32_vpopcountq_v8di_mask): New.
3974 * config/i386/i386-c.c (ix86_target_macros_internal): Define
3975 __AVX512VPOPCNTDQ__.
3976 * config/i386/i386.c (ix86_target_string): Add -mavx512vpopcntdq.
3977 (PTA_AVX512VPOPCNTDQ): Define.
3978 * config/i386/i386.h (TARGET_AVX512VPOPCNTDQ,
3979 TARGET_AVX512VPOPCNTDQ_P): Define.
3980 * config/i386/i386.opt: Add mavx512vpopcntdq.
3981 * config/i386/immintrin.h: Include avx512vpopcntdqintrin.h.
3982 * config/i386/sse.md (define_insn "vpopcount<mode><mask_name>"): New.
3984 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
3987 * predict.def (PRED_CALL): Set to 67.
3989 2017-01-09 Eric Botcazou <ebotcazou@adacore.com>
3991 * expr.c (store_field): In the bitfield case, if the value comes from
3992 a function call and is of an aggregate type returned in registers, do
3993 not modify the field mode; extract the value in all cases if the mode
3994 is BLKmode and the size is not larger than a word.
3996 2017-01-09 Dominique d'Humieres <dominiq@lps.ens.fr>
3999 * config/i386/cpuid.h: Fix undefined behavior.
4001 2017-01-04 Jeff Law <law@redhat.com>
4003 PR tree-optimization/79007
4004 PR tree-optimization/67955
4005 * tree-ssa-alias.c (same_addr_size_stores_p): Only need to be
4006 conservative for pt.null when flag_non_call_exceptions is on.
4008 2017-01-09 Jakub Jelinek <jakub@redhat.com>
4010 PR translation/79019
4011 PR translation/79020
4012 * params.def (PARAM_INLINE_MIN_SPEEDUP,
4013 PARAM_IPA_CP_SINGLE_CALL_PENALTY,
4014 PARAM_USE_AFTER_SCOPE_DIRECT_EMISSION_THRESHOLD): Fix typos
4016 * config/avr/avr.opt (maccumulate-args): Likewise.
4017 * config/msp430/msp430.opt (mwarn-mcu): Likewise.
4018 * common.opt (freport-bug): Likewise.
4019 * cif-code.def (CIF_FINAL_ERROR): Likewise.
4020 * doc/invoke.texi (ipa-cp-single-call-penalty): Likewise.
4021 * config/s390/s390.c (s390_invalid_binary_op): Fix spelling in
4022 translatable string.
4023 * config/i386/i386.c (function_value_32): Likewise.
4024 * config/nios2/nios2.c (nios2_valid_target_attribute_rec): Likewise.
4025 * config/msp430/msp430.c (msp430_option_override, msp430_attr):
4027 * config/msp430/driver-msp430.c (msp430_select_hwmult_lib): Likewise.
4028 * common/config/msp430/msp430-common.c (msp430_handle_option):
4030 * symtab.c (symtab_node::verify_base): Likewise.
4031 * opts.c (set_debug_level): Likewise.
4032 * tree.c (verify_type_variant): Likewise. Fix typo in comment.
4033 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
4034 missing whitespace to translatable strings.
4035 * config/avr/avr.md (bswapsi2): Fix typo in comment.
4036 * config/sh/superh.h: Likewise.
4037 * config/i386/xopintrin.h: Likewise.
4038 * config/i386/znver1.md: Likewise.
4039 * config/rs6000/rs6000.c (struct rs6000_opt_mask): Likewise.
4040 * ipa-inline-analysis.c (compute_inline_parameters): Likewise.
4041 * double-int.h (struct double_int): Likewise.
4042 * double-int.c (div_and_round_double): Likewise.
4043 * wide-int.cc: Likewise.
4044 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
4045 * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
4046 * cfgcleanup.c (crossjumps_occured): Renamed to ...
4047 (crossjumps_occurred): ... this.
4048 (try_crossjump_bb, try_head_merge_bb, try_optimize_cfg, cleanup_cfg):
4051 PR tree-optimization/78899
4052 * tree-if-conv.c (version_loop_for_if_conversion): Instead of
4053 returning bool return struct loop *, NULL for failure and the new
4055 (versionable_outer_loop_p): Don't version outer loop if it has
4056 dont_vectorized bit set.
4057 (tree_if_conversion): When versioning outer loop, ensure
4058 tree_if_conversion is performed also on the inner loop of the
4059 non-vectorizable outer loop copy.
4060 * tree-vectorizer.c (set_uid_loop_bbs): Formatting fix. Fold
4061 LOOP_VECTORIZED in inner loop of the scalar outer loop and
4062 prevent vectorization of it.
4063 (vectorize_loops): For outer + inner LOOP_VECTORIZED, ensure
4064 the outer loop vectorization of the non-scalar version is attempted
4065 before vectorization of the inner loop in scalar version. If
4066 outer LOOP_VECTORIZED guarded loop is not vectorized, prevent
4067 vectorization of its inner loop.
4068 * tree-vect-loop-manip.c (rename_variables_in_bb): If outer_loop
4069 has 2 inner loops, rename also on edges from bb whose single pred
4070 is outer_loop->header. Fix typo in function comment.
4072 2017-01-09 Martin Sebor <msebor@redhat.com>
4075 * asan.c (asan_emit_stack_protection): Increase local buffer size
4076 to avoid snprintf truncation warning.
4078 2017-01-09 Andrew Pinski <apinski@cavium.com>
4080 * config/aarch64/aarch64-cores.def: Add thunderx2t99. Change vulcan
4081 to reference thunderx2t99 for the tuning structure
4082 * config/aarch64/aarch64-cost-tables.h (vulcan_extra_costs):
4084 (thunderx2t99_extra_costs): This.
4085 * config/aarch64/aarch64-tune.md: Regenerate.
4086 * config/aarch64/aarch64.c (vulcan_addrcost_table): Rename to ...
4087 (vulcan_addrcost_table): This.
4088 (vulcan_regmove_cost): Rename to ...
4089 (thunderx2t99_regmove_cost): This.
4090 (vulcan_vector_cost): Rename to ...
4091 (thunderx2t99_vector_cost): this.
4092 (vulcan_branch_cost): Rename to ...
4093 (thunderx2t99_branch_cost): This.
4094 (vulcan_tunings): Rename to ...
4095 (thunderx2t99_tunings): This and s/vulcan/thunderx2t99 .
4096 * doc/invoke.texi (AARCH64/mtune): Add thunderx2t99.
4098 2017-01-09 Martin Jambor <mjambor@suse.cz>
4102 * ipa-prop.h (ipa_jump_func): Swap positions of vr_known and m_vr.
4103 * ipa-cp.c (ipa_vr_operation_and_type_effects): New function.
4104 (propagate_vr_accross_jump_function): Use the above function for all
4105 value range computations for pass-through jump functions and type
4106 converasion from explicit value range values.
4107 (ipcp_propagate_stage): Do not attempt to deduce types of formal
4108 parameters from TYPE_ARG_TYPES.
4109 * ipa-prop.c (ipa_write_jump_function): Remove trailing whitespace.
4110 (ipa_write_node_info): Stream type of the actual argument.
4111 (ipa_read_node_info): Likewise. Also remove trailing whitespace.
4113 2017-01-09 Martin Liska <mliska@suse.cz>
4116 * gcc.c (driver_handle_option): Handle OPT_E and set have_E.
4117 (lookup_compiler): Do not show error message with have_E.
4119 2017-01-09 Jakub Jelinek <jakub@redhat.com>
4121 PR tree-optimization/78938
4122 * tree-vect-stmts.c (vectorizable_condition): For non-masked COND_EXPR
4123 where comp_vectype is VECTOR_BOOLEAN_TYPE_P, use
4124 BIT_{NOT,XOR,AND,IOR}_EXPR on the comparison operands instead of
4125 {EQ,NE,GE,GT,LE,LT}_EXPR directly inside of VEC_COND_EXPR. Formatting
4128 2017-01-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4130 * tree-ssa-address.c (gen_addr_rtx): Don't handle index if it
4133 2017-01-09 Richard Biener <rguenther@suse.de>
4135 PR tree-optimization/78997
4136 * tree-vect-slp.c (vect_mask_constant_operand_p): Handle SSA
4137 name condition properly.
4139 2017-01-09 Richard Biener <rguenther@suse.de>
4142 * dwarf2out.c (is_cxx): New overload with context.
4143 (is_naming_typedef_decl): Use it.
4145 2017-01-08 Sandra Loosemore <sandra@codesourcery.com>
4147 * invoke.texi (Option Summary): Correct spacing in option lists
4148 and add line breaks to fix over-long lines.
4150 2017-01-08 Sandra Loosemore <sandra@codesourcery.com>
4154 * extend.texi (Common Variable Attributes): Add xref to GCC
4155 Internals manual to explain mode attribute keywords.
4157 2017-01-08 Sandra Loosemore <sandra@codesourcery.com>
4160 * doc/invoke.texi (Option Summary): Move -pthread to Linker Options
4161 and Preprocessor Options.
4162 (Options for Linking): Document -pthread here....
4163 (RS/6000 and PowerPC Options): ...not here.
4164 (Solaris 2 Options): ...or here.
4165 * doc/cppopts.texi: Document -pthread.
4167 2017-01-08 Martin Sebor <msebor@redhat.com>
4170 * doc/invoke.texi (Warning Options): Document -Wformat-truncation.
4171 * gimple-ssa-sprintf.c (call_info::reval_used, call_info::warnopt):
4172 New member functions.
4173 (format_directive): Used them.
4175 (pass_sprintf_length::handle_gimple_call): Same.
4176 * graphite-sese-to-poly.c (tree_int_to_gmp): Increase buffer size
4177 to avoid truncation for any argument.
4178 (extract_affine_mul): Same.
4179 * tree.c (get_file_function_name): Same.
4181 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
4184 * predict.def (PRED_INDIR_CALL): Set to 86.
4186 2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
4188 PR preprocessor/54124
4189 * doc/cppopts.texi: Reformat -d subtable to list the full name
4190 of the options. Add cross-reference to the docs for the general
4191 compiler -d options.
4192 * doc/invoke.texi (Developer Options): Add cross-reference to the
4193 preprocessor-specific -d option documentation.
4195 2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
4197 PR preprocessor/13498
4198 * doc/cpp.texi (Search Path): Rewrite to remove obsolete and
4199 redudant material, and reflect new command-line options.
4200 (System Headers): Likewise.
4202 2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
4204 * doc/cppdiropts.texi: Merge documentation of -I, -iquote,
4205 -isystem, and -idirafter. Copy-edit.
4206 * doc/cppopts.texi: Copy-edit. Remove contradiction about
4207 default for -ftrack-macro-expansion. Delete obsolete and
4208 badly-formatted implementation details about -fdebug-cpp output.
4209 * doc/cppwarnopts.texi: Copy-edit.
4211 2017-01-07 David Malcolm <dmalcolm@redhat.com>
4214 * input.c (selftest::test_accessing_ordinary_linemaps): Verify
4215 that the transition from a max line width >= 1<<10 to narrower
4216 lines works correctly.
4218 2017-01-07 Alexandre Oliva <aoliva@redhat.com>
4220 * doc/options.texi (PerFunction): New.
4221 * opt-functions.awk (switch_flags): Map both Optimization and
4222 PerFunction to CL_OPTIMIZATION.
4223 * opth-gen.awk: Test for PerFunction flag along with
4225 * optc-save-gen.awk: Likewise. Introduce var_opt_hash and set
4226 it only when the latter is present. Skip those that don't in
4227 the hash function generator.
4228 * common.opt (fvar-tracking): Mark as PerFunction instead of
4230 (fvar-tracking-assignments): Likewise.
4231 (fvar-tracking-assignments-toggle): Likewise.
4232 (fvar-tracking-uninit): Likewise.
4234 2017-01-07 Jakub Jelinek <jakub@redhat.com>
4236 PR translation/79018
4237 * params.def (PARAM_MAX_STORES_TO_MERGE): Add missing space between
4240 2017-01-06 Mikael Pettersson <mikpelinux@gmail.com>
4243 * config/m68k/m68k.opt (LONG_JUMP_TABLE_OFFSETS): New option.
4244 * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Handle
4245 TARGET_LONG_JUMP_TABLE_OFFSETS.
4246 * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
4247 * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
4248 * config/m68k/m68k.h (CASE_VECTOR_MODE): Likewise.
4249 (ASM_OUTPUT_ADDR_DIFF_ELF): Likewise.
4250 * config/m68k/m68k.md (tablejump expander): Likewise.
4251 (*tablejump_pcrel_hi): Renamed from unnamed insn, reject
4252 TARGET_LONG_JUMP_TABLE_OFFSETS.
4253 (*tablejump_pcrel_si): New insn, handle TARGET_LONG_JUMP_TABLE_OFFSETS.
4254 * doc/invoke.texi (M68K options): Add -mlong-jump-table-offsets.
4256 2017-01-06 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
4257 David Holsgrove <david.holsgrove@xilinx.com>
4259 * common/config/microblaze/microblaze-common.c
4260 (TARGET_EXCEPT_UNWIND_INFO): Remove.
4261 * config/microblaze/microblaze-protos.h (microblaze_eh_return):
4263 * config/microblaze/microblaze.c (microblaze_must_save_register)
4264 (microblaze_expand_epilogue, microblaze_return_addr): Handle
4266 (microblaze_eh_return): New function.
4267 * config/microblaze/microblaze.h (RETURN_ADDR_OFFSET)
4268 (EH_RETURN_DATA_REGNO, MB_EH_STACKADJ_REGNUM)
4269 (EH_RETURN_STACKADJ_RTX, ASM_PREFERRED_EH_DATA_FORMAT): New macros.
4270 * config/microblaze/microblaze.md (eh_return): New pattern.
4272 2017-01-06 Jakub Jelinek <jakub@redhat.com>
4274 * system.h (GCC_DIAGNOSTIC_PUSH_IGNORED, GCC_DIAGNOSTIC_POP,
4275 GCC_DIAGNOSTIC_STRINGIFY): Define.
4277 * read-rtl.c (rtx_reader::read_rtx_code): Avoid -Wsign-compare warning.
4279 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
4281 * config/arm/arm.md (<mcrr>): New.
4283 * config/arm/arm.c (arm_arch5te): New.
4284 (arm_option_override): Set arm_arch5te.
4285 (arm_coproc_builtin_available): Add support for mcrr, mcrr2, mrrc
4287 * config/arm/arm-builtins.c (MCRR_QUALIFIERS): Define to...
4288 (arm_mcrr_qualifiers): ... this. New.
4289 (MRRC_QUALIFIERS): Define to...
4290 (arm_mrrc_qualifiers): ... this. New.
4291 * config/arm/arm_acle.h (__arm_mcrr, __arm_mcrr2, __arm_mrrc,
4293 * config/arm/arm_acle_builtins.def (mcrr, mcrr2, mrrc, mrrc2): New.
4294 * config/arm/iterators.md (MCRRI, mcrr, MCRR): New.
4295 (MRRCI, mrrc, MRRC): New.
4296 * config/arm/unspecs.md (VUNSPEC_MCRR, VUNSPEC_MCRR2, VUNSPEC_MRRC,
4297 VUNSPEC_MRRC2): New.
4299 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
4301 * config/arm/arm.md (<mcr>): New.
4303 * config/arm/arm.c (arm_coproc_builtin_available): Add
4304 support for mcr, mrc, mcr2 and mrc2.
4305 * config/arm/arm-builtins.c (MCR_QUALIFIERS): Define to...
4306 (arm_mcr_qualifiers): ... this. New.
4307 (MRC_QUALIFIERS): Define to ...
4308 (arm_mrc_qualifiers): ... this. New.
4309 (MCR_QUALIFIERS): Define to ...
4310 (arm_mcr_qualifiers): ... this. New.
4311 * config/arm/arm_acle.h (__arm_mcr, __arm_mrc, __arm_mcr2,
4313 * config/arm/arm_acle_builtins.def (mcr, mcr2, mrc, mrc2): New.
4314 * config/arm/iterators.md (MCRI, mcr, MCR, MRCI, mrc, MRC): New.
4315 * config/arm/unspecs.md (VUNSPEC_MCR, VUNSPEC_MCR2, VUNSPEC_MRC,
4318 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
4320 * config/arm/arm.md (*ldc): New.
4324 * config/arm/arm.c (arm_coproc_builtin_available): Add
4325 support for ldc,ldcl,stc,stcl,ldc2,ldc2l,stc2 and stc2l.
4326 (arm_coproc_ldc_stc_legitimate_address): New.
4327 * config/arm/arm-builtins.c (arm_type_qualifiers): Add
4328 'qualifier_const_pointer'.
4329 (LDC_QUALIFIERS): Define to...
4330 (arm_ldc_qualifiers): ... this. New.
4331 (STC_QUALIFIERS): Define to...
4332 (arm_stc_qualifiers): ... this. New.
4333 * config/arm/arm-protos.h
4334 (arm_coproc_ldc_stc_legitimate_address): New.
4335 * config/arm/arm_acle.h (__arm_ldc, __arm_ldcl, __arm_stc,
4336 __arm_stcl, __arm_ldc2, __arm_ldc2l, __arm_stc2, __arm_stc2l): New.
4337 * config/arm/arm_acle_builtins.def (ldc, ldc2, ldcl, ldc2l, stc,
4338 stc2, stcl, stc2l): New.
4339 * config/arm/constraints.md (Uz): New.
4340 * config/arm/iterators.md (LDCI, STCI, ldc, stc, LDC STC): New.
4341 * config/arm/unspecs.md (VUNSPEC_LDC, VUNSPEC_LDC2, VUNSPEC_LDCL,
4342 VUNSPEC_LDC2L, VUNSPEC_STC, VUNSPEC_STC2, VUNSPEC_STCL,
4343 VUNSPEC_STC2L): New.
4345 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
4347 * config/arm/arm.md (<cdp>): New.
4348 * config/arm/arm.c (neon_const_bounds): Rename this ...
4349 (arm_const_bounds): ... this.
4350 (arm_coproc_builtin_available): New.
4351 * config/arm/arm-builtins.c (SIMD_MAX_BUILTIN_ARGS): Increase.
4352 (arm_type_qualifiers): Add 'qualifier_unsigned_immediate'.
4353 (CDP_QUALIFIERS): Define to...
4354 (arm_cdp_qualifiers): ... this. New.
4356 (arm_expand_builtin_args): Add case for 6 arguments.
4357 * config/arm/arm-protos.h (neon_const_bounds): Rename this ...
4358 (arm_const_bounds): ... this.
4359 (arm_coproc_builtin_available): New.
4360 * config/arm/arm_acle.h (__arm_cdp): New.
4362 * config/arm/arm_acle_builtins.def (cdp): New.
4364 * config/arm/iterators.md (CDPI,CDP,cdp): New.
4365 * config/arm/neon.md: Rename all 'neon_const_bounds' to
4367 * config/arm/types.md (coproc): New.
4368 * config/arm/unspecs.md (VUNSPEC_CDP, VUNSPEC_CDP2): New.
4369 * gcc/doc/extend.texi (ACLE): Add a mention of Coprocessor intrinsics.
4370 * gcc/doc/sourcebuild.texi (arm_coproc1_ok, arm_coproc2_ok,
4371 arm_coproc3_ok, arm_coproc4_ok): Document new effective targets.
4373 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
4375 * config/arm/arm-builtins.c (arm_unsigned_binop_qualifiers): New.
4376 (UBINOP_QUALIFIERS): New.
4378 (acle_builtin_data): New. Change comment.
4379 (arm_builtins): Remove ARM_BUILTIN_CRC32B, ARM_BUILTIN_CRC32H,
4380 ARM_BUILTIN_CRC32W, ARM_BUILTIN_CRC32CB, ARM_BUILTIN_CRC32CH,
4381 ARM_BUILTIN_CRC32CW. Add ARM_BUILTIN_ACLE_BASE and include
4382 arm_acle_builtins.def.
4383 (ARM_BUILTIN_ACLE_PATTERN_START): Define.
4384 (arm_init_acle_builtins): New.
4385 (CRC32_BUILTIN): Remove.
4386 (bdesc_2arg): Remove entries for crc32b, crc32h, crc32w,
4387 crc32cb, crc32ch and crc32cw.
4388 (arm_init_crc32_builtins): Remove.
4389 (arm_init_builtins): Use arm_init_acle_builtins rather
4390 than arm_init_crc32_builtins.
4391 (arm_expand_acle_builtin): New.
4392 (arm_expand_builtin): Use 'arm_expand_acle_builtin'.
4393 * config/arm/arm_acle_builtins.def: New.
4395 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
4397 * config/arm/arm-builtins.c (neon_builtin_datum): Rename to ..
4398 (arm_builtin_datum): ... this.
4399 (arm_init_neon_builtin): Rename to ...
4400 (arm_init_builtin): ... this. Add a new parameters PREFIX
4401 and USE_SIG_IN_NAME.
4402 (arm_init_neon_builtins): Replace 'arm_init_neon_builtin' with
4403 'arm_init_builtin'. Replace type 'neon_builtin_datum' with
4404 'arm_builtin_datum'.
4405 (arm_init_vfp_builtins): Likewise.
4406 (builtin_arg): Rename enum's replacing 'NEON_ARG' with
4407 'ARG_BUILTIN' and add a 'ARG_BUILTIN_NEON_MEMORY.
4408 (arm_expand_neon_args): Rename to ...
4409 (arm_expand_builtin_args): ... this. Rename builtin_arg
4410 enum values and differentiate between ARG_BUILTIN_MEMORY
4411 and ARG_BUILTIN_NEON_MEMORY.
4412 (arm_expand_neon_builtin_1): Rename to ...
4413 (arm_expand_builtin_1): ... this. Rename builtin_arg enum
4414 values, arm_expand_builtin_args and add bool parameter NEON.
4415 (arm_expand_neon_builtin): Use arm_expand_builtin_1.
4416 (arm_expand_vfp_builtin): Likewise.
4417 (NEON_MAX_BUILTIN_ARGS): Remove, it was unused.
4419 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
4422 * predict.def (PRED_POLYMORPHIC_CALL): Set to 59.
4423 * predict.c (tree_estimate_probability_bb): Reverse direction of
4424 polymorphic call predictor.
4426 2017-01-06 David Malcolm <dmalcolm@redhat.com>
4428 * passes.c (execute_one_pass): Split out pass-skipping logic into...
4429 (determine_pass_name_match): ...this new function and...
4430 (should_skip_pass_p): ...this new function.
4432 2017-01-06 Nathan Sidwell <nathan@acm.org>
4434 * ipa-visibility.c (function_and_variable_visibility): Reformat
4435 comments and long lines. Remove extrneous if.
4436 * symtab.c (symtab_node::make_decl_local): Fix code format.
4437 (symtab_node::set_section_for_node): Fix comment typo.
4439 2017-01-06 Martin Liska <mliska@suse.cz>
4442 * lra-constraints.c: Rename invariant to lra_invariant.
4443 * predict.c (set_even_probabilities): Initialize e to NULL.
4445 2017-01-05 Martin Sebor <msebor@redhat.com>
4447 PR tree-optimization/78910
4448 * gimple-ssa-sprintf.c (tree_digits): Add an argument.
4449 (format_integer): Correct off-by-one error in the handling
4450 of precision with negative numbers in signed conversions..
4452 2017-01-05 Eric Botcazou <ebotcazou@adacore.com>
4454 * doc/invoke.texi (C Dialect Options): Adjust -fsso-struct entry.
4456 2017-01-05 Jakub Jelinek <jakub@redhat.com>
4458 PR tree-optimization/71016
4459 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Pass cond_stmt to
4460 factor_out_conditional_conversion. Formatting fix.
4461 (factor_out_conditional_conversion): Add cond_stmt argument.
4462 If arg1 is INTEGER_CST, punt if new_arg0 is not any operand of
4463 cond_stmt and if arg0_def_stmt is not the only stmt in its bb.
4466 2017-01-05 David Malcolm <dmalcolm@redhat.com>
4468 * Makefile.in (OBJS): Add read-md.o, read-rtl.o,
4469 read-rtl-function.o, and selftest-rtl.o.
4470 * config/aarch64/aarch64.c: Include selftest.h and selftest-rtl.h.
4471 (selftest::aarch64_test_loading_full_dump): New function.
4472 (selftest::aarch64_run_selftests): New function.
4473 (TARGET_RUN_TARGET_SELFTESTS): Wire it up to
4474 selftest::aarch64_run_selftests.
4475 * config/i386/i386.c
4476 (selftest::ix86_test_loading_dump_fragment_1): New function.
4477 (selftest::ix86_test_loading_call_insn): New function.
4478 (selftest::ix86_test_loading_full_dump): New function.
4479 (selftest::ix86_test_loading_unspec): New function.
4480 (selftest::ix86_run_selftests): Call the new functions.
4481 * emit-rtl.c (maybe_set_max_label_num): New function.
4482 * emit-rtl.h (maybe_set_max_label_num): New decl.
4483 * function.c (instantiate_decls): Guard call to
4484 instantiate_decls_1 with if (DECL_INITIAL (fndecl)).
4485 * function-tests.c (selftest::verify_three_block_rtl_cfg): Remove
4487 * gensupport.c (gen_reader::gen_reader): Pass "false"
4488 for new "compact" param of rtx_reader.
4489 * print-rtl.c (rtx_writer::print_rtx_operand): Print "(nil)"
4490 rather than an empty string for NULL strings.
4491 * read-md.c: Potentially include config.h rather than bconfig.h.
4492 Wrap include of errors.h with #ifdef GENERATOR_FILE.
4493 (have_error): New global, copied from errors.c.
4494 (md_reader::read_name): Rename to...
4495 (md_reader::read_name_1): ...this, adding "out_loc" param,
4496 and converting "missing name or number" to returning false, rather
4498 (md_reader::read_name): Reimplement in terms of read_name_1.
4499 (md_reader::read_name_or_nil): New function.
4500 (md_reader::read_string): Handle "(nil)" by returning NULL.
4501 (md_reader::md_reader): Add new param "compact".
4502 (md_reader::read_md_files): Wrap with #ifdef GENERATOR_FILE.
4503 (md_reader::read_file): New method.
4504 * read-md.h (md_reader::md_reader): Add new param "compact".
4505 (md_reader::read_file): New method.
4506 (md_reader::is_compact): New accessor.
4507 (md_reader::read_name): Convert return type from void to file_location.
4508 (md_reader::read_name_or_nil): New decl.
4509 (md_reader::read_name_1): New decl.
4510 (md_reader::m_compact): New field.
4511 (noop_reader::noop_reader): Pass "false" for new "compact" param
4513 (rtx_reader::rtx_reader): Add new "compact" param.
4514 (rtx_reader::read_rtx_operand): Make virtual and convert return
4515 type from void to rtx.
4516 (rtx_reader::read_until): New decl.
4517 (rtx_reader::handle_any_trailing_information): New virtual function.
4518 (rtx_reader::postprocess): New virtual function.
4519 (rtx_reader::finalize_string): New virtual function.
4520 (rtx_reader::m_in_call_function_usage): New field.
4521 (rtx_reader::m_reuse_rtx_by_id): New field.
4522 * read-rtl-function.c: New file.
4523 * selftest-rtl.c (selftest::assert_rtx_ptr_eq_at): New function.
4524 * selftest-rtl.h (ASSERT_RTX_PTR_EQ): New macro.
4525 (selftest::verify_three_block_rtl_cfg): New decl.
4526 * read-rtl-function.h: New file.
4527 * read-rtl.c: Potentially include config.h rather than bconfig.h.
4528 For host, include function.h, memmodel.h, and emit-rtl.h.
4529 (one_time_initialization): New function.
4530 (struct compact_insn_name): New struct.
4531 (compact_insn_names): New array.
4532 (find_code): Handle insn codes in compact dumps.
4533 (apply_subst_iterator): Wrap with #ifdef GENERATOR_FILE.
4534 (bind_subst_iter_and_attr): Likewise.
4535 (add_condition_to_string): Likewise.
4536 (add_condition_to_rtx): Likewise.
4537 (apply_attribute_uses): Likewise.
4538 (add_current_iterators): Likewise.
4539 (apply_iterators): Likewise.
4540 (initialize_iterators): Guard usage of apply_subst_iterator with
4541 #ifdef GENERATOR_FILE.
4542 (read_conditions): Wrap with #ifdef GENERATOR_FILE.
4543 (md_reader::read_mapping): Likewise.
4544 (add_define_attr_for_define_subst): Likewise.
4545 (add_define_subst_attr): Likewise.
4546 (read_subst_mapping): Likewise.
4547 (check_code_iterator): Likewise.
4548 (rtx_reader::read_rtx): Likewise. Move one-time initialization
4550 (one_time_initialization): New function.
4551 (rtx_reader::read_until): New method.
4552 (read_flags): New function.
4553 (parse_reg_note_name): New function.
4554 (rtx_reader::read_rtx_code): Initialize "iterator" to NULL.
4555 Handle reuse_rtx ids.
4556 Wrap iterator lookup within #ifdef GENERATOR_FILE.
4557 Add parsing support for RTL dumps, mirroring the special-cases in
4558 print_rtx, by calling read_flags, reading REG_NOTE names, INSN_UID
4559 values, and calling handle_any_trailing_information.
4560 (rtx_reader::read_rtx_operand): Convert return type from void
4561 to rtx, returning return_rtx. Handle case 'e'. Call
4562 finalize_string on XSTR and XTMPL fields.
4563 (rtx_reader::read_nested_rtx): Handle dumps in which trailing
4564 "(nil)" values were omitted. Call the postprocess vfunc on the
4566 (rtx_reader::rtx_reader): Add new "compact" param and pass to base
4567 class ctor. Initialize m_in_call_function_usage. Call
4568 one_time_initialization.
4569 * rtl-tests.c (selftest::test_uncond_jump): Call
4570 set_new_first_and_last_insn.
4571 * rtl.h (read_rtx): Wrap decl with #ifdef GENERATOR_FILE.
4572 * selftest-rtl.c: New file.
4573 * selftest-rtl.h (class selftest::rtl_dump_test): New class.
4574 (selftest::get_insn_by_uid): New decl.
4575 * selftest-run-tests.c (selftest::run_tests): Call
4576 read_rtl_function_c_tests.
4577 * selftest.h (selftest::read_rtl_function_c_tests): New decl.
4578 * tree-dfa.c (ssa_default_def): Return NULL_TREE for rtl function
4581 2017-01-05 Uros Bizjak <ubizjak@gmail.com>
4583 * config/i386/i386.md (*testqi_ext_3): No need to handle memory
4584 operands in a special way. Assert that pos+len <= mode precision.
4586 2017-01-05 Jakub Jelinek <jakub@redhat.com>
4588 * common.opt (fvect-cost-model): Remove RejectNegative flag, use
4589 3 argument Alias with unlimited for the negative form.
4590 (fno-vect-cost-model): Removed.
4592 2017-01-05 Martin Liska <mliska@suse.cz>
4594 * hsa-gen.c (gen_hsa_divmod): New function.
4595 (gen_hsa_insn_for_internal_fn_call): Use the function for IFN_DIVMOD.
4597 2017-01-05 Martin Liska <mliska@suse.cz>
4600 * gcc.c (lookup_compiler): Reject '-' filename for a precompiled
4603 2017-01-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4605 * config/s390/s390.c (s390_expand_setmem): Unroll the loop for
4606 small constant length operands.
4608 2017-01-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4610 * config/s390/s390.c (s390_expand_setmem): Avoid overlapping bytes
4611 between loop iterations.
4613 2017-01-05 Martin Liska <mliska@suse.cz>
4616 * gimplify.c (gimplify_decl_expr): Compare to
4617 asan_poisoned_variables instread of checking flags.
4618 (gimplify_target_expr): Likewise.
4619 (gimplify_expr): Likewise.
4620 (gimplify_function_tree): Conditionally initialize
4621 asan_poisoned_variables.
4623 2017-01-04 Jeff Law <law@redhat.com>
4625 PR tree-optimizatin/78812
4626 * rtl.h (contains_mem_rtx_p): Prototype.
4627 * ifcvt.c (containts_mem_rtx_p): Move from here to...
4628 * rtlanal.c (contains_mem_rtx_p): Here and remove static linkage.
4629 * gcse.c (prune_expressions): Use contains_mem_rtx_p to discover
4630 and prune MEMs that are not at the toplevel of a SET_SRC rtx. Look
4631 through ZERO_EXTEND and SIGN_EXTEND when trying to avoid pruning MEMs.
4633 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
4635 * input.c (assert_char_at_range): Default-initialize actual_range.
4637 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
4639 * df-scan.c (df_ref_create_structure): Make regno unsigned,
4640 to match the caller.
4642 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
4644 * cfgexpand.c (expand_gimple_basic_block): Disregard debug
4645 insns after final jump in test to emit dummy move.
4647 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
4649 * gimple-iterator.h (gsi_one_nondebug_before_end_p): New.
4650 * tree-eh.c (cleanup_empty_eh): Skip more debug stmts.
4652 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
4654 * multiple_target.c (create_dispatcher_calls): Init e_next.
4655 * tree-ssa-loop-split.c (split_loop): Init border.
4656 * tree-vect-loop.c (vect_determine_vectorization_factor): Init
4659 2017-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
4664 * config/rs6000/predicates.md (sf_subreg_operand): New predicate.
4665 (altivec_register_operand): Do not return true if the operand
4666 contains a SUBREG mixing SImode and SFmode.
4667 (vsx_register_operand): Likewise.
4668 (vsx_reg_sfsubreg_ok): New predicate.
4669 (vfloat_operand): Do not return true if the operand contains a
4670 SUBREG mixing SImode and SFmode.
4671 (vint_operand): Likewise.
4672 (vlogical_operand): Likewise.
4673 (gpc_reg_operand): Likewise.
4674 (int_reg_operand): Likewise.
4675 * config/rs6000/rs6000-protos.h (valid_sf_si_move): Add declaration.
4676 * config/rs6000/rs6000.c (valid_sf_si_move): New function to
4677 determine if a MOVSI or MOVSF operation contains SUBREGs that mix
4679 (rs6000_emit_move_si_sf_subreg): New helper function.
4680 (rs6000_emit_move): Call rs6000_emit_move_si_sf_subreg to possbily
4681 fixup SUBREGs involving SImode and SFmode.
4682 * config/rs6000/vsx.md (SFBOOL_*): New constants that are operand
4683 numbers for the new peephole2 optimization.
4684 (peephole2 for SFmode unions): New peephole2 to optimize cases in
4685 the GLIBC math library that do AND/IOR/XOR operations on single
4686 precision floating point.
4687 * config/rs6000/rs6000.h (TARGET_NO_SF_SUBREG): New internal
4688 target macros to say whether we need to avoid SUBREGs mixing
4690 (TARGET_ALLOW_SF_SUBREG): Likewise.
4691 * config/rs6000/rs6000.md (UNSPEC_SF_FROM_SI): New unspecs.
4692 (UNSPEC_SI_FROM_SF): Likewise.
4693 (iorxor): Change spacing.
4694 (and_ior_xor): New iterator for AND, IOR, and XOR.
4695 (movsi_from_sf): New insns for SImode/SFmode SUBREG support.
4696 (movdi_from_sf_zero_ext): Likewise.
4697 (mov<mode>_hardfloat, FMOVE32 iterator): Use register_operand
4698 instead of gpc_reg_operand. Add SImode/SFmode SUBREG support.
4699 (movsf_from_si): New insn for SImode/SFmode SUBREG support.
4700 (fma<mode>4): Use gpc_reg_operand instead of register_operand.
4701 (fms<mode>4): Likewise.
4702 (fnma<mode>4): Likewise.
4703 (fnms<mode>4): Likewise.
4704 (nfma<mode>4): Likewise.
4705 (nfms<mode>4): Likewise.
4707 2017-01-04 Marek Polacek <polacek@redhat.com>
4710 * doc/invoke.texi: Document -Wpointer-compare.
4712 2017-01-04 Jakub Jelinek <jakub@redhat.com>
4714 * optc-gen.awk: Emit #error for -W*/-f*/-m* Enum without
4717 * dwarf2out.c (output_loc_list): Don't throw away 64K+ location
4718 descriptions for -gdwarf-5 and emit them as uleb128 instead of
4721 2017-01-04 Kelvin Nilsen <kelvin@gcc.gnu.org>
4724 * doc/sourcebuild.texi (PowerPC-specific attributes): Add
4725 documentation of the powerpc_popcntb_ok attribute.
4726 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
4727 code to issue warning messages if a requested CPU configuration is
4728 not supported by the binary (assembler and loader) toolchain.
4729 (spe_init_builtins): Add two assertions to prevent ICE if attempt is
4730 made to define a built-in function that has been disabled.
4731 (paired_init_builtins): Add assertion to prevent ICE if attempt is
4732 made to define a built-in function that has been disabled.
4733 (altivec_init_builtins): Add comment explaining why definition
4734 of the DST built-in functions is not preceded by an assertion
4735 check. Add assertions to prevent ICE if attempts are made to
4736 define an altivec predicate or an abs* built-in function that has
4738 (htm_init_builtins): Add comment explaining why definition of the
4739 htm built-in functions is not preceded by an assertion check.
4741 2017-01-04 Jeff Law <law@redhat.com>
4743 PR tree-optimizatin/67955
4744 * tree-ssa-alias.c (same_addr_size_stores_p): Check offsets first.
4745 Allow any SSA_VAR_P as the base objects. Use integer_zerop. Verify
4746 the points-to solution does not include pt_null. Use DECL_PT_UID
4749 2017-01-04 Uros Bizjak <ubizjak@gmail.com>
4751 * config/i386/i386.md (HI/SImode test with imm to QImode splitters):
4752 Use gen_int_mode instead of gen_lopwart for const_int operands.
4754 2017-01-04 Jakub Jelinek <jakub@redhat.com>
4756 PR tree-optimization/71563
4757 * match.pd: Simplify X << Y into X if Y is known to be 0 or
4758 out of range value - has low bits known to be zero.
4760 2017-01-04 Alan Modra <amodra@gmail.com>
4762 * Makefile.in (aclocal_deps): Update and order as per aclocal.m4.
4763 * configure: Regenerate.
4764 * config.in: Regenerate.
4766 2017-01-04 Jakub Jelinek <jakub@redhat.com>
4769 * input.c (ebcdic_execution_charset::on_error): Don't use strstr for
4770 a substring of the message, but strcmp with the whole message. Ifdef
4771 ENABLE_NLS, translate the message first using dgettext.
4773 2017-01-03 Jeff Law <law@redhat.com>
4775 PR tree-optimizatin/78856
4776 * tree-ssa-threadupdate.c: Include tree-vectorizer.h.
4777 (mark_threaded_blocks): Remove code to truncate thread paths that
4778 cross multiple loop headers. Instead invalidate the cached loop
4779 iteration information and handle case of a thread path walking
4780 into an irreducible region.
4782 2017-01-03 Michael Meissner <meissner@linux.vnet.ibm.com>
4785 * config/rs6000/rs6000.c (rs6000_split_signbit): Change some
4786 assertions. Add support for doing the signbit if the IEEE 128-bit
4787 floating point value is in a GPR.
4788 * config/rs6000/rs6000.md (Fsignbit): Delete.
4789 (signbit<mode>2_dm): Delete using <Fsignbit> and just use "wa".
4790 Update the length attribute if the value is in a GPR.
4791 (signbit<mode>2_dm_<su>ext): Add combiner pattern to eliminate
4792 the sign or zero extension instruction, since the value is always 0/1.
4793 (signbit<mode>2_dm2): Delete using <Fsignbit>.
4796 * config/rs6000/vsx.md (vsx_extract_<mode>_store_p9): If we are
4797 extracting SImode to a GPR register so that we can generate a
4798 store, limit the vector to be in a traditional Altivec register
4799 for the vextuwrx instruction.
4801 2017-01-03 Ian Lance Taylor <iant@google.com>
4803 * godump.c (go_format_type): Treat ENUMERAL_TYPE like INTEGER_TYPE.
4805 2017-01-03 Martin Sebor <msebor@redhat.com>
4807 PR tree-optimization/78696
4808 * gimple-ssa-sprintf.c (format_floating): Correct handling of
4809 precision. Use MPFR for %f for greater fidelity. Correct handling
4811 (pass_sprintf_length::compute_format_length): Set width and precision
4812 specified by asrerisk to void_node for vararg functions.
4813 (try_substitute_return_value): Adjust dump output.
4815 2017-01-03 David Edelsohn <dje.gcc@gmail.com>
4817 * doc/invoke.texi (RS6000 options): LRA is enabled by default.
4819 2017-01-03 Eric Botcazou <ebotcazou@adacore.com>
4821 * doc/invoke.texi (SPARC options): Document -mlra as the default.
4822 * config/sparc/sparc.c (sparc_option_override): Force LRA unless
4823 -mlra/-mno-lra was passed to the compiler.
4825 2017-01-03 James Cowgill <James.Cowgill@imgtec.com>
4827 PR rtl-optimization/65618
4828 * emit-rtl.c (try_split): Move initialization of "before" and
4829 "after" to just before the call to emit_insn_after_setloc.
4831 2017-01-03 Gerald Pfeifer <gerald@pfeifer.com>
4833 * doc/md.texi (Standard Names): Remove reference to Java frontend.
4835 2017-01-03 Pierre-Marie de Rodat <derodat@adacore.com>
4837 * dwarf2out.c (gen_enumeration_type_die): When
4838 -gno-strict-dwarf, add a DW_AT_encoding attribute.
4840 2017-01-03 Jakub Jelinek <jakub@redhat.com>
4842 PR tree-optimization/78965
4843 * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
4844 Change first argument from const call_info & to call_info &. For %n
4845 set info.nowrite to false.
4848 * gimple-ssa-sprintf.c (try_substitute_return_value): Don't change
4849 possibly throwing calls.
4851 * genmatch.c (dt_node::gen_kids_1): If generic_exprs include SSA_NAME
4852 and exprs_len || fns_len, emit the code for SSA_NAME next to the exprs
4853 and fns handling, rather than in a separate case SSA_NAME.
4855 2017-01-02 Jeff Law <law@redhat.com>
4857 * config/darwin-driver.c (darwin_driver_init): Const-correctness
4858 fixes for first_period and second_period variables.
4860 2017-01-02 Uros Bizjak <ubizjak@gmail.com>
4863 * config/i386/i386.md (UNSPEC_NOREX_MEM): New unspec.
4864 (*insvqi_1): New insn pattern.
4865 (*insvqi_1_mem_rex64): Ditto.
4867 (*insvqi_3): Rename from *insvqi.
4869 (*extzvqi_mem_rex64): Add UNSPEC_NOREX_MEM tag.
4871 2017-01-02 Gerald Pfeifer <gerald@pfeifer.com>
4873 * doc/cfg.texi (Edges): Remove reference to Java.
4874 (Maintaining the CFG): Ditto.
4876 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
4879 * symtab.c (symtab_node::binds_to_current_def_p): Fix handling of
4880 transparent aliases.
4882 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
4885 * predict.def (PRED_CALL): Update hitrate.
4886 (PRED_INDIR_CALL, PRED_POLYMORPHIC_CALL): New predictors.
4887 * predict.c (tree_estimate_probability_bb): Split CALL predictor
4888 into direct/indirect/polymorphic variants.
4890 2017-01-01 Jakub Jelinek <jakub@redhat.com>
4892 Update copyright years.
4894 * gcc.c (process_command): Update copyright notice dates.
4895 * gcov-dump.c (print_version): Ditto.
4896 * gcov.c (print_version): Ditto.
4897 * gcov-tool.c (print_version): Ditto.
4898 * gengtype.c (create_file): Ditto.
4899 * doc/cpp.texi: Bump @copying's copyright year.
4900 * doc/cppinternals.texi: Ditto.
4901 * doc/gcc.texi: Ditto.
4902 * doc/gccint.texi: Ditto.
4903 * doc/gcov.texi: Ditto.
4904 * doc/install.texi: Ditto.
4905 * doc/invoke.texi: Ditto.
4907 Copyright (C) 2017 Free Software Foundation, Inc.
4909 Copying and distribution of this file, with or without modification,
4910 are permitted in any medium without royalty provided the copyright
4911 notice and this notice are preserved.