1 2017-03-17 Richard Biener <rguenther@suse.de>
4 * genmatch.c (parser::next): Remove pointless check for CPP_EOF.
5 (parser::peek): Likewise.
7 2017-03-17 Richard Biener <rguenther@suse.de>
9 PR tree-optimization/80048
10 * sese.c (free_sese_info): Properly release rename_map and
11 copied_bb_map elements.
13 2017-03-16 Alexandre Oliva <aoliva@redhat.com>
15 * gimple-ssa-store-merging.c (struct imm_store_chain_info):
16 Add linked-list forward and backlinks. Insert on
17 construction, remove on destruction.
18 (class pass_store_merging): Add m_stores_head field.
19 (pass_store_merging::terminate_and_process_all_chains):
20 Iterate over m_stores_head list.
21 (pass_store_merging::terminate_all_aliasing_chains):
23 (pass_store_merging::execute): Check for debug stmts first.
24 Push new chains onto the m_stores_head stack.
26 2017-03-16 Michael Meissner <meissner@linux.vnet.ibm.com>
29 * config/rs6000/vsx.md (vsx_splat_<mode>, VSX_D iterator): Allow a
30 SPLAT operation on ISA 2.07 64-bit systems that have direct move,
31 but no MTVSRDD support, by doing MTVSRD and XXPERMDI.
33 2017-03-16 Jeff Law <law@redhat.com>
35 PR tree-optimization/71437
36 * tree-ssa-dom.c (dom_opt_dom_walker): Remove thread_across_edge
37 member function. Implementation moved into after_dom_children
38 member function and into the threader's thread_outgoing_edges
40 (dom_opt_dom_walker::after_dom_children): Simplify by moving
41 some code into new thread_outgoing_edges.
42 * tree-ssa-threadedge.c (thread_across_edge): Make static and simplify
43 definition. Simplify marker handling (do it here). Assume we always
44 have the available expression and the const/copies tables.
45 (thread_outgoing_edges): New function extracted from tree-ssa-dom.c
47 * tree-ssa-threadedge.h (thread_outgoing_edges): Declare.
48 * tree-vrp.c (equiv_stack): No longer file scoped.
49 (vrp_dom_walker): New class.
50 (vrp_dom_walker::before_dom_children): New member function.
51 (vrp_dom_walker::after_dom_children): Likewise.
52 (identify_jump_threads): Setup domwalker. Use it rather than
53 walking edges in a random order by hand. Simplify setup/finalization.
54 (finalize_jump_threads): Remove.
55 (vrp_finalize): Do not call identify_jump_threads here.
56 (execute_vrp): Do it here instead and call thread_through_all_blocks
59 PR tree-optimization/71437
60 * tree-ssa-dom.c (pfn_simplify): Add basic_block argument. All
62 (simplify_stmt_for_jump_threading): Add basic_block argument. All
64 (lhs_of_dominating_assert): Moved from here into tree-vrp.c.
65 (dom_opt_dom_walker::thread_across_edge): Remove
66 handle_dominating_asserts argument. All callers changed.
67 (record_temporary_equivalences_from_stmts_at_dest): Corresponding
68 changes. Remove calls to lhs_of_dominating_assert. Other
69 uses of handle_dominating_asserts turn into unconditional code
70 (simplify_control_stmt_condition_1): Likewise.
71 (simplify_control_stmt_condition): Likewise.
72 (thread_through_normal_block, thread_across_edge): Likewise.
73 * tree-ssa-threadedge.h (thread_across_edge): Corresponding changes.
74 * tree-vrp.c (lhs_of_dominating_assert): Move here. Return original
75 object if it is not an SSA_NAME.
76 (simplify_stmt_for_jump_threading): Call lhs_of_dominating_assert
77 before calling into the VRP specific simplifiers.
78 (identify_jump_threads): Remove handle_dominating_asserts
81 2017-03-16 Jakub Jelinek <jakub@redhat.com>
84 * tree-diagnostic.c (default_tree_printer): No longer static.
85 * tree-diagnostic.h (default_tree_printer): New prototype.
87 2017-03-16 Tamar Christina <tamar.christina@arm.com>
89 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>)
92 2017-03-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
94 * config/aarch64/iterators.md (h_con): Return "x" for V4HF and V8HF.
95 * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_from_dup<mode>):
96 Use h_con constraint for operand 1.
97 (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
98 (*aarch64_mulx_elt_from_dup<mode>): Likewise for operand 2.
100 2017-03-15 Jeff Law <law@redhat.com>
102 PR tree-optimization/71437
103 * tree-ssa-dom.c (derive_equivalences_from_bit_ior): New function.
104 (record_temporary_equivalences): Use it.
106 PR tree-optimization/71437
107 * tree-ssa-dom.c (struct cond_equivalence): Moved from here into
108 tree-ssa-scopedtables.
109 (lookup_avail_expr, build_and_record_new_cond): Likewise.
110 (record_conditions, record_cond, vuse_eq): Likewise.
111 (record_edge_info): Adjust to API tweak of record_conditions.
112 (simplify_stmt_for_jump_threading): Similarly for lookup_avail_expr.
113 (record_temporary_equivalences, optimize_stmt): Likewise.
114 (eliminate_redundant_computations): Likewise.
115 (record_equivalences_from_stmt): Likewise.
116 * tree-ssa-scopedtables.c: Include options.h and params.h.
117 (vuse_eq): New function, moved from tree-ssa-dom.c
118 (build_and_record_new_cond): Likewise.
119 (record_conditions): Likewise. Accept vector of conditions rather
120 than edge_equivalence structure for first argument.
121 for the first argument.
122 (avail_exprs_stack::lookup_avail_expr): New member function, moved
124 (avail_exprs_stack::record_cond): Likewise.
125 * tree-ssa-scopedtables.h (struct cond_equivalence): Moved here
127 (avail_exprs_stack): Add new member functions lookup_avail_expr
129 (record_conditions): Declare.
131 2017-03-15 Vladimir Makarov <vmakarov@redhat.com>
134 * lra-constraints.c (process_alt_operands): Increase reject for
135 reloading an input/output operand.
137 2017-03-15 Michael Meissner <meissner@linux.vnet.ibm.com>
140 * config/rs6000/rs6000.md (float<QHI:mode><IEEE128:mode>2): Define
141 insns to convert from signed/unsigned char/short to IEEE 128-bit
143 (floatuns<QHI:mode><IEEE128:mode>2): Likewise.
145 2017-03-15 Uros Bizjak <ubizjak@gmail.com>
148 * config/i386/i386.c (ix86_vector_duplicate_value): Create
149 subreg of inner mode for values already in registers.
151 2017-03-15 Bernd Schmidt <bschmidt@redhat.com>
153 * config/c6x/c6x.c (hwloop_optimize): Handle case where the old
154 iteration reg is used after the loop.
156 2017-03-14 Martin Sebor <msebor@redhat.com>
158 PR tree-optimization/79800
159 * gimple-ssa-sprintf.c (format_floating: Add argument. Handle
160 precision in negative-positive range.
161 (format_floating): Call non-const overload with adjusted precision.
163 2017-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
166 * config/rs6000/rs6000.h (TARGET_FRSQRTES): Add check for
169 2017-03-14 Martin Sebor <msebor@redhat.com>
172 * builtin-attrs.def (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): New macro.
173 * builtins.def (aligned_alloc): Use it.
176 * Makefile.in (GTFILES): Add calls.c.
177 * calls.c: Include "gt-calls.h".
179 2017-03-14 Bernd Schmidt <bschmidt@redhat.com>
181 PR rtl-optimization/79728
182 * regs.h (struct target_regs): New field
183 x_contains_allocatable_regs_of_mode.
184 (contains_allocatable_regs_of_mode): New macro.
185 * reginfo.c (init_reg_sets_1): Initialize it, and change
186 contains_reg_of_mode so it includes global regs as well.
187 * reload.c (push_reload): Use contains_allocatable_regs_of_mode
188 rather than contains_regs_of_mode.
190 2017-03-14 Martin Liska <mliska@suse.cz>
192 * doc/invoke.texi: Document options that can't be combined with
193 -fcheck-pointer-bounds.
195 2017-03-14 Martin Liska <mliska@suse.cz>
198 * doc/invoke.texi (-Wchkp): Document the option.
200 2017-03-14 Martin Liska <mliska@suse.cz>
202 * Makefile.in: Install gcov-dump.
204 2017-03-14 Martin Liska <mliska@suse.cz>
206 * multiple_target.c (expand_target_clones): Bail out for
207 an invalid attribute.
209 2017-03-14 Richard Biener <rguenther@suse.de>
211 * alias.c (struct alias_set_entry): Pack properly.
212 * cfgloop.h (struct loop): Likewise.
213 * cse.c (struct set): Likewise.
214 * ipa-utils.c (struct searchc_env): Likewise.
215 * loop-invariant.c (struct invariant): Likewise.
216 * lra-remat.c (struct cand): Likewise.
217 * recog.c (struct change_t): Likewise.
218 * rtl.h (struct address_info): Likewise.
219 * symbol-summary.h (function_summary): Likewise.
220 * tree-loop-distribution.c (struct partition): Likewise.
221 * tree-object-size.c (struct object_size_info): Likewise.
222 * tree-ssa-loop-ivopts.c (struct cost_pair): Likewise.
223 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Likewise.
224 * tree-vect-data-refs.c (struct _vect_peel_info): Likewise.
225 * tree-vect-slp.c (struct _slp_oprnd_info): Likewise.
226 * tree-vect-stmts.c (struct simd_call_arg_info): Likewise.
227 * tree-vectorizer.h (struct _loop_vec_info): Likewise.
228 (struct _stmt_vec_info): Likewise.
230 2017-03-14 Martin Liska <mliska@suse.cz>
233 * multiple_target.c (create_dispatcher_calls): Check that
234 a target can create a function dispatcher.
236 2017-03-14 Martin Liska <mliska@suse.cz>
239 * multiple_target.c (expand_target_clones): Drop local.local
240 flag for default implementation.
242 2017-03-14 Richard Biener <rguenther@suse.de>
244 PR tree-optimization/80030
245 * tree-vect-stmts.c (vectorizable_store): Plug memleak.
247 2017-03-13 Kito Cheng <kito.cheng@gmail.com>
249 * config/riscv/riscv.c (riscv_emit_float_compare>: Use
250 gcc_fallthrough() instead of __attribute__((fallthrough));
252 2017-03-13 Gerald Pfeifer <gerald@pfeifer.com>
254 * doc/gcc.texi: Remove "up" link to (DIR).
255 * doc/gccint.texi: Ditto.
257 2017-03-13 Gerald Pfeifer <gerald@pfeifer.com>
259 * doc/install.texi (Specific) <avr>: Remove reference to
262 2017-03-13 Jeff Law <law@redhat.com>
264 * config/riscv/riscv.c (riscv_emit_float_compare): Use fallthru
265 attribute rather than comments.
267 * config/pdp11/pdp11.md (movmemhi): Adjust operand numbers to
268 match_scratch operand is highest.
270 2017-03-13 Martin Liska <mliska@suse.cz>
273 * ipa-pure-const.c (warn_function_noreturn): If the declarations
274 is a CHKP clone, use original declaration.
276 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
278 * config/arc/arc.c (arc_init): Use multiplier whenever we have it.
279 (arc_conditional_register_usage): Use a different allocation order
280 when optimizing for size.
281 * common/config/arc/arc-common.c (arc_option_optimization_table):
282 Section anchors default on when optimizing for size.
284 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
286 * config/arc/arc.md (*tst_bitfield_tst): Fix pattern.
288 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
290 * config/arc/arc.c (arc_output_addsi): Emit code density adds.
291 * config/arc/arc.md (cpu_facility): Add cd variant.
292 (*movqi_insn): Add code density variant.
293 (*movhi_insn): Likewise.
294 (*movqi_insn): Likewise.
295 (*addsi3_mixed): Likewise.
296 (subsi3_insn): Likewise.
298 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
300 * config/arc/arc.md (movsi_cond_exec): Update constraint.
302 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
304 * config/arc/arc.c (arc_legitimize_pic_address): Handle PIC
305 expressions with MINUS and UNARY ops.
307 2017-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
310 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3):
312 (vec_sel_widen_ssum_lo<mode><V_half>3): ... This. Avoid mismatch
313 between vec_select and vector argument.
314 (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): Rename to...
315 (vec_sel_widen_ssum_hi<mode><V_half>3): ... This. Likewise.
316 (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): Rename to...
317 (vec_sel_widen_usum_lo<mode><V_half>3): ... This.
318 (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): Rename to...
319 (vec_sel_widen_usum_hi<mode><V_half>3): ... This.
321 2017-03-13 Richard Biener <rguenther@suse.de>
324 * params.def (vect-max-peeling-for-alignment): Fix typo.
326 2017-03-12 Gerald Pfeifer <gerald@pfeifer.com>
328 * doc/install.texi (Specific) <mips-*-*>: Remove description of
329 issue that only occurred with binutils below 2.18.
331 2017-03-12 Gerald Pfeifer <gerald@pfeifer.com>
333 * doc/install.texi (Specific) <cris-axis-elf>: No longer
334 refer to binutils 2.11/2.12 minimum.
336 2017-03-12 Gerald Pfeifer <gerald@pfeifer.com>
338 * doc/install.texi (Specific) <powerpc-*-*>: Remove link to
339 ftp.kernel.org and simplify binutils requirement.
341 2017-03-11 Gerald Pfeifer <gerald@pfeifer.com>
343 * doc/invoke.texi (Warning Options): Fix spelling of link-time
345 (Optimize Options): Ditto. Also remove redundancy.
347 2017-03-10 David Malcolm <dmalcolm@redhat.com>
350 * ipa-devirt.c (warn_types_mismatch): Simplify uses of "%<%s%>" to
352 * ipa-pure-const.c (suggest_attribute): Likewise. Convert _
353 to G_ to avoid double translation.
355 2017-03-10 David Malcolm <dmalcolm@redhat.com>
358 * auto-profile.c (get_combined_location): Convert leading
359 character of diagnostics to lower case and remove trailing period.
360 (read_profile): Likewise for various diagnostics.
361 * config/arm/arm.c (arm_option_override): Remove trailing period
362 from various diagnostics.
363 * config/msp430/msp430.c (msp430_expand_delay_cycles): Likewise.
364 (msp430_expand_delay_cycles): Likewise.
366 2017-03-10 David Malcolm <dmalcolm@redhat.com>
369 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Quote the
370 full command-line argument, rather than just "str".
371 (aarch64_validate_march): Likewise.
372 (aarch64_validate_mtune): Likewise.
374 2017-03-10 Bernd Schmidt <bschmidt@redhat.com>
376 PR rtl-optimization/78911
377 * lra-assigns.c (must_not_spill_p): New function.
380 2017-03-10 Jakub Jelinek <jakub@redhat.com>
382 PR tree-optimization/79981
383 * tree-vrp.c (extract_range_basic): Handle IMAGPART_EXPR of
384 ATOMIC_COMPARE_EXCHANGE ifn result.
385 (stmt_interesting_for_vrp, vrp_visit_stmt): Handle
386 IFN_ATOMIC_COMPARE_EXCHANGE.
388 2017-03-10 David Malcolm <dmalcolm@redhat.com>
391 * opts.c (parse_sanitizer_options): Add missing question mark to
392 "did you mean" message.
394 2017-03-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
396 * config/rs6000/rs6000-builtin.def (VMULEUB_UNS): Remove orphaned
398 (VMULEUH_UNS): Likewise.
399 (VMULOUB_UNS): Likewise.
400 (VMULOUH_UNS): Likewise.
401 * config/rs6000/rs6000.c (builtin_function_type): Remove
402 references to ALTIVEC_BUILTIN_VMUL[EO]U[BH]_UNS.
404 2017-03-10 David Malcolm <dmalcolm@redhat.com>
407 * read-rtl-function.c (function_reader::read_rtx_operand): Update
408 x with result of extra_parsing_for_operand_code_0.
409 (function_reader::extra_parsing_for_operand_code_0): Convert
410 return type from void to rtx, returning x. When reading
411 SYMBOL_REF with SYMBOL_FLAG_HAS_BLOCK_INFO, reallocate x to the
412 larger size containing struct block_symbol.
414 2017-03-10 Segher Boessenkool <segher@kernel.crashing.org>
416 * config/rs6000/rs6000.c (rs6000_option_override_internal): Disallow
417 -mfloat128-hardware without -m64.
419 2017-03-10 Will Schmidt <will_schmidt@vnet.ibm.com>
422 * config/rs6000/rs6000.c (builtin_function_type): Add VMUL*U[HB]
423 entries to the case statement that marks unsigned arguments to
424 overloaded functions.
426 2017-03-10 Kelvin Nilsen <kelvin@gcc.gnu.org>
428 * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix
429 two typographic errors in the handling of TARGET_UPPER_REGS_DI.
431 2017-03-10 Pat Haugen <pthaugen@us.ibm.com>
434 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Test
435 TARGET_UPPER_REGS_DI when setting 'wi' constraint regclass.
437 2017-03-10 Martin Liska <mliska@suse.cz>
441 * toplev.c (process_options): Enable MPX with LSAN and UBSAN.
442 * tree-chkp.c (chkp_walk_pointer_assignments): Verify that
445 2017-03-10 Olivier Hainque <hainque@adacore.com>
447 * tree-switch-conversion (array_value_type): Start by resetting
448 candidate type to it's main variant.
450 2017-03-10 Jakub Jelinek <jakub@redhat.com>
452 PR rtl-optimization/79909
453 * combine.c (try_combine): Use simplify_replace_rtx on individual
454 CALL_INSN_FUNCTION_USAGE elements instead of replace_rtx on copy_rtx
455 of the whole CALL_INSN_FUNCTION_USAGE.
457 PR tree-optimization/79972
458 * gimple-ssa-warn-alloca.c (alloca_call_type): Only call
459 get_range_info on SSA_NAMEs. Formatting fixes.
461 2017-03-10 Richard Biener <rguenther@suse.de>
462 Jakub Jelinek <jakub@redhat.com>
464 PR tree-optimization/77975
465 * tree-ssa-loop-niter.c (get_base_for): Allow phi argument from latch
467 (get_val_for): For constant x return it. Formatting fix.
468 (loop_niter_by_eval): Avoid pointless looping if the next iteration
469 would use the same bases as the current one.
471 2017-03-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
473 * config/rs6000/rs6000.c (rs6000_gen_le_vsx_permute): Use rotate
474 instead of vec_select for V1TImode.
475 * conifg/rs6000/vsx.md (VSX_LE): Remove mode iterator that is no
477 (VSX_LE_128): Add V1TI to this mode iterator.
478 (*vsx_le_perm_load_<mode>): Change to use VSX_D mode iterator.
479 (*vsx_le_perm_store_<mode>): Likewise.
480 (pre-reload splitter for VSX stores): Likewise.
481 (post-reload splitter for VSX stores): Likewise.
482 (*vsx_xxpermdi2_le_<mode>): Likewise.
483 (*vsx_lxvd2x2_le_<mode>): Likewise.
484 (*vsx_stxvd2x2_le_<mode>): Likewise.
486 2017-03-09 Michael Eager <eager@eagercon.com>
488 Correct failures with --enable-checking=yes,rtl.
490 * config/microblaze/microblaze.c (microblaze_expand_shift):
491 Replace GET_CODE test with CONST_INT_P and INTVAL test with
493 * config/microblaze/microblaze.md (ashlsi3_byone, ashrsi3_byone,
494 lshrsi3_byone): Replace INTVAL with test for const1_rtx.
496 2017-03-09 Richard Biener <rguenther@suse.de>
498 PR tree-optimization/79977
499 * graphite-scop-detection.c (scop_detection::merge_sese):
500 Handle the case of extra exits to blocks dominating the entry.
502 2017-03-09 Toma Tabacu <toma.tabacu@imgtec.com>
504 * doc/sourcebuild.texi (Effective-Target Keywords, Other attributes):
507 2017-03-09 Vladimir Makarov <vmakarov@redhat.com>
509 PR rtl-optimization/79949
510 * lra-constraints.c (process_alt_operands): Check memory when
511 trying to predict a cycle. Print about the overall increase.
513 2017-03-09 Richard Biener <rguenther@suse.de>
516 * gimple-expr.c (useless_type_conversion_p): Preserve
517 TYPE_SATURATING for fixed-point types.
519 2017-03-09 Richard Biener <rguenther@suse.de>
522 * ipa-prop.c (ipa_modify_formal_parameters): Avoid changing
523 alignment of BLKmode params.
525 2017-03-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
528 * config/aarch64/iterators.md (VALL_F16_NO_V2Q): New mode iterator.
529 (VALL_NO_V2Q): Likewise.
531 * config/aarch64/aarch64-simd.md
532 (aarch64_dup_lane_<vswap_width_name><mode>): Use VALL_F16_NO_V2Q
534 (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Use
535 VALL_NO_V2Q mode iterator.
536 (*aarch64_vgetfmulx<mode>): Use VDQF iterator.
538 2017-03-09 Martin Liska <mliska@suse.cz>
540 PR tree-optimization/79631
541 * tree-chkp-opt.c (chkp_is_constant_addr): Call
542 tree_int_cst_sign_bit just for INTEGER constants.
544 2017-03-09 Martin Liska <mliska@suse.cz>
548 * toplev.c (process_options): Disable -fcheck-pointer-bounds with
551 2017-03-09 Marek Polacek <polacek@redhat.com>
554 * tree.c (inchash::add_expr): Handle TREE_VEC.
556 2017-03-09 Martin Liska <mliska@suse.cz>
559 (chkp_narrow_size_and_offset): New function.
560 (chkp_parse_array_and_component_ref): Support BIT_FIELD_REF.
561 (void chkp_parse_bit_field_ref): New function.
562 (chkp_make_addressed_object_bounds): Add case for BIT_FIELD_REF.
563 (chkp_process_stmt): Use chkp_parse_bit_field_ref.
565 2017-03-09 Martin Liska <mliska@suse.cz>
568 * tree-chkp.c (chkp_get_bound_for_parm): Get bounds for a param.
569 (chkp_find_bounds_1): Remove gcc_unreachable.
571 2017-03-09 Jakub Jelinek <jakub@redhat.com>
574 * asan.c (get_mem_refs_of_builtin_call): For BUILT_IN_ATOMIC* and
575 BUILT_IN_SYNC*, determine the access type from the size suffix and
576 always build a MEM_REF with that type. Handle forgotten
577 BUILT_IN_SYNC_FETCH_AND_NAND_16 and BUILT_IN_SYNC_NAND_AND_FETCH_16.
580 * config/i386/avx512vlintrin.h (_mm256_cmpge_epi32_mask,
581 _mm256_cmpge_epi64_mask, _mm256_cmpge_epu32_mask,
582 _mm256_cmpge_epu64_mask, _mm256_cmple_epi32_mask,
583 _mm256_cmple_epi64_mask, _mm256_cmple_epu32_mask,
584 _mm256_cmple_epu64_mask, _mm256_cmplt_epi32_mask,
585 _mm256_cmplt_epi64_mask, _mm256_cmplt_epu32_mask,
586 _mm256_cmplt_epu64_mask, _mm256_cmpneq_epi32_mask,
587 _mm256_cmpneq_epi64_mask, _mm256_cmpneq_epu32_mask,
588 _mm256_cmpneq_epu64_mask, _mm256_mask_cmpge_epi32_mask,
589 _mm256_mask_cmpge_epi64_mask, _mm256_mask_cmpge_epu32_mask,
590 _mm256_mask_cmpge_epu64_mask, _mm256_mask_cmple_epi32_mask,
591 _mm256_mask_cmple_epi64_mask, _mm256_mask_cmple_epu32_mask,
592 _mm256_mask_cmple_epu64_mask, _mm256_mask_cmplt_epi32_mask,
593 _mm256_mask_cmplt_epi64_mask, _mm256_mask_cmplt_epu32_mask,
594 _mm256_mask_cmplt_epu64_mask, _mm256_mask_cmpneq_epi32_mask,
595 _mm256_mask_cmpneq_epi64_mask, _mm256_mask_cmpneq_epu32_mask,
596 _mm256_mask_cmpneq_epu64_mask, _mm_cmpge_epi32_mask,
597 _mm_cmpge_epi64_mask, _mm_cmpge_epu32_mask, _mm_cmpge_epu64_mask,
598 _mm_cmple_epi32_mask, _mm_cmple_epi64_mask, _mm_cmple_epu32_mask,
599 _mm_cmple_epu64_mask, _mm_cmplt_epi32_mask, _mm_cmplt_epi64_mask,
600 _mm_cmplt_epu32_mask, _mm_cmplt_epu64_mask, _mm_cmpneq_epi32_mask,
601 _mm_cmpneq_epi64_mask, _mm_cmpneq_epu32_mask, _mm_cmpneq_epu64_mask,
602 _mm_mask_cmpge_epi32_mask, _mm_mask_cmpge_epi64_mask,
603 _mm_mask_cmpge_epu32_mask, _mm_mask_cmpge_epu64_mask,
604 _mm_mask_cmple_epi32_mask, _mm_mask_cmple_epi64_mask,
605 _mm_mask_cmple_epu32_mask, _mm_mask_cmple_epu64_mask,
606 _mm_mask_cmplt_epi32_mask, _mm_mask_cmplt_epi64_mask,
607 _mm_mask_cmplt_epu32_mask, _mm_mask_cmplt_epu64_mask,
608 _mm_mask_cmpneq_epi32_mask, _mm_mask_cmpneq_epi64_mask,
609 _mm_mask_cmpneq_epu32_mask, _mm_mask_cmpneq_epu64_mask): Move
610 definitions outside of __OPTIMIZE__ guarded section.
613 * config/i386/avx512bwintrin.h (_mm512_packs_epi32,
614 _mm512_maskz_packs_epi32, _mm512_mask_packs_epi32,
615 _mm512_packus_epi32, _mm512_maskz_packus_epi32,
616 _mm512_mask_packus_epi32): Move definitions outside of __OPTIMIZE__
619 2017-03-09 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
621 * config/s390/vx-builtins.md ("vfee<mode>", "vfeez<mode>")
622 ("vfenez<mode>"): Add missing constraints.
624 2017-03-08 Martin Sebor <msebor@redhat.com>
627 * config/nds32/nds32.c (nds32_option_override):
629 2017-03-08 Jakub Jelinek <jakub@redhat.com>
632 * gimplify.c (gimplify_omp_for): Replace index var in outer
633 taskloop statement with an artificial variable and add
634 OMP_CLAUSE_PRIVATE clause for it.
636 2017-03-08 Richard Biener <rguenther@suse.de>
638 PR tree-optimization/79955
639 * tree-ssa-uninit.c (warn_uninitialized_vars): Do not warn
640 for accesses that are completely outside of the variable.
642 2017-03-08 Andrew Haley <aph@redhat.com>
644 PR tree-optimization/79943
645 * tree-ssa-loop-split.c (compute_new_first_bound): When
646 calculating the new upper bound, (END-BEG) should be added, not
649 2017-03-08 Jakub Jelinek <jakub@redhat.com>
651 * config/avr/avr.md (setmemhi): Make sure match_dup
652 operand number comes before match_scratch.
654 2017-03-08 Richard Biener <rguenther@suse.de>
656 PR tree-optimization/79920
657 * tree-vect-slp.c (vect_create_mask_and_perm): Remove and inline
658 with ncopies == 1 to ...
659 (vect_transform_slp_perm_load): ... here. Properly compute
660 all element loads by iterating VF times over the group. Do
661 not handle ncopies (computed in a broken way) in
662 vect_create_mask_and_perm.
664 2017-03-08 Jakub Jelinek <jakub@redhat.com>
667 * internal-fn.c (expand_vector_ubsan_overflow): If arg0 or arg1
668 is a uniform vector, use uniform_vector_p return value instead of
669 building ARRAY_REF on folded VIEW_CONVERT_EXPR to array type.
671 2017-03-07 Marek Polacek <polacek@redhat.com>
674 * gimple-ssa-warn-alloca.c (pass_walloca::gate): Use HOST_WIDE_INT.
675 (alloca_call_type): Likewise.
677 2017-03-07 Martin Liska <mliska@suse.cz>
679 * gcov.c (process_args): Put comment to correct location.
681 2017-03-07 Martin Liska <mliska@suse.cz>
684 * tree-chkp.c (chkp_may_narrow_to_field): Add new argument ref.
685 Use array_at_struct_end_p instead of DECL_CHAIN (field).
686 (chkp_narrow_bounds_for_field): Likewise.
687 (chkp_parse_array_and_component_ref): Pass one more argument to
690 2017-03-07 Richard Biener <rguenther@suse.de>
692 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Preserve
695 2017-03-07 Segher Boessenkool <segher@kernel.crashing.org>
697 * config/i386/i386.c (ix86_local_alignment): Align most aggregates
698 of 16 bytes and more to 16 bytes, not those of 16 bits and more.
700 2017-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
703 * params.def (PARAM_STORE_MERGING_ALLOW_UNALIGNED): Add full stop
704 to end of description.
705 (PARAM_MAX_STORES_TO_MERGE): Likewise.
707 2017-03-07 Jakub Jelinek <jakub@redhat.com>
709 PR rtl-optimization/79901
710 * config/i386/sse.md (*avx512bw_<code><mode>3<mask_name>): Renamed to
712 (*avx512f_<code><mode>3<mask_name>): ... this.
713 (<code><mode>3 with maxmin code iterator): Use VI8_AVX2_AVX512F
714 iterator instead of VI8_AVX2_AVX512BW.
716 PR rtl-optimization/79901
717 * expr.c (expand_expr_real_2): For vector MIN/MAX, if there is no
718 min/max expander, expand it using expand_vec_cond_expr.
721 * ubsan.c (ubsan_encode_value): Call mark_addressable on the
724 2017-03-06 Jakub Jelinek <jakub@redhat.com>
727 * dwarf2out.h (dw_vec_const): Change array type from unsigned char *
728 to void * for PCH reasons.
729 * dwarf2out.c (output_loc_operands, output_die): Cast
730 v.val_vec.array to unsigned char *.
732 2017-03-06 John David Anglin <danglin@gcc.gnu.org>
735 * config/pa/pa-64.h (PAD_VARARGS_DOWN): Don't pad down complex and
738 2017-03-06 Vladimir Makarov <vmakarov@redhat.com>
740 PR rtl-optimization/79571
741 * lra-constraints.c (process_alt_operands): Calculate static
742 reject and subtract it from overall when only addresses will be
745 2017-03-06 Julia Koval <julia.koval@intel.com>
748 * config/i386/i386.c (ix86_minimum_incoming_stack_boundary): Set
749 incoming stack boundary to 128 for 64-bit targets.
751 2017-03-06 Richard Biener <rguenther@suse.de>
753 PR tree-optimization/79894
754 * tree-vectorizer.c (vectorize_loops): Set loop_vectorized_call
755 to NULL after folding it.
757 2017-03-06 Richard Biener <rguenther@suse.de>
759 PR tree-optimization/79824
760 * tree-vect-stmts.c (get_group_load_store_type): Fix alignment
761 check disabling peeling for gaps.
763 2017-03-06 Toma Tabacu <toma.tabacu@imgtec.com>
765 * doc/sourcebuild.texi (Effective-Target Keywords, Environment
766 attributes): Document gettimeofday.
768 2017-03-06 Robin Dapp <rdapp@linux.vnet.ibm.com>
770 * config/s390/s390.c (s390_option_override_internal): Set
771 PARAM_MIN_VECT_LOOP_BOUND
773 2017-03-06 Robin Dapp <rdapp@linux.vnet.ibm.com>
775 * config/s390/s390.c (s390_asm_output_function_label): Use nopr %r0.
776 * config/s390/s390.md: Likewise.
778 2017-03-06 Jakub Jelinek <jakub@redhat.com>
781 * config/i386/sse.md (VI8F_256_512): Remove mode iterator.
782 (<avx2_avx512>_perm<mode>): Rename to ...
783 (avx2_perm<mode>): ... this. Use VI8F_256 iterator instead
785 (<avx512>_perm<mode>_mask): Rename to ...
786 (avx512vl_perm<mode>_mask): ... this. Use VI8F_256 iterator instead
788 (<avx2_avx512>_perm<mode>_1<mask_name>): Rename to ...
789 (avx2_perm<mode>_1<mask_name): ... this. Use VI8F_256 iterator
790 instead of VI8F_256_512.
791 (avx512f_perm<mode>): New define_expand.
792 (avx512f_perm<mode>_mask): Likewise.
793 (avx512f_perm<mode>_1<mask_name>): New define_insn.
794 (<avx512>_vec_dup<mode>_1): Fix up vec_select mode.
796 2017-03-06 Prachi Godbole <prachi.godbole@imgtec.com>
798 * config/mips/mips-msa.md (msa_fmax_a_<msafmt>, msa_fmin_a_<msafmt>,
799 msa_max_a_<msafmt>, msa_min_a_<msafmt>): Introduce mode interator for
801 (smin<mode>3, smax<mode>3): Change operand print code from 'B' to 'E'.
803 2017-03-06 Martin Liska <mliska@suse.cz>
806 * asan.c (asan_expand_poison_ifn): Do not expand ASAN_POISON
807 when having a SSA NAME w/o VAR_DECL assigned to it.
809 2017-03-06 Prachi Godbole <prachi.godbole@imgtec.com>
811 * config/mips/mips-msa.md (msa_dotp_<su>_d, msa_dpadd_<su>_d,
812 msa_dpsub_<su>_d): Fix MODE for vec_select.
814 2017-03-06 Prachi Godbole <prachi.godbole@imgtec.com>
816 * config/mips/mips.c (mips_gen_const_int_vector): Change type of last
818 * config/mips/mips-protos.h (mips_gen_const_int_vector): Likewise.
820 2017-03-06 Richard Biener <rguenther@suse.de>
822 * lto-streamer.c (lto_check_version): Use %qs in diagnostics.
823 * plugin.c (register_plugin_info): Likewise.
824 * tree-chkp.c (chkp_make_static_const_bounds): Likewise.
826 2017-03-05 Jakub Jelinek <jakub@redhat.com>
828 * config/i386/sse.md (sse_storehps, sse_storelps,
829 avx_<castmode><avxsizesuffix>_<castmode>,
830 avx512f_<castmode><avxsizesuffix>_<castmode>,
831 avx512f_<castmode><avxsizesuffix>_256<castmode>): Require
832 in condition that at least one operand is not a MEM.
834 2017-03-03 Jakub Jelinek <jakub@redhat.com>
837 * internal-fn.def (ATOMIC_BIT_TEST_AND_SET, ATOMIC_BIT_TEST_AND_RESET,
838 ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_COMPARE_EXCHANGE): Remove
840 * gimple-fold.c (fold_builtin_atomic_compare_exchange): Set
841 gimple_call_nothrow_p flag based on whether original builtin can throw.
842 If it can, emit following stmts on the fallthrough edge.
843 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Similarly, except
844 don't create new bb if inserting just debug stmts on the edge, try to
845 insert them on the fallthru bb or just reset debug stmts.
847 2017-03-03 Segher Boesssenkool <segher@kernel.crashing.org>
850 * config/rs6000/rs6000.c (rs6000_final_prescan_insn): Save and
851 restore recog_data (including the operand rtxes inside it) around
852 the call to get_insn_template.
854 2017-03-03 Martin Sebor <msebor@redhat.com>
856 PR tree-optimization/79699
857 * context.c (context::~context): Free MPFR caches to avoid
858 a memory leak on program exit.
860 2017-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
862 * config/aarch64/aarch64.c (aarch64_float_const_representable_p):
863 Use wide_int::ulow () instead of .elt (0).
865 2017-03-03 Uros Bizjak <ubizjak@gmail.com>
867 * config/i386/i386.md (*pushtf): Change *roF constraint to *roC.
868 (*pushxf): Limit oF constraint to 32bit targets and add oC
869 constraint for 64bit targets.
870 (pushxf splitter): Use PUSH_ROUNDING to calculate stack adjustment.
871 (*pushdf): Change rmF constraint to rmC.
873 2017-03-03 Martin Liska <mliska@suse.cz>
875 * tree-ssa-loop-prefetch.c (pass_loop_prefetch::execute):
876 Remove unused variable.
878 2017-03-03 Jakub Jelinek <jakub@redhat.com>
881 * config/i386/i386.c (ix86_expand_multi_arg_builtin): If target
882 is a memory operand, increase num_memory.
883 (ix86_expand_args_builtin): Likewise.
885 2017-03-03 Jan Hubicka <jh@suse.cz>
888 * ipa-devirt.c (maybe_record_node): Properly handle
889 __cxa_pure_virtual visibility.
891 2017-03-03 Martin Liska <mliska@suse.cz>
893 PR tree-optimization/79803
894 * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Remove
896 (pass_loop_prefetch::execute): Disabled optimization if an
897 assumption about L1 cache size is not met.
899 2017-03-03 Martin Liska <mliska@suse.cz>
901 PR rtl-optimization/79574
902 * gcse.c (struct gcse_expr): Use HOST_WIDE_INT instead of int.
903 (hash_scan_set): Likewise.
904 (dump_hash_table): Likewise.
905 (hoist_code): Likewise.
907 2017-03-03 Richard Biener <rguenther@suse.de>
909 * fixed-value.c (fixed_from_string): Restore use of elt (1)
910 in place of uhigh ().
911 (fixed_convert_from_real): Likewise.
913 2017-03-03 Uros Bizjak <ubizjak@gmail.com>
916 * config/i386/i386.md (*pushxf_rounded): Use Pmode instead of DImode.
918 2017-03-03 Richard Biener <rguenther@suse.de>
921 * match.pd ( X +- C1 CMP C2 -> X CMP C2 -+ C1): Add missing
922 TYPE_OVERFLOW_UNDEFINED check.
924 2017-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
926 * config/rs6000/vector.md (vector_ne_<mode>_p): Correct operand
928 (vector_ae_<mode>_p): Likewise.
929 (vector_nez_<mode>_p): Likewise.
930 (vector_ne_v2di_p): Likewise.
931 (vector_ae_v2di_p): Likewise.
932 (vector_ne_<mode>_p): Likewise.
933 * config/rs6000/vsx.md (vsx_tsqrt<mode>2_fg): Correct operand
935 (vsx_tsqrt<mode>2_fe): Likewise.
937 2017-03-02 Uros Bizjak <ubizjak@gmail.com>
940 * config/i386/i386.md (*pushxf_rounded): New insn_and_split pattern.
942 2017-03-02 Jakub Jelinek <jakub@redhat.com>
944 PR rtl-optimization/79780
945 * cprop.c (one_cprop_pass): When second and further conditional trap
946 in a single basic block is turned into an unconditional trap, turn it
947 into a deleted note to avoid RTL verification failures.
949 2017-03-02 Richard Biener <rguenther@suse.de>
951 * fold-const.c (const_binop): Use ulow () instead of elt (0).
953 2017-03-02 Richard Biener <rguenther@suse.de>
955 PR tree-optimization/79345
957 * tree-ssa-alias.c (walk_aliased_vdefs_1): Take a limit
958 param and abort the walk, returning -1 if it is hit.
959 (walk_aliased_vdefs): Take a limit param and pass it on.
960 * tree-ssa-alias.h (walk_aliased_vdefs): Add a limit param,
961 defaulting to 0 and return a signed int.
962 * tree-ssa-uninit.c (struct check_defs_data): New struct.
963 (check_defs): New helper.
964 (warn_uninitialized_vars): Use walk_aliased_vdefs to warn
965 about uninitialized memory.
966 * fixed-value.c (fixed_from_string): Use ulow/uhigh to avoid
967 bogus uninitialized warning.
968 (fixed_convert_from_real): Likewise.
970 2017-03-02 Bin Cheng <bin.cheng@arm.com>
972 PR tree-optimization/66768
973 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Skip addr
974 iv_use if base object can't be determined.
976 2017-03-02 Jakub Jelinek <jakub@redhat.com>
978 PR tree-optimization/79345
979 * gensupport.h (struct pattern_stats): Add min_scratch_opno field.
980 * gensupport.c (get_pattern_stats_1) <case MATCH_SCRATCH>: Update it.
981 (get_pattern_stats): Initialize it.
982 * genemit.c (gen_expand): Verify match_scratch numbers come after
983 match_operand/match_dup numbers.
984 * config/i386/i386.md (<s>mul<mode>3_highpart): Swap match_dup and
985 match_scratch numbers.
986 * config/i386/sse.md (avx2_gathersi<mode>, avx2_gatherdi<mode>):
988 * config/s390/s390.md (trunctdsd2): Likewise.
990 2017-03-02 Richard Biener <rguenther@suse.de>
992 * wide-int.h (wide_int_storage::operator=): Implement in terms
995 2017-03-02 Richard Biener <rguenther@suse.de>
997 PR tree-optimization/79777
998 * tree-ssa-pre.c (eliminate_insert): Give up if we simplify
999 the to insert expression to sth existing.
1001 2017-03-01 Martin Sebor <msebor@redhat.com>
1004 * gimple-ssa-sprintf.c
1005 (directive::known_width_and_precision): New function.
1006 (format_integer): Use it.
1007 (get_mpfr_format_length): Consider the full range of precision
1008 when computing %g output with the # flag. Set the likely byte
1009 count to 3 rather than 1 when precision is indeterminate.
1010 (format_floating): Correct the lower bound of precision.
1012 2017-03-01 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1014 * doc/invoke.texi: Document default code model for 64-bit Linux.
1016 2017-03-01 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
1019 * config/rs6000/rs6000.md (peephole2 for udiv/umod): Should emit
1020 udiv rather than div since input pattern is unsigned.
1022 2017-03-01 Uros Bizjak <ubizjak@gmail.com>
1024 * config/i386/i386.c (print_reg): Warn for values of
1025 unsupported size in integer register.
1027 2017-03-01 Michael Meissner <meissner@linux.vnet.ibm.com>
1030 * config/rs6000/predicates.md (current_file_function_operand): Do
1031 not allow self calls to be local if the function is replaceable.
1033 2017-03-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
1036 * config/rs6000/altivec.h (vec_ctz and others): Change the
1037 preprocessor macro that controls conditional compilation from
1038 _ARCH_PWR9 to __POWER9_VECTOR__.
1039 (vec_all_ne): Change parameterization of __altivec_scalar_pred
1040 macro expansion under preprocessor #ifdef __POWER9_VECTOR__
1041 control (instead of _ARCH_PWR9 control) so that template
1042 definition uses power9-specific function.
1043 (vec_any_eq): Likewise.
1044 (vec_all_ne): Change macro definition to use a power9-specific
1045 expansion under #ifdef __POWER9_VECTOR__ control (instead of
1046 _ARCH_PWR9 control).
1047 (vec_any_eq) Likewise.
1048 * config/rs6000/rs6000-builtin.def (CMPNEF): Remove BU_P9V_AV_2
1049 expansion for CMPNEF to remove support for xvcmpnesp instruction.
1050 (CMPNED): Remove BU_P9V_AV2 expansion for CMPNED to remove
1051 support for xvcmpnedp instruction.
1052 (VCMPNEB_P): Replace BU_P9V_AV_P macro expansion with BU_P9V_AV_2
1053 macro expansion so that Power9 implementation of vec_all_ne does
1054 not use the AltiVec predicate framework.
1055 (VCMPNEH_P): Likewise.
1056 (VCMPNEW_P): Likewise.
1057 (VCMPNED_P): Likewise.
1058 (VCMPNEFP_P): Likewise.
1059 (VCMPNEDP_P): Likewise.
1060 (VCMPAEB_P): Add BU_P9V_AV_2 macro expansion to change
1061 implementation of vec_any_eq to not use AltiVec predicate
1063 (VCMPAEH_P): Likewise.
1064 (VCMPAEW_P): Likewise.
1065 (VCMPAED_P): Likewise.
1066 (VCMPAEFP_P): Likewise.
1067 (VCMPAEDP_P): Likewise.
1068 (VCMPNE_P): Replace BU_P9V_OVERLOAD_P macro expansion with
1069 BU_P9V_OVERLOAD_2 so that Power9 implementation of vec_all_ne does
1070 not use the AltiVec predicate framework.
1071 (VCMPAE_P): Add BU_P9V_OVERLOAD_2 macro to change implementation
1072 of vec_any_eq to not use AltiVec predicate framework.
1073 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Add
1074 support for predefined __POWER9_VECTOR__ macro to indicate that
1075 Power9 instruction selection is enabled.
1076 (altivec_overloaded_builtins): Remove extraneous
1077 ALTIVEC_BUILTIN_VEC_CMPNE entry for overloaded
1078 function argument types RS6000_BTI_bool_V16QI and
1079 RS6000_BTI_bool_V16QI. Remove erroneous ALTIVEC_BUILTIN_VEC_CMPNE
1080 entry for overloaded function argument types RS6000_BTI_bool_V4SI
1081 andRS6000_BTI_bool_V4SI, mapping to P9V_BUILTIN_CMPNEB. Remove
1082 two entries mapping to P9V_BUITIN_CMPNED and one entry mapping to
1083 P9V_BUILTIN_CMPNEF to force use of instructions not specific to
1084 Power9 for implementations of vec_cmpne. Change the signature for
1085 all definitions of the overloaded P9V_BUILTIN_VEC_CMPNE_P function
1086 (representing vec_all_ne) to remove the previously described first
1087 argument of type RS6000_BTI_INTSI, as this was an artifact of
1088 reliance on the AltiVec predicate framework, which is no longer
1089 used in the implementation of these functions. Add
1090 P9V_BUILTIN_VEC_VCMPAE_P entries (representing the vec_anyeq
1091 function) to match all of the P9V_BUILTIN_VEC_VCMNE_P entries
1092 since, unlike the AltiVec predicate framework implementation, we
1093 do not share function descriptors between vec_alle and vec_anyeq.
1094 (altivec_resolve_overloaded_builtin): Add SFmode and DFmode to the
1095 set of modes that receive special treatment even when
1096 TARGET_P9_VECTOR is true. The special treatment emits code that
1097 does not depend on Power9 instructions.
1098 * config/rs6000/vector.md (vector_ne_<mode>_p): Change this
1099 define_expand to not rely on AltiVec predicate framework.
1100 (vector_ae_<mode>p): New define_expand to represent vec_any_eq
1102 (vector_ne_v2di_p): Change this define_expand to not rely on
1103 AltiVec predicate framework.
1104 (vector_ae_v2di_p): New define_expand to represent vec_any_eq
1106 (vector_ne_<mode>_p): Change this define_expand to not rely on
1107 AltiVec predicate framework.
1108 (vector_ae_<mode>p): New define_expand to represent vec_any_eq
1110 * config/rs6000/vsx.md (*vsx_ne_<mode>_p): For modes VSX_EXTRACT_I
1111 (V16QI, V8HI, V4SI), correct a typo in the code emitted for this
1112 define_insn pattern.
1113 (*vsx_ne_<mode>_p): For modes VSX_F (V4SF and V2DF), remove this
1114 define_insn pattern because the xvcmpne<VSs>. instruction is not
1116 (vcmpne<VSs>): Remove this define_insn because xvcmpne<VSs>
1117 instruction is not supported.
1119 2017-03-01 Jakub Jelinek <jakub@redhat.com>
1121 * config/nvptx/nvptx.c: Include intl.h.
1123 2017-03-01 Martin Jambor <mjambor@suse.cz>
1126 * ipa-prop.h (ipa_bits): Removed field known.
1127 (ipa_jump_func): Removed field vr_known. Changed fields bits and m_vr
1128 to pointers. Adjusted their comments to warn about their sharing.
1129 (ipcp_transformation_summary): Change bits to a vector of pointers.
1130 (ipa_check_create_edge_args): Moved to ipa-prop.c, declare.
1131 (ipa_get_ipa_bits_for_value): Declare.
1132 * tree-vrp.h (value_range): Mark as GTY((for_user)).
1133 * ipa-prop.c (ipa_bit_ggc_hash_traits): New.
1134 (ipa_bits_hash_table): Likewise.
1135 (ipa_vr_ggc_hash_traits): Likewise.
1136 (ipa_vr_hash_table): Likewise.
1137 (ipa_print_node_jump_functions_for_edge): Adjust for bits and m_vr
1138 being pointers and vr_known being removed.
1139 (ipa_set_jf_unknown): Likewise.
1140 (ipa_get_ipa_bits_for_value): New function.
1141 (ipa_set_jfunc_bits): Likewise.
1142 (ipa_get_value_range): New overloaded functions.
1143 (ipa_set_jfunc_vr): Likewise.
1144 (ipa_compute_jump_functions_for_edge): Use the above functions to
1145 construct bits and vr parts of jump functions.
1146 (ipa_check_create_edge_args): Move here from ipa-prop.h, also allocate
1147 ipa_bits_hash_table and ipa_vr_hash_table if they do not already
1149 (ipcp_grow_transformations_if_necessary): Also allocate
1150 ipa_bits_hash_table and ipa_vr_hash_table if they do not already
1152 (ipa_node_params_t::duplicate): Do not copy bits, just pointers to
1153 them. Fix too long lines.
1154 (ipa_write_jump_function): Adjust for bits and m_vr being pointers and
1155 vr_known being removed.
1156 (ipa_read_jump_function): Use new setter functions to construct bits
1157 and vr parts of jump functions or set them to NULL.
1158 (write_ipcp_transformation_info): Adjust for bits being pointers.
1159 (read_ipcp_transformation_info): Likewise.
1160 (ipcp_update_bits): Likewise. Fix excessively long lines a trailing
1162 Include gt-ipa-prop.h.
1163 * ipa-cp.c (propagate_bits_across_jump_function): Adjust for bits
1165 (ipcp_store_bits_results): Likewise.
1166 (propagate_vr_across_jump_function): Adjust for m_vr being a pointer.
1167 Do not write to existing jump functions but use a temporary instead.
1169 2017-03-01 Jakub Jelinek <jakub@redhat.com>
1172 * fold-const.c (make_bit_field_ref): If orig_inner is COMPONENT_REF,
1173 attempt to use its first operand as BIT_FIELD_REF base.
1175 2017-03-01 Richard Biener <rguenther@suse.de>
1178 * tree-chrec.c (chrec_evaluate): Perform computation of Newtons
1179 interpolating formula in wrapping arithmetic.
1180 (chrec_apply): Convert chrec_evaluate return value to wanted type.
1182 2017-03-01 Jakub Jelinek <jakub@redhat.com>
1184 PR tree-optimization/79734
1185 * tree-vect-generic.c (expand_vector_condition): Optimize
1186 AVX512 vector boolean VEC_COND_EXPRs into bitwise operations.
1187 Handle VEC_COND_EXPR where comparison has different inner width from
1190 2017-02-28 Sandra Loosemore <sandra@codesourcery.com>
1192 * doc/invoke.texi (ARC Options): Copy-edit to fix punctuation,
1193 markup, and similar issues. Remove @opindex entries for things
1194 that aren't options. Add missing -mmpy-option entries.
1196 2017-02-28 Jakub Jelinek <jakub@redhat.com>
1198 PR tree-optimization/79737
1199 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): If bitlen is
1200 a multiple of BITS_PER_UNIT and !BYTES_BIG_ENDIAN, clear
1201 tmpbuf[byte_size - 1]. Call natice_encode_expr with byte_size - 1
1202 instead of byte_size. Formatting fix.
1203 (shift_bytes_in_array_right): Formatting fix.
1205 2017-02-28 Eric Botcazou <ebotcazou@adacore.com>
1208 * config/sparc/sparc.c (sparc_frame_pointer_required): Add missing
1209 condition on optimize for the leaf function test.
1211 2017-02-28 Martin Liska <mliska@suse.cz>
1214 * read-rtl-function.c (function_reader::handle_unknown_directive):
1215 Bail out when one uses -flto.
1217 2017-02-28 Martin Liska <mliska@suse.cz>
1219 * common.opt: Replace space with tabular for options of <number>
1221 * config/i386/i386.opt: Show <number> value for
1222 -mlarge-data-threshold.
1223 * opts.c (print_filtered_help): Do not display number in hexadecimal
1226 2017-02-28 Martin Liska <mliska@suse.cz>
1228 * common.opt: Fix --help=option -Q for options which are of
1231 2017-02-28 Uros Bizjak <ubizjak@gmail.com>
1233 * config/i386/i386.c (print_reg): Error out for values
1234 of 8-bit size in invalid integer register.
1236 2017-02-28 Martin Sebor <msebor@redhat.com>
1238 PR tree-optimization/79691
1239 * passes.def (pass_all_optimizations_g): Enable pass_sprintf_length.
1241 2017-02-28 Jakub Jelinek <jakub@redhat.com>
1244 * config/i386/i386.c (ix86_print_operand) <case 'R'>: Replace
1245 gcc_unreachable with output_operand_lossage.
1247 2017-02-28 Richard Biener <rguenther@suse.de>
1249 PR tree-optimization/79740
1250 * tree-ssa-sccvn.c (vn_nary_op_insert_into): Allow redundant
1252 (visit_nary_op): Insert the nary into the hashtable if we
1253 pattern-matched sth.
1254 * tree-ssa-pre.c (eliminate_insert): Robustify.
1256 2017-02-28 Richard Biener <rguenther@suse.de>
1259 * fold-const.c (decode_field_reference): Reject out-of-bound
1262 2017-02-28 Jakub Jelinek <jakub@redhat.com>
1264 * config/i386/i386.c: Include intl.h.
1265 (ix86_option_override_internal): Use cond ? G_("...") : G_("...")
1266 instead of just cond ? "..." : "...".
1267 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Likewise.
1268 * coverage.c (read_counts_file): Likewise.
1269 * omp-offload.c: Include intl.h.
1270 (oacc_loop_fixed_partitions): Use cond ? G_("...") : G_("...") instead
1271 of just cond ? "..." : "...".
1272 * gcov.c (read_count_file): Use cond ? N_("...") : N_("...") instead
1273 of just cond ? "..." : "...".
1275 2017-02-28 Richard Earnshaw <rearnsha@arm.com>
1278 * config/arm/parsecpu.awk (gen_data): Set tuning target to 'tune for'
1280 * config/arm/arm-cpus.in (cortex-m0plus.small-multiply): Correct
1281 'tune for' CPU name.
1282 * config/arm/arm-cpu-data.h: Regenerated.
1284 2017-02-28 Richard Biener <rguenther@suse.de>
1286 PR tree-optimization/79732
1287 * tree-inline.c (expand_call_inline): Do not shadow var.
1289 2017-02-28 Richard Biener <rguenther@suse.de>
1291 PR tree-optimization/79723
1292 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Preserve
1293 address-space properly.
1295 2017-02-28 Thomas Schwinge <thomas@codesourcery.com>
1297 * doc/optinfo.texi (Optimization groups): Fix option used for
1299 * doc/invoke.texi (-fopt-info): Document "omp".
1300 * dumpfile.h: Sort OPTGROUP_OMP before OPTGROUP_VEC.
1301 (OPTGROUP_ALL): Add OPTGROUP_OMP.
1302 * hsa-gen.c (pass_data_gen_hsail): Use OPTGROUP_OMP.
1303 * ipa-hsa.c (pass_data_ipa_hsa): Likewise.
1304 * omp-simd-clone.c (pass_data_omp_simd_clone): Likewise.
1306 * dumpfile.h (OPTGROUP_OPENMP): Rename to OPTGROUP_OMP. Adjust
1308 * dumpfile.c (optgroup_options): Instead of "openmp", associate
1309 OPTGROUP_OMP with "omp".
1311 2017-02-27 Pat Haugen <pthaugen@us.ibm.com>
1314 * config/rs6000/rs6000-c.c (struct altivec_builtin_types): Use VSRAD
1315 for arithmetic shift of unsigned V2DI.
1317 2017-02-27 Claudiu Zissulescu <claziss@synopsys.com>
1319 * config.gcc (arc*-): Clean up, use arc/big.h, arc/elf.h, and
1320 arc/linux.h headers.
1321 * config/arc/arc.h (TARGET_OS_CPP_BUILTINS): Remove.
1322 (LINK_SPEC): Likewise.
1323 (ARC_TLS_EXTRA_START_SPEC): Likewise.
1324 (EXTRA_SPECS): Likewise.
1325 (STARTFILE_SPEC): Likewise.
1326 (ENDFILE_SPEC): Likewise.
1327 (LIB_SPEC): Likewise.
1328 (TARGET_SDATA_DEFAULT): Likewise.
1329 (TARGET_MMEDIUM_CALLS_DEFAULT): Likewise.
1330 (MULTILIB_DEFAULTS): Likewise.
1331 (DWARF2_UNWIND_INFO): Likewise.
1332 * config/arc/big.h: New file.
1333 * config/arc/elf.h: Likewise.
1334 * config/arc/linux.h: Likewise.
1335 * config/arc/t-uClibc: Remove.
1337 2017-02-27 Bin Cheng <bin.cheng@arm.com>
1339 PR tree-optimization/77536
1340 * tree-ssa-loop-manip.c (niter_for_unrolled_loop): New function.
1341 (tree_transform_and_unroll_loop): Use above function to compute the
1342 estimated niter of unrolled loop and use it when scaling profile.
1343 Also use count info rather than frequency if it's non-zero.
1344 * tree-ssa-loop-manip.h niter_for_unrolled_loop(): New declaration.
1345 * tree-vect-loop.c (scale_profile_for_vect_loop): New function.
1346 (vect_transform_loop): Call above function.
1348 2017-02-27 Richard Biener <rguenther@suse.de>
1350 PR tree-optimization/45397
1351 * tree-ssa-pre.c (eliminate_insert): Handle BIT_AND_EXPR.
1352 * tree-ssa-sccvn.c (valueized_wider_op): New helper.
1353 (visit_nary_op): Add pattern matching for CSEing sign-changed
1354 or truncated operations with wider ones.
1356 2017-02-27 Richard Biener <rguenther@suse.de>
1358 PR tree-optimization/79690
1359 * tree-vect-stmts.c (vectorizable_store): Use vector type
1360 built from the DR with address-space.
1362 2017-02-26 Gerald Pfeifer <gerald@pfeifer.com>
1364 * doc/invoke.texi (Optimize Options): Refine the description
1365 of asan-use-after-return.
1367 2017-02-25 Alan Modra <amodra@gmail.com>
1369 PR rtl-optimization/79584
1370 * lra-constraints.c (base_to_reg): Reload ad->base, the entire
1371 base, not ad->base_term, the reg within base. Remove assertion
1372 that ad->base == ad->base_term. Replace gen_int_mode using
1373 bogus mode with const0_rtx.
1375 2017-02-25 Jakub Jelinek <jakub@redhat.com>
1378 * tree-eh.c (operation_could_trap_p, stmt_could_throw_1_p): Handle
1379 FMA_EXPR like tcc_binary or tcc_unary.
1381 * tree-ssa-loop-niter.c (number_of_iterations_exit): Simplify warning.
1384 * dwarf2out.c (struct dw_loc_list_struct): Add noted_variable_value
1386 (size_of_loc_descr): Handle DW_OP_GNU_variable_value.
1387 (output_loc_operands): Handle DW_OP_call_ref and
1388 DW_OP_GNU_variable_value.
1389 (struct variable_value_struct): New type.
1390 (struct variable_value_hasher): Likewise.
1391 (variable_value_hash): New variable.
1392 (string_types): Remove.
1393 (copy_loc_descr): New function.
1394 (add_loc_descr_to_each): Clarify comment. Use copy_loc_descr.
1395 (prepend_loc_descr_to_each): New function.
1396 (add_loc_list): Fix comment typo. Use prepend_loc_descr_to_each
1397 instead of add_loc_descr_to_each if the first argument is single
1398 location list and the second has multiple.
1399 (resolve_args_picking_1): Handle DW_OP_GNU_variable_value.
1400 (loc_list_from_tree_1): For early_dwarf, emit DW_OP_GNU_variable_value
1401 when looking for variable value which doesn't have other location info.
1402 (loc_list_from_tree): Formatting fix.
1403 (gen_array_type_die): Simplify DW_AT_string_length handling.
1404 (adjust_string_types): Remove.
1405 (gen_subprogram_die): Don't call adjust_string_types nor test/set
1406 string_types. Call resolve_variable_values.
1407 (prune_unused_types_walk_loc_descr): Handle DW_OP_GNU_variable_value.
1408 (resolve_addr_in_expr): Likewise. Add A argument.
1409 (copy_deref_exprloc): Remove deref argument. Adjust for the
1410 original expression being DW_OP_GNU_variable_value with optionally
1411 DW_OP_stack_value after it instead of DW_OP_call4 with DW_OP_deref
1412 optionally after it.
1413 (optimize_string_length): Rework for DW_OP_GNU_variable_value.
1414 (resolve_addr): Adjust optimize_string_length and resolve_addr_in_expr
1415 callers. Set remove_AT_byte_size if removing DW_AT_string_length.
1416 (variable_value_hasher::hash, variable_value_hasher::equal): New
1418 (resolve_variable_value_in_expr, resolve_variable_value,
1419 resolve_variable_values, note_variable_value_in_expr,
1420 note_variable_value): New functions.
1421 (dwarf2out_early_finish): Call note_variable_value on all toplevel
1424 2017-02-24 Jakub Jelinek <jakub@redhat.com>
1427 * opts.h (handle_generated_option): Add GENERATED_P argument.
1428 * opts-common.c (handle_option): Adjust function comment.
1429 (handle_generated_option): Add GENERATED_P argument, pass it to
1431 (control_warning_option): Pass false to handle_generated_option
1433 * opts.c (maybe_default_option): Pass true to handle_generated_option
1435 * optc-gen.awk: Likewise.
1437 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
1439 * config/sh/sh.md (tstsi_t): If operands[0] is a SUBREG instead of
1440 a REG, look at the REG it is a SUBREG of.
1441 (splitter for cmpeqsi_t): Ditto.
1443 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
1445 * config/pa/pa.c (pa_combine_instructions): Do not share RTL. Make
1446 the special USEs with the pattern of the insn, not the insn itself.
1448 2017-02-24 Matthew Fortune <matthew.fortune@imgtec.com>
1451 * doc/invoke.texi: Document -mload-store-pairs.
1453 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
1454 Sandra Loosemore <sandra@codesourcery.com>
1456 * config/nios2/nios2.c (nios2_simple_const_p): Returns false if the
1457 argument isn't a CONST_INT.
1458 (nios2_alternate_compare_const): Assert op is a CONST_INT.
1459 (nios2_valid_compare_const_p): Assert op is a CONST_INT.
1460 (nios2_validate_compare): Bypass alternate compare logic if *op2
1462 (ldstwm_operation_p): Return false if first_base is not a REG or
1463 if first_offset is not a CONST_INT.
1465 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
1467 * config/cris/cris.md: Use correct operand in a define_peephole2.
1469 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
1471 * config/c6x/c6x.c (predicate_insn): Do not incorrectly share RTL.
1473 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
1475 * config/arc/arc.c (arc_ccfsm_advance): Only take the PATTERN of
1476 this_insn if it is an INSN or JUMP_INSN.
1477 (force_offsettable): Look at base, not at addr.
1478 * config/arc/predicates.md (brcc_nolimm_operator): Don't call INTVAL
1479 on things that aren't necessarily CONST_INTs.
1481 2017-02-24 Uros Bizjak <ubizjak@gmail.com>
1483 * doc/invoke.texi (x86 Options, -mfpmath=sse): Mention that
1484 -mfpmath=sse is the default also for x86-32 targets with SSE2
1485 instruction set when @option{-ffast-math} is enabled
1487 2017-02-24 Jeff Law <law@redhat.com>
1489 PR rtl-optimizatoin/79286
1490 * ira.c (update_equiv_regs): Drop may_trap_p exception to
1493 2017-02-24 Richard Biener <rguenther@suse.de>
1495 PR tree-optimization/79389
1496 * gimple-ssa-split-paths.c (is_feasible_trace): Properly skip
1499 2017-02-24 Aldy Hernandez <aldyh@redhat.com>
1501 * tree-ssa-loop-niter.c (number_of_iterations_exit): Update
1502 function comment to reflect reality.
1503 (loop_exits_before_overflow): Fix typo in function description.
1505 2017-02-24 Richard Biener <rguenther@suse.de>
1507 PR tree-optimization/79389
1508 * gimple-ssa-split-paths.c (is_feasible_trace): Verify more
1509 properly that a threading opportunity exists. Detect conditional
1510 copy/constant propagation opportunities.
1512 2017-02-23 Eric Botcazou <ebotcazou@adacore.com>
1514 * config/visium/visium.md (type): Add trap.
1515 (b): New mode attribute.
1516 (*btst): Rename into...
1517 (*btst<mode>): ...this and adjust.
1518 (*cbranchsi4_btst_insn): Rename into...
1519 (*cbranch<mode>4_btst_insn): ...this and adjust.
1520 (trap): New define_insn.
1522 2017-02-23 Jakub Jelinek <jakub@redhat.com>
1524 PR tree-optimization/79389
1525 * ifcvt.c (struct noce_if_info): Add rev_cond field.
1526 (noce_reversed_cond_code): New function.
1527 (noce_emit_store_flag): Use rev_cond if non-NULL instead of
1528 reversed_comparison_code. Formatting fix.
1529 (noce_try_store_flag): Test rev_cond != NULL in addition to
1530 reversed_comparison_code.
1531 (noce_try_store_flag_constants): Likewise.
1532 (noce_try_store_flag_mask): Likewise.
1533 (noce_try_addcc): Use rev_cond if non-NULL instead of
1534 reversed_comparison_code.
1535 (noce_try_cmove_arith): Likewise. Formatting fixes.
1536 (noce_try_minmax, noce_try_abs): Clear rev_cond.
1537 (noce_find_if_block): Initialize rev_cond.
1538 (find_cond_trap): Call noce_get_condition with then_bb == trap_bb
1539 instead of false as last argument never attempt to reverse it
1542 2017-02-23 Bin Cheng <bin.cheng@arm.com>
1544 PR tree-optimization/79663
1545 * tree-predcom.c (combine_chains): Process refs in reverse order
1546 only for ZERO length chains, and add explaining comment.
1548 2017-02-23 Jeff Law <law@redhat.com>
1550 PR tree-optimization/79578
1551 * tree-ssa-dse.c (clear_bytes_written_by): Use OEP_ADDRESS_OF
1552 in call to operand_equal_p.
1554 2017-01-23 Dominique d'Humieres <dominiq@lps.ens.fr>
1557 * config/i386/cpuid.h: Fix another undefined behavior.
1559 2017-02-23 Richard Biener <rguenther@suse.de>
1561 PR tree-optimization/79683
1562 * tree-vect-stmts.c (vect_analyze_stmt): Do not overwrite
1563 vector types for data-refs.
1565 2017-02-23 Martin Liska <mliska@suse.cz>
1567 * params.def (PARAM_MIN_NONDEBUG_INSN_UID): Change default to 0.
1569 2017-02-23 Jakub Jelinek <jakub@redhat.com>
1572 * internal-fn.c (get_range_pos_neg): Moved to ...
1573 * tree.c (get_range_pos_neg): ... here. No longer static.
1574 * tree.h (get_range_pos_neg): New prototype.
1575 * expr.c (expand_expr_real_2) <case TRUNC_DIV_EXPR>: If both arguments
1576 are known to be in between 0 and signed maximum inclusive, try to
1577 expand both unsigned and signed divmod and use the cheaper one from
1580 2017-02-22 Jeff Law <law@redhat.com>
1582 PR tree-optimization/79578
1583 * tree-ssa-dse.c (clear_bytes_written_by): Use operand_equal_p
1584 to compare base operands.
1586 2017-02-22 Segher Boessenkool <segher@kernel.crashing.org>
1589 * config/rs6000/rs6000.md (*fsel<SFDF:mode><SFDF2:mode>4): Use
1590 gpc_reg_operand instead of fpr_reg_operand.
1592 2017-02-22 Sameera Deshpande <sameera.deshpande@imgtec.com>
1594 * config/mips/mips.c (mips_return_in_memory): Force FP
1595 vector types to be returned in memory for o32 ABI.
1597 2017-02-22 Jakub Jelinek <jakub@redhat.com>
1599 * dwarf2out.c (gen_variable_die): For -gdwarf-5, use DW_TAG_variable
1600 instead of DW_TAG_member for static data member declarations and don't
1601 set no_linkage_name for static inline data members.
1602 (gen_member_die): For -gdwarf-5 don't change DW_TAG_variable
1605 2017-02-22 Martin Liska <mliska@suse.cz>
1607 * doc/invoke.texi: Replace inequality signs with square brackets
1610 2017-02-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1612 PR tree-optimization/68644
1613 * gcc.dg/tree-ssa/ivopts-lt-2.c: Skip for powerpc*-*-*.
1615 2017-02-22 Matthew Fortune <matthew.fortune@imgtec.com>
1618 * lra-constraints.c (simplify_operand_subreg): Handle
1619 WORD_REGISTER_OPERATIONS targets.
1621 2017-02-22 Jakub Jelinek <jakub@redhat.com>
1624 * reg-stack.c (emit_swap_insn): Treat (float_extend:?F (mem:?F))
1625 and (const_double:?F) like (mem:?F) for the purpose of fxch %st(1)
1626 elimination by swapping fld*.
1628 2017-02-22 Richard Biener <rguenther@suse.de>
1630 PR tree-optimization/79673
1631 * tree-ssa-pre.c (compute_avail): Use wide_int_to_tree to
1632 convert the [TARGET_]MEM_REF offset INTEGER_CST, scrapping off
1633 irrelevant address-space qualifiers and avoiding a
1634 ADDR_SPACE_CONVERT_EXPR from fold_convert.
1636 2017-02-22 Richard Biener <rguenther@suse.de>
1638 PR tree-optimization/79666
1639 * tree-vrp.c (extract_range_from_binary_expr_1): Make sure
1640 to not symbolically negate if that may introduce undefined
1643 2017-02-22 Martin Liska <mliska@suse.cz>
1646 * data-streamer-in.c (streamer_read_gcov_count): Remove assert.
1647 * data-streamer-out.c (streamer_write_gcov_count_stream):
1649 * value-prof.c (stream_out_histogram_value): Make assert more
1650 precise based on type of counter.
1652 2017-02-21 Uros Bizjak <ubizjak@gmail.com>
1655 * config/i386/i386.md (standard_x87sse_constant_load splitter):
1656 Use nonimmediate_operand instead of memory_operand for operand 1.
1657 (float-extend standard_x87sse_constant_load splitter): Ditto.
1659 2017-02-21 Jeff Law <law@redhat.com>
1661 PR tree-optimization/79621
1662 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior): Ignore
1663 blocks with edges to themselves.
1665 2017-02-21 Jakub Jelinek <jakub@redhat.com>
1668 * tree-chkp-opt.c (chkp_optimize_string_function_calls): Use
1669 is_gimple_call instead of comparing gimple_code with GIMPLE_CALL.
1670 Use gimple_call_builtin_p.
1673 * sel-sched.c (moveup_expr_cached): Don't call sel_bb_head
1674 on temporarily removed DEBUG_INSNs.
1676 PR tree-optimization/79649
1677 * tree-loop-distribution.c (classify_partition): Give up on
1678 non-generic address space loads/stores.
1680 2017-02-21 Aldy Hernandez <aldyh@redhat.com>
1682 * doc/loop.texi (Loop manipulation): Remove nonexistent
1683 tree_ssa_loop_version from the documentation.
1684 * cfgloopmanip.c (loop_version): Document CONDITION_BB argument.
1686 2017-02-21 Jakub Jelinek <jakub@redhat.com>
1689 * config/i386/i386.c (ix86_expand_split_stack_prologue): Call
1690 make_reg_eh_region_note_nothrow_nononlocal on call_insn.
1691 * config/rs6000/rs6000.c: Include except.h.
1692 (rs6000_expand_split_stack_prologue): Call
1693 make_reg_eh_region_note_nothrow_nononlocal on the call insn.
1695 2017-02-21 Martin Jambor <mjambor@suse.cz>
1698 * ipa-prop.c (ipa_prop_write_jump_functions): Bail out if no edges
1701 2017-02-21 Martin Jambor <mjambor@suse.cz>
1703 * common.opt (-fipa-cp-alignment): Mark as ignored and preserved
1704 for backward compatibility only.
1705 * doc/invoke.texi (Option Summary): Remove all references to
1708 2017-02-21 Matthew Fortune <matthew.fortune@imgtec.com>
1712 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
1714 * lra-constraints.c (curr_insn_transform): Handle
1715 WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
1717 2017-02-21 Martin Liska <mliska@suse.cz>
1719 * config/i386/i386.opt: Replace -masm-dialect with -masm.
1721 2017-02-21 Thomas Schwinge <thomas@codesourcery.com>
1723 PR translation/79638
1724 * config/nvptx/nvptx.c (ENTRY_TEMPLATE): Single out "%ntid.y".
1726 2017-02-21 Eric Botcazou <ebotcazou@adacore.com>
1729 * config/arm/arm.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
1730 (arm_function_ok_for_sibcall): Return false for an indirect call by
1731 descriptor if all the argument registers are used.
1732 (arm_relayout_function): Use FUNCTION_ALIGNMENT macro to adjust the
1733 alignment of the function.
1735 2017-02-21 Jakub Jelinek <jakub@redhat.com>
1737 PR tree-optimization/61441
1738 * simplify-rtx.c (simplify_const_unary_operation): For
1739 -fsignaling-nans and sNaN operand, return NULL_RTX rather than
1740 the sNaN unmodified.
1742 2017-02-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
1744 * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
1745 (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
1746 instead of SYSTEM_HEADER_DIR.
1748 2017-02-20 Gerald Pfeifer <gerald@pfeifer.com>
1749 Martin Liška <mliska@suse.cz>
1751 * doc/invoke.texi (use-after-scope-direct-emission-threshold):
1752 Fix typos and grammar, use active voice, and clarify.
1754 2017-02-20 Marek Polacek <polacek@redhat.com>
1757 * gimplify.c (gimplify_expr): Handle unused *&&L;.
1760 * ubsan.c (ubsan_type_descriptor): Check if TYPE_MAX_VALUE is null.
1762 2017-02-20 Jakub Jelinek <jakub@redhat.com>
1765 * config/i386/i386.c (ix86_expand_builtin): Handle
1766 OPTION_MASK_ISA_AVX512VL and OPTION_MASK_ISA_64BIT in
1767 ix86_builtins_isa[fcode].isa as a requirement of those
1768 flags and any other flag in the bitmask.
1769 (ix86_init_mmx_sse_builtins): Use 0 instead of
1770 ~OPTION_MASK_ISA_64BIT as mask.
1771 * config/i386/i386-builtin.def (__builtin_ia32_rdtsc,
1772 __builtin_ia32_rdtscp, __builtin_ia32_pause, __builtin_ia32_bsrsi,
1773 __builtin_ia32_rdpmc, __builtin_ia32_rolqi, __builtin_ia32_rolhi,
1774 __builtin_ia32_rorqi, __builtin_ia32_rorhi): Likewise.
1776 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
1779 * lra-constraints.c (split_reg): Check requested split mode
1780 is supported by the register.
1782 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
1784 * lra-constraints.c (simplify_operand_subreg): Remove early
1787 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
1790 * lra-constraints.c (curr_insn_transform): Tighten condition
1791 for converting SUBREG reloads from OP_OUT to OP_INOUT.
1793 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
1796 * lra-constraints.c (curr_insn_transform): Handle
1797 WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
1799 2017-02-19 Uros Bizjak <ubizjak@gmail.com>
1802 2016-05-30 Uros Bizjak <ubizjak@gmail.com>
1804 * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
1806 2017-02-19 Jonathan Wakely <jwakely@redhat.com>
1809 * doc/invoke.texi (C++ Dialect Options) [-Wliteral-suffix]: Update
1812 2017-02-19 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1814 * gimple-pretty-print.c (dump_ternary_rhs): Adjust gimple dump format
1817 2017-02-18 Jakub Jelinek <jakub@redhat.com>
1819 * final.c (last_columnnum, override_columnnum): New variables.
1820 (final_start_function): Set last_columnnum, pass it to begin_prologue
1821 hook and pass 0 to dwarf2out_begin_prologue.
1822 (final_scan_insn): Update override_columnnum. Pass last_columnnum
1823 to source_line debug hook.
1824 (notice_source_line): Compute last_columnnum and for debug_column_info
1825 return true on column changes.
1826 * debug.h (struct gcc_debug_hooks): Add column argument to
1827 source_line and begin_prologue hooks.
1828 (debug_nothing_int_charstar_int_bool): Remove prototype.
1829 (debug_nothing_int_int_charstar,
1830 debug_nothing_int_int_charstar_int_bool): New prototypes.
1831 (dwarf2out_begin_prologue): Add column argument.
1832 * debug.c (do_nothing_debug_hooks): Adjust source_line and
1833 begin_prologue hooks.
1834 (debug_nothing_int_charstar_int_bool): Remove.
1835 (debug_nothing_int_int_charstar,
1836 debug_nothing_int_int_charstar_int_bool): New functions.
1837 * dwarf2out.c (dwarf2out_begin_prologue): Add column argument, pass it
1838 through to dwarf2out_source_line.
1839 (dwarf2_lineno_debug_hooks): Adjust begin_prologue hook.
1840 (dwarf2out_source_line): Add column argument, emit it if requested.
1841 * sdbout.c (sdbout_source_line, sdbout_begin_prologue): Add column
1843 * xcoffout.h (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
1844 * xcoffout.c (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
1845 * vmsdbgout.c (vmsdbgout_begin_prologue): Add column argument, pass it
1846 through to dwarf2out_begin_prologue.
1847 (vmsdbgout_source_line): Add column argument, pass it through to
1848 dwarf2out_source_line.
1849 * dbxout.c (dbxout_begin_prologue): Add column argument, adjust
1850 dbxout_source_line caller.
1851 (dbxout_source_line): Add column argument.
1853 * common.opt (gno-column-info, gcolumn-info): New options.
1854 * dwarf2out.c (dwarf2_lineno_debug_hooks): Formatting fix.
1855 (check_die): Also test for multiple DW_AT_decl_column attributes.
1856 (add_src_coords_attributes, dwarf2out_imported_module_or_decl_1): Add
1857 DW_AT_decl_column if requested.
1858 (gen_subprogram_die): Compare and/or add also DW_AT_decl_column
1860 (gen_variable_die): Likewise.
1861 (add_call_src_coords_attributes): Add DW_AT_call_column if requested.
1862 * doc/invoke.texi (-gcolumn-info, -gno-column-info): Document.
1865 * config/i386/i386.opt (m3dnowa): Replace Undocumented with Report.
1866 * common/config/i386/i386-common.c (OPTION_MASK_ISA_3DNOW_A_SET): Define.
1867 (ix86_handle_option): Handle OPT_m3dnowa.
1868 * doc/invoke.texi (-m3dnowa): Document.
1869 * doc/extend.texi (__builtin_ia32_pmulhuw, __builtin_ia32_pf2iw): Use
1870 -m3dnowa instead of -m3dnow -march=athlon.
1873 * config/i386/i386.c (ix86_print_operand): Use output_operand_lossage
1874 instead of gcc_assert for K, r and R code checks. Formatting fixes.
1876 2017-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1879 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
1880 support for CODE_FOR_vsx_xxpermdi_v2d[fi]_be.
1881 * config/rs6000/rs6000.md (reload_gpr_from_vsx<mode>): Call
1882 generator for vsx_xxpermdi_<mode>_be.
1883 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Remove logic to
1884 force big-endian semantics.
1885 (vsx_xxpermdi_<mode>_be): New define_expand with same
1886 implementation as previous version of vsx_xxpermdi_<mode>.
1888 2017-02-17 Jakub Jelinek <jakub@redhat.com>
1890 PR tree-optimization/79327
1891 * gimple-ssa-sprintf.c (format_integer): Remove likely_adjust
1892 variable, its initialization and use.
1894 2017-02-17 Julia Koval <julia.koval@intel.com>
1896 * common/config/i386/i386-common.c (OPTION_MASK_ISA_RDPID_SET): New.
1897 (OPTION_MASK_ISA_PKU_UNSET): New.
1898 (ix86_handle_option): Handle -mrdpid.
1899 * config/i386/cpuid.h (bit_RDPID): New.
1900 * config/i386/driver-i386.c (host_detect_local_cpu):
1901 Detect RDPID feature.
1902 * config/i386/i386-builtin.def (__builtin_ia32_rdpid): New.
1903 * config/i386/i386-c.c (ix86_target_macros_internal):
1905 * config/i386/i386.c (ix86_target_string): Add -mrdpid to isa2_opts.
1906 (ix86_valid_target_attribute_inner_p): Add "rdpid".
1907 (ix86_expand_builtin): Handle IX86_BUILTIN_RDPID.
1908 * config/i386/i386.h (TARGET_RDPID, TARGET_RDPID_P): New.
1909 * config/i386/i386.md (define_insn "rdpid"): New.
1910 * config/i386/i386.opt Add -mrdpid.
1911 * config/i386/immintrin.h (_rdpid_u32): New.
1913 2017-02-17 Vladimir Makarov <vmakarov@redhat.com>
1915 PR rtl-optimization/79541
1916 * lra-constraints.c (curr_insn_transform): Remove wrong asm insn
1917 instead of transforming it into USE.
1919 2017-02-17 Segher Boessenkool <segher@kernel.crashing.org>
1921 * config/rs6000/rs6000.md (extendsfdf2): Remove default arguments.
1922 If HONOR_SNANS (SFmode) force the input to a register.
1923 (*extendsfdf2_fpr): Add !HONOR_SNANS (SFmode) condition.
1924 (*extendsfdf2_snan): New pattern, used when using SNaNs; it generates
1925 an frsp or similar insn.
1927 2017-02-17 Martin Liska <mliska@suse.cz>
1929 PR rtl-optimization/79577
1930 * params.def (selsched-max-sched-times): Increase minimum to 1.
1932 2017-02-17 Martin Liska <mliska@suse.cz>
1934 PR rtl-optimization/79574
1935 * gcse.c (want_to_gcse_p): Prevent integer overflow.
1937 2017-02-17 Martin Liska <mliska@suse.cz>
1939 PR tree-optimization/79529
1940 * tree-ssa-loop-unswitch.c (is_maybe_undefined): Use
1941 ssa_defined_default_def_p to handle cases which are implicitly
1943 * tree-ssa.c (ssa_defined_default_def_p): New function.
1944 (ssa_undefined_value_p): Use ssa_defined_default_def_p to handle cases
1945 which are implicitly defined.
1946 * tree-ssa.h (ssa_defined_default_def_p): Declare.
1948 2017-02-17 Richard Biener <rguenther@suse.de>
1951 * params.def (max-ssa-name-query-depth): Limit to 10.
1953 2017-02-17 Richard Biener <rguenther@suse.de>
1955 PR tree-optimization/79552
1956 * tree-ssa-structalias.c (visit_loadstore): Properly verify
1959 2017-02-17 Richard Biener <rguenther@suse.de>
1962 * genmatch.c (output_line_directive): Handle DIR_SEPARATOR_2.
1964 2017-02-17 Marek Polacek <polacek@redhat.com>
1967 * fold-const.c (fold_negate_expr_1): Renamed from fold_negate_expr.
1968 (fold_negate_expr): New wrapper.
1970 2017-02-16 Sandra Loosemore <sandra@codesourcery.com>
1972 * doc/invoke.texi (C++ Dialect Options) [-Wno-non-template-friend]:
1973 Correct terminology and de-emphasize pre-standard behavior.
1975 2017-02-16 Alan Modra <amodra@gmail.com>
1977 PR rtl-optimization/79286
1978 * ira.c (def_dominates_uses): New function.
1979 (update_equiv_regs): Don't create an equivalence for insns that
1980 may trap where the register def does not dominate the use.
1982 2017-02-16 Vladimir Makarov <vmakarov@redhat.com>
1984 PR rtl-optimization/78127
1985 * lra.c (lra): Call lra_eliminate before finish the loop after
1988 2017-02-16 Richard Biener <rguenther@suse.de>
1990 * graphite.h: Do not include isl/isl_val_gmp.h, instead include
1992 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): Remove.
1993 (gcc_expression_from_isl_expr_int): Use generic isl_val interface.
1994 * graphite-sese-to-poly.c: Do not include isl/isl_val_gmp.h.
1995 (isl_val_int_from_wi): New function.
1996 (extract_affine_gmp): Rename to ...
1997 (extract_affine_wi): ... this, take a widest_int.
1998 (extract_affine_int): Just wrap extract_affine_wi.
1999 (add_param_constraints): Use isl_val_int_from_wi.
2000 (add_loop_constraints): Likewise, and extract_affine_wi.
2002 2017-02-15 Jeff Law <law@redhat.com>
2005 * ira-costs.c (scan_one_insn): Check have_regs_of_mode before calling
2006 ira_init_register_move_cost_if_necessary.
2008 2017-02-15 Martin Sebor <msebor@redhat.com>
2011 * doc/invoke.texi (-fdump-final-insns): Replace option accidentally
2012 removed in a prior commit.
2014 2017-02-15 Bin Cheng <bin.cheng@arm.com>
2016 PR tree-optimization/79347
2017 * tree-vect-loop-manip.c (vect_do_peeling): Maintain profile
2018 counters during peeling.
2020 2017-02-15 Thomas Schwinge <thomas@codesourcery.com>
2022 * Makefile.in (site.exp): Remove "set ISLVER".
2024 2017-02-15 Jakub Jelinek <jakub@redhat.com>
2027 * real.c (real_from_integer): Call real_convert even for decimal.
2029 2017-02-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
2032 * config/s390/s390.c: define TARGET_CUSTOM_FUNCTION_DESCRIPTORS.
2034 2017-02-14 Andrew Pinski <apinski@cavium.com>
2036 * config/aarch64/aarch64-cores.def (thunderx2t99): Move to under 'C"
2037 cores and change the partno/implementer to be correct.
2038 (thunderx2t99p1): New core which replaces thunderx2t99 and still has
2039 the 'B" as the implementer.
2040 * config/aarch64/aarch64-tune.md: Regenerate.
2042 2017-02-14 Carl Love <cel@us.ibm.com>
2044 * config/rs6000/rs6000.c: Add case statement entry to make the
2045 xvcvuxdsp built-in argument unsigned.
2046 * config/rs6000/vsx.md: Fix the source and return operand types so they
2047 match the instruction definitions from the ISA document. Fix typo
2048 in the instruction generation for the (define_insn "vsx_xvcvuxdsp"
2051 2017-02-14 Vladimir Makarov <vmakarov@redhat.com>
2054 * lra-int.h (struct lra_operand_data, struct lra_insn_reg): Add
2055 member early_clobber_alts.
2056 * lra-lives.c (reg_early_clobber_p): New.
2057 (process_bb_lives): Use it.
2058 * lra.c (new_insn_reg): New arg early_clobber_alts. Use it.
2059 (debug_operand_data): Initialize early_clobber_alts.
2060 (setup_operand_alternative): Set up early_clobber_alts.
2061 (collect_non_operand_hard_regs): Ditto. Pass early clobber
2062 alternatives to new_insn_reg.
2063 (add_regs_to_insn_regno_info): Add arg early_clobber_alts. Use
2065 (lra_update_insn_regno_info): Pass the new arg.
2067 2017-02-14 Jakub Jelinek <jakub@redhat.com>
2070 * omp-offload.c (free_oacc_loop): Release loop->ifns vector.
2071 (new_oacc_loop_raw): Don't clear already cleared fields.
2074 * config/i386/avx512pfintrin.h (_mm512_prefetch_i32gather_pd,
2075 _mm512_prefetch_i32gather_ps, _mm512_prefetch_i64gather_pd,
2076 _mm512_prefetch_i64gather_ps): New inline functions and macros.
2078 2017-02-14 Uros Bizjak <ubizjak@gmail.com>
2081 * config/i386/i386.md (*movxf_internal): Add (o,rC) alternative.
2083 2017-02-14 H.J. Lu <hongjiu.lu@intel.com>
2086 * config/i386/i386.c (timode_scalar_chain::convert_insn): Insert
2087 the extra instruction to the right place to store 128-bit constant
2090 2017-02-14 Martin Sebor <msebor@redhat.com>
2093 * gimple-ssa-sprintf.c (format_directive): Avoid issuing INT_MAX
2094 warning for strings of unknown length.
2096 2017-02-13 Segher Boessenkool <segher@kernel.crashing.org>
2098 * config.gcc (supported_defaults) [powerpc*-*-*]: Update.
2100 2017-02-14 Jeff Law <law@redhat.com>
2103 * ira-costs.c (scan_one_insn): Initialize register move costs
2104 for pseudos seen in USE/CLOBBER insns.
2106 PR tree-optimization/79095
2107 * tree-vrp.c (extract_range_from_binary_expr_1): For EXACT_DIV_EXPR,
2108 if the numerator has the range ~[0,0] make the resultant range ~[0,0].
2109 (extract_range_from_binary_expr): For MINUS_EXPR with no derived range,
2110 if the operands are known to be not equal, then the resulting range
2112 (intersect_ranges): If the new range is ~[0,0] and the old range is
2113 wide, then prefer ~[0,0].
2114 * tree-vrp.c (overflow_comparison_p_1): New function.
2115 (overflow_comparison_p): New function.
2116 * tree-vrp.c (register_edge_assert_for_2): Register additional asserts
2117 if NAME is used in an overflow test.
2118 (vrp_evaluate_conditional_warnv_with_ops): If the ops represent an
2119 overflow check that can be expressed as an equality test, then adjust
2120 ops to be that equality test.
2122 2017-02-14 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2124 * config/s390/s390-builtin-types.def: Remove flags argument.
2125 * config/s390/s390.c (s390_init_builtins): Likewise.
2127 2017-02-14 Martin Liska <mliska@suse.cz>
2129 * tree-ssa-loop-unswitch.c (hoist_guard): Release get_loop_body
2130 vector. Fix trailing white spaces.
2132 2017-02-14 James Greenhalgh <james.greenhalgh@arm.com>
2134 * config/aarch64/aarch64.c (aarch64_simd_container_mode): Handle
2137 2017-02-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2139 PR rtl-optimization/68664
2140 * config/arm/arm.c (arm_sched_can_speculate_insn):
2141 New function. Declare prototype.
2142 (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
2144 2017-02-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2146 PR rtl-optimization/68664
2147 * config/aarch64/aarch64.c (aarch64_sched_can_speculate_insn):
2149 (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
2151 2017-02-14 Amit Pawar <amit.pawar@amd.com>
2153 * config/i386/i386.c (znver1_cost): Fix the alignment for function and
2154 max skip bytes for function, loop and jump.
2156 2017-02-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2158 * gimple-pretty-print.c (dump_unary_rhs): Adjust dump format for
2159 ABS_EXPR for gimple dump.
2161 2017-02-14 Jakub Jelinek <jakub@redhat.com>
2164 * config/sh/sh.c (expand_cbranchdi4): Don't clear operands[4].
2166 PR tree-optimization/79408
2167 * tree-vrp.c (simplify_div_or_mod_using_ranges): Handle also the
2168 case when on TRUNC_MOD_EXPR op0 is INTEGER_CST.
2169 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
2170 also if rhs1 is INTEGER_CST.
2172 2017-02-14 Richard Biener <rguenther@suse.de>
2175 * tree-into-ssa.c (insert_phi_nodes): When the function can
2176 have abnormal edges rewrite SSA names with broken use-def
2177 dominance out of SSA and register them for PHI insertion.
2179 2017-02-13 Martin Sebor <msebor@redhat.com>
2182 * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call): Avoid
2183 clearing info.nowrite flag when snprintf size argument is a range.
2185 2017-02-13 Jakub Jelinek <jakub@redhat.com>
2187 * cprop.c (cprop_jump): Add missing space in string literal.
2188 * tree-ssa-structalias.c (rewrite_constraints): Likewise.
2189 (get_constraint_for_component_ref): Likewise.
2190 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
2191 * tree-outof-ssa.c (insert_partition_copy_on_edge): Likewise.
2192 * lra-constraints.c (process_alt_operands): Likewise.
2193 * ipa-inline.c (inline_small_functions): Likewise.
2194 * tree-ssa-sccvn.c (visit_reference_op_store): Likewise.
2195 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
2196 * trans-mem.c (diagnose_tm_1_op): Likewise.
2197 * omp-grid.c (grid_find_single_omp_among_assignments): Likewise.
2198 (grid_parallel_clauses_gridifiable): Likewise.
2200 * config/nvptx/mkoffload.c (process): Add space in between
2203 * config/i386/i386.h (REG_CLASS_NAMES): Add , in between
2204 "MOD4_SSE_REGS" and "ALL_REGS".
2206 * spellcheck.c (test_data): Add , in between "foo" and "food".
2208 2017-02-13 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
2211 * config/rs6000/rs6000.c (expand_block_compare): Make sure runtime
2212 boundary crossing check and subsequent code generation agree.
2214 2017-02-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2216 * config/aarch64/aarch64.c (has_memory_op): Delete.
2217 (aarch64_madd_needs_nop): Use contains_mem_rtx_p instead of
2220 2017-02-13 Jakub Jelinek <jakub@redhat.com>
2222 PR rtl-optimization/79388
2223 PR rtl-optimization/79450
2224 * combine.c (distribute_notes): When removing TEM_INSN for which
2225 corresponding dest has last value recorded, invalidate that last
2228 2017-02-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2230 * config/arm/arm.c (arm_print_tune_info): Use ASM_COMMENT_START instead
2231 of explicit '@'. Add missing assembly comment marker on branch costs
2234 2017-02-13 Nathan Sidwell <nathan@acm.org>
2236 * gengtype-lex.l (<in_struct>): Add '/'.
2238 2017-02-13 Martin Liska <mliska@suse.cz>
2241 * calls.c (expand_call): Replace XALLOCAVEC with XCNEWVEC.
2243 2017-02-13 Richard Biener <rguenther@suse.de>
2245 * configure.ac (HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS):
2247 * configure: Re-generate.
2248 * config.in: Likewise.
2249 * graphite-dependences.c: Simplify as if
2250 HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS was defined.
2251 * graphite-isl-ast-to-gimple.c: Likewise.
2252 * graphite-optimize-isl.c: Likewise.
2253 * graphite-poly.c: Likewise.
2254 * graphite-sese-to-poly.c: Likewise.
2255 * graphite.h: Likewise.
2256 * toplev.c: Include isl/version.h and use isl_version () for
2257 printing the ISL version.
2258 * doc/install.texi: Update ISL requirement.
2260 2017-02-12 Gerald Pfeifer <gerald@pfeifer.com>
2262 * doc/standards.texi (Standards): Update reference to
2265 2017-02-12 Gerald Pfeifer <gerald@pfeifer.com>
2267 * doc/extend.texi (Named Address Spaces): sourceware.org now
2269 * doc/install.texi (Binaries): Ditto.
2272 2017-02-11 Sandra Loosemore <sandra@codesourcery.com>
2274 * doc/cpp.texi: Replace "stringify"/"stringification" with C
2275 standard terminology "stringize"/"stringizing" throughout.
2276 * doc/cppinternals.texi: Likewise.
2278 2017-02-11 Sandra Loosemore <sandra@codesourcery.com>
2280 * doc/extend.texi: Fix some spelling mistakes and typos.
2281 * doc/invoke.texi: Likewise.
2283 2017-02-11 Jan Hubicka <hubicka@ucw.cz>
2286 * params.def (inline-min-speedup) Change from 10 to 8.
2288 2017-02-11 Jakub Jelinek <jakub@redhat.com>
2290 * doc/invoke.texi (fopenmp): Bump OpenMP version from 4.0 to
2293 2017-02-11 Jan Hubicka <hubicka@ucw.cz>
2296 * ipa-inline-analysis.c (get_minimal_bb): New function.
2297 (record_modified): Use it.
2298 (remap_edge_change_prob): Handle also ancestor functions.
2300 2017-02-11 Gerald Pfeifer <gerald@pfeifer.com>
2302 * doc/contrib.texi (Contributors): Remove broken link into
2303 the Mauve CVS repository.
2305 2017-02-11 Jakub Jelinek <jakub@redhat.com>
2308 * internal-fn.c (expand_vector_ubsan_overflow): Use piece-wise
2309 result computation whenever lhs doesn't have vector mode, not
2310 just when it has BLKmode.
2312 2017-02-10 Gerald Pfeifer <gerald@pfeifer.com>
2314 * doc/makefile.texi (profiledbootstrap): Refer to the
2315 installation instructions only in textual form.
2317 2017-02-10 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
2320 * config/rs6000/altivec.md (bcd<bcd_add_sub>): Fix constraints.
2322 2017-02-10 Gerald Pfeifer <gerald@pfeifer.com>
2324 * doc/install.texi (Specific): Use https for blackfin.uclinux.org.
2325 (Specific): Update mingw-w64 reference.
2327 (Specific): Remove broken link to Renesas RX processor.
2329 2017-02-10 Richard Biener <rguenther@suse.de>
2331 * toplev.c (process_options): Do not mention obsolete graphite
2332 options when printing sorry message about missing graphite support.
2333 Mention -floop-nest-optimize.
2335 2017-02-10 Christophe Lyon <christophe.lyon@linaro.org>
2337 * config/aarch64/arm_neon.h (vtst_p8): Rewrite without asm.
2338 (vtst_p16): Likewise.
2339 (vtstq_p8): Likewise.
2340 (vtstq_p16): Likewise.
2342 (vtstq_p64): Likewise.
2343 * config/arm/arm_neon.h (vgetq_lane_p64): New.
2344 (vset_lane_p64): New.
2345 (vsetq_lane_p64): New.
2347 2017-02-10 Jakub Jelinek <jakub@redhat.com>
2349 PR tree-optimization/79411
2350 * tree-ssa-reassoc.c (is_reassociable_op): Return false if
2351 stmt operands are SSA_NAMEs used in abnormal phis.
2352 (can_reassociate_p): Return false if op is SSA_NAME used in abnormal
2355 2017-02-09 Jan Hubicka <hubicka@ucw.cz>
2358 * cgraphunit.c (cgraph_node::add_new_function): Set externally_visible
2361 2017-02-09 Jan Hubicka <hubicka@ucw.cz>
2363 * tree-ssa-loop-unswitch.c (hoist_guard): Update profile.
2365 2017-02-09 Jakub Jelinek <jakub@redhat.com>
2367 * omp-offload.c (oacc_loop_auto_partitions): Use || instead of |
2371 * gimplify.h (is_gimple_sizepos): Only test for INTEGER_CST constants,
2372 not arbitrary TREE_CONSTANT.
2375 * gimplify.c (gimplify_adjust_omp_clauses): Ignore
2376 "omp declare target link" attribute unless is_global_var.
2377 * omp-offload.c (find_link_var_op): Likewise.
2379 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
2380 Chung-Lin Tang <cltang@codesourcery.com>
2382 * gimplify.c (gimplify_scan_omp_clauses): No special handling for
2384 (gimplify_adjust_omp_clauses): Don't delete TILE.
2385 (gimplify_omp_for): Deal with TILE.
2386 * internal-fn.c (expand_GOACC_TILE): New function.
2387 * internal-fn.def (GOACC_DIM_POS): Comment may be overly conservative.
2389 * omp-expand.c (struct oacc_collapse): Add tile and outer fields.
2390 (expand_oacc_collapse_init): Add LOC paramter. Initialize tile
2392 (expand_oacc_collapse_vars): Add INNER parm, adjust for tiling,
2393 avoid DIV for outermost collapse var.
2394 (expand_oacc_for): Insert tile element loop as needed. Adjust.
2395 Remove out of date comments, fix whitespace.
2396 * omp-general.c (omp_extract_for_data): Deal with tiling.
2397 * omp-general.h (enum oacc_loop_flags): Add OLF_TILE flag,
2398 adjust OLF_DIM_BASE value.
2399 (struct omp_for_data): Add tiling field.
2400 * omp-low.c (scan_sharing_clauses): Allow OMP_CLAUSE_TILE.
2401 (lower_oacc_head_mark): Add OLF_TILE as appropriate. Ensure 2 levels
2402 for auto loops. Remove default auto determining, moved to
2403 oacc_loop_fixed_partitions.
2404 * omp-offload.c (struct oacc_loop): Change 'ifns' to vector of call
2405 stmts, add e_mask field.
2406 (oacc_dim_call): New function, abstracted out from oacc_thread_numbers.
2407 (oacc_thread_numbers): Use oacc_dim_call.
2408 (oacc_xform_tile): New.
2409 (new_oacc_loop_raw): Initialize e_mask, adjust for ifns vector.
2410 (finish_oacc_loop): Adjust for ifns vector.
2411 (oacc_loop_discover_walk): Append loop abstraction sites to list,
2412 add case for GOACC_TILE fns.
2413 (oacc_loop_xform_loop): Delete.
2414 (oacc_loop_process): Iterate over call list directly, and add
2415 handling for GOACC_TILE fns.
2416 (oacc_loop_fixed_partitions): Determine default auto, deal with TILE,
2418 (oacc_loop_auto_partitions): Add outer_assign parm. Assign all but
2419 vector partitioning to outer loops. Assign 2 partitions to loops
2420 when available. Add TILE handling.
2421 (oacc_loop_partition): Adjust oacc_loop_auto_partitions call.
2422 (execite_oacc_device_lower): Process GOACC_TILE fns, ignore unknown specs.
2423 * tree-nested.c (convert_nonlocal_omp_clauses): Allow OMP_CLAUSE_TILE.
2424 * tree.c (omp_clause_num_ops): Adjust TILE ops.
2425 * tree.h (OMP_CLAUSE_TILE_ITERVAR, OMP_CLAUSE_TILE_COUNT): New.
2427 2017-02-09 Gerald Pfeifer <gerald@pfeifer.com>
2429 * configure.ac (ACX_BUGURL): Update.
2430 * configure: Regenerate.
2432 2017-02-09 Richard Biener <rguenther@suse.de>
2434 PR tree-optimization/69823
2435 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
2436 Properly enumerate all BBs in the region. Use auto_vec/auto_bitmap.
2438 2017-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
2440 * config/arc/arc-c.def: Add __NPS400__ definition.
2441 * config/arc/arc.h (CPP_SPEC): Don't define __NPS400__ here.
2442 (TARGET_NPS400): Define.
2444 2017-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
2446 * config/arc/arc-arch.h (arc_arch_t): Move unchanged to earlier in
2448 (arc_cpu_t): Change base_architecture field, arch, to a arc_arc_t
2450 (arc_cpu_types): Fill the arch_info field with a pointer into the
2451 arc_arch_types table.
2452 (arc_selected_cpu): Declare.
2453 * config/arc/arc.c (arc_selected_cpu): Make global.
2454 (arc_selected_arch): Delete.
2455 (arc_base_cpu): Delete.
2456 (arc_override_options): Remove references to deleted variables,
2457 update access to arch information.
2458 (ARC_OPT): Update access to arch information.
2459 (ARC_OPTX): Likewise.
2460 * config/arc/arc.h (arc_base_cpu): Remove declaration.
2461 (TARGET_ARC600): Update access to arch information.
2462 (TARGET_ARC601): Likewise.
2463 (TARGET_ARC700): Likewise.
2464 (TARGET_EM): Likewise.
2465 (TARGET_HS): Likewise.
2466 * config/arc/driver-arc.c (arc_cpu_to_as): Update access to arch
2469 2017-02-08 Pat Haugen <pthaugen@us.ibm.com>
2472 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Invert
2473 condition/operands for integer GE/LE/GEU/LEU operations.
2475 2017-02-08 Segher Boessenkool <segher@kernel.crashing.org>
2477 PR translation/79397
2478 * config/rs6000/rs6000.opt (maltivec=le, maltivec=be): Fix spelling
2481 2017-02-08 Martin Jambor <mjambor@suse.cz>
2484 * ipa-prop.c (ipa_alloc_node_params): Make static, return bool
2485 whether allocation happened.
2486 (ipa_initialize_node_params): Do not call ipa_alloc_node_params if
2487 nothing was allocated.
2489 2017-02-08 Jakub Jelinek <jakub@redhat.com>
2491 PR tree-optimization/79408
2492 * tree-vrp.c (simplify_div_or_mod_using_ranges): If op1 is not
2493 constant, but SSA_NAME with a known integer range, use the minimum
2494 of that range instead of op1 to determine if modulo can be replaced
2495 with its first operand.
2497 2016-02-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2499 * config/riscv/riscv.c (riscv_build_integer_1): Avoid use of INT16_MAX.
2501 2017-02-08 Richard Biener <rguenther@suse.de>
2503 PR tree-optimization/71824
2504 * graphite-scop-detection.c (scop_detection::build_scop_breadth):
2505 Check all loops contained in the merged region.
2507 2017-02-07 Andrew Pinski <apinski@cavium.com>
2509 * config/aarch64/aarch64.md (popcount<mode>2): New pattern.
2511 2017-02-07 Andrew Pinski <apinski@cavium.com>
2513 * config/aarch64/aarch64-cores.def (thunderx): Disable LSE.
2514 (thunderxt88): Likewise.
2515 (thunderxt81): Disable LSE and change v8.1 to v8.
2516 (thunderxt83): Likewise.
2518 2017-02-07 Jakub Jelinek <jakub@redhat.com>
2519 Richard Biener <rguenther@suse.de>
2522 * ira-int.h (struct target_ira_int): Change x_max_struct_costs_size
2523 type from int to size_t.
2524 * ira-costs.c (struct_costs_size): Change type from int to size_t.
2526 2017-02-07 Jakub Jelinek <jakub@redhat.com>
2528 PR rtl-optimization/79386
2529 * cprop.c (bypass_conditional_jumps): Initialize
2530 bypass_last_basic_block already before splitting bbs after
2531 unconditional traps...
2532 (bypass_conditional_jumps): ... rather than here.
2535 * config/i386/sse.md (xtg_mode, gatherq_mode): New mode attrs.
2536 (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2,
2537 *avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2): Use them,
2538 fix -masm=intel patterns.
2540 2017-02-07 Richard Biener <rguenther@suse.de>
2542 PR tree-optimization/79256
2544 * builtins.c (get_object_alignment_2): Use min_align_of_type
2545 to extract alignment for MEM_REFs to honor BIGGEST_FIELD_ALIGNMENT
2546 and ADJUST_FIELD_ALIGN.
2548 * doc/tm.texi.in (ADJUST_FIELD_ALIGN): Adjust to take additional
2550 * doc/tm.texi: Regenerate.
2551 * stor-layout.c (layout_decl): Adjust.
2552 (update_alignment_for_field): Likewise.
2553 (place_field): Likewise.
2554 (min_align_of_type): Likewise.
2555 * config/arc/arc.h (ADJUST_FIELD_ALIGN): Adjust.
2556 * config/epiphany/epiphany.h (ADJUST_FIELD_ALIGN): Likewise.
2557 * config/epiphany/epiphany.c (epiphany_adjust_field_align): Likewise.
2558 * config/frv/frv.h (ADJUST_FIELD_ALIGN): Likewise.
2559 * config/frv/frv.c (frv_adjust_field_align): Likewise.
2560 * config/i386/i386.h (ADJUST_FIELD_ALIGN): Likewise.
2561 * config/i386/i386.c (x86_field_alignment): Likewise.
2562 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
2563 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Likewise.
2564 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
2565 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
2566 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Likewise.
2567 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
2571 2017-01-30 Richard Biener <rguenther@suse.de>
2573 PR tree-optimization/79256
2574 * targhooks.c (default_builtin_vector_alignment_reachable): Honor
2575 BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
2578 2017-02-07 Toma Tabacu <toma.tabacu@imgtec.com>
2580 * config/mips/mips.c (mips_expand_builtin_insn): Convert the QImode
2581 argument of the pshufh, psllh, psllw, psrah, psraw, psrlh, psrlw
2582 builtins to SImode and emit a zero-extend, if necessary.
2584 2017-02-06 Palmer Dabbelt <palmer@dabbelt.com>
2586 * docs/invoke.texi (RISC-V Options): Alphabetize.
2588 2017-02-06 Palmer Dabbelt <palmer@dabbelt.com>
2590 * doc/invoke.texi (RISC-V Options): Use two spaces to separate
2593 2017-02-06 Palmer Dabbelt <palmer@dabbelt.com>
2595 * config/riscv/riscv.c: New file.
2596 * gcc/common/config/riscv/riscv-common.c: Likewise.
2597 * config.gcc: Likewise.
2598 * config/riscv/constraints.md: Likewise.
2599 * config/riscv/elf.h: Likewise.
2600 * config/riscv/generic.md: Likewise.
2601 * config/riscv/linux.h: Likewise.
2602 * config/riscv/multilib-generator: Likewise.
2603 * config/riscv/peephole.md: Likewise.
2604 * config/riscv/pic.md: Likewise.
2605 * config/riscv/predicates.md: Likewise.
2606 * config/riscv/riscv-builtins.c: Likewise.
2607 * config/riscv/riscv-c.c: Likewise.
2608 * config/riscv/riscv-ftypes.def: Likewise.
2609 * config/riscv/riscv-modes.def: Likewise.
2610 * config/riscv/riscv-opts.h: Likewise.
2611 * config/riscv/riscv-protos.h: Likewise.
2612 * config/riscv/riscv.h: Likewise.
2613 * config/riscv/riscv.md: Likewise.
2614 * config/riscv/riscv.opt: Likewise.
2615 * config/riscv/sync.md: Likewise.
2616 * config/riscv/t-elf-multilib: Likewise.
2617 * config/riscv/t-linux: Likewise.
2618 * config/riscv/t-linux-multilib: Likewise.
2619 * config/riscv/t-riscv: Likewise.
2620 * configure.ac: Likewise.
2621 * doc/contrib.texi: Add Kito Cheng, Palmer Dabbelt, and Andrew
2622 Waterman as RISC-V maintainers.
2623 * doc/install.texi: Add RISC-V entries.
2624 * doc/invoke.texi: Add RISC-V options section.
2625 * doc/md.texi: Add RISC-V constraints section.
2626 * configure: Regenerated.
2628 2017-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
2631 * config/rs6000/vector.md (vcond<mode><mode>): Allow the true and
2632 false values to be constant vectors with all 0 or all 1 bits set.
2633 (vcondu<mode><mode>): Likewise.
2634 * config/rs6000/predicates.md (vector_int_reg_or_same_bit): New
2636 (fpmask_comparison_operator): Update comment.
2637 (vecint_comparison_operator): New predicate.
2638 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Optimize
2639 vector conditionals when the true and false values are constant
2640 vectors with all 0 bits or all 1 bits set.
2642 2017-02-06 Martin Sebor <msebor@redhat.com>
2644 PR tree-optimization/79376
2645 * gimple-fold.c (get_range_strlen): Set the minimum length to zero.
2647 2017-02-06 Uros Bizjak <ubizjak@gmail.com>
2649 * config/i386/sse.md (vector modes -> vec_extract* splitter): Use
2650 explicit subreg RTX with operand 1. Use VECTOR_MODE_P predicate
2651 to simplify split condition.
2653 2017-02-06 Jakub Jelinek <jakub@redhat.com>
2655 * omp-expand.c (oxpand_omp_atomic_fetch_op,
2656 expand_omp_atomic_pipeline): Return false if can_atomic_load_p is
2659 2017-02-06 Segher Boessenkool <segher@kernel.crashing.org>
2661 PR rtl-optimization/68664
2662 * target.def (can_speculate_insn): New hook.
2663 * doc/tm.texi.in (TARGET_SCHED_CAN_SPECULATE_INSN): New hook.
2664 * doc/tm.texi: Regenerate.
2665 * sched-rgn.c (can_schedule_ready_p): Use the new hook.
2666 * config/rs6000/rs6000.c (TARGET_SCHED_CAN_SPECULATE_INSN): New macro.
2667 (rs6000_sched_can_speculate_insn): New function.
2669 2017-02-06 Jakub Jelinek <jakub@redhat.com>
2671 PR tree-optimization/79284
2672 * tree-vectorizer.h (VECT_SCALAR_BOOLEAN_TYPE_P): Define.
2673 * tree-vect-stmts.c (vect_get_vec_def_for_operand,
2674 vectorizable_mask_load_store, vectorizable_operation,
2675 vect_is_simple_cond, get_same_sized_vectype): Use it instead
2676 of comparing TREE_CODE of a type against BOOLEAN_TYPE.
2677 * tree-vect-patterns.c (check_bool_pattern, search_type_for_mask_1,
2678 vect_recog_bool_pattern, vect_recog_mask_conversion_pattern): Likewise.
2679 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
2680 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
2681 Remove redundant gimple_code (stmt) == GIMPLE_ASSIGN test after
2682 is_gimple_assign (stmt). Replace another such test with
2683 is_gimple_assign (stmt).
2685 2017-02-06 Georg-Johann Lay <avr@gjlay.de>
2688 * config/avr/avr.c (rtl-iter.h): Include it.
2689 (TARGET_LEGITIMATE_COMBINED_INSN): New hook define...
2690 (avr_legitimate_combined_insn): ...and implementation.
2692 2017-02-06 Dominik Vogt <vogt@linux.vnet.ibm.com>
2694 * config/s390/predicates.md ("larl_operand"): Use macros from hwint.h.
2695 * config/s390/s390.c (s390_const_operand_ok)
2696 (s390_canonicalize_comparison, s390_extract_part)
2697 (s390_single_part, s390_contiguous_bitmask_nowrap_p)
2698 (s390_contiguous_bitmask_p, s390_rtx_costs)
2699 (legitimize_pic_address): Likewise.
2700 * config/s390/s390.md ("clzdi2", "clztidi2"): Likewise.
2701 * config/s390/vx-builtins.md ("vec_genbytemaskv16qi")
2702 ("vec_permi<mode>", "vfae<mode>", "*vfaes<mode>", "vstrc<mode>")
2703 ("*vstrcs<mode>"): Use UINTVAL() to set unsigned HOST_WIDE_INT.
2704 * config/s390/vector.md ("vec_vfenes<mode>"): Likewise.
2706 2017-02-06 Georg-Johann Lay <avr@gjlay.de>
2708 * config/avr/avr.md (*addhi3_zero_extend): Add alternative where
2709 REGNO($0) == REGNO($1).
2711 2017-02-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2713 * config/s390/linux.h(SIZE_TYPE): Add comment.
2715 2017-02-06 Julian Brown <julian@codesourcery.com>
2716 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
2717 Virendra Pathak <virendra.pathak@broadcom.com>
2719 * config/aarch64/aarch64-cores.def: Change the scheduler
2721 * config/aarch64/aarch64.md: Include thunderx2t99.md.
2722 * config/aarch64/thunderx2t99.md: New file.
2724 2017-02-05 Gerald Pfeifer <gerald@pfeifer.com>
2726 * doc/standards.texi (Go Language): Update link to language
2729 2017-02-05 Jan Hubicka <hubicka@ucw.cz>
2731 * tree-eh.c (lower_resx): Sanitize profile.
2732 (cleanup_empty_eh_move_lp): Likewise.
2734 2017-02-05 Jan Hubicka <hubicka@ucw.cz>
2737 * cfgloopmanip.c (lv_adjust_loop_entry_edge, loop_version): Add
2739 * cfgloopmanip.h (loop_version): Update prototype.
2740 * modulo-sched.c (sms_schedule): Update call of loop_version.
2741 * tree-if-conv.c(version_loop_for_if_conversion): Likewise.
2742 * tree-parloops.c (gen_parallel_loop): Likewise.
2743 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise.
2744 * tree-ssa-loop-split.c (split_loop): Likewise.
2745 * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Likewise.
2746 * tree-vect-loop-manip.c (vect_loop_versioning): Likewise.
2748 2017-02-05 Martin Liska <mliska@suse.cz>
2751 * config/s390/s390.c (s390_gimplify_va_arg): Initialize local
2753 (print_operand_address): Initialize a struct to zero.
2755 2017-02-05 Gerald Pfeifer <gerald@pfeifer.com>
2757 * doc/contrib.texi (Contributors): Refer to Hans Boehm's
2758 garbage collector only in textual form.
2760 2017-02-05 Gerald Pfeifer <gerald@pfeifer.com>
2762 * doc/extend.texi (x86 specific memory model extensions for
2763 transactional memory): Simplify a phrase.
2765 2017-02-05 Eric Botcazou <ebotcazou@adacore.com>
2768 * config/sparc/sync.md (atomic_loaddi_1): Replace 'U' constraint with
2769 'r', 'm' constraint with 'T' and !TARGET_ARCH64 with TARGET_ARCH32.
2770 (atomic_storedi_1): Likewise.
2772 2017-02-04 Jakub Jelinek <jakub@redhat.com>
2774 PR tree-optimization/79338
2775 * tree-parloops.c (gather_scalar_reductions): Don't call
2776 vect_analyze_loop_form for loop->inner before destroying loop's
2779 2017-02-03 Martin Sebor <msebor@redhat.com>
2781 PR tree-optimization/79327
2782 * gimple-ssa-sprintf.c (tree_digits): Avoid adding the base prefix
2783 when precision has resulted in leading zeros.
2784 (format_integer): Adjust the likely counter to assume an unknown
2785 argument that may be zero is non-zero.
2787 2017-02-03 Jason Merrill <jason@redhat.com>
2790 * tree-inline.c (copy_tree_body_r) [COND_EXPR]: Revert change to
2791 avoid copying non-taken branch.
2793 2017-02-03 Jakub Jelinek <jakub@redhat.com>
2795 PR tree-optimization/79340
2796 * tree-vect-loop.c (vectorizable_reduction): Release
2797 vec_defs elements after safe_splicing them into other vectors.
2800 PR tree-optimization/79327
2801 * gimple-ssa-sprintf.c (adjust_range_for_overflow): If returning
2802 true, always set *argmin and *argmax to TYPE_{MIN,MAX}_VALUE of
2804 (format_integer): Use wide_int_to_tree instead of build_int_cst
2805 + to_?hwi. If argmin is NULL, just set argmin and argmax to
2806 TYPE_{MIN,MAX}_VALUE of argtype. Simplify and fix computation
2807 of shortest and longest sequence.
2809 2017-02-03 Uros Bizjak <ubizjak@gmail.com>
2811 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
2812 Use pextrd for TARGET_SSE4_1 when creating scalar copy.
2814 2017-02-03 Walter Lee <walt@tilera.com>
2817 * config/tilegx/tilegx.md (tilegx_expand_prologue): Add blockage
2818 after initial stackframe link reg save.
2819 * config/tilepro/tilepro.md (tilepro_expand_prologue): Likewise.
2821 2017-02-03 Jakub Jelinek <jakub@redhat.com>
2824 * config/rs6000/rs6000.md (movsi_from_sf): Use wb constraint instead of
2825 wu for stxssp alternative.
2827 2017-02-03 Martin Sebor <msebor@redhat.com>
2829 PR tree-optimization/79352
2830 * gimple-fold.c (get_range_strlen): Add argument.
2831 (get_range_strlen): Change return type to bool.
2832 (get_maxval_strlen): Pass in a dummy argument.
2833 * gimple-fold.h (get_range_strlen): Change return type to bool.
2834 * gimple-ssa-sprintf.c (get_string_length): Set unlikely counter.
2835 * tree.h (array_at_struct_end_p): Add argument.
2836 * tree.c (array_at_struct_end_p): Handle it.
2838 2017-02-03 Martin Liska <mliska@suse.cz>
2841 * multiple_target.c (create_dispatcher_calls): Redirect edge
2842 from a caller of a dispatcher.
2843 (expand_target_clones): Make the clones local.
2844 (ipa_target_clone): Do both target clones and resolvers.
2845 (ipa_dispatcher_calls): Remove the pass.
2846 (pass_dispatcher_calls::gate): Likewise.
2847 (make_pass_dispatcher_calls): Likewise.
2848 * passes.def (pass_target_clone): Put as very first IPA early
2851 2017-02-03 Martin Liska <mliska@suse.cz>
2853 * symtab.c (symtab_node::binds_to_current_def_p): Bail out
2854 in case of a function with ifunc attribute.
2856 2017-02-03 Martin Liska <mliska@suse.cz>
2858 * cgraph.c (cgraph_node::dump): Dump function version info.
2859 * symtab.c (symtab_node::dump_base): Add missing new line.
2861 2017-02-02 Jan Hubicka <hubicka@ucw.cz>
2863 * tree-ssa-ifcombine.c (update_profile_after_ifcombine): New function.
2864 (ifcombine_ifandif): Use it.
2866 2017-02-03 Martin Liska <mliska@suse.cz>
2868 * doc/invoke.texi: Document default value for
2869 use-after-scope-direct-emission-threshold.
2871 2017-02-03 Martin Liska <mliska@suse.cz>
2873 PR tree-optimization/79339
2874 * gimple-ssa-sprintf.c (format_floating_max): Call mpfr_clear.
2875 (format_floating): Likewise.
2877 2017-02-03 Martin Liska <mliska@suse.cz>
2880 * ipa-prop.c (ipa_node_params_t::insert): Remove current
2882 (ipa_node_params_t::remove): Likewise.
2883 * ipa-prop.h (ipa_node_params::ipa_node_params): Make default
2884 initialization from removed ipa_node_params_t::insert.
2885 (ipa_node_params::~ipa_node_params): Move from removed
2886 ipa_node_params_t::release.
2887 * symbol-summary.h (symbol_summary::m_released): New member.
2888 Do not release a summary twice. Do not allow to call finalizer
2889 for types of a summary that live in GGC memory.
2891 2017-02-02 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
2893 * config/aarch64/aarch64.c (thunderx2t99_tunings): Enable AES and
2896 2017-02-02 Martin Sebor <msebor@redhat.com>
2899 * gimple-ssa-sprintf.c (get_string_length): Set lower bound to zero.
2900 (format_string): Tighten up the range of output for non-constant
2901 strings and correct the expected range for wide non-constant strings.
2903 2017-02-02 Martin Sebor <msebor@redhat.com>
2905 * doc/invoke.texi (-maccumulate-args): Fix bad grammar.
2908 * doc/invoke.texi (-fdump-tree-): Remove pass-specific options from
2910 (-fdump-tree-@var): Add to index and document how to come up
2911 with pass-specific option and dump file names.
2912 (-fdump-passes): Clarify where to look for output.
2914 2017-02-02 Jan Hubicka <hubicka@ucw.cz>
2917 * tree-ssa-threadbackward.c (profitable_jump_thread_path): Dump
2918 statistics of the analyzed path; allow threading for speed when
2919 any of BBs along the path are optimized for speed.
2921 2017-02-02 Eric Botcazou <ebotcazou@adacore.com>
2924 * emit-rtl.c (init_emit): Add ??? comment for problematic alignment
2925 settings of the virtual registers.
2928 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
2930 * explow.c (get_dynamic_stack_size): Take known alignment of stack
2931 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
2934 2017-02-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2936 * config/s390/vx-builtins.md ("vec_ceil", "vec_floor")
2937 ("vec_trunc", "vec_roundc", "vec_round"): Remove expanders.
2939 2017-02-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2941 * config/s390/s390.md: Add missing comments with the expanded
2943 * config/s390/vector.md: Likewise.
2944 * config/s390/vx-builtins.md: Likewise.
2946 2017-02-02 Jakub Jelinek <jakub@redhat.com>
2949 * config/rs6000/rs6000.md (*fixuns_trunc<mode>di2_fctiduz): Rename to ...
2950 (fixuns_trunc<mode>di2): ... this, remove previous expander. Put all
2951 conditions on a single line.
2953 2017-02-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2955 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
2956 __S390_VX__ to __VX__.
2958 2017-02-01 Andrew Pinski <apinski@cavium.com>
2960 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost): Pass
2961 stmt_info to record_stmt_cost.
2962 (vect_get_known_peeling_cost): Pass stmt_info if known to
2964 * config/aarch64/aarch64-protos.h (cpu_vector_cost): Split
2965 cpu_vector_cost field into
2966 scalar_int_stmt_cost and scalar_fp_stmt_cost. Split vec_stmt_cost
2967 field into vec_int_stmt_cost and vec_fp_stmt_cost.
2968 * config/aarch64/aarch64.c (generic_vector_cost): Update for the
2969 splitting of scalar_stmt_cost and vec_stmt_cost.
2970 (thunderx_vector_cost): Likewise.
2971 (cortexa57_vector_cost): LIkewise.
2972 (exynosm1_vector_cost): Likewise.
2973 (xgene1_vector_cost): Likewise.
2974 (thunderx2t99_vector_cost): Improve after the splitting of the two
2976 (aarch64_builtin_vectorization_cost): Update for the splitting of
2977 scalar_stmt_cost and vec_stmt_cost.
2979 2017-02-01 Torvald Riegel <triegel@redhat.com>
2980 Richard Henderson <rth@redhat.com>
2982 * builtins.c (fold_builtin_atomic_always_lock_free): Make "lock-free"
2983 conditional on existance of a fast atomic load.
2984 * optabs-query.c (can_atomic_load_p): New function.
2985 * optabs-query.h (can_atomic_load_p): Declare it.
2986 * optabs.c (expand_atomic_exchange): Always delegate to libatomic if
2987 no fast atomic load is available for the particular size of access.
2988 (expand_atomic_compare_and_swap): Likewise.
2989 (expand_atomic_load): Likewise.
2990 (expand_atomic_store): Likewise.
2991 (expand_atomic_fetch_op): Likewise.
2992 * testsuite/lib/target-supports.exp
2993 (check_effective_target_sync_int_128): Remove x86 because it provides
2994 no fast atomic load.
2995 (check_effective_target_sync_int_128_runtime): Likewise.
2997 2017-02-01 Richard Biener <rguenther@suse.de>
2999 * graphite.c: Include tree-vectorizer.h for find_loop_location.
3000 (graphite_transform_loops): Provide opt-info for optimized nests.
3001 * tree-parloop.c (parallelize_loops): Provide opt-info for
3004 2017-02-01 Richard Biener <rguenther@suse.de>
3007 * tree-cfg.c (move_stmt_op): Never set TREE_BLOCK when it
3010 2017-02-01 Richard Biener <rguenther@suse.de>
3012 PR tree-optimization/71824
3013 * graphite-scop-detection.c (scop_detection::build_scop_breadth):
3014 Verify the loops are valid in the merged SESE region.
3015 (scop_detection::can_represent_loop_1): Check analyzing the
3016 evolution of the number of iterations in the region succeeds.
3018 2017-01-31 Ian Lance Taylor <iant@golang.org>
3020 * config/i386/i386.c (ix86_expand_split_stack_prologue): Add
3021 REG_ARGS_SIZE note to 32-bit push insns and call insn.
3023 2017-01-31 David Malcolm <dmalcolm@redhat.com>
3025 PR preprocessor/79210
3026 * input.c (get_substring_ranges_for_loc): Replace line_width
3027 assertion with error-handling.
3029 2017-01-31 Richard Biener <rguenther@suse.de>
3031 PR tree-optimization/77318
3032 * graphite-sese-to-poly.c (extract_affine): Fix assert.
3033 (create_pw_aff_from_tree): Take loop parameter.
3034 (add_condition_to_pbb): Pass loop of the condition to
3035 create_pw_aff_from_tree.
3037 2017-01-31 Jakub Jelinek <jakub@redhat.com>
3039 * config/s390/s390.c (s390_asan_shadow_offset): New function.
3040 (TARGET_ASAN_SHADOW_OFFSET): Redefine.
3042 2017-01-31 Michael Meissner <meissner@linux.vnet.ibm.com>
3046 * config/rs6000/rs6000-protos.h (convert_float128_to_int): Delete,
3048 (convert_int_to_float128): Likewise.
3049 * config/rs6000/rs6000.c (convert_float128_to_int): Likewise.
3050 (convert_int_to_float128): Likewise.
3051 * config/rs6000/rs6000.md (UNSPEC_IEEE128_MOVE): Likewise.
3052 (UNSPEC_IEEE128_CONVERT): Likewise.
3053 (floatsi<mode>2, FLOAT128 iterator): Bypass calling
3054 rs6000_expand_float128_convert if we have IEEE 128-bit hardware.
3055 Use local variables for IBM extended format.
3056 (fix_trunc<mode>si2, FLOAT128 iterator): Likewise.
3057 (fix_trunc<mode>si2_fprs): Likewise.
3058 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
3059 (floatuns<IEEE128:mode>2, IEEE128 iterator): Likewise.
3060 (fix<uns>_<mode>si2_hw): Rework the IEEE 128-bt hardware support
3061 to know that we can now have integers of all sizes in vector
3063 (fix<uns>_<mode>di2_hw): Likewise.
3064 (float<uns>_<mode>si2_hw): Likewise.
3065 (fix_<mode>si2_hw): Likewise.
3066 (fixuns_<mode>si2_hw): Likewise.
3067 (float<uns>_<mode>di2_hw): Likewise.
3068 (float_<mode>di2_hw): Likewise.
3069 (float_<mode>si2_hw): Likewise.
3070 (floatuns_<mode>di2_hw): Likewise.
3071 (floatuns_<mode>si2_hw): Likewise.
3072 (xscvqp<su>wz_<mode>): Delete, no longer used.
3073 (xscvqp<su>dz_<mode>): Likewise.
3074 (xscv<su>dqp_<mode>): Likewise.
3075 (ieee128_mfvsrd_64bit): Likewise.
3076 (ieee128_mfvsrd_32bit): Likewise.
3077 (ieee128_mfvsrwz): Likewise.
3078 (ieee128_mtvsrw): Likewise.
3079 (ieee128_mtvsrd_64bit): Likewise.
3080 (ieee128_mtvsrd_32bit): Likewise.
3082 2017-01-31 Martin Liska <mliska@suse.cz>
3085 * ipa-prop.c (ipa_free_all_node_params): Call release method
3086 instead of ~sumbol_summary to not to trigger double times
3089 2017-01-31 Aldy Hernandez <aldyh@redhat.com>
3091 PR tree-optimization/71691
3092 * bitmap.h (class auto_bitmap): New.
3093 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Call
3094 is_maybe_undefined instead of ssa_undefined_value_p.
3096 2017-01-31 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3098 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
3099 __S390_ARCH_LEVEL__ to __ARCH__.
3101 2017-01-31 Jakub Jelinek <jakub@redhat.com>
3103 PR tree-optimization/79267
3104 * value-prof.c (gimple_ic): Only drop lhs for noreturn calls
3105 if should_remove_lhs_p is true.
3107 2017-01-30 Alexandre Oliva <aoliva@redhat.com>
3110 * dwarf2out.c (clone_as_declaration): Drop DW_AT_alignment.
3111 (add_alignment_attribute): New.
3112 (base_type_die): Add alignment attribute.
3113 (subrange_type_die): Likewise.
3114 (modified_type_die): Likewise.
3115 (gen_array_type_die): Likewise.
3116 (gen_descr_array_type_die: Likewise.
3117 (gen_enumeration_type_die): Likewise.
3118 (gen_subprogram_die): Likewise.
3119 (gen_variable_die): Likewise.
3120 (gen_field_die): Likewise.
3121 (gen_ptr_to_mbr_type_die): Likewise.
3122 (gen_struct_or_union_type_die): Likewise.
3123 (gen_subroutine_type_die): Likewise.
3124 (gen_typedef_die): Likewise.
3125 (base_type_cmp): Compare alignment attribute.
3127 2017-01-30 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
3130 * config/rs6000/altivec.md (*setb_internal): Rename to setb_signed.
3131 (setb_unsigned) New pattern for setb with CCUNS.
3132 * config/rs6000/rs6000.c (expand_block_compare): Use a different
3133 subfc./subfe sequence to avoid overflow problems. Generate a
3134 shorter sequence with cmpld/setb for power9.
3135 * config/rs6000/rs6000.md (subf<mode>3_carry_dot2): Add a new pattern
3136 for generating subfc. instruction.
3137 (cmpstrsi): Add TARGET_POPCNTD predicate as the generate sequence
3138 now uses this instruction.
3140 2017-01-30 Ian Lance Taylor <iant@google.com>
3143 * dwarf2out.c (gen_type_die_with_usage): When picking a variant
3144 for FUNCTION_TYPE/METHOD_TYPE, use the first matching one.
3146 2017-01-30 Martin Sebor <msebor@redhat.com>
3148 * gimple-ssa-sprintf.c (fmtresult::adjust_for_width_or_precision):
3149 Move constant to the right of a relational operator.
3150 (get_mpfr_format_length, format_character, format_string): Ditto.
3151 (should_warn_p, maybe_warn): Same.
3153 * doc/invoke.texi (-Wformat-truncation=1): Fix typo.
3155 2017-01-30 Maxim Ostapenko <m.ostapenko@samsung.com>
3158 * asan.c (get_translation_unit_decl): Remove function.
3159 (asan_add_global): Force has_dynamic_init to zero in LTO mode.
3161 2017-01-30 Martin Liska <mliska@suse.cz>
3163 PR gcov-profile/79259
3164 * opts.c (common_handle_option): Enable flag_ipa_bit_cp w/
3167 2017-01-30 Martin Liska <mliska@suse.cz>
3170 * config/aarch64/cortex-a57-fma-steering.c (func_fma_steering::analyze):
3171 Initialize variables with NULL value.
3173 2017-01-30 Richard Earnshaw <rearnsh@arm.com>
3176 * config.gcc (arm*-*-*): Add arm/arm-flags.h and arm/arm-isa.h to
3178 * arm/arm-protos.h: Don't directly include arm-flags.h and arm-isa.h.
3180 2017-01-30 Richard Biener <rguenther@suse.de>
3182 PR tree-optimization/79276
3183 * tree-vrp.c (process_assert_insertions): Properly adjust common
3184 when removing a duplicate.
3186 * gcc.dg/torture/pr79276.c: New testcase.
3188 2017-01-30 Richard Biener <rguenther@suse.de>
3190 PR tree-optimization/79256
3191 * targhooks.c (default_builtin_vector_alignment_reachable): Honor
3192 BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
3194 * tree.c (build_aligned_type): Set TYPE_USER_ALIGN.
3196 2017-01-30 Dominik Vogt <vogt@linux.vnet.ibm.com>
3199 * config/s390/s390.md ("*r<noxa>sbg_<mode>_srl_bitmask")
3200 ("*r<noxa>sbg_<mode>_sll_bitmask")
3201 ("*extzv_<mode>_srl<clobbercc_or_nocc>")
3202 ("*extzv_<mode>_sll<clobbercc_or_nocc>"):
3203 Use contiguous_bitmask_nowrap_operand.
3205 2017-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3208 * config/rs6000/altivec.h (vec_xl): Revise #define.
3209 (vec_xst): Likewise.
3211 2017-01-27 Uros Bizjak <ubizjak@gmail.com>
3213 * config/i386/i386.c (print_reg): Use REGNO instead of true_regnum.
3215 2017-01-27 Bernd Schmidt <bschmidt@redhat.com>
3217 PR rtl-optimization/79194
3218 * cprop.c (one_cprop_pass): Move deletion of code after unconditional
3219 traps before call to bypass_conditional_jumps.
3221 2017-01-27 Vladimir Makarov <vmakarov@redhat.com>
3223 PR tree-optimization/71374
3224 * lra-constraints.c (check_conflict_input_operands): New.
3225 (match_reload): Use it.
3227 2017-01-27 Vladimir Makarov <vmakarov@redhat.com>
3230 * lra-assigns.c (find_hard_regno_for_1): Take endianess for into
3231 account to calculate conflict_set.
3233 2017-01-27 Bin Cheng <bin.cheng@arm.com>
3235 PR rtl-optimization/78559
3236 * combine.c (try_combine): Discard REG_EQUAL and REG_EQUIV for
3237 other_insn in combine.
3239 2017-01-27 Pekka Jääskeläinen <pekka.jaaskelainen@parmance.com>
3241 * builtin-types.def: Use unsigned_char_type_node for BT_UINT8. Use
3242 uint16_type_node for BT_UINT16.
3244 2017-01-27 David Malcolm <dmalcolm@redhat.com>
3246 * doc/sourcebuild.texi (Testsuites): Add "GIMPLE Tests" and
3247 "RTL Tests" to menu.
3248 (GIMPLE Tests): New node.
3249 (RTL Tests): New node.
3251 2017-01-27 Richard Biener <rguenther@suse.de>
3253 PR tree-optimization/79245
3254 * tree-loop-distribution.c (distribute_loop): Apply cost
3255 modeling also to detected patterns.
3257 2017-01-27 Richard Biener <rguenther@suse.de>
3259 PR tree-optimization/71433
3260 * tree-vrp.c (register_new_assert_for): Revert earlier changes.
3261 (compare_assert_loc): New function.
3262 (process_assert_insertions): Sort and optimize assert locations
3263 to remove duplicates and push down identical assertions on
3264 edges to their destination block.
3266 2017-01-27 Richard Biener <rguenther@suse.de>
3268 PR tree-optimization/79244
3269 * tree-vrp.c (remove_range_assertions): Forcefully propagate
3270 out SSA names even if abnormal.
3272 2017-01-27 Jakub Jelinek <jakub@redhat.com>
3274 * realmpfr.h: Poison MPFR_RND{N,Z,U,D}.
3275 * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN
3276 instead of MPFR_RNDN.
3278 2017-01-27 Richard Earnshaw <rearnsha@arm.com>
3281 * arm.c (arm_option_override): Don't call build_target_option_node
3282 until after doing all option overrides.
3283 (arm_valid_target_attribute_tree): Likewise.
3285 2017-01-27 Martin Liska <mliska@suse.cz>
3287 * doc/invoke.texi (-fprofile-arcs): Document profiling support
3288 for {cd}tors and C++ {cd}tors.
3290 2017-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
3292 * config/s390/s390.md ("*setmem_long_and")
3293 ("*setmem_long_and_31z"): Use zero_extend instead of and.
3295 2017-01-26 Martin Sebor <msebor@redhat.com>
3297 * gimple-ssa-sprintf.c (format_floating): Simplify the computation
3300 2017-01-26 Martin Sebor <msebor@redhat.com>
3302 * gimple-ssa-sprintf.c (format_floating): Test HAVE_XFmode and
3303 HAVE_DFmode before using XFmode or DFmode.
3304 (parse_directive): Avoid using the z length modifier to avoid
3305 the ISO C++98 does not support the ‘z’ gnu_printf length modifier.
3308 * gimple-ssa-sprintf.c (adjust_for_width_or_precision): Change
3309 to accept adjustment as an array.
3310 (get_int_range): New function.
3311 (struct directive): Make width and prec arrays.
3312 (directive::set_width, directive::set_precision): Call get_int_range.
3313 (format_integer, format_floating): Handle width and precision ranges.
3314 (format_string, parse_directive): Same.
3316 2017-01-26 Jakub Jelinek <jakub@redhat.com>
3319 * dwarf2out.c (generate_skeleton_bottom_up): For children with
3320 comdat_type_p set, just clone them, but keep the children in the
3324 * dwarf2out.c (prune_unused_types): Mark all functions with DIEs
3325 which have direct callers with -fvar-tracking-assignments enabled
3327 (resolve_addr): Avoid adding skeleton DIEs for DW_AT_call_origin
3328 inside of type units.
3330 2017-01-26 Martin Sebor <msebor@redhat.com>
3333 * gimple-ssa-sprintf.c (struct result_range): Add likely and
3335 (struct format_result): Replace number_chars, number_chars_min,
3336 and number_chars_max with a single member of struct result_range.
3338 (format_result::operator+=): Adjust.
3339 (struct fmtresult): Remove bounded. Handle likely and unlikely
3341 (fmtresult::adjust_for_width_or_precision): New function.
3342 (fmtresult:type_max_digits): New function.
3343 (bytes_remaining): Handle likely and unlikely counters.
3344 (min_bytes_remaining): Remove.
3345 (format_percent): Simplify.
3346 (format_integer, format_floating): Set likely and unlikely counters.
3347 (get_string_length, format_character, format_string): Same.
3348 (format_plain, should_warn_p): New function.
3349 (maybe_warn): Call should_warn_p. Update diagnostic messages
3350 and handle those for all directives, including plain strings.
3351 (format_directive): Handle likely and unlikely counters.
3352 Remove unnecessary quoting from diagnostics. Add an informational
3354 (add_bytes): Remove.
3355 (pass_sprintf_length::compute_format_length): Simplify.
3356 (try_substitute_return_value): Handle likely and unlikely counters.
3358 2017-01-26 Carl Love <cel@us.ibm.com>
3360 * config/rs6000/rs6000-c (altivec_overloaded_builtins): Remove
3361 bogus entries for the P8V_BUILTIN_VEC_VGBBD built-ins
3363 2017-01-26 Vladimir Makarov <vmakarov@redhat.com>
3366 * lra-assigns.c (setup_live_pseudos_and_spill_after_risky): Take
3367 endianess for subregs into account.
3368 * lra-constraints.c (lra_constraints): Do risky transformations
3369 always on the first iteration.
3370 * lra-lives.c (check_pseudos_live_through_calls): Add arg
3371 last_call_used_reg_set.
3372 (process_bb_lives): Define and use last_call_used_reg_set.
3373 * lra.c (lra): Always continue after lra_constraints on the first
3376 2017-01-26 Kirill Yukhin <kirill.yukhin@gmail.com>
3378 * gcc.target/i386/avx512bw-kshiftlq-2.c: Use unsigned long long
3380 * gcc.target/i386/avx512bw-kshiftrq-2.c: Ditto.
3382 2017-01-26 Jakub Jelinek <jakub@redhat.com>
3384 * config/i386/avx512fintrin.h (_ktest_mask16_u8,
3385 _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): Move to ...
3386 * config/i386/avx512dqintrin.h (_ktest_mask16_u8,
3387 _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): ... here.
3388 * config/i386/i386-builtin.def (__builtin_ia32_ktestchi,
3389 __builtin_ia32_ktestzhi, __builtin_ia32_kaddhi): Use
3390 OPTION_MASK_ISA_AVX512DQ instead of OPTION_MASK_ISA_AVX512F.
3391 * config/i386/sse.md (SWI1248_AVX512BWDQ2): New mode iterator.
3392 (kadd<mode>, ktest<mode>): Use it instead of SWI1248_AVX512BWDQ.
3394 2017-01-26 Marek Polacek <polacek@redhat.com>
3397 * fold-const.c (operand_equal_p) [COND_EXPR]: Use OP_SAME_WITH_NULL
3398 for the third operand.
3400 2017-01-26 Jakub Jelinek <jakub@redhat.com>
3403 * omp-low.c (struct omp_context): Add simt_stmt field.
3404 (scan_omp_for): Return omp_context *.
3405 (scan_omp_simd): Set simt_stmt on the non-_simt_ SIMD
3406 context to the _simt_ SIMD stmt.
3407 (lower_omp_for): For combined SIMD with sibling _simt_
3408 SIMD, make sure to use the same decls in _looptemp_
3409 clauses as in the sibling.
3411 2017-01-26 David Sherwood <david.sherwood@arm.com>
3414 * gimplify.c (omp_notice_variable): Add GOVD_SEEN flag to variables in
3417 2017-01-26 Jakub Jelinek <jakub@redhat.com>
3420 * reg-stack.c (emit_swap_insn): Instead of fld a; fld b; fxchg %st(1);
3421 emit fld b; fld a; if possible.
3423 * brig-builtins.def: Update copyright years.
3424 * config/arm/arm_acle_builtins.def: Update copyright years.
3426 2017-01-25 Michael Meissner <meissner@linux.vnet.ibm.com>
3429 * config/rs6000/vsx.md (vsx_extract_<mode>_store): Use wY
3430 constraint instead of o for the stxsd instruction.
3432 2017-01-25 Carl Love <cel@us.ibm.com>
3434 * config/rs6000/rs6000-c (altivec_overloaded_builtins): Fix order
3435 of entries for ALTIVEC_BUILTIN_VEC_PACKS and P8V_BUILTIN_VEC_VGBBD.
3437 2017-01-25 Jonathan Wakely <jwakely@redhat.com>
3439 * doc/invoke.texi (C++ Dialect Options): Fix typo.
3441 2017-01-25 Richard Biener <rguenther@suse.de>
3443 PR tree-optimization/69264
3444 * target.def (vector_alignment_reachable): Improve documentation.
3445 * doc/tm.texi: Regenerate.
3446 * targhooks.c (default_builtin_vector_alignment_reachable): Simplify
3448 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Revert
3449 earlier changes with respect to TYPE_USER_ALIGN.
3450 (vector_alignment_reachable_p): Likewise. Improve dumping.
3452 2016-01-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3455 * config/arm/arm.md (xordi3): Force constant operand into a register
3458 2016-01-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3460 * doc/invoke.texi (-fstore-merging): Correct default optimization
3461 levels at which it is enabled.
3462 (-O): Move -fstore-merging from list to...
3465 2017-01-25 Richard Biener <rguenther@suse.de>
3468 * omp-expand.c: Include debug.h.
3469 (expand_omp_taskreg): Make sure to generate early debug before
3470 outlining anything from a function.
3471 (expand_omp_target): Likewise.
3472 (grid_expand_target_grid_body): Likewise.
3474 2017-01-25 Maxim Ostapenko <m.ostapenko@samsung.com>
3477 * asan.c (get_translation_unit_decl): New function.
3478 (asan_add_global): Extract modules file name from globals
3479 TRANSLATION_UNIT_DECL name.
3481 2017-01-24 Eric Botcazou <ebotcazou@adacore.com>
3484 * config/arm/arm.c (arm_function_ok_for_sibcall): Add back restriction
3485 for long calls with APCS frame and VFP.
3487 2017-01-24 David Malcolm <dmalcolm@redhat.com>
3489 * cfg.c (original_copy_tables_initialized_p): New function.
3490 * cfg.h (original_copy_tables_initialized_p): New decl.
3491 * cfgrtl.c (relink_block_chain): Guard the call to
3492 free_original_copy_tables with a call to
3493 original_copy_tables_initialized_p.
3494 * cgraph.h (symtab_node::native_rtl_p): New decl.
3495 * cgraphunit.c (symtab_node::native_rtl_p): New function.
3496 (symtab_node::needed_p): Don't assert for early assembly output
3497 for __RTL functions.
3498 (cgraph_node::finalize_function): Set "force_output" for __RTL
3500 (cgraph_node::analyze): Bail out early for __RTL functions.
3501 (analyze_functions): Update assertion to support __RTL functions.
3502 (cgraph_node::expand): Bail out early for __RTL functions.
3503 * final.c (rest_of_clean_state): Don't call delete_tree_ssa for
3505 * function.h (struct function): Update comment for field
3507 * gimple-expr.c: Include "tree-pass.h".
3508 (gimple_has_body_p): Return false for __RTL functions.
3509 * Makefile.in (OBJS): Add run-rtl-passes.o.
3510 * pass_manager.h (gcc::pass_manager::get_rest_of_compilation): New
3512 (gcc::pass_manager::get_clean_slate): New accessor.
3513 * passes.c: Include "insn-addr.h".
3514 (should_skip_pass_p): Add logging. Update logic for running
3515 "expand" to be compatible with both __GIMPLE and __RTL. Guard
3516 property-provider override so it is only done for gimple passes.
3518 (skip_pass): New function.
3519 (execute_one_pass): Call skip_pass when skipping passes.
3520 * read-md.c (md_reader::read_char): Support filtering
3521 the input to a subset of line numbers.
3522 (md_reader::md_reader): Initialize fields
3523 m_first_line and m_last_line.
3524 (md_reader::read_file_fragment): New function.
3525 * read-md.h (md_reader::read_file_fragment): New decl.
3526 (md_reader::m_first_line): New field.
3527 (md_reader::m_last_line): New field.
3528 * read-rtl-function.c (function_reader::create_function): Only
3529 create cfun if it doesn't already exist. Set PROP_rtl on cfun's
3530 curr_properties. Set DECL_INITIAL to a dummy block.
3531 (read_rtl_function_body_from_file_range): New function.
3532 * read-rtl-function.h (read_rtl_function_body_from_file_range):
3534 * run-rtl-passes.c: New file.
3535 * run-rtl-passes.h: New file.
3537 2017-01-24 Jeff Law <law@redhat.com>
3539 * config/microblaze/microblaze.h (ASM_FORMAT_PRIVATE_NAME): Increase
3542 2017-01-24 Bin Cheng <bin.cheng@arm.com>
3544 PR tree-optimization/79159
3545 * tree-ssa-loop-niter.c (get_cst_init_from_scev): New function.
3546 (record_nonwrapping_iv): Improve boundary using above function if no
3547 value range information.
3549 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
3550 Martin Jambor <mjambor@suse.cz>
3552 * brig-builtins.def: New file.
3553 * builtins.def (DEF_HSAIL_BUILTIN): New macro.
3554 (DEF_HSAIL_ATOMIC_BUILTIN): Likewise.
3555 (DEF_HSAIL_SAT_BUILTIN): Likewise.
3556 (DEF_HSAIL_INTR_BUILTIN): Likewise.
3557 (DEF_HSAIL_CVT_ZEROI_SAT_BUILTIN): Likewise.
3558 * builtin-types.def (BT_INT8): New.
3559 (BT_INT16): Likewise.
3560 (BT_UINT8): Likewise.
3561 (BT_UINT16): Likewise.
3562 (BT_FN_ULONG): Likewise.
3563 (BT_FN_UINT_INT): Likewise.
3564 (BT_FN_UINT_ULONG): Likewise.
3565 (BT_FN_UINT_LONG): Likewise.
3566 (BT_FN_UINT_PTR): Likewise.
3567 (BT_FN_ULONG_PTR): Likewise.
3568 (BT_FN_INT8_FLOAT): Likewise.
3569 (BT_FN_INT16_FLOAT): Likewise.
3570 (BT_FN_UINT32_FLOAT): Likewise.
3571 (BT_FN_UINT16_FLOAT): Likewise.
3572 (BT_FN_UINT8_FLOAT): Likewise.
3573 (BT_FN_UINT64_FLOAT): Likewise.
3574 (BT_FN_UINT16_UINT32): Likewise.
3575 (BT_FN_UINT32_UINT16): Likewise.
3576 (BT_FN_UINT16_UINT16_UINT16): Likewise.
3577 (BT_FN_INT_PTR_INT): Likewise.
3578 (BT_FN_UINT_PTR_UINT): Likewise.
3579 (BT_FN_LONG_PTR_LONG): Likewise.
3580 (BT_FN_ULONG_PTR_ULONG): Likewise.
3581 (BT_FN_VOID_UINT64_UINT64): Likewise.
3582 (BT_FN_UINT8_UINT8_UINT8): Likewise.
3583 (BT_FN_INT8_INT8_INT8): Likewise.
3584 (BT_FN_INT16_INT16_INT16): Likewise.
3585 (BT_FN_INT_INT_INT): Likewise.
3586 (BT_FN_UINT_FLOAT_UINT): Likewise.
3587 (BT_FN_FLOAT_UINT_UINT): Likewise.
3588 (BT_FN_ULONG_UINT_UINT): Likewise.
3589 (BT_FN_ULONG_UINT_PTR): Likewise.
3590 (BT_FN_ULONG_ULONG_ULONG): Likewise.
3591 (BT_FN_UINT_UINT_UINT): Likewise.
3592 (BT_FN_VOID_UINT_PTR): Likewise.
3593 (BT_FN_UINT_UINT_PTR: Likewise.
3594 (BT_FN_UINT32_UINT64_PTR): Likewise.
3595 (BT_FN_INT_INT_UINT_UINT): Likewise.
3596 (BT_FN_UINT_UINT_UINT_UINT): Likewise.
3597 (BT_FN_UINT_UINT_UINT_PTR): Likewise.
3598 (BT_FN_UINT_ULONG_ULONG_UINT): Likewise.
3599 (BT_FN_ULONG_ULONG_ULONG_ULONG): Likewise.
3600 (BT_FN_LONG_LONG_UINT_UINT): Likewise.
3601 (BT_FN_ULONG_ULONG_UINT_UINT): Likewise.
3602 (BT_FN_VOID_UINT32_UINT64_PTR): Likewise.
3603 (BT_FN_VOID_UINT32_UINT32_PTR): Likewise.
3604 (BT_FN_UINT_UINT_UINT_UINT_UINT): Likewise.
3605 (BT_FN_UINT_FLOAT_FLOAT_FLOAT_FLOAT): Likewise.
3606 (BT_FN_ULONG_ULONG_ULONG_UINT_UINT): Likewise.
3607 * doc/frontends.texi: List BRIG FE.
3608 * doc/install.texi (Testing): Add BRIG tesring requirements.
3609 * doc/invoke.texi (Overall Options): Mention BRIG.
3610 * doc/standards.texi (Standards): Doucment BRIG HSA version.
3612 2017-01-24 Richard Biener <rguenther@suse.de>
3614 PR translation/79208
3615 * ipa-devirt.c (odr_types_equivalent_p): Fix typo in diagnostic.
3617 2017-01-24 Martin Jambor <mjambor@suse.cz>
3620 * ipa-prop.c (ipa_free_all_node_params): Call summary destructor.
3621 * ipa-prop.c (ipa_node_params_t::insert): Initialize fields known_csts
3624 2017-01-24 Aldy Hernandez <aldyh@redhat.com>
3627 * gimple-ssa-warn-alloca.c (alloca_call_type): Make sure
3628 casts from signed to unsigned really don't have a range.
3630 2017-01-24 Markus Trippelsdorf <markus@trippelsdorf.de>
3632 * gimple-ssa-sprintf.c (format_floating): Change MPFR_RNDx to
3633 GMP_RNDx for compatiblity.
3635 2017-01-24 Martin Liska <mliska@suse.cz>
3638 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Insert assert
3639 that would prevent us to call alloca with -1 as argument.
3641 2017-01-24 Jakub Jelinek <jakub@redhat.com>
3643 * dwarf2out.c (output_compilation_unit_header, output_file_names):
3644 Avoid -Wformat-security warning.
3646 2017-01-23 Andrew Pinski <apinski@cavium.com>
3648 * config/aarch64/aarch64.c (thunderx2t99_addrcost_table): Improve
3651 2017-01-23 Martin Sebor <msebor@redhat.com>
3654 * gimple-ssa-sprintf.c (warn_level): New global.
3655 (format_integer): Use it here and throughout the rest of the file.
3656 Use the same switch to compute sign as base.
3657 (maybe_warn): New function.
3658 (format_directive): Factor out warnings into maybe_warn.
3659 Add debugging output. Use warn_level.
3660 (add_bytes): Use warn_level.
3661 (pass_sprintf_length::compute_format_length): Add debugging output.
3662 (try_substitute_return_value): Same.
3663 (pass_sprintf_length::handle_gimple_call): Set and use warn_level.
3666 * gimple-ssa-sprintf.c (struct format_result): Remove constant member.
3667 (struct fmtresult, format_integer, format_floating): Adjust.
3668 (fmtresult::fmtresult): Set max correctly in two argument ctor.
3669 (get_string_length, format_string,format_directive): Same.
3670 (pass_sprintf_length::compute_format_length): Same.
3671 (try_substitute_return_value): Simplify slightly.
3674 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust formatting.
3675 (fmtresult::operator+=): Outlined.
3676 (struct fmtresult): Add ctors.
3677 (struct conversion_spec): Rename...
3678 (struct directive): ...to this. Add and remove data members.
3679 (directive::set_width, directive::set_precision): New functions.
3680 (format_percent): Use fmtresult ctor.
3681 (get_width_and_precision): Remove.
3682 (format_integer): Make naming changes. Avoid computing width and
3684 (format_floating): Same. Adjust indentation.
3685 (format_character, format_none): New functions.
3686 (format_string): Moved character handling to format_character.
3687 (format_directive): Remove arguments, change return type.
3688 (parse_directive): New function.
3689 (pass_sprintf_length::compute_format_length): Move directive
3690 parsing to parse_directive.
3692 2017-01-23 Jakub Jelinek <jakub@redhat.com>
3694 * tree.h (assign_assembler_name_if_neeeded): Rename to ...
3695 (assign_assembler_name_if_needed): ... this.
3696 * tree.c (assign_assembler_name_if_neeeded): Rename to ...
3697 (assign_assembler_name_if_needed): ... this.
3698 (free_lang_data_in_cgraph): Adjust callers.
3699 * cgraphunit.c (cgraph_node::analyze): Likewise.
3700 * omp-expand.c (expand_omp_taskreg, expand_omp_target):
3703 2017-01-23 Richard Biener <rguenther@suse.de>
3705 PR tree-optimization/79088
3706 PR tree-optimization/79188
3707 * tree-ssa-threadupdate.c (mark_threaded_blocks): Move code
3708 resetting loop bounds after last path deletion. Reset loop
3709 bounds of the target loop, make code match the comments.
3710 * tree-ssa-threadbackwards.c (pass_early_thread_jumps::execute):
3711 Make sure loops need no fixups.
3713 2017-01-23 Kelvin Nilsen <kelvin@gcc.gnu.org>
3715 * config/rs6000/rs6000-builtin.def (VSIEDPF): Add scalar insert
3716 exponent support with double type for first argument.
3717 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Changed
3718 type returned by __builtin_vec_extract_sig,
3719 __builtin_vec_extract_sig_sp, and __builtin_vec_extract_sig_dp
3720 functions from "vector int" to "vector unsigned int" or from
3721 "vector long long int" to "vector unsigned long long int".
3722 Changed type returned by __builtin_vec_extract_exp,
3723 __builtin_vec_extract_exp_sp, and __builtin_vec_extract_exp_dp
3724 functions from "vector int" to "vector unsigned int" or from
3725 "vector long long int" to "vector unsigned long long int".
3726 Changed return type of __builtin_vec_test_data_class,
3727 __builtin_vec_test_data_class_sp, and
3728 __builtin_vec_test_data_class_dp from "vector int" to
3729 "vector bool int" or from "vector long long int" to "vector bool
3730 long long int" and changed second argument type from "unsigned
3731 int" to "int". Added new overloaded function forms "vector float
3732 __builtin_vec_insert_exp (vector float, vector unsigned int)" and
3733 "vector float __builtin_vec_insert_exp_sp (vector float, vector
3734 unsigned int)" and "vector double __builtin_vec_insert_exp (vector
3735 double, vector unsigned long long int)" and "vector double
3736 __builtin_vec_insert_exp_dp (vector double, vector unsigned long
3737 long int)". Changed return type of
3738 __builtin_scalar_test_data_class and
3739 __builtin_scalar_test_data_class_sp and
3740 __builtin_scalar_test_data_class_dp from "unsigned int" to "bool
3741 int" and changed second argument from "unsigned int" to "int".
3742 Changed type returned by __builtin_scalar_test_neg,
3743 __builtin_scalar_test_neg_sp, and __builtin_scalar_test_neg_dp
3744 from "int" to "bool int". Added new overloaded function form
3745 "double __builtin_scalar_insert_exp (double, unsigned long long int)".
3746 * config/rs6000/vsx.md (xsiexpdpf): New insn for scalar insert
3747 exponent double-precision with floating point first argument.
3748 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Adjust
3749 documentation of scalar_test_data_class, scalar_test_neg,
3750 scalar_extract_sig, scalar_extract_exp, scalar_insert_exp,
3751 vector_extract_exp, vec_extract_sig, vec_insert_exp, and
3752 vec_test_data_class built-in functions to reflect refinements in
3753 their type signatures.
3755 2017-01-23 Andreas Tobler <andreast@gcc.gnu.org>
3757 * config/aarch64/aarch64.c (aarch64_elf_asm_constructor): Increase
3759 (aarch64_elf_asm_destructor): Likewise.
3761 2017-01-23 Bernd Schmidt <bschmidt@redhat.com>
3763 PR rtl-optimization/78634
3764 * config/i386/i386.c (ix86_max_noce_ifcvt_seq_cost): New function.
3765 (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Define.
3766 * ifcvt.c (noce_try_cmove): Add missing cost check.
3768 PR rtl-optimization/71724
3769 * combine.c (if_then_else_cond): Look for situations where it is
3770 beneficial to undo the work of one of the recursive calls.
3772 2017-01-23 Bin Cheng <bin.cheng@arm.com>
3774 PR tree-optimization/70754
3775 * tree-predcom.c (stmt_combining_refs): New parameter INSERT_BEFORE.
3776 (reassociate_to_the_same_stmt): New parameter INSERT_BEFORE. Insert
3777 combined stmt before it if not NULL.
3778 (combine_chains): Process refs reversely and compute dominance point
3781 2017-01-23 Martin Liska <mliska@suse.cz>
3783 PR tree-optimization/79196
3784 * tree-ssa-strlen.c (fold_strstr_to_memcmp): Rename to ...
3785 (fold_strstr_to_strncmp): ... this. Fold the pattern to strncmp
3787 (strlen_optimize_stmt): Call the renamed function.
3789 2017-01-23 Michael Matz <matz@suse.de>
3791 PR tree-optimization/78384
3792 * tree-ssa-loop-split.c (patch_loop_exit): Use correct edge.
3794 2017-01-23 Richard Biener <rguenther@suse.de>
3796 PR tree-optimization/79186
3797 * tree-vrp.c (register_new_assert_for): Make sure we've seen
3798 both incoming edges before moving an assert.
3800 2017-01-23 Martin Jambor <mjambor@suse.cz>
3802 * ipa-prop.c (load_from_param_1): Removed.
3803 (load_from_unmodified_param): Bits from load_from_param_1 put back
3805 (load_from_param): Removed.
3806 (compute_complex_assign_jump_func): Removed stmt2 and just replaced it
3807 with stmt. Reverted back to use of load_from_unmodified_param.
3809 2017-01-23 Martin Jambor <mjambor@suse.cz>
3812 * ipa-prop.h (ipa_param_descriptor): Anotate with with GTY(()).
3813 (ipa_node_params): Annotate with GTY((for_user)). Make descriptors
3814 field a pointer to garbage collected vector, mark lattices and
3815 ipcp_orig_node with GTY((skip)).
3816 (ipa_get_param_count): Adjust to descriptors being a pointer.
3817 (ipa_get_param): Likewise.
3818 (ipa_get_type): Likewise.
3819 (ipa_get_param_move_cost): Likewise.
3820 (ipa_set_param_used): Likewise.
3821 (ipa_get_controlled_uses): Likewise.
3822 (ipa_set_controlled_uses): Likewise.
3823 (ipa_is_param_used): Likewise.
3824 (ipa_node_params_t): Move into garbage collector. New methods insert
3826 (ipa_node_params_sum): Annotate wth GTY(()).
3827 (ipa_check_create_node_params): Adjust to ipa_node_params_sum being
3829 (ipa_load_from_parm_agg): Adjust declaration.
3830 * ipa-icf.c (param_used_p): Adjust to descriptors being a pointer.
3831 * ipa-profile.c (ipa_profile): Likewise.
3832 * ipa-prop.c (ipa_get_param_decl_index_1): Likewise.
3833 (ipa_populate_param_decls): Make descriptors parameter garbage
3835 (ipa_dump_param): Adjust to descriptors being a pointer.
3836 (ipa_alloc_node_params): Likewise.
3837 (ipa_initialize_node_params): Likewise.
3838 (load_from_param_1): Make descriptors parameter garbage collected.
3839 (load_from_unmodified_param): Likewise.
3840 (load_from_param): Likewise.
3841 (ipa_load_from_parm_agg): Likewise.
3842 (ipa_node_params::~ipa_node_params): Removed.
3843 (ipa_free_all_node_params): Remove call to delete operator.
3844 (ipa_node_params_t::insert): New.
3845 (ipa_node_params_t::remove): Likewise.
3846 (ipa_node_params_t::duplicate): Adjust to descriptors being a pointer,
3847 copy known_csts and known_contexts vectors.
3848 (ipa_read_node_info): Adjust to descriptors being a pointer.
3849 (ipcp_modif_dom_walker): Make m_descriptors field garbage
3851 (ipcp_transform_function): Make descriptors variable garbage
3854 2017-01-23 Andrew Senkevich <andrew.senkevich@intel.com>
3856 * config/i386/avx512bwintrin.h: Add k-mask test, kortest intrinsics.
3857 * config/i386/avx512dqintrin.h: Ditto.
3858 * config/i386/avx512fintrin.h: Ditto.
3859 * gcc/config/i386/i386.c: Handle new builtins.
3860 * config/i386/i386-builtin.def: Add new builtins.
3861 * config/i386/sse.md (ktest<mode>, kortest<mode>): New.
3862 (UNSPEC_KORTEST, UNSPEC_KTEST): New.
3864 2017-01-23 Jakub Jelinek <jakub@redhat.com>
3865 Martin Liska <mliska@suse.cz>
3867 * asan.h: Define ASAN_USE_AFTER_SCOPE_ATTRIBUTE.
3868 * asan.c (asan_expand_poison_ifn): Support stores and use
3869 appropriate ASAN report function.
3870 * internal-fn.c (expand_ASAN_POISON_USE): New function.
3871 * internal-fn.def (ASAN_POISON_USE): Declare.
3872 * tree-into-ssa.c (maybe_add_asan_poison_write): New function.
3873 (maybe_register_def): Create ASAN_POISON_USE when sanitizing.
3874 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove
3875 ASAN_POISON calls w/o LHS.
3876 * tree-ssa.c (execute_update_addresses_taken): Create clobber
3877 for ASAN_MARK (UNPOISON, &x, ...) in order to prevent usage of a LHS
3878 from ASAN_MARK (POISON, &x, ...) coming to a PHI node.
3879 * gimplify.c (asan_poison_variables): Add attribute
3880 use_after_scope_memory to variables that really needs to live
3882 * tree-ssa.c (is_asan_mark_p): Do not rewrite into SSA when
3883 having the attribute.
3885 2017-01-23 Martin Liska <mliska@suse.cz>
3887 * asan.c (create_asan_shadow_var): New function.
3888 (asan_expand_poison_ifn): Likewise.
3889 * asan.h (asan_expand_poison_ifn): New declaration.
3890 * internal-fn.c (expand_ASAN_POISON): Likewise.
3891 * internal-fn.def (ASAN_POISON): New builtin.
3892 * sanopt.c (pass_sanopt::execute): Expand
3893 asan_expand_poison_ifn.
3894 * tree-inline.c (copy_decl_for_dup_finish): Make function
3896 * tree-inline.h (copy_decl_for_dup_finish): Likewise.
3897 * tree-ssa.c (is_asan_mark_p): New function.
3898 (execute_update_addresses_taken): Rewrite local variables
3899 (identified just by use-after-scope as addressable) into SSA.
3901 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
3903 * doc/install.texi (Specific): opensource.apple.com uses https
3904 now. Remove trailing slash.
3906 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
3908 * README.Portability: Remove note on an Irix compatibility issue.
3910 2017-01-22 Dimitry Andric <dim@FreeBSD.org>
3912 * gcov.c (INCLUDE_ALGORITHM): Define.
3913 (INCLUDE_VECTOR): Define.
3914 No longer include <vector> and <algorithm> directly.
3916 2017-01-21 Gerald Pfeifer <gerald@pfeifer.com>
3918 * doc/extend.texi (Thread-Local): Change www.akkadia.org reference
3920 * doc/invoke.texi (Code Gen Options): Ditto.
3922 2017-01-21 Jan Hubicka <hubicka@ucw.cz>
3925 * cfg.c (update_bb_profile_for_threading): Fix updating of probablity.
3927 2017-01-21 Bernd Schmidt <bschmidt@redhat.com>
3929 rtl-optimization/79125
3930 * cprop.c (local_cprop_pass): Handle cases where we make an
3933 2017-01-20 Segher Boessenkool <segher@kernel.crashing.org>
3937 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Adjust address to
3938 read from, for big endian.
3940 2017-01-20 Jiong Wang <jiong.wang@arm.com>
3942 * config/aarch64/aarch64-builtins.c (aarch64_init_builtins): Register
3943 register pauth builtins for LP64 only.
3945 2017-01-20 Marek Polacek <polacek@redhat.com>
3948 * gimplify.c (should_warn_for_implicit_fallthrough): Handle consecutive
3951 2017-01-20 Alexander Monakov <amonakov@ispras.ru>
3953 * omp-expand.c (expand_omp_simd): Clear PROP_gimple_lomp_dev regardless
3955 * omp-offload.c (pass_omp_device_lower::gate): Use PROP_gimple_lomp_dev.
3956 * passes.c (dump_properties): Handle PROP_gimple_lomp_dev.
3957 * tree-inline.c (expand_call_inline): Propagate PROP_gimple_lomp_dev.
3959 2017-01-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3962 * config/arm/arm.c (neon_valid_immediate): Reject vector constants
3963 in big-endian mode when they are not a single duplicated value.
3965 2017-01-20 Richard Biener <rguenther@suse.de>
3967 * BASE-VER: Bump to 7.0.1.
3969 2017-01-20 Alexander Monakov <amonakov@ispras.ru>
3971 * omp-low.c (omplow_simd_context): New struct. Use it...
3972 (lower_rec_simd_input_clauses): ...here and...
3973 (lower_rec_input_clauses): ...here to hold common data. Adjust all
3974 references to idx, lane, max_vf, is_simt.
3976 2017-01-20 Graham Markall <graham.markall@embecosm.com>
3978 * config/arc/arc.h (LINK_SPEC): Use arclinux_nps emulation when
3981 2017-01-20 Martin Jambor <mjambor@suse.cz>
3983 * hsa.h: Renaed to hsa-common.h. Adjusted a comment.
3984 * hsa.c: Renaed to hsa-common.c. Change include of gt-hsa.h to
3986 * Makefile.in (OBJS): Rename hsa.o to hsa-common.o.
3987 (GTFILES): Rename hsa.c to hsa-common.c.
3988 * hsa-brig.c: Change include of hsa.h to hsa-common.h.
3989 * hsa-dump.c: Likewise.
3990 * hsa-gen.c: Likewise.
3991 * hsa-regalloc.c: Likewise.
3992 * ipa-hsa.c: Likewise.
3993 * omp-expand.c: Likewise.
3994 * omp-low.c: Likewise.
3995 * toplev.c: Likewise.
3997 2017-01-20 Marek Polacek <polacek@redhat.com>
4000 * doc/invoke.texi: Document -Wduplicated-branches.
4001 * fold-const.c (operand_equal_p): Handle MODIFY_EXPR, INIT_EXPR,
4002 COMPOUND_EXPR, PREDECREMENT_EXPR, PREINCREMENT_EXPR,
4003 POSTDECREMENT_EXPR, POSTINCREMENT_EXPR, CLEANUP_POINT_EXPR, EXPR_STMT,
4004 STATEMENT_LIST, and RETURN_EXPR. For non-pure non-const functions
4005 return 0 only when not OEP_LEXICOGRAPHIC.
4006 (fold_build_cleanup_point_expr): Use the expression
4007 location when building CLEANUP_POINT_EXPR.
4008 * tree-core.h (enum operand_equal_flag): Add OEP_LEXICOGRAPHIC.
4009 * tree.c (add_expr): Handle error_mark_node.
4011 2017-01-20 Martin Liska <mliska@suse.cz>
4014 * tree-profile.c (init_ic_make_global_vars): Do not call
4016 (gimple_init_gcov_profiler): Likewise.
4018 2017-01-20 Martin Liska <mliska@suse.cz>
4021 * cgraph.h (maybe_create_reference): Remove argument and
4023 * cgraphclones.c (cgraph_node::create_virtual_clone): Remove one
4025 * ipa-cp.c (create_specialized_node): Likewise.
4026 * symtab.c (symtab_node::maybe_create_reference): Handle
4027 VAR_DECLs and ADDR_EXPRs and select ipa_ref_use type.
4029 2017-01-20 Martin Liska <mliska@suse.cz>
4031 * read-rtl-function.c (function_reader::create_function): Use
4032 build_decl instread of build_decl_stat.
4034 2017-01-20 Andrew Senkevich <andrew.senkevich@intel.com>
4036 * config/i386/avx512bwintrin.h: Add k-mask registers shift intrinsics.
4037 * config/i386/avx512dqintrin.h: Ditto.
4038 * config/i386/avx512fintrin.h: Ditto.
4039 * config/i386/i386-builtin-types.def: Add new types.
4040 * gcc/config/i386/i386.c: Handle new types.
4041 * config/i386/i386-builtin.def (__builtin_ia32_kshiftliqi)
4042 (__builtin_ia32_kshiftlihi, __builtin_ia32_kshiftlisi)
4043 (__builtin_ia32_kshiftlidi, __builtin_ia32_kshiftriqi)
4044 (__builtin_ia32_kshiftrihi, __builtin_ia32_kshiftrisi)
4045 (__builtin_ia32_kshiftridi): New.
4046 * config/i386/sse.md (k<code><mode>): Rename *k<code><mode>.
4048 2017-01-19 Segher Boessenkool <segher@kernel.crashing.org>
4052 * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Unconditionally
4053 define to rs6000_init_stack_protect_guard.
4054 (rs6000_init_stack_protect_guard): New function.
4056 2017-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
4057 Yunqiang Su <yunqiang.su@imgtec.com>
4059 * config.gcc (supported_defaults): Add madd4.
4060 (with_madd4): Add validation.
4061 (all_defaults): Add madd4.
4062 * config/mips/mips.opt (mmadd4): New option.
4063 * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
4065 (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
4067 (ISA_HAS_UNFUSED_MADD4): Gate with mips_madd4.
4068 (ISA_HAS_FUSED_MADD4): Likewise.
4069 * gcc/doc/invoke.texi (-mmadd4): Document the new option.
4070 * gcc/doc/install.texi (--with-madd4): Document the new option.
4072 2017-01-19 Jiong Wang <jiong.wang@arm.com>
4074 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): New
4075 entries for AARCH64_PAUTH_BUILTIN_XPACLRI,
4076 AARCH64_PAUTH_BUILTIN_PACIA1716, AARCH64_PAUTH_BUILTIN_AUTIA1716.
4077 (aarch64_init_pauth_hint_builtins): New.
4078 (aarch64_init_builtins): Call aarch64_init_pauth_hint_builtins.
4079 (aarch64_expand_builtin): Expand new builtins.
4081 2017-01-19 Jiong Wang <jiong.wang@arm.com>
4083 * reg-notes.def (CFA_TOGGLE_RA_MANGLE): New reg-note.
4084 * combine-stack-adj.c (no_unhandled_cfa): Handle
4085 REG_CFA_TOGGLE_RA_MANGLE.
4086 * dwarf2cfi.c (dwarf2out_frame_debug): Handle REG_CFA_TOGGLE_RA_MANGLE.
4087 * config/aarch64/aarch64.c (aarch64_expand_prologue): Generates DWARF
4088 info for return address signing.
4089 (aarch64_expand_epilogue): Likewise.
4091 2017-01-19 Jiong Wang <jiong.wang@arm.com>
4093 * config/aarch64/aarch64-opts.h (aarch64_function_type): New enum.
4094 * config/aarch64/aarch64-protos.h
4095 (aarch64_return_address_signing_enabled): New declaration.
4096 * config/aarch64/aarch64.c (aarch64_return_address_signing_enabled):
4098 (aarch64_expand_prologue): Sign return address before it's pushed onto
4100 (aarch64_expand_epilogue): Authenticate return address fetched from
4102 (aarch64_override_options): Sanity check for ILP32 and ISA level.
4103 (aarch64_attributes): New function attributes for "sign-return-address".
4104 * config/aarch64/aarch64.md (UNSPEC_AUTI1716, UNSPEC_AUTISP,
4105 UNSPEC_PACI1716, UNSPEC_PACISP, UNSPEC_XPACLRI): New unspecs.
4106 ("*do_return"): Generate combined instructions according to key index.
4107 ("<pauth_mnem_prefix>sp", "<pauth_mnem_prefix1716", "xpaclri"): New.
4108 * config/aarch64/iterators.md (PAUTH_LR_SP, PAUTH_17_16): New integer
4110 (pauth_mnem_prefix, pauth_hint_num_a): New integer attributes.
4111 * config/aarch64/aarch64.opt (msign-return-address=): New.
4112 * doc/extend.texi (AArch64 Function Attributes): Documents
4113 "sign-return-address=".
4114 * doc/invoke.texi (AArch64 Options): Documents "-msign-return-address=".
4116 2017-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
4118 * doc/invoke.texi: Add missing -mlxc1-sxc1 options to
4119 overall option summary.
4121 2017-01-19 Jiong Wang <jiong.wang@arm.com>
4123 * config/aarch64/aarch64-arches.def: New entry for "armv8.3-a".
4124 * config/aarch64/aarch64.h (AARCH64_FL_V8_3, AARCH64_FL_FOR_ARCH8_3,
4125 AARCH64_ISA_V8_3, TARGET_ARMV8_3): New.
4126 * doc/invoke.texi (AArch64 Options): Document "armv8.3-a".
4128 2017-01-19 Michael Meissner <meissner@linux.vnet.ibm.com>
4130 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Enable
4131 -mpower9-minmax by default for -mcpu=power9.
4132 (ISA_3_MASKS_IEEE): Require -mvsx-small-integer to enable IEEE
4133 128-bit floating point.
4135 2017-01-20 Alan Modra <amodra@gmail.com>
4137 * config/rs6000/rs6000.md (cmpstrnsi, cmpstrsi): Fail if
4138 optimizing for size.
4140 2017-01-20 Alan Modra <amodra@gmail.com>
4143 * config/rs6000/rs6000.c (expand_strn_compare): Get the asm name
4144 for strcmp and strncmp from corresponding builtin decl.
4146 2017-01-19 Uros Bizjak <ubizjak@gmail.com>
4148 * config.gcc (x86_64-*-rtems*): Use i386/rtemself.h
4149 instead of i386/rtems-64.h.
4150 * config/i386/rtems-64.h: Remove.
4152 2017-01-19 Uros Bizjak <ubizjak@gmail.com>
4156 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
4158 * config/i386/rtemself.h (LONG_DOUBLE_TYPE_SIZE): New define.
4160 2017-01-19 Tamar Christina <tamar.christina@arm.com>
4162 * config/aarch64/aarch64.c (aarch64_simd_gen_const_vector_dup):
4163 Change int to HOST_WIDE_INT.
4164 * config/aarch64/aarch64-protos.h
4165 (aarch64_simd_gen_const_vector_dup): Likewise.
4166 * config/aarch64/aarch64-simd.md: Add copysign<mode>3.
4168 2017-01-19 David Malcolm <dmalcolm@redhat.com>
4170 * langhooks-def.h (lhd_type_for_size): New decl.
4171 (LANG_HOOKS_TYPE_FOR_SIZE): Define as lhd_type_for_size.
4172 * langhooks.c (lhd_type_for_size): New function, taken from
4175 2017-01-19 Pat Haugen <pthaugen@us.ibm.com>
4177 * config/rs6000/power9.md (power9-alu): Remove 'cmp' type and add
4178 define_bypass for CR latency.
4179 (power9-cracked-alu): Update bypass latency and remove power9-branch.
4180 (power9-alu2): Add define_bypass for CR latency.
4182 (power9-mul): Update insn latency.
4183 (power9-mul-compare): Update insn latency, bypass latency and remove
4186 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4188 * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
4190 * config/aarch64/aarch64.md
4191 (aarch64_reload_movcp<GPF_TF:mode><P:mode>): Delete reference to
4192 aarch64_nopcrelative_literal_loads.
4193 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
4195 2017-01-19 Chenghua Xu <paul.hua.gm@gmail.com>
4197 * config/mips/mips.h (ISA_HAS_FUSED_MADD4): Enable for
4199 (ISA_HAS_UNFUSED_MADD4): Exclude TARGET_LOONGSON_3A.
4201 2017-01-19 Doug Gilmore <doug.gilmore@imgtec.com>
4204 * config.gcc (supported_defaults): Add lxc1-sxc1.
4205 (with_lxc1_sxc1): Add validation.
4206 (all_defaults): Add lxc1-sxc1.
4207 * config/mips/mips.opt (mlxc1-sxc1): New option.
4208 * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
4210 (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
4211 __mips_no_lxc1_sxc1.
4212 (ISA_HAS_LXC1_SXC1): Gate with mips_lxc1_sxc1.
4213 * gcc/doc/invoke.texi (-mlxc1-sxc1): Document the new option.
4214 * doc/install.texi (--with-lxc1-sxc1): Document the new option.
4216 2017-01-19 Richard Biener <rguenther@suse.de>
4218 PR tree-optimization/72488
4219 * tree-ssa-sccvn.c (run_scc_vn): When we abort the VN make
4220 sure to restore SSA info.
4221 * tree-ssa.c (verify_ssa): Verify SSA info is not shared.
4223 2017-01-19 Richard Earnshaw <rearnsha@arm.com>
4225 PR rtl-optimization/79121
4226 * expr.c (expand_expr_real_2, case LSHIFT_EXPR): Look at the signedness
4227 of the inner type when shifting an extended value.
4229 2017-01-17 Jan Hubicka <hubicka@ucw.cz>
4232 * symtab.c (symtab_node::equal_address_to): Fix comparing of
4233 interposable aliases.
4235 2017-01-18 Peter Bergner <bergner@vnet.ibm.com>
4238 * config/rs6000/spe.md (mov_si<mode>_e500_subreg0): Fix constraints.
4239 Use the evmergelohi instruction.
4240 (mov_si<mode>_e500_subreg4_2_le): Likewise.
4241 (mov_sitf_e500_subreg8_2_be): Likewise.
4242 (mov_sitf_e500_subreg12_2_le): Likewise.
4243 (mov_si<mode>_e500_subreg0_2_le): Fix constraints.
4244 (mov_si<mode>_e500_subreg4_2_be): Likewise.
4245 (mov_sitf_e500_subreg8_2_le): Likewise.
4246 (mov_sitf_e500_subreg12_2_be): Likewise.
4248 2017-01-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4250 * config/rs6000/altivec.md (altivec_vbpermq): Change "type"
4251 attribute from vecsimple to vecperm.
4252 (altivec_vbpermq2): Likewise.
4254 2017-01-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4257 * config/rs6000/altivec.h: Fix typo of vec_cntlz to vec_cnttz.
4259 2017-01-18 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
4260 * config/rs6000/rs6000-protos.h (expand_strn_compare): Add arg.
4261 * config/rs6000/rs6000.c (expand_strn_compare): Add ability to expand
4262 strcmp. Fix bug where comparison didn't stop with zero byte. Fix
4263 case where N arg is SIZE_MAX.
4264 * config/rs6000/rs6000.md (cmpstrnsi): Args to expand_strn_compare.
4265 (cmpstrsi): Add pattern.
4267 2017-01-18 Michael Meissner <meissner@linux.vnet.ibm.com>
4269 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
4270 __builtin_vec_revb builtins.
4271 * config/rs6000/rs6000-builtins.def (P9V_BUILTIN_XXBRQ_V16QI): Add
4272 built-in functions to support generation of the ISA 3.0 XXBR<x>
4273 vector byte reverse instructions.
4274 (P9V_BUILTIN_XXBRQ_V1TI): Likewise.
4275 (P9V_BUILTIN_XXBRD_V2DI): Likewise.
4276 (P9V_BUILTIN_XXBRD_V2DF): Likewise.
4277 (P9V_BUILTIN_XXBGW_V4SI): Likewise.
4278 (P9V_BUILTIN_XXBGW_V4SF): Likewise.
4279 (P9V_BUILTIN_XXBGH_V8HI): Likewise.
4280 (P9V_BUILTIN_VEC_REVB): Likewise.
4281 * config/rs6000/vsx.md (p9_xxbrq_v1ti): New insns/expanders to
4282 generate the ISA 3.0 XXBR<x> vector byte reverse instructions.
4283 (p9_xxbrq_v16qi): Likewise.
4284 (p9_xxbrd_<mode>, VSX_D iterator): Likewise.
4285 (p9_xxbrw_<mode>, VSX_W iterator): Likewise.
4286 (p9_xxbrh_v8hi): Likewise.
4287 * config/rs6000/altivec.h (vec_revb): Define if ISA 3.0.
4288 * doc/extend.texi (RS/6000 Altivec Built-ins): Document the
4289 vec_revb built-in functions.
4291 2017-01-18 Uros Bizjak <ubizjak@gmail.com>
4293 PR rtl-optimization/78952
4294 * config/i386/i386.md (any_extract): New code iterator.
4295 (*insvqi_2): Use any_extract for source operand.
4296 (*insvqi_3): Use any_shiftrt for source operand.
4298 2017-01-18 Wilco Dijkstra <wdijkstr@arm.com>
4300 * config/aarch64/aarch64.c (aarch64_sched_adjust_priority)
4302 (TARGET_SCHED_ADJUST_PRIORITY): Define target hook.
4304 2017-01-18 Matthias Klose <doko@ubuntu.com>
4306 * doc/install.texi: Allow default for --with-target-bdw-gc-include.
4308 2016-01-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4310 * config/rs6000/altivec.h (vec_bperm): Change #define.
4311 * config/rs6000/altivec.md (UNSPEC_VBPERMD): New enum constant.
4312 (altivec_vbpermq2): New define_insn.
4313 (altivec_vbpermd): Likewise.
4314 * config/rs6000/rs6000-builtin.def (VBPERMQ2): New monomorphic
4316 (VBPERMD): Likewise.
4317 (VBPERM): New polymorphic function interface.
4318 * config/rs6000/r6000-c.c (altivec_overloaded_builtins_table):
4319 Add entries for P9V_BUILTIN_VEC_VBPERM.
4320 * doc/extend.texi: Add interfaces for vec_bperm.
4322 2017-01-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4324 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Downcase
4325 first letter of error messages.
4326 (s390_resolve_overloaded_builtin): Likewise.
4327 * config/s390/s390.c (s390_expand_builtin): Likewise.
4328 (s390_invalid_arg_for_unprototyped_fn): Likewise.
4329 (s390_valid_target_attribute_inner_p): Likewise.
4330 * config/s390/s390.md ("tabort"): Likewise.
4332 2017-01-18 Toma Tabacu <toma.tabacu@imgtec.com>
4334 * config/mips/mips.h (ISA_HAS_DIV3): Remove unused macro.
4335 (ISA_AVOID_DIV_HILO): New macro.
4336 (ISA_HAS_DIV): Use new ISA_AVOID_DIV_HILO macro.
4337 (ISA_HAS_DDIV): Likewise.
4339 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
4341 * doc/invoke.texi (fabi-version): Correct number of occurrences.
4343 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
4345 * doc/invoke.texi (fabi-version): Spelling fix.
4347 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
4350 * doc/invoke.texi (fabi-version): Mention mangling fix for
4353 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
4356 * doc/invoke.texi (fabi-version): Document discriminator mangling.
4358 2017-01-17 Segher Boessenkool <segher@kernel.crashing.org>
4361 * config/rs6000/rs6000-opts.h (stack_protector_guard): New enum.
4362 * config/rs6000/rs6000.c (rs6000_option_override_internal): Handle
4364 * config/rs6000/rs6000.md (stack_protect_set): Handle the new more
4366 (stack_protect_test): Ditto.
4367 * config/rs6000/rs6000.opt (mstack-protector-guard=,
4368 mstack-protector-guard-reg=, mstack-protector-guard-offset=): New
4370 * doc/invoke.texi (Option Summary) [RS/6000 and PowerPC Options]:
4371 Add -mstack-protector-guard=, -mstack-protector-guard-reg=, and
4372 -mstack-protector-guard-offset=.
4373 (RS/6000 and PowerPC Options): Ditto.
4375 2017-01-17 Uros Bizjak <ubizjak@gmail.com>
4377 * config/i386/i386.h (MASK_CLASS_P): New define.
4378 * config/i386/i386.c (inline_secondary_memory_needed): Ensure that
4379 there are no registers from different register sets also when
4380 mask registers are used. Update function comment.
4381 * config/i386/i386.md (*movsi_internal): Split (*k/*krm) alternative
4382 to (*k/*r) and (*k/*km) alternatives.
4384 2017-01-17 Wilco Dijkstra <wdijkstr@arm.com>
4386 * config/aarch64/aarch64.md (eh_return): Remove pattern and splitter.
4387 * config/aarch64/aarch64.h (AARCH64_EH_STACKADJ_REGNUM): Remove.
4388 (EH_RETURN_HANDLER_RTX): New define.
4389 * config/aarch64/aarch64.c (aarch64_frame_pointer_required):
4390 Force frame pointer in EH return functions.
4391 (aarch64_expand_epilogue): Add barrier for eh_return.
4392 (aarch64_final_eh_return_addr): Remove.
4393 (aarch64_eh_return_handler_rtx): New function.
4394 * config/aarch64/aarch64-protos.h (aarch64_final_eh_return_addr):
4396 (aarch64_eh_return_handler_rtx): New prototype.
4398 2017-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4400 * config/rs6000/altivec.h (vec_rlmi): New #define.
4401 (vec_vrlnm): Likewise.
4402 (vec_rlnm): Likewise.
4403 * config/rs6000/altivec.md (UNSPEC_VRLMI): New UNSPEC enum value.
4404 (UNSPEC_VRLNM): Likewise.
4405 (VIlong): New mode iterator.
4406 (altivec_vrl<VI_char>mi): New define_insn.
4407 (altivec_vrl<VI_char>nm): Likewise.
4408 * config/rs6000/rs6000-builtin.def (VRLWNM): New monomorphic
4411 (RLNM): New polymorphic function entry.
4412 (VRLWMI): New monomorphic function entry.
4414 (RLMI): New polymorphic function entry.
4415 * config/rs6000/r6000-c.c (altivec_overloaded_builtin_table): Add
4416 new entries for P9V_BUILTIN_VEC_RLMI and P9V_BUILTIN_VEC_RLNM.
4417 * doc/extend.texi: Add description of vec_rlmi, vec_rlnm, and
4420 2017-01-17 Jakub Jelinek <jakub@redhat.com>
4423 * dwarf2out.c (field_byte_offset): Restore the
4424 PCC_BITFIELD_TYPE_MATTERS behavior for INTEGER_CST DECL_FIELD_OFFSET
4425 and DECL_FIELD_BIT_OFFSET. Use fold_build2 instead of build2 + fold.
4426 (analyze_variants_discr, gen_variant_part): Use fold_build2 instead
4429 2017-01-17 Eric Botcazou <ebotcazou@adacore.com>
4432 * config/aarch64/aarch64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define
4434 2017-01-17 Jakub Jelinek <jakub@redhat.com>
4437 * dwarf2out.c (add_data_member_location_attribute): For constant
4438 offset bitfield emit for -gdwarf-5 DW_AT_data_bit_offset attribute
4439 instead of DW_AT_data_member_location, DW_AT_bit_offset and
4440 DW_AT_byte_size attributes.
4442 2017-01-17 Eric Botcazou <ebotcazou@adacore.com>
4444 * config/rs6000/rs6000.c (rs6000_emit_move): Also use a TOC reference
4445 after forcing to constant memory when the code model is medium.
4447 2017-01-17 Julia Koval <julia.koval@intel.com>
4450 * config/i386/avx512fintrin.h
4451 (_mm512_i32gather_ps): Change __addr type to void const*.
4452 (_mm512_mask_i32gather_ps): Ditto.
4453 (_mm512_i32gather_pd): Ditto.
4454 (_mm512_mask_i32gather_pd): Ditto.
4455 (_mm512_i64gather_ps): Ditto.
4456 (_mm512_mask_i64gather_ps): Ditto.
4457 (_mm512_i64gather_pd): Ditto.
4458 (_mm512_mask_i64gather_pd): Ditto.
4459 (_mm512_i32gather_epi32): Ditto.
4460 (_mm512_mask_i32gather_epi32): Ditto.
4461 (_mm512_i32gather_epi64): Ditto.
4462 (_mm512_mask_i32gather_epi64): Ditto.
4463 (_mm512_i64gather_epi32): Ditto.
4464 (_mm512_mask_i64gather_epi32): Ditto.
4465 (_mm512_i64gather_epi64): Ditto.
4466 (_mm512_mask_i64gather_epi64): Ditto.
4467 (_mm512_i32scatter_ps): Change __addr type to void*.
4468 (_mm512_mask_i32scatter_ps): Ditto.
4469 (_mm512_i32scatter_pd): Ditto.
4470 (_mm512_mask_i32scatter_pd): Ditto.
4471 (_mm512_i64scatter_ps): Ditto.
4472 (_mm512_mask_i64scatter_ps): Ditto.
4473 (_mm512_i64scatter_pd): Ditto.
4474 (_mm512_mask_i64scatter_pd): Ditto.
4475 (_mm512_i32scatter_epi32): Ditto.
4476 (_mm512_mask_i32scatter_epi32): Ditto.
4477 (_mm512_i32scatter_epi64): Ditto.
4478 (_mm512_mask_i32scatter_epi64): Ditto.
4479 (_mm512_i64scatter_epi32): Ditto.
4480 (_mm512_mask_i64scatter_epi32): Ditto.
4481 (_mm512_i64scatter_epi64): Ditto.
4482 (_mm512_mask_i64scatter_epi64): Ditto.
4483 * config/i386/avx512pfintrin.h
4484 (_mm512_mask_prefetch_i32gather_pd): Change __addr type to void const*.
4485 (_mm512_mask_prefetch_i32gather_ps): Ditto.
4486 (_mm512_mask_prefetch_i64gather_pd): Ditto.
4487 (_mm512_mask_prefetch_i64gather_ps): Ditto.
4488 (_mm512_prefetch_i32scatter_pd): Change __addr type to void*.
4489 (_mm512_prefetch_i32scatter_ps): Ditto.
4490 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
4491 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
4492 (_mm512_prefetch_i64scatter_pd): Ditto.
4493 (_mm512_prefetch_i64scatter_ps): Ditto.
4494 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
4495 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
4496 * config/i386/avx512vlintrin.h
4497 (_mm256_mmask_i32gather_ps): Change __addr type to void const*.
4498 (_mm_mmask_i32gather_ps): Ditto.
4499 (_mm256_mmask_i32gather_pd): Ditto.
4500 (_mm_mmask_i32gather_pd): Ditto.
4501 (_mm256_mmask_i64gather_ps): Ditto.
4502 (_mm_mmask_i64gather_ps): Ditto.
4503 (_mm256_mmask_i64gather_pd): Ditto.
4504 (_mm_mmask_i64gather_pd): Ditto.
4505 (_mm256_mmask_i32gather_epi32): Ditto.
4506 (_mm_mmask_i32gather_epi32): Ditto.
4507 (_mm256_mmask_i32gather_epi64): Ditto.
4508 (_mm_mmask_i32gather_epi64): Ditto.
4509 (_mm256_mmask_i64gather_epi32): Ditto.
4510 (_mm_mmask_i64gather_epi32): Ditto.
4511 (_mm256_mmask_i64gather_epi64): Ditto.
4512 (_mm_mmask_i64gather_epi64): Ditto.
4513 (_mm256_i32scatter_ps): Change __addr type to void*.
4514 (_mm256_mask_i32scatter_ps): Ditto.
4515 (_mm_i32scatter_ps): Ditto.
4516 (_mm_mask_i32scatter_ps): Ditto.
4517 (_mm256_i32scatter_pd): Ditto.
4518 (_mm256_mask_i32scatter_pd): Ditto.
4519 (_mm_i32scatter_pd): Ditto.
4520 (_mm_mask_i32scatter_pd): Ditto.
4521 (_mm256_i64scatter_ps): Ditto.
4522 (_mm256_mask_i64scatter_ps): Ditto.
4523 (_mm_i64scatter_ps): Ditto.
4524 (_mm_mask_i64scatter_ps): Ditto.
4525 (_mm256_i64scatter_pd): Ditto.
4526 (_mm256_mask_i64scatter_pd): Ditto.
4527 (_mm_i64scatter_pd): Ditto.
4528 (_mm_mask_i64scatter_pd): Ditto.
4529 (_mm256_i32scatter_epi32): Ditto.
4530 (_mm256_mask_i32scatter_epi32): Ditto.
4531 (_mm_i32scatter_epi32): Ditto.
4532 (_mm_mask_i32scatter_epi32): Ditto.
4533 (_mm256_i32scatter_epi64): Ditto.
4534 (_mm256_mask_i32scatter_epi64): Ditto.
4535 (_mm_i32scatter_epi64): Ditto.
4536 (_mm_mask_i32scatter_epi64): Ditto.
4537 (_mm256_i64scatter_epi32): Ditto.
4538 (_mm256_mask_i64scatter_epi32): Ditto.
4539 (_mm_i64scatter_epi32): Ditto.
4540 (_mm_mask_i64scatter_epi32): Ditto.
4541 (_mm256_i64scatter_epi64): Ditto.
4542 (_mm256_mask_i64scatter_epi64): Ditto.
4543 (_mm_i64scatter_epi64): Ditto.
4544 (_mm_mask_i64scatter_epi64): Ditto.
4545 * config/i386/i386-builtin-types.def (V16SF_V16SF_PCFLOAT_V16SI_HI_INT)
4546 (V8DF_V8DF_PCDOUBLE_V8SI_QI_INT, V8SF_V8SF_PCFLOAT_V8DI_QI_INT)
4547 (V8DF_V8DF_PCDOUBLE_V8DI_QI_INT, V16SI_V16SI_PCINT_V16SI_HI_INT)
4548 (V8DI_V8DI_PCINT64_V8SI_QI_INT, V8SI_V8SI_PCINT_V8DI_QI_INT)
4549 (V8DI_V8DI_PCINT64_V8DI_QI_INT, V2DF_V2DF_PCDOUBLE_V4SI_QI_INT)
4550 (V4DF_V4DF_PCDOUBLE_V4SI_QI_INT, V2DF_V2DF_PCDOUBLE_V2DI_QI_INT)
4551 (V4DF_V4DF_PCDOUBLE_V4DI_QI_INT, V4SF_V4SF_PCFLOAT_V4SI_QI_INT)
4552 (V8SF_V8SF_PCFLOAT_V8SI_QI_INT, V4SF_V4SF_PCFLOAT_V2DI_QI_INT)
4553 (V4SF_V4SF_PCFLOAT_V4DI_QI_INT, V2DI_V2DI_PCINT64_V4SI_QI_INT)
4554 (V4DI_V4DI_PCINT64_V4SI_QI_INT, V2DI_V2DI_PCINT64_V2DI_QI_INT)
4555 (V4DI_V4DI_PCINT64_V4DI_QI_INT, V4SI_V4SI_PCINT_V4SI_QI_INT)
4556 (V8SI_V8SI_PCINT_V8SI_QI_INT, V4SI_V4SI_PCINT_V2DI_QI_INT)
4557 (V4SI_V4SI_PCINT_V4DI_QI_INT, VOID_PFLOAT_HI_V16SI_V16SF_INT)
4558 (VOID_PFLOAT_QI_V8SI_V8SF_INT, VOID_PFLOAT_QI_V4SI_V4SF_INT)
4559 (VOID_PDOUBLE_QI_V8SI_V8DF_INT, VOID_PDOUBLE_QI_V4SI_V4DF_INT)
4560 (VOID_PDOUBLE_QI_V4SI_V2DF_INT, VOID_PFLOAT_QI_V8DI_V8SF_INT)
4561 (VOID_PFLOAT_QI_V4DI_V4SF_INT, VOID_PFLOAT_QI_V2DI_V4SF_INT)
4562 (VOID_PDOUBLE_QI_V8DI_V8DF_INT, VOID_PDOUBLE_QI_V4DI_V4DF_INT)
4563 (VOID_PDOUBLE_QI_V2DI_V2DF_INT, VOID_PINT_HI_V16SI_V16SI_INT)
4564 (VOID_PINT_QI_V8SI_V8SI_INT, VOID_PINT_QI_V4SI_V4SI_INT)
4565 (VOID_PLONGLONG_QI_V8SI_V8DI_INT, VOID_PLONGLONG_QI_V4SI_V4DI_INT)
4566 (VOID_PLONGLONG_QI_V4SI_V2DI_INT, VOID_PINT_QI_V8DI_V8SI_INT)
4567 (VOID_PINT_QI_V4DI_V4SI_INT, VOID_PINT_QI_V2DI_V4SI_INT)
4568 (VOID_PLONGLONG_QI_V8DI_V8DI_INT, VOID_QI_V8SI_PCINT64_INT_INT)
4569 (VOID_PLONGLONG_QI_V4DI_V4DI_INT, VOID_PLONGLONG_QI_V2DI_V2DI_INT)
4570 (VOID_HI_V16SI_PCINT_INT_INT, VOID_QI_V8DI_PCINT64_INT_INT)
4571 (VOID_QI_V8DI_PCINT_INT_INT): Remove.
4572 (V16SF_V16SF_PCVOID_V16SI_HI_INT, V8DF_V8DF_PCVOID_V8SI_QI_INT)
4573 (V8SF_V8SF_PCVOID_V8DI_QI_INT, V8DF_V8DF_PCVOID_V8DI_QI_INT)
4574 (V16SI_V16SI_PCVOID_V16SI_HI_INT, V8DI_V8DI_PCVOID_V8SI_QI_INT)
4575 (V8SI_V8SI_PCVOID_V8DI_QI_INT, V8DI_V8DI_PCVOID_V8DI_QI_INT)
4576 (VOID_PVOID_HI_V16SI_V16SF_INT, VOID_PVOID_QI_V8SI_V8DF_INT)
4577 (VOID_PVOID_QI_V8DI_V8SF_INT, VOID_PVOID_QI_V8DI_V8DF_INT)
4578 (VOID_PVOID_HI_V16SI_V16SI_INT, VOID_PVOID_QI_V8SI_V8DI_INT)
4579 (VOID_PVOID_QI_V8DI_V8SI_INT, VOID_PVOID_QI_V8DI_V8DI_INT)
4580 (V2DF_V2DF_PCVOID_V4SI_QI_INT, V4DF_V4DF_PCVOID_V4SI_QI_INT)
4581 (V2DF_V2DF_PCVOID_V2DI_QI_INT, V4DF_V4DF_PCVOID_V4DI_QI_INT
4582 (V4SF_V4SF_PCVOID_V4SI_QI_INT, V8SF_V8SF_PCVOID_V8SI_QI_INT)
4583 (V4SF_V4SF_PCVOID_V2DI_QI_INT, V4SF_V4SF_PCVOID_V4DI_QI_INT)
4584 (V2DI_V2DI_PCVOID_V4SI_QI_INT, V4DI_V4DI_PCVOID_V4SI_QI_INT)
4585 (V2DI_V2DI_PCVOID_V2DI_QI_INT, V4DI_V4DI_PCVOID_V4DI_QI_INT)
4586 (V4SI_V4SI_PCVOID_V4SI_QI_INT, V8SI_V8SI_PCVOID_V8SI_QI_INT)
4587 (V4SI_V4SI_PCVOID_V2DI_QI_INT, V4SI_V4SI_PCVOID_V4DI_QI_INT)
4588 (VOID_PVOID_QI_V8SI_V8SF_INT, VOID_PVOID_QI_V4SI_V4SF_INT)
4589 (VOID_PVOID_QI_V4SI_V4DF_INT, VOID_PVOID_QI_V4SI_V2DF_INT)
4590 (VOID_PVOID_QI_V4DI_V4SF_INT, VOID_PVOID_QI_V2DI_V4SF_INT)
4591 (VOID_PVOID_QI_V4DI_V4DF_INT, VOID_PVOID_QI_V2DI_V2DF_INT)
4592 (VOID_PVOID_QI_V8SI_V8SI_INT, VOID_PVOID_QI_V4SI_V4SI_INT)
4593 (VOID_PVOID_QI_V4SI_V4DI_INT, VOID_PVOID_QI_V4SI_V2DI_INT)
4594 (VOID_PVOID_QI_V4DI_V4SI_INT, VOID_PVOID_QI_V2DI_V4SI_INT)
4595 (VOID_PVOID_QI_V4DI_V4DI_INT, VOID_PVOID_QI_V2DI_V2DI_INT)
4596 (VOID_QI_V8SI_PCVOID_INT_INT, VOID_HI_V16SI_PCVOID_INT_INT)
4597 (VOID_QI_V8DI_PCVOID_INT_INT): Add.
4598 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Adjust builtin
4599 definitions accordingly.
4601 2017-01-17 Kito Cheng <kito.cheng@gmail.com>
4602 Kuan-Lin Chen <kuanlinchentw@gmail.com>
4605 * internal-fn.c (expand_mul_overflow): Use convert_modes instead of
4608 2017-01-17 Vladimir Makarov <vmakarov@redhat.com>
4611 * ira-conflicts.c (ira_build_conflicts): Update total conflict
4612 hard regs for inner regno.
4614 2017-01-17 Martin Liska <mliska@suse.cz>
4617 * ipa-polymorphic-call.c (contains_type_p): Fix wrong
4618 assumption and add comment.
4620 2017-01-17 Nathan Sidwell <nathan@acm.org>
4622 * ipa-visibility.c (localize_node): New function, broken out of ...
4623 (function_and_variable_visibility): ... here. Call it.
4625 2017-01-17 Jan Hubicka <hubicka@ucw.cz>
4628 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
4629 correctly set frequency of oudgoing edge.
4630 (duplicate_thread_path): Fix profile updating.
4632 2017-01-17 Jakub Jelinek <jakub@redhat.com>
4635 * configure.ac: Add GCC_BASE_VER.
4636 * Makefile.in (version): Use @get_gcc_base_ver@ instead of cat to get
4637 version from BASE-VER file.
4638 (CFLAGS-gcc.o): Add -DBASEVER=$(BASEVER_s).
4639 (gcc.o): Depend on $(BASEVER).
4640 * common.opt (dumpfullversion): New option.
4641 * gcc.c (driver_handle_option): Handle OPT_dumpfullversion.
4642 * doc/invoke.texi: Document -dumpfullversion.
4643 * doc/install.texi: Document --with-gcc-major-version-only.
4644 * configure: Regenerated.
4646 2017-01-17 Richard Biener <rguenther@suse.de>
4648 PR tree-optimization/71433
4649 * tree-vrp.c (register_new_assert_for): Merge same asserts
4650 on all incoming edges.
4651 (process_assert_insertions_for): Handle insertions at the
4654 2017-01-17 Gerald Pfeifer <gerald@pfeifer.com>
4656 * config/i386/cygwin.h (LIBGCJ_SONAME): Remove.
4657 * config/i386/mingw32.h (LIBGCJ_SONAME): Remove.
4659 2017-01-17 Kaz Kojima <kkojima@gcc.gnu.org>
4662 * config/sh/sh.md (cmpeqsi_t+1): Call copy_rtx to avoid invalid
4665 2017-01-17 Alan Modra <amodra@gmail.com>
4668 * config/rs6000/rs6000.md (elf_high, elf_low): Disable when pic.
4669 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Don't allow
4670 symbolic stack limit when pic.
4672 2017-01-16 Martin Sebor <msebor@redhat.com>
4674 PR tree-optimization/78608
4675 * gimple-ssa-sprintf.c (tree_digits): Avoid negating TYPE_MIN.
4677 2017-01-16 Jeff Law <law@redhat.com>
4680 2016-12-02 Tadek Kijkowski <tkijkowski@gmail.com>
4681 * Makefile.in (PREPROCESSOR_DEFINES): Add a level of indirection
4682 for several include directories that may be relative to sysroot.
4683 * config/i386/x-mingw32 (gplus_includedir): Define.
4684 (gplus_tool_includedir, gplus_backward_include_dir): Likewise.
4685 (native_system_includedir): Likewise.
4686 * config/i386/mingw32.h (STANDARD_STARTFILE_PREFIX_1): Do not
4687 override if TARGET_SYSTEM_ROOT is defined.
4688 (NATIVE_SYSTEM_HEADER_DIR): Likewise.
4690 PR tree-optimization/79090
4691 PR tree-optimization/33562
4692 PR tree-optimization/61912
4693 PR tree-optimization/77485
4694 * tree-ssa-dse.c (compute_trims): Accept STMT argument. Dump STMT
4695 and computed trims into the dump file.
4697 2017-01-17 Uros Bizjak <ubizjak@gmail.com>
4699 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Remove.
4701 2017-01-16 Jakub Jelinek <jakub@redhat.com>
4704 * gimplify.c (gimplify_init_constructor): If want_value and
4705 object == lhs, unshare lhs to avoid invalid tree sharing. Formatting
4709 * loop-doloop.c (doloop_modify): Call unshare_all_rtl_in_chain on
4710 sequence. Formatting fixes.
4711 (doloop_optimize): Formatting fixes.
4714 * gcc.c (debug_level_greater_than_spec_func): New function.
4715 (static_spec_functions): Add debug-level-gt spec function.
4716 (ASM_DEBUG_SPEC, cpp_options): Use %:debug-level-gt(0) instead of
4718 * config/darwin.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
4719 * config/darwin9.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
4720 * common.opt (g, gcoff, gdwarf, gdwarf-, ggdb, gno-pubnames,
4721 gpubnames, ggnu-pubnames, gno-record-gcc-switches,
4722 grecord-gcc-switches, gno-strict-dwarf, gstrict-dwarf, gstabs,
4723 gstabs+, gtoggle, gvms, gxcoff, gxcoff+): Add Driver flag.
4725 2017-01-16 Uros Bizjak <ubizjak@gmail.com>
4727 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Apply HImode and
4728 QImode fixups to general and mask registers only.
4730 2017-01-16 Carl Love <cel@us.ibm.com>
4732 * config/rs6000/rs6000-c (altivec_overloaded_builtins): Add support
4733 for built-in functions
4734 vector signed char vec_nabs (vector signed char)
4735 vector signed short vec_nabs (vector signed short)
4736 vector signed int vec_nabs (vector signed int)
4737 vector signed long long vec_nabs (vector signed long long)
4738 vector float vec_nabs (vector float)
4739 vector double vec_nabs (vector double)
4740 * config/rs6000/rs6000-builtin.def: Add definitions for NABS functions
4742 * config/rs6000/altivec.md: New define_expand nabs<mode>2 types
4743 * config/rs6000/altivec.h: New define for vec_nabs built-in function.
4744 * doc/extend.texi: Update the documentation file for the new built-in
4747 2017-01-16 Martin Sebor <msebor@redhat.com>
4749 * gimple-ssa-sprintf.c (format_directive): Correct a typo in a warning
4752 2017-01-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4754 * config/rs6000/rs6000.c (rtx_is_swappable_p): Change
4755 UNSPEC_VSX__XXSPLTD to require special splat handling.
4757 2017-01-16 David Malcolm <dmalcolm@redhat.com>
4760 * system.h: Poison strndup.
4762 2017-01-16 Alan Modra <amodra@gmail.com>
4765 * config/rs6000/rs6000.c (rs6000_legitimate_combined_insn): Don't
4768 2017-01-16 Georg-Johann Lay <avr@gjlay.de>
4770 * config/avr/avr.h (BRANCH_COST) [reload_completed]: Increase by 4.
4772 2017-01-15 Uros Bizjak <ubizjak@gmail.com>
4774 * config/i386/i386.c (ix86_legitimate_combined_insn): Do not
4775 call recog here. Assert that INSN_CODE (insn) is non-negative.
4777 2017-01-15 Segher Boessenkool <segher@kernel.crashing.org>
4780 * cfgrtl.c (rtl_split_edge): Also patch jump insns that jump to the
4782 * haifa-sched.c (dump_insn_stream): Don't crash if there is a label
4783 in the currently scheduled RTL fragment.
4785 2017-01-15 Segher Boessenkool <segher@kernel.crashing.org>
4787 PR rtl-optimization/78751
4788 * ifcvt.c (find_cond_trap): If we generated a non-existing insn,
4791 2017-01-14 Jeff Law <law@redhat.com>
4793 PR tree-optimization/79090
4794 * tree-ssa-dse.c (valid_ao_ref_for_dse): Reject zero length and
4795 variable length stores.
4796 (compute_trims): Delete dead assignment to *trim_tail.
4797 (dse_dom_walker::dse_optimize_stmt): Optimize mem* calls with
4800 2017-01-14 Bernd Schmidt <bschmidt@redhat.com>
4802 PR rtl-optimization/78626
4803 PR rtl-optimization/78727
4804 * cprop.c (one_cprop_pass): Collect unconditional traps in the middle
4805 of a block, and split such blocks after everything else is finished.
4807 2017-01-14 Alan Modra <amodra@gmail.com>
4810 * combine.c (recog_for_combine_1): Set INSN_CODE before calling
4811 target legitimate_combined_insn.
4812 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_COMBINED_INSN): Define.
4813 (rs6000_legitimate_combined_insn): New function.
4814 * config/rs6000/rs6000.md (UNSPEC_DOLOOP): Delete, and remove
4816 (ctr<mode>_internal3): Rename from *ctr<mode>_internal5.
4817 (ctr<mode>_internal4): Rename from *ctr<mode>_internal6.
4818 (ctr<mode>_internal1, ctr<mode>_internal2): Remove '*' from name.
4820 2017-01-14 Gerald Pfeifer <gerald@pfeifer.com>
4822 * doc/frontends.texi (G++ and GCC): Remove references to Java.
4824 2017-01-13 Jeff Law <law@redhat.com>
4826 PR tree-optimization/33562
4827 PR tree-optimization/61912
4828 PR tree-optimization/77485
4829 * tree-ssa-dse.c (delete_dead_call): Accept gsi rather than
4831 (delete_dead_assignment): Likewise.
4832 (dse_dom_walker::dse_optimize_stmt): Pass in the gsi rather than
4833 statement to delete_dead_call and delete_dead_assignment.
4835 2017-01-13 David Malcolm <dmalcolm@redhat.com>
4838 * substring-locations.c (format_warning_va): Strengthen case 1 so
4839 that both endpoints of the substring must be within the format
4840 range for just the substring to be printed.
4842 2017-01-13 Uros Bizjak <ubizjak@gmail.com>
4844 * config/i386/i386.opt (msgx): Use ix86_isa_flags2 variable.
4845 * config/i386/i386.c (ix86_target_string): Add missing options
4846 to isa_opts and reorder options by implied ISAs. Rename isa_opts2 to
4847 isa2_opts, ix86_flag_opts to flag2_opts, ix86_target_other to
4848 flags_other and ix86_target_other to flags2_other. Display unknown
4850 (ix86_valid_target_attribute_inner_p): Add missing options and
4851 reorder options by implied ISAs, as in ix86_target_string.
4853 2017-01-13 Richard Sandiford <richard.sandiford@arm.com>
4855 * hash-table.h (hash_table::too_empty_p): New function.
4856 (hash_table::expand): Use it.
4857 (hash_table::traverse): Likewise.
4858 (hash_table::empty_slot): Use sizeof (value_type) instead of
4859 sizeof (PTR) to convert bytes to elements. Shrink the table
4860 if the current size is excessive for the current number of
4863 2017-01-13 Richard Sandiford <richard.sandiford@arm.com>
4865 * ira-costs.c (record_reg_classes): Break from the inner loop
4866 early once alt_fail is known to be true. Update outer loop
4867 handling accordingly.
4869 2017-01-13 Jeff Law <law@redhat.com>
4871 * tree-ssa-dse.c (decrement_count): New function.
4872 (increment_start_addr, maybe_trim_memstar_call): Likewise.
4873 (dse_dom_walker::optimize_stmt): Call maybe_trim_memstar_call directly
4874 when we know the partially dead statement is a mem* function.
4876 PR tree-optimization/61912
4877 PR tree-optimization/77485
4878 * tree-ssa-dse.c: Include expr.h.
4879 (maybe_trim_constructor_store): New function.
4880 (maybe_trim_partially_dead_store): Call maybe_trim_constructor_store.
4882 PR tree-optimization/33562
4883 PR tree-optimization/61912
4884 PR tree-optimization/77485
4885 * doc/invoke.texi: Document new dse-max-object-size param.
4886 * params.def (PARM_DSE_MAX_OBJECT_SIZE): New PARAM.
4887 * tree-ssa-dse.c: Include params.h.
4888 (dse_store_status): New enum.
4889 (initialize_ao_ref_for_dse): New, partially extracted from
4891 (valid_ao_ref_for_dse, normalize_ref): New.
4892 (setup_live_bytes_from_ref, compute_trims): Likewise.
4893 (clear_bytes_written_by, maybe_trim_complex_store): Likewise.
4894 (maybe_trim_partially_dead_store): Likewise.
4895 (maybe_trim_complex_store): Likewise.
4896 (dse_classify_store): Renamed from dse_possibly_dead_store_p.
4897 Track what bytes live from the original store. Return tri-state
4898 for dead, partially dead or live.
4899 (dse_dom_walker): Add constructor, destructor and new private members.
4900 (delete_dead_call, delete_dead_assignment): New extracted from
4902 (dse_optimize_stmt): Make a member of dse_dom_walker.
4903 Use initialize_ao_ref_for_dse.
4905 PR tree-optimization/33562
4906 PR tree-optimization/61912
4907 PR tree-optimization/77485
4908 * sbitmap.h (bitmap_count_bits): Prototype.
4909 (bitmap_clear_range, bitmap_set_range): Likewise.
4910 * sbitmap.c (bitmap_clear_range): New function.
4911 (bitmap_set_range, sbitmap_popcount, bitmap_count_bits): Likewise.
4913 2017-01-13 Martin Liska <mliska@suse.cz>
4916 * function.c (set_cfun): Add new argument force.
4917 * function.h (set_cfun): Likewise.
4918 * ipa-inline-transform.c (inline_call): Use the function when
4919 strict alising from is dropped for function we inline to.
4921 2017-01-13 Richard Biener <rguenther@suse.de>
4923 * tree-pretty-print.c (dump_generic_node): Fix inverted condition
4924 for dumping GIMPLE INTEGER_CSTs.
4926 2017-01-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4928 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define __STDC_VERSION__
4929 to 201112L since C++17.
4931 2017-01-13 Maxim Ostapenko <m.ostapenko@samsung.com>
4934 * asan.c (asan_needs_odr_indicator_p): Don't emit ODR indicators
4935 if -fsanitize=kernel-address is present.
4937 2017-01-13 Richard Biener <rguenther@suse.de>
4939 * tree-pretty-print.c (dump_generic_node): Dump INTEGER_CSTs
4940 as _Literal ( type ) number in case usual suffixes do not
4941 preserve all information.
4943 2017-01-13 Richard Biener <rguenther@suse.de>
4945 PR tree-optimization/77283
4946 * gimple-ssa-split-paths.c: Include gimple-ssa.h, tree-phinodes.h
4947 and ssa-iterators.h.
4948 (is_feasible_trace): Implement a cost model based on joiner
4951 2017-01-12 Michael Meissner <meissner@linux.vnet.ibm.com>
4954 * config/rs6000/rs6000.md (FP_ISA3): Do not optimize converting
4955 char or short to __float128/_Float128 directly.
4957 2017-01-12 Martin Sebor <msebor@redhat.com>
4959 to -Wformat-overflow.
4960 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust.
4961 (min_bytes_remaining): Same.
4962 (get_string_length): Same.
4963 (format_string): Same.
4964 (format_directive): Same.
4966 (pass_sprintf_length::handle_gimple_call): Same.
4968 2017-01-12 Jakub Jelinek <jakub@redhat.com>
4970 * gimple-ssa-sprintf.c (try_substitute_return_value): Remove
4971 info.nowrite calls with no lhs that can't throw. Return bool
4972 whether gsi_remove has been called or not.
4973 (pass_sprintf_length::handle_gimple_call): Return bool whether
4974 try_substitute_return_value called gsi_remove. Formatting fix.
4975 (pass_sprintf_length::execute): Don't use gsi_remove if
4976 handle_gimple_call returned true.
4979 * cfgrtl.c (rtl_tidy_fallthru_edge): For any_uncondjump_p that can't
4980 be removed due to side-effects, don't remove following barrier nor
4981 turn the successor edge into fallthru edge.
4983 2017-01-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4986 * config/rs6000/rs6000.c (insn_is_swappable_p): Mark
4987 element-reversing loads and stores as not swappable.
4989 2017-01-12 Nathan Sidwell <nathan@acm.org>
4990 Nicolai Stange <nicstange@gmail.com>
4992 * combine.c (try_combine): Don't ignore result of overlap checking
4993 loop. Combine overlap & asm check into single loop.
4995 2017-01-12 Richard Biener <rguenther@suse.de>
4997 * tree-pretty-print.c (dump_generic_node): Provide -gimple
4998 variant for MEM_REF. Sanitize INTEGER_CST for -gimple.
5000 2017-01-12 Richard Biener <rguenther@suse.de>
5002 * tree.c (initialize_tree_contains_struct): Make TS_OPTIMIZATION
5003 and TS_TARGET_OPTION directly derive from TS_BASE.
5004 * tree-core.h (tree_optimization_option): Derive from tree_base.
5005 (tree_target_option): Likewise.
5007 2017-01-11 Uros Bizjak <ubizjak@gmail.com>
5009 * config/i386/i386.c (memory_address_length): Increase len
5010 only when rip_relative_addr_p returns false.
5012 2017-01-11 Julia Koval <julia.koval@intel.com>
5014 * common/config/i386/i386-common.c (OPTION_MASK_ISA_SGX_UNSET): New.
5015 (OPTION_MASK_ISA_SGX_SET): New.
5016 (ix86_handle_option): Handle OPT_msgx.
5017 * config.gcc: Added sgxintrin.h.
5018 * config/i386/driver-i386.c (host_detect_local_cpu): Detect sgx.
5019 * config/i386/i386-c.c (ix86_target_macros_internal): Define __SGX__.
5020 * config/i386/i386.c (ix86_target_string): Add -msgx.
5022 (ix86_option_override_internal): Handle new options.
5023 (ix86_valid_target_attribute_inner_p): Add sgx.
5024 * config/i386/i386.h (TARGET_SGX, TARGET_SGX_P): New.
5025 * config/i386/i386.opt: Add msgx.
5026 * config/i386/sgxintrin.h: New file.
5027 * config/i386/x86intrin.h: Add sgxintrin.h.
5029 2017-01-11 Jakub Jelinek <jakub@redhat.com>
5032 * fold-const.c (maybe_nonzero_address): Return 1 for function
5034 (tree_single_nonzero_warnv_p): Don't handle function local objects
5038 * gcc.c (default_compilers): Don't add -o %g.s for -S -save-temps
5041 2017-01-11 David Malcolm <dmalcolm@redhat.com>
5044 * opts.c: Include "spellcheck.h"
5045 (struct string_fragment): New struct.
5046 (struct edit_distance_traits<const string_fragment &>): New
5048 (get_closest_sanitizer_option): New function.
5049 (parse_sanitizer_options): Offer suggestions for unrecognized arguments.
5051 2017-01-11 Jakub Jelinek <jakub@redhat.com>
5053 * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): For DWARF5 decrease
5055 (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): Always
5056 DWARF_COMPILE_UNIT_HEADER_SIZE plus 12.
5057 (DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE): Define.
5058 (calc_base_type_die_sizes): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE
5059 for initial die_offset if dwarf_split_debug_info.
5060 (output_comp_unit): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE for
5061 initial next_die_offset if dwo_id is non-NULL. Don't emit padding
5063 (output_skeleton_debug_sections): Formatting fix. Use
5064 DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE instead of
5065 DWARF_COMPILE_UNIT_HEADER_SIZE. Don't emit padding.
5067 2017-01-11 Wilco Dijkstra <wdijkstr@arm.com>
5069 * config/arm/cortex-a53.md: Add bypasses for
5071 (cortex_a53_r2f): Only use for transfers.
5072 (cortex_a53_f2r): Likewise.
5073 (cortex_a53_r2f_cvt): Add reservation for conversions.
5074 (cortex_a53_f2r_cvt): Likewise.
5076 2017-01-11 Tamar Christina <tamar.christina@arm.com>
5078 * config/arm/arm_neon.h: Add __artificial__ and gnu_inline
5079 to all inlined functions, change static to extern.
5081 2017-01-11 Christophe Lyon <christophe.lyon@linaro.org>
5084 * config/arm/arm.c (legitimize_pic_address): Handle reference to
5086 (arm_assemble_integer): Likewise.
5088 2017-01-11 Richard Earnshaw <rearnsha@arm.com>
5090 * config.gcc: Use new awk script to check CPU, FPU and architecture
5091 parameters for --with-... options.
5092 * config/arm/parsecpu.awk: New file
5093 * config/arm/arm-cpus.in: New file.
5094 * config/arm/arm-opts.h: Include arm-cpu.h instead of processing .def
5096 * config/arm/arm.c: Include arm-cpu-data.h instead of processing .def
5098 * config/arm/t-arm: Update dependency rules.
5099 * common/config/arm/arm-common.c: Include arm-cpu-cdata.h instead
5100 of processing .def files.
5101 * config/arm/genopt.sh: Deleted.
5102 * config/arm/gentune.sh: Deleted.
5103 * config/arm/arm-cores.def: Deleted.
5104 * config/arm/arm-arches.def: Deleted.
5105 * config/arm/arm-fpus.def: Deleted.
5106 * config/arm/arm-tune.md: Regenerated.
5107 * config/arm/arm-tables.opt: Regenerated.
5108 * config/arm/arm-cpu.h: New generated file.
5109 * config/arm/arm-cpu-data.h: New generated file.
5110 * config/arm/arm-cpu-cdata.h: New generated file.
5112 2017-01-11 Maxim Ostapenko <m.ostapenko@samsung.com>
5115 * lto-cgraph.c (lto_output_varpool_node): Pack dynamically_initialized
5117 (input_varpool_node): Unpack dynamically_initialized bit.
5119 2017-01-11 Eric Botcazou <ebotcazou@adacore.com>
5121 PR rtl-optimization/79032
5122 * lra-constraints.c (simplify_operand_subreg): In the MEM case, test
5123 the alignment of the adjusted memory reference against that of MODE,
5124 instead of the alignment of the original memory reference.
5126 2017-01-11 Martin Jambor <mjambor@suse.cz>
5128 * hsa.c (hsa_callable_function_p): Revert addition of DECL_ARTIFICIAL
5130 * ipa-hsa.c (process_hsa_functions): Only duplicate non-artificial
5131 decorated functions.
5133 2017-01-11 Richard Biener <rguenther@suse.de>
5135 * tree-vrp.c (evrp_dom_walker::before_dom_children): Also
5136 set range/nonnull info for PHI results. Do not set it on
5137 stmts marked for removal.
5139 2017-01-10 Eric Botcazou <ebotcazou@adacore.com>
5141 * expr.c (store_field): In the bitfield case, fetch the return value
5142 from the registers before applying a single big-endian adjustment.
5143 Always do a final load for a BLKmode value not larger than a word.
5145 2017-01-10 David Malcolm <dmalcolm@redhat.com>
5148 * input.c (selftest::test_accessing_ordinary_linemaps): Verify
5149 that we correctly handle column numbers greater than
5150 LINE_MAP_MAX_COLUMN_NUMBER.
5152 2017-01-10 Martin Sebor <msebor@redhat.com>
5155 * gimple-ssa-sprintf.c (get_destination_size): Call
5156 {init,fini}object_sizes.
5157 * tree-object-size.c (addr_object_size): Adjust.
5158 (pass_through_call): Adjust.
5159 (pass_object_sizes::execute): Adjust.
5160 * tree-object-size.h (fini_object_sizes): Declare.
5162 2017-01-10 Martin Sebor <msebor@redhat.com>
5164 PR tree-optimization/78775
5165 * builtins.c (get_size_range): Move...
5166 * calls.c: ...to here.
5167 (alloc_max_size): Accept zero argument.
5168 (operand_signed_p): Remove.
5169 (maybe_warn_alloc_args_overflow): Call get_size_range.
5170 * calls.h (get_size_range): Declare.
5172 2017-01-10 Joe Seymour <joe.s@somniumtech.com>
5174 * config/msp430/driver-msp430.c (msp430_mcu_data): Sync with data
5175 from TI's devices.csv file as of September 2016.
5176 * config/msp430/msp430.c (msp430_mcu_data): Likewise.
5178 2017-01-10 Sandra Loosemore <sandra@codesourcery.com>
5180 * doc/extend.texi: Tweak formatting to fix overfull hbox warnings.
5181 * doc/invoke.texi: Likewise.
5182 * doc/md.texi: Likewise.
5183 * doc/objc.texi: Likewise.
5185 2017-01-10 Joshua Conner <joshconner@google.com>
5187 * config/arm/fuchsia-elf.h: New file.
5188 * config/fuchsia.h: New file.
5189 * config.gcc (*-*-fuchsia*): Set native_system_header_dir.
5190 (aarch64*-*-fuchsia*, arm*-*-fuchsia*, x86_64-*-fuchsia*): Add to
5192 * config.host: (aarch64*-*-fuchsia*, arm*-*-fuchsia*): Add to hosts.
5194 2016-01-10 Richard Biener <rguenther@suse.de>
5196 PR tree-optimization/79034
5197 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
5198 Propagate out degenerate PHIs in the joiner.
5200 2017-01-10 Martin Liska <mliska@suse.cz>
5202 * ipa-icf.c (sort_sem_items_by_decl_uid): New function.
5203 (sort_congruence_classes_by_decl_uid): Likewise.
5204 (sort_congruence_class_groups_by_decl_uid): Likewise.
5205 (sem_item_optimizer::merge_classes): Sort class, groups in these
5206 classes and members in the groups by DECL_UID of declarations.
5207 This would make merge operations stable.
5209 2017-01-10 Martin Liska <mliska@suse.cz>
5211 * ipa-icf.c (sem_item_optimizer::sem_item_optimizer): Remove
5212 usage of m_classes_vec.
5213 (sem_item_optimizer::~sem_item_optimizer): Likewise.
5214 (sem_item_optimizer::get_group_by_hash): Likewise.
5215 (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
5216 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): Likewise.
5217 (sem_item_optimizer::verify_classes): Likewise.
5218 (sem_item_optimizer::process_cong_reduction): Likewise.
5219 (sem_item_optimizer::dump_cong_classes): Likewise.
5220 (sem_item_optimizer::merge_classes): Likewise.
5221 * ipa-icf.h (congruence_class_hash): Rename from
5222 congruence_class_group_hash. Remove declaration of m_classes_vec.
5224 2017-01-10 Andrew Senkevich <andrew.senkevich@intel.com>
5226 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VPOPCNTDQ_SET,
5227 OPTION_MASK_ISA_AVX512VPOPCNTDQ_UNSET): New.
5228 * config.gcc: Add avx512vpopcntdqintrin.h.
5229 * config/i386/avx512vpopcntdqintrin.h: New.
5230 * config/i386/cpuid.h (bit_AVX512VPOPCNTDQ): New.
5231 * config/i386/i386-builtin-types.def: Add new types.
5232 * config/i386/i386-builtin.def (__builtin_ia32_vpopcountd_v16si,
5233 __builtin_ia32_vpopcountd_v16si_mask, __builtin_ia32_vpopcountq_v8di,
5234 __builtin_ia32_vpopcountq_v8di_mask): New.
5235 * config/i386/i386-c.c (ix86_target_macros_internal): Define
5236 __AVX512VPOPCNTDQ__.
5237 * config/i386/i386.c (ix86_target_string): Add -mavx512vpopcntdq.
5238 (PTA_AVX512VPOPCNTDQ): Define.
5239 * config/i386/i386.h (TARGET_AVX512VPOPCNTDQ,
5240 TARGET_AVX512VPOPCNTDQ_P): Define.
5241 * config/i386/i386.opt: Add mavx512vpopcntdq.
5242 * config/i386/immintrin.h: Include avx512vpopcntdqintrin.h.
5243 * config/i386/sse.md (define_insn "vpopcount<mode><mask_name>"): New.
5245 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
5248 * predict.def (PRED_CALL): Set to 67.
5250 2017-01-09 Eric Botcazou <ebotcazou@adacore.com>
5252 * expr.c (store_field): In the bitfield case, if the value comes from
5253 a function call and is of an aggregate type returned in registers, do
5254 not modify the field mode; extract the value in all cases if the mode
5255 is BLKmode and the size is not larger than a word.
5257 2017-01-09 Dominique d'Humieres <dominiq@lps.ens.fr>
5260 * config/i386/cpuid.h: Fix undefined behavior.
5262 2017-01-04 Jeff Law <law@redhat.com>
5264 PR tree-optimization/79007
5265 PR tree-optimization/67955
5266 * tree-ssa-alias.c (same_addr_size_stores_p): Only need to be
5267 conservative for pt.null when flag_non_call_exceptions is on.
5269 2017-01-09 Jakub Jelinek <jakub@redhat.com>
5271 PR translation/79019
5272 PR translation/79020
5273 * params.def (PARAM_INLINE_MIN_SPEEDUP,
5274 PARAM_IPA_CP_SINGLE_CALL_PENALTY,
5275 PARAM_USE_AFTER_SCOPE_DIRECT_EMISSION_THRESHOLD): Fix typos
5277 * config/avr/avr.opt (maccumulate-args): Likewise.
5278 * config/msp430/msp430.opt (mwarn-mcu): Likewise.
5279 * common.opt (freport-bug): Likewise.
5280 * cif-code.def (CIF_FINAL_ERROR): Likewise.
5281 * doc/invoke.texi (ipa-cp-single-call-penalty): Likewise.
5282 * config/s390/s390.c (s390_invalid_binary_op): Fix spelling in
5283 translatable string.
5284 * config/i386/i386.c (function_value_32): Likewise.
5285 * config/nios2/nios2.c (nios2_valid_target_attribute_rec): Likewise.
5286 * config/msp430/msp430.c (msp430_option_override, msp430_attr):
5288 * config/msp430/driver-msp430.c (msp430_select_hwmult_lib): Likewise.
5289 * common/config/msp430/msp430-common.c (msp430_handle_option):
5291 * symtab.c (symtab_node::verify_base): Likewise.
5292 * opts.c (set_debug_level): Likewise.
5293 * tree.c (verify_type_variant): Likewise. Fix typo in comment.
5294 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
5295 missing whitespace to translatable strings.
5296 * config/avr/avr.md (bswapsi2): Fix typo in comment.
5297 * config/sh/superh.h: Likewise.
5298 * config/i386/xopintrin.h: Likewise.
5299 * config/i386/znver1.md: Likewise.
5300 * config/rs6000/rs6000.c (struct rs6000_opt_mask): Likewise.
5301 * ipa-inline-analysis.c (compute_inline_parameters): Likewise.
5302 * double-int.h (struct double_int): Likewise.
5303 * double-int.c (div_and_round_double): Likewise.
5304 * wide-int.cc: Likewise.
5305 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
5306 * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
5307 * cfgcleanup.c (crossjumps_occured): Renamed to ...
5308 (crossjumps_occurred): ... this.
5309 (try_crossjump_bb, try_head_merge_bb, try_optimize_cfg, cleanup_cfg):
5312 PR tree-optimization/78899
5313 * tree-if-conv.c (version_loop_for_if_conversion): Instead of
5314 returning bool return struct loop *, NULL for failure and the new
5316 (versionable_outer_loop_p): Don't version outer loop if it has
5317 dont_vectorized bit set.
5318 (tree_if_conversion): When versioning outer loop, ensure
5319 tree_if_conversion is performed also on the inner loop of the
5320 non-vectorizable outer loop copy.
5321 * tree-vectorizer.c (set_uid_loop_bbs): Formatting fix. Fold
5322 LOOP_VECTORIZED in inner loop of the scalar outer loop and
5323 prevent vectorization of it.
5324 (vectorize_loops): For outer + inner LOOP_VECTORIZED, ensure
5325 the outer loop vectorization of the non-scalar version is attempted
5326 before vectorization of the inner loop in scalar version. If
5327 outer LOOP_VECTORIZED guarded loop is not vectorized, prevent
5328 vectorization of its inner loop.
5329 * tree-vect-loop-manip.c (rename_variables_in_bb): If outer_loop
5330 has 2 inner loops, rename also on edges from bb whose single pred
5331 is outer_loop->header. Fix typo in function comment.
5333 2017-01-09 Martin Sebor <msebor@redhat.com>
5336 * asan.c (asan_emit_stack_protection): Increase local buffer size
5337 to avoid snprintf truncation warning.
5339 2017-01-09 Andrew Pinski <apinski@cavium.com>
5341 * config/aarch64/aarch64-cores.def: Add thunderx2t99. Change vulcan
5342 to reference thunderx2t99 for the tuning structure
5343 * config/aarch64/aarch64-cost-tables.h (vulcan_extra_costs):
5345 (thunderx2t99_extra_costs): This.
5346 * config/aarch64/aarch64-tune.md: Regenerate.
5347 * config/aarch64/aarch64.c (vulcan_addrcost_table): Rename to ...
5348 (vulcan_addrcost_table): This.
5349 (vulcan_regmove_cost): Rename to ...
5350 (thunderx2t99_regmove_cost): This.
5351 (vulcan_vector_cost): Rename to ...
5352 (thunderx2t99_vector_cost): this.
5353 (vulcan_branch_cost): Rename to ...
5354 (thunderx2t99_branch_cost): This.
5355 (vulcan_tunings): Rename to ...
5356 (thunderx2t99_tunings): This and s/vulcan/thunderx2t99 .
5357 * doc/invoke.texi (AARCH64/mtune): Add thunderx2t99.
5359 2017-01-09 Martin Jambor <mjambor@suse.cz>
5363 * ipa-prop.h (ipa_jump_func): Swap positions of vr_known and m_vr.
5364 * ipa-cp.c (ipa_vr_operation_and_type_effects): New function.
5365 (propagate_vr_accross_jump_function): Use the above function for all
5366 value range computations for pass-through jump functions and type
5367 converasion from explicit value range values.
5368 (ipcp_propagate_stage): Do not attempt to deduce types of formal
5369 parameters from TYPE_ARG_TYPES.
5370 * ipa-prop.c (ipa_write_jump_function): Remove trailing whitespace.
5371 (ipa_write_node_info): Stream type of the actual argument.
5372 (ipa_read_node_info): Likewise. Also remove trailing whitespace.
5374 2017-01-09 Martin Liska <mliska@suse.cz>
5377 * gcc.c (driver_handle_option): Handle OPT_E and set have_E.
5378 (lookup_compiler): Do not show error message with have_E.
5380 2017-01-09 Jakub Jelinek <jakub@redhat.com>
5382 PR tree-optimization/78938
5383 * tree-vect-stmts.c (vectorizable_condition): For non-masked COND_EXPR
5384 where comp_vectype is VECTOR_BOOLEAN_TYPE_P, use
5385 BIT_{NOT,XOR,AND,IOR}_EXPR on the comparison operands instead of
5386 {EQ,NE,GE,GT,LE,LT}_EXPR directly inside of VEC_COND_EXPR. Formatting
5389 2017-01-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5391 * tree-ssa-address.c (gen_addr_rtx): Don't handle index if it
5394 2017-01-09 Richard Biener <rguenther@suse.de>
5396 PR tree-optimization/78997
5397 * tree-vect-slp.c (vect_mask_constant_operand_p): Handle SSA
5398 name condition properly.
5400 2017-01-09 Richard Biener <rguenther@suse.de>
5403 * dwarf2out.c (is_cxx): New overload with context.
5404 (is_naming_typedef_decl): Use it.
5406 2017-01-08 Sandra Loosemore <sandra@codesourcery.com>
5408 * invoke.texi (Option Summary): Correct spacing in option lists
5409 and add line breaks to fix over-long lines.
5411 2017-01-08 Sandra Loosemore <sandra@codesourcery.com>
5415 * extend.texi (Common Variable Attributes): Add xref to GCC
5416 Internals manual to explain mode attribute keywords.
5418 2017-01-08 Sandra Loosemore <sandra@codesourcery.com>
5421 * doc/invoke.texi (Option Summary): Move -pthread to Linker Options
5422 and Preprocessor Options.
5423 (Options for Linking): Document -pthread here....
5424 (RS/6000 and PowerPC Options): ...not here.
5425 (Solaris 2 Options): ...or here.
5426 * doc/cppopts.texi: Document -pthread.
5428 2017-01-08 Martin Sebor <msebor@redhat.com>
5431 * doc/invoke.texi (Warning Options): Document -Wformat-truncation.
5432 * gimple-ssa-sprintf.c (call_info::reval_used, call_info::warnopt):
5433 New member functions.
5434 (format_directive): Used them.
5436 (pass_sprintf_length::handle_gimple_call): Same.
5437 * graphite-sese-to-poly.c (tree_int_to_gmp): Increase buffer size
5438 to avoid truncation for any argument.
5439 (extract_affine_mul): Same.
5440 * tree.c (get_file_function_name): Same.
5442 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
5445 * predict.def (PRED_INDIR_CALL): Set to 86.
5447 2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
5449 PR preprocessor/54124
5450 * doc/cppopts.texi: Reformat -d subtable to list the full name
5451 of the options. Add cross-reference to the docs for the general
5452 compiler -d options.
5453 * doc/invoke.texi (Developer Options): Add cross-reference to the
5454 preprocessor-specific -d option documentation.
5456 2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
5458 PR preprocessor/13498
5459 * doc/cpp.texi (Search Path): Rewrite to remove obsolete and
5460 redudant material, and reflect new command-line options.
5461 (System Headers): Likewise.
5463 2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
5465 * doc/cppdiropts.texi: Merge documentation of -I, -iquote,
5466 -isystem, and -idirafter. Copy-edit.
5467 * doc/cppopts.texi: Copy-edit. Remove contradiction about
5468 default for -ftrack-macro-expansion. Delete obsolete and
5469 badly-formatted implementation details about -fdebug-cpp output.
5470 * doc/cppwarnopts.texi: Copy-edit.
5472 2017-01-07 David Malcolm <dmalcolm@redhat.com>
5475 * input.c (selftest::test_accessing_ordinary_linemaps): Verify
5476 that the transition from a max line width >= 1<<10 to narrower
5477 lines works correctly.
5479 2017-01-07 Alexandre Oliva <aoliva@redhat.com>
5481 * doc/options.texi (PerFunction): New.
5482 * opt-functions.awk (switch_flags): Map both Optimization and
5483 PerFunction to CL_OPTIMIZATION.
5484 * opth-gen.awk: Test for PerFunction flag along with
5486 * optc-save-gen.awk: Likewise. Introduce var_opt_hash and set
5487 it only when the latter is present. Skip those that don't in
5488 the hash function generator.
5489 * common.opt (fvar-tracking): Mark as PerFunction instead of
5491 (fvar-tracking-assignments): Likewise.
5492 (fvar-tracking-assignments-toggle): Likewise.
5493 (fvar-tracking-uninit): Likewise.
5495 2017-01-07 Jakub Jelinek <jakub@redhat.com>
5497 PR translation/79018
5498 * params.def (PARAM_MAX_STORES_TO_MERGE): Add missing space between
5501 2017-01-06 Mikael Pettersson <mikpelinux@gmail.com>
5504 * config/m68k/m68k.opt (LONG_JUMP_TABLE_OFFSETS): New option.
5505 * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Handle
5506 TARGET_LONG_JUMP_TABLE_OFFSETS.
5507 * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
5508 * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
5509 * config/m68k/m68k.h (CASE_VECTOR_MODE): Likewise.
5510 (ASM_OUTPUT_ADDR_DIFF_ELF): Likewise.
5511 * config/m68k/m68k.md (tablejump expander): Likewise.
5512 (*tablejump_pcrel_hi): Renamed from unnamed insn, reject
5513 TARGET_LONG_JUMP_TABLE_OFFSETS.
5514 (*tablejump_pcrel_si): New insn, handle TARGET_LONG_JUMP_TABLE_OFFSETS.
5515 * doc/invoke.texi (M68K options): Add -mlong-jump-table-offsets.
5517 2017-01-06 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
5518 David Holsgrove <david.holsgrove@xilinx.com>
5520 * common/config/microblaze/microblaze-common.c
5521 (TARGET_EXCEPT_UNWIND_INFO): Remove.
5522 * config/microblaze/microblaze-protos.h (microblaze_eh_return):
5524 * config/microblaze/microblaze.c (microblaze_must_save_register)
5525 (microblaze_expand_epilogue, microblaze_return_addr): Handle
5527 (microblaze_eh_return): New function.
5528 * config/microblaze/microblaze.h (RETURN_ADDR_OFFSET)
5529 (EH_RETURN_DATA_REGNO, MB_EH_STACKADJ_REGNUM)
5530 (EH_RETURN_STACKADJ_RTX, ASM_PREFERRED_EH_DATA_FORMAT): New macros.
5531 * config/microblaze/microblaze.md (eh_return): New pattern.
5533 2017-01-06 Jakub Jelinek <jakub@redhat.com>
5535 * system.h (GCC_DIAGNOSTIC_PUSH_IGNORED, GCC_DIAGNOSTIC_POP,
5536 GCC_DIAGNOSTIC_STRINGIFY): Define.
5538 * read-rtl.c (rtx_reader::read_rtx_code): Avoid -Wsign-compare warning.
5540 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
5542 * config/arm/arm.md (<mcrr>): New.
5544 * config/arm/arm.c (arm_arch5te): New.
5545 (arm_option_override): Set arm_arch5te.
5546 (arm_coproc_builtin_available): Add support for mcrr, mcrr2, mrrc
5548 * config/arm/arm-builtins.c (MCRR_QUALIFIERS): Define to...
5549 (arm_mcrr_qualifiers): ... this. New.
5550 (MRRC_QUALIFIERS): Define to...
5551 (arm_mrrc_qualifiers): ... this. New.
5552 * config/arm/arm_acle.h (__arm_mcrr, __arm_mcrr2, __arm_mrrc,
5554 * config/arm/arm_acle_builtins.def (mcrr, mcrr2, mrrc, mrrc2): New.
5555 * config/arm/iterators.md (MCRRI, mcrr, MCRR): New.
5556 (MRRCI, mrrc, MRRC): New.
5557 * config/arm/unspecs.md (VUNSPEC_MCRR, VUNSPEC_MCRR2, VUNSPEC_MRRC,
5558 VUNSPEC_MRRC2): New.
5560 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
5562 * config/arm/arm.md (<mcr>): New.
5564 * config/arm/arm.c (arm_coproc_builtin_available): Add
5565 support for mcr, mrc, mcr2 and mrc2.
5566 * config/arm/arm-builtins.c (MCR_QUALIFIERS): Define to...
5567 (arm_mcr_qualifiers): ... this. New.
5568 (MRC_QUALIFIERS): Define to ...
5569 (arm_mrc_qualifiers): ... this. New.
5570 (MCR_QUALIFIERS): Define to ...
5571 (arm_mcr_qualifiers): ... this. New.
5572 * config/arm/arm_acle.h (__arm_mcr, __arm_mrc, __arm_mcr2,
5574 * config/arm/arm_acle_builtins.def (mcr, mcr2, mrc, mrc2): New.
5575 * config/arm/iterators.md (MCRI, mcr, MCR, MRCI, mrc, MRC): New.
5576 * config/arm/unspecs.md (VUNSPEC_MCR, VUNSPEC_MCR2, VUNSPEC_MRC,
5579 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
5581 * config/arm/arm.md (*ldc): New.
5585 * config/arm/arm.c (arm_coproc_builtin_available): Add
5586 support for ldc,ldcl,stc,stcl,ldc2,ldc2l,stc2 and stc2l.
5587 (arm_coproc_ldc_stc_legitimate_address): New.
5588 * config/arm/arm-builtins.c (arm_type_qualifiers): Add
5589 'qualifier_const_pointer'.
5590 (LDC_QUALIFIERS): Define to...
5591 (arm_ldc_qualifiers): ... this. New.
5592 (STC_QUALIFIERS): Define to...
5593 (arm_stc_qualifiers): ... this. New.
5594 * config/arm/arm-protos.h
5595 (arm_coproc_ldc_stc_legitimate_address): New.
5596 * config/arm/arm_acle.h (__arm_ldc, __arm_ldcl, __arm_stc,
5597 __arm_stcl, __arm_ldc2, __arm_ldc2l, __arm_stc2, __arm_stc2l): New.
5598 * config/arm/arm_acle_builtins.def (ldc, ldc2, ldcl, ldc2l, stc,
5599 stc2, stcl, stc2l): New.
5600 * config/arm/constraints.md (Uz): New.
5601 * config/arm/iterators.md (LDCI, STCI, ldc, stc, LDC STC): New.
5602 * config/arm/unspecs.md (VUNSPEC_LDC, VUNSPEC_LDC2, VUNSPEC_LDCL,
5603 VUNSPEC_LDC2L, VUNSPEC_STC, VUNSPEC_STC2, VUNSPEC_STCL,
5604 VUNSPEC_STC2L): New.
5606 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
5608 * config/arm/arm.md (<cdp>): New.
5609 * config/arm/arm.c (neon_const_bounds): Rename this ...
5610 (arm_const_bounds): ... this.
5611 (arm_coproc_builtin_available): New.
5612 * config/arm/arm-builtins.c (SIMD_MAX_BUILTIN_ARGS): Increase.
5613 (arm_type_qualifiers): Add 'qualifier_unsigned_immediate'.
5614 (CDP_QUALIFIERS): Define to...
5615 (arm_cdp_qualifiers): ... this. New.
5617 (arm_expand_builtin_args): Add case for 6 arguments.
5618 * config/arm/arm-protos.h (neon_const_bounds): Rename this ...
5619 (arm_const_bounds): ... this.
5620 (arm_coproc_builtin_available): New.
5621 * config/arm/arm_acle.h (__arm_cdp): New.
5623 * config/arm/arm_acle_builtins.def (cdp): New.
5625 * config/arm/iterators.md (CDPI,CDP,cdp): New.
5626 * config/arm/neon.md: Rename all 'neon_const_bounds' to
5628 * config/arm/types.md (coproc): New.
5629 * config/arm/unspecs.md (VUNSPEC_CDP, VUNSPEC_CDP2): New.
5630 * gcc/doc/extend.texi (ACLE): Add a mention of Coprocessor intrinsics.
5631 * gcc/doc/sourcebuild.texi (arm_coproc1_ok, arm_coproc2_ok,
5632 arm_coproc3_ok, arm_coproc4_ok): Document new effective targets.
5634 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
5636 * config/arm/arm-builtins.c (arm_unsigned_binop_qualifiers): New.
5637 (UBINOP_QUALIFIERS): New.
5639 (acle_builtin_data): New. Change comment.
5640 (arm_builtins): Remove ARM_BUILTIN_CRC32B, ARM_BUILTIN_CRC32H,
5641 ARM_BUILTIN_CRC32W, ARM_BUILTIN_CRC32CB, ARM_BUILTIN_CRC32CH,
5642 ARM_BUILTIN_CRC32CW. Add ARM_BUILTIN_ACLE_BASE and include
5643 arm_acle_builtins.def.
5644 (ARM_BUILTIN_ACLE_PATTERN_START): Define.
5645 (arm_init_acle_builtins): New.
5646 (CRC32_BUILTIN): Remove.
5647 (bdesc_2arg): Remove entries for crc32b, crc32h, crc32w,
5648 crc32cb, crc32ch and crc32cw.
5649 (arm_init_crc32_builtins): Remove.
5650 (arm_init_builtins): Use arm_init_acle_builtins rather
5651 than arm_init_crc32_builtins.
5652 (arm_expand_acle_builtin): New.
5653 (arm_expand_builtin): Use 'arm_expand_acle_builtin'.
5654 * config/arm/arm_acle_builtins.def: New.
5656 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
5658 * config/arm/arm-builtins.c (neon_builtin_datum): Rename to ..
5659 (arm_builtin_datum): ... this.
5660 (arm_init_neon_builtin): Rename to ...
5661 (arm_init_builtin): ... this. Add a new parameters PREFIX
5662 and USE_SIG_IN_NAME.
5663 (arm_init_neon_builtins): Replace 'arm_init_neon_builtin' with
5664 'arm_init_builtin'. Replace type 'neon_builtin_datum' with
5665 'arm_builtin_datum'.
5666 (arm_init_vfp_builtins): Likewise.
5667 (builtin_arg): Rename enum's replacing 'NEON_ARG' with
5668 'ARG_BUILTIN' and add a 'ARG_BUILTIN_NEON_MEMORY.
5669 (arm_expand_neon_args): Rename to ...
5670 (arm_expand_builtin_args): ... this. Rename builtin_arg
5671 enum values and differentiate between ARG_BUILTIN_MEMORY
5672 and ARG_BUILTIN_NEON_MEMORY.
5673 (arm_expand_neon_builtin_1): Rename to ...
5674 (arm_expand_builtin_1): ... this. Rename builtin_arg enum
5675 values, arm_expand_builtin_args and add bool parameter NEON.
5676 (arm_expand_neon_builtin): Use arm_expand_builtin_1.
5677 (arm_expand_vfp_builtin): Likewise.
5678 (NEON_MAX_BUILTIN_ARGS): Remove, it was unused.
5680 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
5683 * predict.def (PRED_POLYMORPHIC_CALL): Set to 59.
5684 * predict.c (tree_estimate_probability_bb): Reverse direction of
5685 polymorphic call predictor.
5687 2017-01-06 David Malcolm <dmalcolm@redhat.com>
5689 * passes.c (execute_one_pass): Split out pass-skipping logic into...
5690 (determine_pass_name_match): ...this new function and...
5691 (should_skip_pass_p): ...this new function.
5693 2017-01-06 Nathan Sidwell <nathan@acm.org>
5695 * ipa-visibility.c (function_and_variable_visibility): Reformat
5696 comments and long lines. Remove extrneous if.
5697 * symtab.c (symtab_node::make_decl_local): Fix code format.
5698 (symtab_node::set_section_for_node): Fix comment typo.
5700 2017-01-06 Martin Liska <mliska@suse.cz>
5703 * lra-constraints.c: Rename invariant to lra_invariant.
5704 * predict.c (set_even_probabilities): Initialize e to NULL.
5706 2017-01-05 Martin Sebor <msebor@redhat.com>
5708 PR tree-optimization/78910
5709 * gimple-ssa-sprintf.c (tree_digits): Add an argument.
5710 (format_integer): Correct off-by-one error in the handling
5711 of precision with negative numbers in signed conversions..
5713 2017-01-05 Eric Botcazou <ebotcazou@adacore.com>
5715 * doc/invoke.texi (C Dialect Options): Adjust -fsso-struct entry.
5717 2017-01-05 Jakub Jelinek <jakub@redhat.com>
5719 PR tree-optimization/71016
5720 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Pass cond_stmt to
5721 factor_out_conditional_conversion. Formatting fix.
5722 (factor_out_conditional_conversion): Add cond_stmt argument.
5723 If arg1 is INTEGER_CST, punt if new_arg0 is not any operand of
5724 cond_stmt and if arg0_def_stmt is not the only stmt in its bb.
5727 2017-01-05 David Malcolm <dmalcolm@redhat.com>
5729 * Makefile.in (OBJS): Add read-md.o, read-rtl.o,
5730 read-rtl-function.o, and selftest-rtl.o.
5731 * config/aarch64/aarch64.c: Include selftest.h and selftest-rtl.h.
5732 (selftest::aarch64_test_loading_full_dump): New function.
5733 (selftest::aarch64_run_selftests): New function.
5734 (TARGET_RUN_TARGET_SELFTESTS): Wire it up to
5735 selftest::aarch64_run_selftests.
5736 * config/i386/i386.c
5737 (selftest::ix86_test_loading_dump_fragment_1): New function.
5738 (selftest::ix86_test_loading_call_insn): New function.
5739 (selftest::ix86_test_loading_full_dump): New function.
5740 (selftest::ix86_test_loading_unspec): New function.
5741 (selftest::ix86_run_selftests): Call the new functions.
5742 * emit-rtl.c (maybe_set_max_label_num): New function.
5743 * emit-rtl.h (maybe_set_max_label_num): New decl.
5744 * function.c (instantiate_decls): Guard call to
5745 instantiate_decls_1 with if (DECL_INITIAL (fndecl)).
5746 * function-tests.c (selftest::verify_three_block_rtl_cfg): Remove
5748 * gensupport.c (gen_reader::gen_reader): Pass "false"
5749 for new "compact" param of rtx_reader.
5750 * print-rtl.c (rtx_writer::print_rtx_operand): Print "(nil)"
5751 rather than an empty string for NULL strings.
5752 * read-md.c: Potentially include config.h rather than bconfig.h.
5753 Wrap include of errors.h with #ifdef GENERATOR_FILE.
5754 (have_error): New global, copied from errors.c.
5755 (md_reader::read_name): Rename to...
5756 (md_reader::read_name_1): ...this, adding "out_loc" param,
5757 and converting "missing name or number" to returning false, rather
5759 (md_reader::read_name): Reimplement in terms of read_name_1.
5760 (md_reader::read_name_or_nil): New function.
5761 (md_reader::read_string): Handle "(nil)" by returning NULL.
5762 (md_reader::md_reader): Add new param "compact".
5763 (md_reader::read_md_files): Wrap with #ifdef GENERATOR_FILE.
5764 (md_reader::read_file): New method.
5765 * read-md.h (md_reader::md_reader): Add new param "compact".
5766 (md_reader::read_file): New method.
5767 (md_reader::is_compact): New accessor.
5768 (md_reader::read_name): Convert return type from void to file_location.
5769 (md_reader::read_name_or_nil): New decl.
5770 (md_reader::read_name_1): New decl.
5771 (md_reader::m_compact): New field.
5772 (noop_reader::noop_reader): Pass "false" for new "compact" param
5774 (rtx_reader::rtx_reader): Add new "compact" param.
5775 (rtx_reader::read_rtx_operand): Make virtual and convert return
5776 type from void to rtx.
5777 (rtx_reader::read_until): New decl.
5778 (rtx_reader::handle_any_trailing_information): New virtual function.
5779 (rtx_reader::postprocess): New virtual function.
5780 (rtx_reader::finalize_string): New virtual function.
5781 (rtx_reader::m_in_call_function_usage): New field.
5782 (rtx_reader::m_reuse_rtx_by_id): New field.
5783 * read-rtl-function.c: New file.
5784 * selftest-rtl.c (selftest::assert_rtx_ptr_eq_at): New function.
5785 * selftest-rtl.h (ASSERT_RTX_PTR_EQ): New macro.
5786 (selftest::verify_three_block_rtl_cfg): New decl.
5787 * read-rtl-function.h: New file.
5788 * read-rtl.c: Potentially include config.h rather than bconfig.h.
5789 For host, include function.h, memmodel.h, and emit-rtl.h.
5790 (one_time_initialization): New function.
5791 (struct compact_insn_name): New struct.
5792 (compact_insn_names): New array.
5793 (find_code): Handle insn codes in compact dumps.
5794 (apply_subst_iterator): Wrap with #ifdef GENERATOR_FILE.
5795 (bind_subst_iter_and_attr): Likewise.
5796 (add_condition_to_string): Likewise.
5797 (add_condition_to_rtx): Likewise.
5798 (apply_attribute_uses): Likewise.
5799 (add_current_iterators): Likewise.
5800 (apply_iterators): Likewise.
5801 (initialize_iterators): Guard usage of apply_subst_iterator with
5802 #ifdef GENERATOR_FILE.
5803 (read_conditions): Wrap with #ifdef GENERATOR_FILE.
5804 (md_reader::read_mapping): Likewise.
5805 (add_define_attr_for_define_subst): Likewise.
5806 (add_define_subst_attr): Likewise.
5807 (read_subst_mapping): Likewise.
5808 (check_code_iterator): Likewise.
5809 (rtx_reader::read_rtx): Likewise. Move one-time initialization
5811 (one_time_initialization): New function.
5812 (rtx_reader::read_until): New method.
5813 (read_flags): New function.
5814 (parse_reg_note_name): New function.
5815 (rtx_reader::read_rtx_code): Initialize "iterator" to NULL.
5816 Handle reuse_rtx ids.
5817 Wrap iterator lookup within #ifdef GENERATOR_FILE.
5818 Add parsing support for RTL dumps, mirroring the special-cases in
5819 print_rtx, by calling read_flags, reading REG_NOTE names, INSN_UID
5820 values, and calling handle_any_trailing_information.
5821 (rtx_reader::read_rtx_operand): Convert return type from void
5822 to rtx, returning return_rtx. Handle case 'e'. Call
5823 finalize_string on XSTR and XTMPL fields.
5824 (rtx_reader::read_nested_rtx): Handle dumps in which trailing
5825 "(nil)" values were omitted. Call the postprocess vfunc on the
5827 (rtx_reader::rtx_reader): Add new "compact" param and pass to base
5828 class ctor. Initialize m_in_call_function_usage. Call
5829 one_time_initialization.
5830 * rtl-tests.c (selftest::test_uncond_jump): Call
5831 set_new_first_and_last_insn.
5832 * rtl.h (read_rtx): Wrap decl with #ifdef GENERATOR_FILE.
5833 * selftest-rtl.c: New file.
5834 * selftest-rtl.h (class selftest::rtl_dump_test): New class.
5835 (selftest::get_insn_by_uid): New decl.
5836 * selftest-run-tests.c (selftest::run_tests): Call
5837 read_rtl_function_c_tests.
5838 * selftest.h (selftest::read_rtl_function_c_tests): New decl.
5839 * tree-dfa.c (ssa_default_def): Return NULL_TREE for rtl function
5842 2017-01-05 Uros Bizjak <ubizjak@gmail.com>
5844 * config/i386/i386.md (*testqi_ext_3): No need to handle memory
5845 operands in a special way. Assert that pos+len <= mode precision.
5847 2017-01-05 Jakub Jelinek <jakub@redhat.com>
5849 * common.opt (fvect-cost-model): Remove RejectNegative flag, use
5850 3 argument Alias with unlimited for the negative form.
5851 (fno-vect-cost-model): Removed.
5853 2017-01-05 Martin Liska <mliska@suse.cz>
5855 * hsa-gen.c (gen_hsa_divmod): New function.
5856 (gen_hsa_insn_for_internal_fn_call): Use the function for IFN_DIVMOD.
5858 2017-01-05 Martin Liska <mliska@suse.cz>
5861 * gcc.c (lookup_compiler): Reject '-' filename for a precompiled
5864 2017-01-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5866 * config/s390/s390.c (s390_expand_setmem): Unroll the loop for
5867 small constant length operands.
5869 2017-01-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5871 * config/s390/s390.c (s390_expand_setmem): Avoid overlapping bytes
5872 between loop iterations.
5874 2017-01-05 Martin Liska <mliska@suse.cz>
5877 * gimplify.c (gimplify_decl_expr): Compare to
5878 asan_poisoned_variables instread of checking flags.
5879 (gimplify_target_expr): Likewise.
5880 (gimplify_expr): Likewise.
5881 (gimplify_function_tree): Conditionally initialize
5882 asan_poisoned_variables.
5884 2017-01-04 Jeff Law <law@redhat.com>
5886 PR tree-optimizatin/78812
5887 * rtl.h (contains_mem_rtx_p): Prototype.
5888 * ifcvt.c (containts_mem_rtx_p): Move from here to...
5889 * rtlanal.c (contains_mem_rtx_p): Here and remove static linkage.
5890 * gcse.c (prune_expressions): Use contains_mem_rtx_p to discover
5891 and prune MEMs that are not at the toplevel of a SET_SRC rtx. Look
5892 through ZERO_EXTEND and SIGN_EXTEND when trying to avoid pruning MEMs.
5894 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
5896 * input.c (assert_char_at_range): Default-initialize actual_range.
5898 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
5900 * df-scan.c (df_ref_create_structure): Make regno unsigned,
5901 to match the caller.
5903 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
5905 * cfgexpand.c (expand_gimple_basic_block): Disregard debug
5906 insns after final jump in test to emit dummy move.
5908 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
5910 * gimple-iterator.h (gsi_one_nondebug_before_end_p): New.
5911 * tree-eh.c (cleanup_empty_eh): Skip more debug stmts.
5913 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
5915 * multiple_target.c (create_dispatcher_calls): Init e_next.
5916 * tree-ssa-loop-split.c (split_loop): Init border.
5917 * tree-vect-loop.c (vect_determine_vectorization_factor): Init
5920 2017-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
5925 * config/rs6000/predicates.md (sf_subreg_operand): New predicate.
5926 (altivec_register_operand): Do not return true if the operand
5927 contains a SUBREG mixing SImode and SFmode.
5928 (vsx_register_operand): Likewise.
5929 (vsx_reg_sfsubreg_ok): New predicate.
5930 (vfloat_operand): Do not return true if the operand contains a
5931 SUBREG mixing SImode and SFmode.
5932 (vint_operand): Likewise.
5933 (vlogical_operand): Likewise.
5934 (gpc_reg_operand): Likewise.
5935 (int_reg_operand): Likewise.
5936 * config/rs6000/rs6000-protos.h (valid_sf_si_move): Add declaration.
5937 * config/rs6000/rs6000.c (valid_sf_si_move): New function to
5938 determine if a MOVSI or MOVSF operation contains SUBREGs that mix
5940 (rs6000_emit_move_si_sf_subreg): New helper function.
5941 (rs6000_emit_move): Call rs6000_emit_move_si_sf_subreg to possbily
5942 fixup SUBREGs involving SImode and SFmode.
5943 * config/rs6000/vsx.md (SFBOOL_*): New constants that are operand
5944 numbers for the new peephole2 optimization.
5945 (peephole2 for SFmode unions): New peephole2 to optimize cases in
5946 the GLIBC math library that do AND/IOR/XOR operations on single
5947 precision floating point.
5948 * config/rs6000/rs6000.h (TARGET_NO_SF_SUBREG): New internal
5949 target macros to say whether we need to avoid SUBREGs mixing
5951 (TARGET_ALLOW_SF_SUBREG): Likewise.
5952 * config/rs6000/rs6000.md (UNSPEC_SF_FROM_SI): New unspecs.
5953 (UNSPEC_SI_FROM_SF): Likewise.
5954 (iorxor): Change spacing.
5955 (and_ior_xor): New iterator for AND, IOR, and XOR.
5956 (movsi_from_sf): New insns for SImode/SFmode SUBREG support.
5957 (movdi_from_sf_zero_ext): Likewise.
5958 (mov<mode>_hardfloat, FMOVE32 iterator): Use register_operand
5959 instead of gpc_reg_operand. Add SImode/SFmode SUBREG support.
5960 (movsf_from_si): New insn for SImode/SFmode SUBREG support.
5961 (fma<mode>4): Use gpc_reg_operand instead of register_operand.
5962 (fms<mode>4): Likewise.
5963 (fnma<mode>4): Likewise.
5964 (fnms<mode>4): Likewise.
5965 (nfma<mode>4): Likewise.
5966 (nfms<mode>4): Likewise.
5968 2017-01-04 Marek Polacek <polacek@redhat.com>
5971 * doc/invoke.texi: Document -Wpointer-compare.
5973 2017-01-04 Jakub Jelinek <jakub@redhat.com>
5975 * optc-gen.awk: Emit #error for -W*/-f*/-m* Enum without
5978 * dwarf2out.c (output_loc_list): Don't throw away 64K+ location
5979 descriptions for -gdwarf-5 and emit them as uleb128 instead of
5982 2017-01-04 Kelvin Nilsen <kelvin@gcc.gnu.org>
5985 * doc/sourcebuild.texi (PowerPC-specific attributes): Add
5986 documentation of the powerpc_popcntb_ok attribute.
5987 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
5988 code to issue warning messages if a requested CPU configuration is
5989 not supported by the binary (assembler and loader) toolchain.
5990 (spe_init_builtins): Add two assertions to prevent ICE if attempt is
5991 made to define a built-in function that has been disabled.
5992 (paired_init_builtins): Add assertion to prevent ICE if attempt is
5993 made to define a built-in function that has been disabled.
5994 (altivec_init_builtins): Add comment explaining why definition
5995 of the DST built-in functions is not preceded by an assertion
5996 check. Add assertions to prevent ICE if attempts are made to
5997 define an altivec predicate or an abs* built-in function that has
5999 (htm_init_builtins): Add comment explaining why definition of the
6000 htm built-in functions is not preceded by an assertion check.
6002 2017-01-04 Jeff Law <law@redhat.com>
6004 PR tree-optimizatin/67955
6005 * tree-ssa-alias.c (same_addr_size_stores_p): Check offsets first.
6006 Allow any SSA_VAR_P as the base objects. Use integer_zerop. Verify
6007 the points-to solution does not include pt_null. Use DECL_PT_UID
6010 2017-01-04 Uros Bizjak <ubizjak@gmail.com>
6012 * config/i386/i386.md (HI/SImode test with imm to QImode splitters):
6013 Use gen_int_mode instead of gen_lopwart for const_int operands.
6015 2017-01-04 Jakub Jelinek <jakub@redhat.com>
6017 PR tree-optimization/71563
6018 * match.pd: Simplify X << Y into X if Y is known to be 0 or
6019 out of range value - has low bits known to be zero.
6021 2017-01-04 Alan Modra <amodra@gmail.com>
6023 * Makefile.in (aclocal_deps): Update and order as per aclocal.m4.
6024 * configure: Regenerate.
6025 * config.in: Regenerate.
6027 2017-01-04 Jakub Jelinek <jakub@redhat.com>
6030 * input.c (ebcdic_execution_charset::on_error): Don't use strstr for
6031 a substring of the message, but strcmp with the whole message. Ifdef
6032 ENABLE_NLS, translate the message first using dgettext.
6034 2017-01-03 Jeff Law <law@redhat.com>
6036 PR tree-optimizatin/78856
6037 * tree-ssa-threadupdate.c: Include tree-vectorizer.h.
6038 (mark_threaded_blocks): Remove code to truncate thread paths that
6039 cross multiple loop headers. Instead invalidate the cached loop
6040 iteration information and handle case of a thread path walking
6041 into an irreducible region.
6043 2017-01-03 Michael Meissner <meissner@linux.vnet.ibm.com>
6046 * config/rs6000/rs6000.c (rs6000_split_signbit): Change some
6047 assertions. Add support for doing the signbit if the IEEE 128-bit
6048 floating point value is in a GPR.
6049 * config/rs6000/rs6000.md (Fsignbit): Delete.
6050 (signbit<mode>2_dm): Delete using <Fsignbit> and just use "wa".
6051 Update the length attribute if the value is in a GPR.
6052 (signbit<mode>2_dm_<su>ext): Add combiner pattern to eliminate
6053 the sign or zero extension instruction, since the value is always 0/1.
6054 (signbit<mode>2_dm2): Delete using <Fsignbit>.
6057 * config/rs6000/vsx.md (vsx_extract_<mode>_store_p9): If we are
6058 extracting SImode to a GPR register so that we can generate a
6059 store, limit the vector to be in a traditional Altivec register
6060 for the vextuwrx instruction.
6062 2017-01-03 Ian Lance Taylor <iant@google.com>
6064 * godump.c (go_format_type): Treat ENUMERAL_TYPE like INTEGER_TYPE.
6066 2017-01-03 Martin Sebor <msebor@redhat.com>
6068 PR tree-optimization/78696
6069 * gimple-ssa-sprintf.c (format_floating): Correct handling of
6070 precision. Use MPFR for %f for greater fidelity. Correct handling
6072 (pass_sprintf_length::compute_format_length): Set width and precision
6073 specified by asrerisk to void_node for vararg functions.
6074 (try_substitute_return_value): Adjust dump output.
6076 2017-01-03 David Edelsohn <dje.gcc@gmail.com>
6078 * doc/invoke.texi (RS6000 options): LRA is enabled by default.
6080 2017-01-03 Eric Botcazou <ebotcazou@adacore.com>
6082 * doc/invoke.texi (SPARC options): Document -mlra as the default.
6083 * config/sparc/sparc.c (sparc_option_override): Force LRA unless
6084 -mlra/-mno-lra was passed to the compiler.
6086 2017-01-03 James Cowgill <James.Cowgill@imgtec.com>
6088 PR rtl-optimization/65618
6089 * emit-rtl.c (try_split): Move initialization of "before" and
6090 "after" to just before the call to emit_insn_after_setloc.
6092 2017-01-03 Gerald Pfeifer <gerald@pfeifer.com>
6094 * doc/md.texi (Standard Names): Remove reference to Java frontend.
6096 2017-01-03 Pierre-Marie de Rodat <derodat@adacore.com>
6098 * dwarf2out.c (gen_enumeration_type_die): When
6099 -gno-strict-dwarf, add a DW_AT_encoding attribute.
6101 2017-01-03 Jakub Jelinek <jakub@redhat.com>
6103 PR tree-optimization/78965
6104 * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
6105 Change first argument from const call_info & to call_info &. For %n
6106 set info.nowrite to false.
6109 * gimple-ssa-sprintf.c (try_substitute_return_value): Don't change
6110 possibly throwing calls.
6112 * genmatch.c (dt_node::gen_kids_1): If generic_exprs include SSA_NAME
6113 and exprs_len || fns_len, emit the code for SSA_NAME next to the exprs
6114 and fns handling, rather than in a separate case SSA_NAME.
6116 2017-01-02 Jeff Law <law@redhat.com>
6118 * config/darwin-driver.c (darwin_driver_init): Const-correctness
6119 fixes for first_period and second_period variables.
6121 2017-01-02 Uros Bizjak <ubizjak@gmail.com>
6124 * config/i386/i386.md (UNSPEC_NOREX_MEM): New unspec.
6125 (*insvqi_1): New insn pattern.
6126 (*insvqi_1_mem_rex64): Ditto.
6128 (*insvqi_3): Rename from *insvqi.
6130 (*extzvqi_mem_rex64): Add UNSPEC_NOREX_MEM tag.
6132 2017-01-02 Gerald Pfeifer <gerald@pfeifer.com>
6134 * doc/cfg.texi (Edges): Remove reference to Java.
6135 (Maintaining the CFG): Ditto.
6137 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
6140 * symtab.c (symtab_node::binds_to_current_def_p): Fix handling of
6141 transparent aliases.
6143 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
6146 * predict.def (PRED_CALL): Update hitrate.
6147 (PRED_INDIR_CALL, PRED_POLYMORPHIC_CALL): New predictors.
6148 * predict.c (tree_estimate_probability_bb): Split CALL predictor
6149 into direct/indirect/polymorphic variants.
6151 2017-01-01 Jakub Jelinek <jakub@redhat.com>
6153 Update copyright years.
6155 * gcc.c (process_command): Update copyright notice dates.
6156 * gcov-dump.c (print_version): Ditto.
6157 * gcov.c (print_version): Ditto.
6158 * gcov-tool.c (print_version): Ditto.
6159 * gengtype.c (create_file): Ditto.
6160 * doc/cpp.texi: Bump @copying's copyright year.
6161 * doc/cppinternals.texi: Ditto.
6162 * doc/gcc.texi: Ditto.
6163 * doc/gccint.texi: Ditto.
6164 * doc/gcov.texi: Ditto.
6165 * doc/install.texi: Ditto.
6166 * doc/invoke.texi: Ditto.
6168 Copyright (C) 2017 Free Software Foundation, Inc.
6170 Copying and distribution of this file, with or without modification,
6171 are permitted in any medium without royalty provided the copyright
6172 notice and this notice are preserved.