pa64-hpux.h (FINI_SECTION_ASM_OP): Define to null string.
[official-gcc.git] / gcc / ChangeLog
blob7d153d27f3714e3e094ff029d1076b6f60eb9d6f
1 2016-10-29  John David Anglin  <danglin@gcc.gnu.org>
3         * config/pa/pa64-hpux.h (FINI_SECTION_ASM_OP): Define to null string.
5 2016-10-29  Jakub Jelinek  <jakub@redhat.com>
7         PR target/78148
8         * gimple-ssa-store-merging.c
9         (imm_store_chain_info::output_merged_store): Use build_aligned_type
10         instead of SET_TYPE_ALIGN on shared integral type.
12 2016-10-29  John David Anglin  <danglin@gcc.gnu.org>
14         * config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
15         (MALLOC_ABI_ALIGNMENT): Define to 128 on all targets except SOM.
16         Adjust comment.
18 2016-10-28  Jeff Law  <law@redhat.com>
20         * config/vax/vax.h (REGNO_REG_CLASS): Access the REGNO argument.
21         * config/spu/spu.h (REGNO_REG_CLASS): Likewise.
23 2016-10-28  Eric Botcazou  <ebotcazou@adacore.com>
25         * doc/sourcebuild.texi (Ada Tests): Remove mention of gcc chapter.
27 2016-10-28  Eric Botcazou  <ebotcazou@adacore.com>
29         * target.def (min_arithmetic_precision): New hook.
30         * doc/tm.texi.in (Misc): Add TARGET_MIN_ARITHMETIC_PRECISION.
31         * doc/tm.texi: Regenerate.
32         * internal-fn.c (expand_arith_overflow): Adjust handling of target
33         dependent support by means of TARGET_MIN_ARITHMETIC_PRECISION.
34         * targhooks.c (default_min_arithmetic_precision): New function.
35         * targhooks.h (default_min_arithmetic_precision): Declare.
36         * config/sparc/sparc.c (TARGET_MIN_ARITHMETIC_PRECISION): Define.
37         (sparc_min_arithmetic_precision): New function.
39 2016-10-28  Segher Boessenkool  <segher@kernel.crashing.org>
41         PR target/71847
42         * combine.c (change_zero_ext): Handle zero_ext of hard registers.
43         Swap commutative operands in new RTL if needed.  Handle zero_ext
44         in the set_dest.
45         (recog_for_combine): Pass *pnewpat to change_zero_ext instead of
46         PATTERN (insn).
48 2016-10-28  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
49             Kugan Vivekanandarajah  <kuganv@linaro.org>
50             Jim Wilson  <jim.wilson@linaro.org>
52         PR tree-optimization/43721
53         * target.def: New hook expand_divmod_libfunc.
54         * doc/tm.texi.in: Add hook for TARGET_EXPAND_DIVMOD_LIBFUNC.
55         * doc/tm.texi: Regenerate.
56         * internal-fn.def: Add new entry for DIVMOD ifn.
57         * internal-fn.c (expand_DIVMOD): New.
58         * tree-ssa-math-opts.c: Include optabs-libfuncs.h, tree-eh.h,
59         targhooks.h.
60         (widen_mul_stats): Add new field divmod_calls_inserted.
61         (target_supports_divmod_p): New.
62         (divmod_candidate_p): Likewise.
63         (convert_to_divmod): Likewise.
64         (pass_optimize_widening_mul::execute): Call calculate_dominance_info,
65         renumber_gimple_stmt_uids at beginning of function. Call
66         convert_to_divmod and record stats for divmod.
67         * config/arm/arm.c (arm_expand_divmod_libfunc): Override hook
68         TARGET_EXPAND_DIVMOD_LIBFUNC.
69         * doc/sourcebuild.texi: Add items for arm_divmod_simode, divmod,
70         divmod_simode.
72 2016-10-28  Eric Botcazou  <ebotcazou@adacore.com>
74         * dojump.c (do_jump_by_parts_greater_rtx): Invert probability when
75         swapping the arms of the branch.
76         * internal-fn.c (expand_addsub_overflow): Use a straight-line code
77         sequence for the generic signed-signed-signed case.
79 2016-10-28  Jeff Law  <law@redhat.com>
81         * config/bfin/bfin.c (bfin_legitimate_address_p): Add missing
82         fallthru comment.
83         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
85 2016-10-28  Segher Boessenkool  <segher@kernel.crashing.org>
87         PR rtl-optimization/78029
88         * function.c (prologue_contains, epilogue_contains): New functions.
89         (record_prologue_seq, record_epilogue_seq): New functions.
90         * function.h (prologue_contains, epilogue_contains,
91         record_prologue_seq, record_epilogue_seq): New declarations.
92         * sched-deps.c (sched_analyze_insn): Make dependencies to prevent
93         mixing prologue and epilogue insns.
94         (init_deps): Initialize the new fields in struct deps_desc.
95         * sched-int.h (struct deps_desc): New fields last_prologue,
96         last_epilogue, and last_logue_was_epilogue.
97         * shrink-wrap.c (emit_common_heads_for_components): Record all
98         emitted prologue and epilogue insns.
99         (emit_common_tails_for_components): Ditto.
100         (insert_prologue_epilogue_for_components): Ditto.
102 2016-10-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
104         PR middle-end/22141
105         * Makefile.in (OBJS): Add gimple-ssa-store-merging.o.
106         * common.opt (fstore-merging): New Optimization option.
107         * opts.c (default_options_table): Add entry for
108         OPT_ftree_store_merging.
109         * fold-const.h (can_native_encode_type_p): Declare prototype.
110         * fold-const.c (can_native_encode_type_p): Define.
111         * params.def (PARAM_STORE_MERGING_ALLOW_UNALIGNED): Define.
112         (PARAM_MAX_STORES_TO_MERGE): Likewise.
113         * timevar.def (TV_GIMPLE_STORE_MERGING): New timevar.
114         * passes.def: Insert pass_tree_store_merging.
115         * tree-pass.h (make_pass_store_merging): Declare extern
116         prototype.
117         * gimple-ssa-store-merging.c: New file.
118         * doc/invoke.texi (Optimization Options): Document
119         -fstore-merging.
120         (--param documentation): Document store-merging-allow-unaligned
121         and max-stores-to-merge.
123 2016-10-28  Will Schmidt <will_schmidt@vnet.ibm.com>
125         PR middle-end/72747
126         * gimplify.c (gimplify_init_constructor): Move emit of constructor
127         assignment to earlier in the if/else logic.
129 2016-10-28  Richard Biener  <rguenther@suse.de>
131         PR middle-end/78128
132         PR middle-end/71002
133         * fold-const.c (make_bit_field_ref): Only adjust alias set
134         when the original alias set was zero.
136 2016-10-28  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
138         * config/s390/s390.c (s390_adjust_loop_scan_osc): New function.
139         (s390_adjust_loops): New function.
140         (s390_reorg): Invoke s390_adjust_loops.
141         * config/s390/s390.md: (UNSPEC_OSC_BREAK): New constant.
142         ("osc_break"): New insn definition.
144 2016-10-28  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
146         * config/s390/s390.opt: Support alternate cpu level naming (archXX).
147         * config.gcc: Support alternate archXX cpu levels with
148         --with-arch= and --with-tune=.
149         * config/s390/linux.h: Translate new archXX cpu levels to the
150         original names when calling GAS.
151         * config/s390/tpf.h: Likewise.
152         * doc/invoke.texi: Document the alternate cpu level names.
154 2016-10-28  Jakub Jelinek  <jakub@redhat.com>
156         PR rtl-optimization/77919
157         * expr.c (expand_expr_real_1) <normal_inner_ref>: Force CONCAT into
158         MEM if mode1 is not a complex mode.
160         PR rtl-optimization/78132
161         * ree.c (combine_reaching_defs): Give up if copy_needed and
162         !HARD_REGNO_MODE_OK (REGNO (src_reg), dst_mode).
164 2016-10-27  Eric Botcazou  <ebotcazou@adacore.com>
166         * config/sparc/sparc.md (<*vlop:code><VL:mode>3): Remove leading '*'.
168 2016-10-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
170         * config/rs6000/constraints.md (wH constraint): Add new
171         constraints for allowing 32-bit integers (and eventually 8/16-bit
172         integers) into the vector registers.
173         (wI constraint): Likewise.
174         (wJ constraint): Likewise.
175         (wK constraint): Likewise.
176         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
177         -mvsx-small-integer as a default option for ISA 2.07
178         (i.e. power8).
179         (POWERPC_MASKS): Likewise.
180         * config/rs6000/rs6000.opt (-mvsx-small-integer): Add new debug
181         switch to turn off small integer support in vector registers.
182         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Eliminate
183         test for -mupper-regs-di, since it is already done with the
184         reg_add[mode].scalar_in_vsx_p.  Add support for the switch
185         -mvsx-small-integer.
186         (rs6000_debug_reg_global): Add support for wH, wI, wJ, and wK
187         constraints.
188         (rs6000_setup_reg_addr_masks): Likewise.
189         (rs6000_init_hard_regno_mode_ok): Likewise.
190         (rs6000_option_override_internal): Add consistency checks for
191         -mvsx-small-integer.
192         (rs6000_secondary_reload_simple_move): SImode is a simple move if
193         -mvsx-small-integer.
194         (rs6000_secondary_reload): Use std::swap.
195         (rs6000_preferred_reload_class): Don't prefer FLOAT_REGS over
196         VSX_REGS for small integers in vector registers, since there is no
197         D-FORM address mode for such types.
198         (rs6000_register_move_cost): Use FIRST_FPR_REGNO instead of 32.
199         (rs6000_opt_masks): Add -mvsx-small-integer.
200         * config/rs6000/vsx.md (VSINT_84): Add SImode for small integer
201         support.
202         (VSX_EXTRACT_I2): Clone VSX_EXTRACT_I, but drop V4SI since SImode
203         extracts can be done on ISA 2.07.
204         (vsx_extract_<mode>): Add support for small integers in vsx
205         registers.
206         (vsx_extract_<mode>_p9): Use 'v' instead of VSX_EX, since we no
207         longer support V4SImode in this pattern.
208         (vsx_extract_si): New insn to support extraction of SImode in ISA
209         2.07 using either xxextractuw or vspltw.
210         (vsx_extract_<mode>_p8): Use 'v' instead of VSX_EX, since we no
211         longer support V4SImode in this pattern.
212         * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wH, wI,
213         wJ, and wK constraints.
214         * config/rs6000/rs6000.md (f32_sv): Use correct instruction for
215         storing SDmode with VSX instructions.
216         (zero_extendsi<mode>2): Reorder pattern, so RLDICL comes after the
217         GPR load and before the FPR and VSX loads.  Remove ??, ! from the
218         constraints.  Add MFVSRWZ and XXEXTRACTUW instructions to support
219         small integers in vector registers.
220         (extendsi<mode>2): Reorder pattern, so EXTSW comes after the GPR
221         load and before the FPR and VSX loads.  Remove ??, ! from the
222         constraints.  Add VEXTSW2D support for small integers in vector
223         registers.
224         (lfiwax): Remove ! constraint.  Add VEXTSW2D support for small
225         integers in vector registers.
226         (floatsi<mode>2_lfiwax): If -mvsx-small-integer issue a normal
227         move instead of using an UNSPEC.
228         (lfiwzx): Remove ! constraint.  Add XXEXTRACTUW support for small
229         integers in vector registers.
230         (floatunssi<mode>2_lfiwzx): If -mvsx-small-integer issue a normal
231         move instead of using an UNSPEC.
232         (movsi_internal1): Add support for -mvsx-small-integer.  Align
233         columns so that it is more readable.
234         (SImode splitter for ISA 3.0 constants): Add splitter for
235         -128..127 constants that can easily be constructed on ISA 3.0.
236         * doc/md.texi (PowerPC Constraints): Document wH, wI, wJ, and wK
237         constraints.
239 2016-10-27  Jakub Jelinek  <jakub@redhat.com>
241         PR middle-end/78025
242         * omp-simd-clone.c (simd_clone_adjust): Handle noreturn declare simd
243         functions.
245 2016-10-27  Aldy Hernandez  <aldyh@redhat.com>
247         * builtins.c (expand_builtin_nonlocal_goto): Avoid evaluating
248         PIC_OFFSET_TABLE_REGNUM twice.
250 2016-10-27  Bin Cheng  <bin.cheng@arm.com>
252         * match.pd ((convert (op:s (convert@2 @0) (convert?@3 @1)))): Add
253         support for constant operand for OP.
255 2016-10-27  Jakub Jelinek  <jakub@redhat.com>
257         * dwarf2out.c (gen_member_die): Only reparent_child instead of
258         splice_child_die if child doesn't have DW_AT_specification attribute.
260 2016-10-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
262         * config/arm/arm.h (TARGET_HAVE_LDREX): Define for ARMv8-M Baseline.
263         (TARGET_HAVE_LDREXBH): Likewise.
264         (TARGET_HAVE_LDACQ): Likewise.
266 2016-10-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
268         * config/arm/arm.c (arm_split_atomic_op): Add function comment.  Add
269         logic to to decide whether to copy over old value to register for new
270         value.
271         * config/arm/sync.md: Add comments explaning why mode and code
272         attribute are not defined in iterators.md
273         (thumb1_atomic_op_str): New code attribute.
274         (thumb1_atomic_newop_str): Likewise.
275         (thumb1_atomic_fetch_op_str): Likewise.
276         (thumb1_atomic_fetch_newop_str): Likewise.
277         (thumb1_atomic_fetch_oldop_str): Likewise.
278         (atomic_exchange<mode>): Add new ARMv8-M Baseline only alternatives to
279         mirror the more restrictive constraints of the Thumb-1 insns after
280         split compared to Thumb-2 counterpart insns.
281         (atomic_<sync_optab><mode>): Likewise.  Add comment to keep constraints
282         in sync with non atomic version.
283         (atomic_nand<mode>): Likewise.
284         (atomic_fetch_<sync_optab><mode>): Likewise.
285         (atomic_fetch_nand<mode>): Likewise.
286         (atomic_<sync_optab>_fetch<mode>): Likewise.
287         (atomic_nand_fetch<mode>): Likewise.
288         * config/arm/thumb1.md (thumb1_addsi3): Add comment to keep contraint
289         in sync with atomic version.
290         (thumb1_subsi3_insn): Likewise.
291         (thumb1_andsi3_insn): Likewise.
292         (thumb1_iorsi3_insn): Likewise.
293         (thumb1_xorsi3_insn): Likewise.
295 2016-10-27  Nick Clifton  <nickc@redhat.com>
297         * plugin.c (register_plugin_info): Produce an error message if the
298         plugin is not found in the hash table.
300 2016-10-27  Bin Cheng  <bin.cheng@arm.com>
302         * match.pd ((convert1 (minmax ((convert2 (x) c)))) -> minmax (x c)):
303         New pattern.
305 2016-10-26  Kelvin Nilsen  <kelvin@gcc.gnu.org>
307         PR target/78056
308         * config/rs6000/rs6000.c (spe_init_builtins): Modify loops to not
309         define builtin functions from the bdesc_spe_predicates or
310         bdesc_spe_evsel arrays if the builtin mask is not compatible with
311         the current compiler configuration.
312         (paired_init_builtins): Modify loop to not define define builtin
313         functions from the bdesc_paried_preds array if the builtin mask is
314         not compatible with the current compiler configuration.
315         (altivec_init_builtins): Modify loops to not define the
316         __builtin_altivec_stxvl function nor the builtin functions from
317         the bdesc_dst or bdesc_altivec_preds, or bdesc_abs arrays if the
318         builtin mask is not compatible with the current compiler
319         configuration.
321 2016-10-26  Jeff Law  <law@redhat.com>
323         * config/sh/sh.c (output_branch): Add missing fallthru comments.
324         (gen_shl_and): Likewise.
325         * config/sh/sh.md (movsicc): Add missing fallthru comments.
327         * config/mips/mips.c (mips16_constant_cost): Add missing
328         fallthru comments.
329         (mips16_build_call_stub): Increase buffer size.  Adjust
330         fallthru comment.
332 2016-10-26  David Malcolm  <dmalcolm@redhat.com>
334         * print-rtl.c (rtx_writer::print_rtx_operand_code_u): Print
335         INSN_UIDs for all insns in compact mode.
336         (rtx_writer::print_rtx): Likewise.
337         * print-rtl.h (rtx_writer::flag_compact): Update comment.
338         * rtl-tests.c (selftest::test_dumping_insns): Update expected
339         output to include INSN_UID.
340         (selftest::test_uncond_jump): Likewise.
342 2016-10-26  Pat Haugen  <pthaugen@us.ibm.com>
344         * haifa-sched.c (call_used_regs_num): Rename to...
345         (call_saved_regs_num): ...this.
346         (fixed_regs_num): New variable.
347         (sched_pressure_start_bb): Subtract out fixed_regs. Scale call_saved
348         regs not call_used.
349         (alloc_global_sched_pressure_data): Compute call_saved and fixed regs.
351 2016-10-26  David Malcolm  <dmalcolm@redhat.com>
353         * print-rtl-function.c (print_rtx_function): Rewrite in terms of
354         class rtx_writer.
355         * print-rtl.c (outfile): Delete global.
356         (sawclose): Likewise.
357         (indent): Likewise.
358         (in_call_function_usage): Likewise.
359         (flag_compact): Likewise.
360         (flag_simple): Likewise.
361         (rtx_writer::rtx_writer): New ctor.
362         (print_rtx_operand_code_0): Convert to...
363         (rtx_writer::print_rtx_operand_code_0): ...this.
364         (print_rtx_operand_code_e): Convert to...
365         (rtx_writer::print_rtx_operand_code_e): ...this.
366         (print_rtx_operand_codes_E_and_V): Convert to...
367         (rtx_writer::print_rtx_operand_codes_E_and_V): ...this.
368         (print_rtx_operand_code_i): Convert to...
369         (rtx_writer::print_rtx_operand_code_i): ...this.
370         (print_rtx_operand_code_r): Convert to...
371         (rtx_writer::print_rtx_operand_code_r): ...this.
372         (print_rtx_operand_code_u): Convert to...
373         (rtx_writer::print_rtx_operand_code_u): ...this.
374         (print_rtx_operand): Convert to...
375         (rtx_writer::print_rtx_operand): ...this.
376         (print_rtx): Convert to...
377         (rtx_writer::print_rtx): ...this.
378         (print_inline_rtx): Rewrite in terms of class rtx_writer.
379         (debug_rtx): Likewise.
380         (print_rtl): Convert to...
381         (rtx_writer::print_rtl): ...this.
382         (print_rtl): Reimplement in terms of class rtx_writer.
383         (print_rtl_single): Rewrite in terms of class rtx_writer.
384         (print_rtl_single_with_indent): Convert to..
385         (rtx_writer::print_rtl_single_with_indent): ...this.
386         (print_simple_rtl): Rewrite in terms of class rtx_writer.
387         * print-rtl.h (flag_compact): Delete decl.
388         (class rtx_writer): New class.
389         * rtl-tests.c (selftest::assert_rtl_dump_eq): Rewrite in terms of
390         class rtx_writer.
392 2016-10-26  Jeff Law  <law@redhat.com>
394         * config/microblaze/microblaze.c (tls_mentioned_p): Avoid
395         fallthru.
397         * config/arc/arc.c (acr_print_operand): Adjust fallthru comment.
398         (check_if_valid_sleep_operand): Add missing fallthru comment.
399         (arc_register_move_cost): Increase buffer size.
400         * config/arc/arc.md (cbranch4si_scratch): Add missing fallthru
401         comment.
402         * config/arc/predicates.md (move_str_operand): Avoid fallthru.
404         * config/cr16/cr16.c (cr16_print_operand): Add missing fallthru
405         comment.  Add gcc_unreachable for path that should never happen.
407         * config/epiphany/epiphany.c (epiphany_print_operand): Adjust
408         fallthru comment.
410 2016-10-26  Jakub Jelinek  <jakub@redhat.com>
411             Martin Liska  <mliska@suse.cz>
413         PR fortran/77973
414         * gimplify.c (gimplify_adjust_omp_clauses_1): For all added map
415         clauses with OMP_CLAUSE_SIZE being a decl, call omp_notice_variable
416         on outer context if any.
418 2016-10-26  Jakub Jelinek  <jakub@redhat.com>
420         * gen-pass-instances.awk (adjust_linenos): INcrement pass_lines[p]
421         by increment rather than double it.
422         (insert_remove_pass): Strip leading whitespace from args[3].  Don't
423         emit a space before args[4].
424         (END): Don't emit a space before with_arg.
426 2016-10-26  Thomas Preud'homme  <thomas.preudhomme@arm.com>
428         * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Add new ARMv8-M
429         Baseline only alternatives to (i) hold store atomic success value in a
430         return register rather than a scratch register, (ii) use a low register
431         for it and to (iii) ensure the cbranchsi insn generated by the split
432         respect the constraints of Thumb-1 cbranchsi4_insn and
433         cbranchsi4_scratch.
434         * config/arm/thumb1.md (cbranchsi4_insn): Add comment to indicate
435         constraints must match those in atomic_compare_and_swap.
436         (cbranchsi4_scratch): Likewise.
438 2016-10-26  Thomas Preud'homme  <thomas.preudhomme@arm.com>
440         * config/arm/arm.c (arm_expand_compare_and_swap): Add new bdst local
441         variable.  Add the new parameter to the insn generator.  Set that
442         parameter to be CC flag for 32-bit targets, bval otherwise.  Set the
443         return value from the negation of that parameter for Thumb-1, keeping
444         the logic unchanged otherwise except for using bdst as the destination
445         register of the compare_and_swap insn.
446         (arm_split_compare_and_swap): Add explanation about how is the value
447         returned to the function comment.  Rename scratch variable to
448         neg_bval.  Adapt initialization of variables holding operands to the
449         new operand numbers.  Use return register to hold result of store
450         exclusive for Thumb-1, scratch register otherwise.  Construct the
451         appropriate cbranch for Thumb-1 targets, keeping the logic unchanged
452         for 32-bit targets.  Guard Z flag setting to restrict to 32bit targets.
453         Use gen_cbranchsi4 rather than hand-written conditional branch to loop
454         for strongly ordered compare_and_swap.
455         * config/arm/predicates.md (cc_register_operand): New predicate.
456         * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Use a
457         match_operand with the new predicate to accept either the CC flag or a
458         destination register for the boolean return value, restricting it to
459         CC flag only via constraint.  Adapt operand numbers accordingly.
461 2016-10-26  Jeff Law  <law@redhat.com>
463         * config/fr30/fr30.c (fr30_print_operand): Adjust fallthru comment.
465         * config/frv/frv.c (comparison_string): Do not fall through after
466         an error.
468         * config/iq2000/iq2000.c (iq2000_function_arg): Adjust fallthru
469         comment.
470         (expand_one_builtin): Add missing break.
472         * config/m32c/m32c.c (encode_pattern_1): Add fallthru comment.
473         (m32c_legitimate_address_p): Likewise.
475         * config/m32r/m32r.c (m32r_print_operand): Adjust fallthru comment.
477         * config/mcore/mcore.c (mcore_gen_compare): Adjust fallthru comments.
479         * config/microblaze/microblaze.c (microblaze_function_arg): Adjust
480         fallthru comment.
482         * config/msp430/msp430.c (msp430_legitimate_address_p): Adjust
483         fallthru comment.
485         * config/nios2/nios2.c (nios2_rtx_costs): Avoid fallthru.
487         * config/rl78/rl78.c (rl78_calculate_death_notes): Add fallthru
488         comment.
489         (rl78_asm_ctor_dtor): Increase buffer size.
491         * config/stormy16/stormy16.c (xstormy16_asm_output_destrutor): Increase
492         buffer size.
493         (xstormy16_asm_output_constructor): Likewise.
495         * config/pa/pa.c (pa_asm_output_mi_thunk): Increase buffer
496         size.
498         * config/h8300/h8300.c (h8300_print_operand): Adjust FALLTHRU
499         comment to silence warning.
501         * config/spu/spu.c (spu_sched_reorder): Add missing fallthru comment.
502         (spu_legitimate_address_p): Fix logic error and add missing fallthru
503         comment.
505 2016-10-26  Michael Matz  <matz@suse.de>
507         PR tree-optimization/78060
508         PR tree-optimization/78061
509         PR tree-optimization/78088
510         * tree-ssa-loop-split.c (easy_exit_values): New function.
511         (tree_ssa_split_loops): Use it.
512         (compute_new_first_bound): Change order of operations,
513         fix invalid use of types.
515 2016-10-26  Georg-Johann Lay  <avr@gjlay.de>
517         gen-pass-instances.awk is sensitive to the order in which
518         passes are added; passes that appear later have to be added first.
520         PR target/71676
521         PR target/71678
522         * config/avr/avr-passes.def: Swap order of directives for
523         gen-pass-instances.awk.
525 2016-10-25  Jeff Law  <law@redhat.com>
527         * config/vax/vax.c (vad_address_cost_1): Add missing FALLTHRU comment.
528         (vax_notice_update_cc): Likewise.
530 2016-10-25  Eric Botcazou  <ebotcazou@adacore.com>
532         * config.gcc (sparc*-*-solaris2*): Adjust.
533         (sparc64-*-linux*): Likewise.
534         * config/sparc/default-64.h: Rename to...
535         * config/sparc/default64.h: ...this.
536         * config/sparc/sparc.c (sparc_option_override): Replace TARGET_64BIT
537         with TARGET_ARCH64.
538         (sparc_mangle_type): Replace !TARGET_64BIT with TARGET_ARCH32.
539         * config/sparc/sparc.h: Minor tweaks.
540         * config/sparc/sparc.md: Replace !TARGET_64BIT and !TARGET_ARCH64 with
541         TARGET_ARCH32 throughout.  Minor various tweaks throughout.
543 2016-10-25  David Malcolm  <dmalcolm@redhat.com>
545         * input.c (fcache::file_patch): Add comment about lifetime.
546         (selftest::cpp_reader_ptr): New class.
547         (selftest::lexer_test): Convert m_parser from cpp_reader *
548         to a cpp_reader_ptr, and move m_tempfile to after it.
549         (selftest::lexer_test::lexer_test): Update for above reordering.
550         (lexer_test::~lexer_test): Move cleanup of m_parser to
551         cpp_reader_ptr's dtor.
553 2016-10-25  David Malcolm  <dmalcolm@redhat.com>
555         * toplev.c (toplev::main): Remove call to
556         location_adhoc_data_fini.
558 2016-10-25  Eric Botcazou  <ebotcazou@adacore.com>
560         * tree.h (wi::fits_to_tree_p): Accept only 0 and 1 for boolean types.
561         * tree.c (int_fits_type_p): Likewise.  Adjust head comment.
563 2016-10-25  David Malcolm  <dmalcolm@redhat.com>
565         * ggc-tests.c (forcibly_ggc_collect): Rename to...
566         (selftest::forcibly_ggc_collect): ...this, and remove "static".
567         (test_basic_struct): Update for above renaming.
568         (test_length): Likewise.
569         (test_union): Likewise.
570         (test_finalization): Likewise.
571         (test_deletable_global): Likewise.
572         (test_inheritance): Likewise.
573         (test_chain_next): Likewise.
574         (test_user_struct): Likewise.
575         (test_tree_marking): Likewise.
576         * selftest-run-tests.c (selftest::run_tests): Call
577         selftest::forcibly_ggc_collect at the end of the selftests.
578         * selftest.h (selftest::forcibly_ggc_collect): New decl.
580 2016-10-25  Jakub Jelinek  <jakub@redhat.com>
582         PR target/78102
583         * optabs.def (vcondeq_optab, vec_cmpeq_optab): New optabs.
584         * optabs.c (expand_vec_cond_expr): For comparison codes
585         EQ_EXPR and NE_EXPR, attempt vcondeq_optab as fallback.
586         (expand_vec_cmp_expr): For comparison codes
587         EQ_EXPR and NE_EXPR, attempt vec_cmpeq_optab as fallback.
588         * optabs-tree.h (expand_vec_cmp_expr_p, expand_vec_cond_expr_p):
589         Add enum tree_code argument.
590         * optabs-query.h (get_vec_cmp_eq_icode, get_vcond_eq_icode): New
591         inline functions.
592         * optabs-tree.c (expand_vec_cmp_expr_p): Add CODE argument.  For
593         CODE EQ_EXPR or NE_EXPR, attempt to use vec_cmpeq_optab as
594         fallback.
595         (expand_vec_cond_expr_p): Add CODE argument.  For CODE EQ_EXPR or
596         NE_EXPR, attempt to use vcondeq_optab as fallback.
597         * tree-vect-generic.c (expand_vector_comparison,
598         expand_vector_divmod, expand_vector_condition): Adjust
599         expand_vec_cmp_expr_p and expand_vec_cond_expr_p callers.
600         * tree-vect-stmts.c (vectorizable_condition,
601         vectorizable_comparison): Likewise.
602         * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern,
603         check_bool_pattern, search_type_for_mask_1): Likewise.
604         * expr.c (do_store_flag): Likewise.
605         * doc/md.texi (@code{vec_cmpeq@var{m}@var{n}},
606         @code{vcondeq@var{m}@var{n}}): Document.
607         * config/i386/sse.md (vec_cmpeqv2div2di, vcondeq<VI8F_128:mode>v2di):
608         New expanders.
610 2016-10-25  Jeff Law  <law@redhat.com>
612         * config/v850/v850.c (v850_handle_data_area_attribute): Fix fallthru
613         comment.
614         (v850_output_aligned_bss): Add missing break.
616         * config/m68k/m68k.c (m68k_get_reloc_decoration): Add gcc_unreachable.
618 2016-10-25  Martin Liska  <mliska@suse.cz>
620         PR sanitizer/78106
621         * sanopt.c (imm_dom_path_with_freeing_call): Handle gasm
622         statements as they can also contain possibly a freeing call.
624 2016-10-25  H.J. Lu  <hongjiu.lu@intel.com>
625             Martin Liska  <mliska@suse.cz>
627         PR ipa/78099
628         * common.opt: Mark flag_ipa_icf_variables as Optimization flag.
629         * ipa-icf.c (sem_function::get_hash): Add target optimization
630         node to hash.
632 2016-10-25  Wilco Dijkstra  <wdijkstr@arm.com>
634         PR target/78041
635         * config/arm/neon.md (ashldi3_neon): Add "r 0 i" and "&r r i" variants.
636         Remove partial overlap check for shift by 1.
637         (ashldi3_neon): Likewise.
639 2016-10-25  Thomas Preud'homme  <thomas.preudhomme@arm.com>
641         * config/arm/constraints.md (Q constraint): Document its use for
642         Thumb-1.
643         (Pf constraint): New constraint for relaxed, consume or relaxed memory
644         models.
645         * config/arm/sync.md (atomic_load<mode>): Add new ARMv8-M Baseline only
646         alternatives to allow any register when memory model matches Pf and
647         thus lda is used, but only low registers otherwise.  Use unpredicated
648         output template for Thumb-1 targets.
649         (atomic_store<mode>): Likewise for stl.
650         (arm_load_exclusive<mode>): Add new ARMv8-M Baseline only alternative
651         whose output template does not have predication.
652         (arm_load_acquire_exclusive<mode>): Likewise.
653         (arm_load_exclusivesi): Likewise.
654         (arm_load_acquire_exclusivesi): Likewise.
655         (arm_store_release_exclusive<mode>): Likewise.
656         (arm_store_exclusive<mode>): Use unpredicated output template for
657         Thumb-1 targets.
659 2016-10-25  Jakub Jelinek  <jakub@redhat.com>
661         * internal-fn.def (LAUNDER): New internal function.
662         * internal-fn.c (expand_LAUNDER): New function.
664 2016-10-25  Georg-Johann Lay  <avr@gjlay.de>
665             Pitchumani Sivanupandi  <pitchumani.sivanupandi@microchip.com>
667         New avr target pass to work around performance loss by PR fix.
669         PR target/71676
670         PR target/71678
671         * config/avr/avr.md (casesi_<mode>_sequence) [qi,hi]: New insn.
672         (*cmp<mode>) [qi,qq,uqq,hi,hq,uhq,ha,uha]: Rename to cmp<mode>3.
673         * config/avr/predicates.md (extend_operator): New.
674         * config/avr/avr-passes.def (avr_pass_casesi): Register new pass.
675         * config/avr/avr-protos.h (avr_casei_sequence_check_operands)
676         (make_avr_pass_casesi): New prototypes.
677         * config/avr/avr.c (print-rtl.h): Include it.
678         (pass_data avr_pass_data_casesi): Data for new pass.
679         (avr_pass_casesi): New class implementing rtl_opt_pass .avr-casesi.
680         (make_avr_pass_casesi, avr_parallel_insn_from_insns)
681         (avr_is_casesi_sequence, avr_casei_sequence_check_operands)
682         (avr_optimize_casesi): New functions.
684 2016-10-25  Georg-Johann Lay  <avr@gjlay.de>
685             Pitchumani Sivanupandi  <pitchumani.sivanupandi@microchip.com>
687         PR target/71676
688         PR target/71678
689         * config/avr/avr.md (casesi): Rewrite avoiding subregs of SI.
691 2016-10-24  Jakub Jelinek  <jakub@redhat.com>
693         * dwarf2out.c (gen_subprogram_die): Add DW_AT_reference or
694         DW_AT_rvalue_reference attributes.
696 2016-10-24  Bernd Edlinger  <bernd.edlinger@hotmail.de>
698         * doc/invoke.text (Wint-in-bool-context): Update documentation.
699         * value-prof.c (stringop_block_profile): Fix a warning.
701 2016-10-24  Martin Sebor  <msebor@redhat.com>
703         PR middle-end/77735
704         * builtins.c (string_length): New function.
705         (c_strlen): Use string_length.  Correctly handle wide strings.
706         * gimple-ssa-sprintf.c (target_max_value, target_size_max): New
707         functions.
708         (target_int_max): Call target_max_value.
709         (format_result::knownrange): New data member.
710         (fmtresult::fmtresult): Define default constructor.
711         (format_integer): Use it and set format_result::knownrange.
712         Handle global constants.
713         (format_floating_max): Add third argument.
714         (format_floating): Recompute maximum value for %a for each argument.
715         (get_string_length): Use fmtresult default ctor.
716         (format_string): Set format_result::knownrange.
717         (format_directive): Check format_result::knownrange.
718         (add_bytes): Same.  Correct caret placement in diagnostics.
719         (pass_sprintf_length::compute_format_length): Set
720         format_result::knownrange.
721         (pass_sprintf_length::handle_gimple_call): Use target_size_max.
723 2016-10-24  Jakub Jelinek  <jakub@redhat.com>
725         * config/i386/i386.c (ix86_in_large_data_p, ix86_expand_builtin): Use
726         VAR_P (x) instead of TREE_CODE (x) == VAR_DECL.
728 2016-10-24  Ximin Luo  <infinity0@pwned.gg>
730         PR debug/77985
731         * dwarf2out.c (file_table_relative_p): Remove.
732         (gen_compile_unit_die, dwarf2out_early_finish): Emit DW_AT_comp_dir
733         also for absolute paths.
734         * doc/tm.texi: Update.
735         * doc/tm.texi.in (SDB and DWARF) <TARGET_FORCE_AT_COMP_DIR>: Remove.
736         * target.def (force_at_comp_dir): Remove hook.
737         * config/darwin.h (TARGET_FORCE_AT_COMP_DIR): Remove define.
739 2016-10-24  Richard Biener  <rguenther@suse.de>
741         * tree-vrp.c (evrp_dom_walker::before_dom_children): Ignore
742         backedges when identifying the single predecessor to take
743         conditional info from.  Use SCEV to get at ranges for loop IVs.
744         * lto-streamer-out.c (lto_write_mode_table): CSE inner mode to
745         avoid false warning.
747 2016-10-24  Georg-Johann Lay  <avr@gjlay.de>
749         PR target/78093
750         * doc/extend.texi (AVR Variable Attributes) [absdata]: Document it.
751         * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_ABSDATA): New macro.
752         (avr_address_tiny_absdata_p): New static function.
753         (avr_legitimate_address_p, avr_legitimize_address) [AVR_TINY]: Use
754         it to determine validity of constant addresses.
755         (avr_attribute_table) [absdata]: New variable attribute...
756         (avr_handle_absdata_attribute): ...and handler.
757         (avr_decl_absdata_p): New static function.
758         (avr_encode_section_info) [AVR_TINY]: Use it to add flag
759         AVR_SYMBOL_FLAG_TINY_ABSDATA to respective symbols_refs.
760         (avr_address_cost) [AVR_TINY]: absdata addresses cost 2.
762 2016-10-24  Richard Biener  <rguenther@suse.de>
764         PR tree-optimization/78076
765         * tree-ssa-loop-split.c (tree_ssa_split_loops): Reset aux
766         also on the loop tree root.
768 2016-10-24  Jakub Jelinek  <jakub@redhat.com>
770         * config/i386/i386.c (ix86_fold_builtin): Handle
771         IX86_BUILTIN_BEXTR{,I}{32,64}, IX86_BUILTIN_BZHI{32,64},
772         IX86_BUILTIN_PDEP{32,64} and IX86_BUILTIN_PEXT{32,64}.
773         (ix86_gimple_fold_builtin): Handle IX86_BUILTIN_BZHI{32,64},
774         IX86_BUILTIN_PDEP{32,64} and IX86_BUILTIN_PEXT{32,64}.
776 2016-10-24  Martin Liska  <mliska@suse.cz>
778         PR sanitizer/77966
779         * opts.c (finish_options): Skip conditionally.
781 2016-10-23  Martin Sebor  <msebor@redhat.com>
783         PR target/77837
784         * config/rs6000/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define.
785         * config/rs6000/linux64.h (TARGET_PRINTF_POINTER_FORMAT): Likewise.
787 2016-10-23  Eric Botcazou  <ebotcazou@adacore.com>
789         * config/sparc/sparc.md (cpu_feature): Minor tweak.
790         (enabled): Likewise.
791         (movsi_insn, movdi_insn_sp32, movdi_insn_sp64, movsf_insn,
792         movdf_insn_sp32, movdf_insn_sp64, zero_extendsidi2_insn_sp64,
793         sign_extendsidi2_insn, mov<VM32:mode>_insn, mov<VM64:mode>_insn_sp64,
794         mov<VM64:mode>_insn_sp32, not_<code><mode>, nand<mode>_vis,
795         <code>_not1<mode>_vi, <code>_not2<mode>_vis, one_cmpl<mode>2,
796         fcmp<code><GCM:gcm_name>, pdistn<mode>_vis): Likewise.
798 2016-10-23  Eric Botcazou  <ebotcazou@adacore.com>
800         * config/sparc/sparc-c.c (sparc_target_macros): Replace TARGET_64BIT
801         with TARGET_ARCH64.  Define __VIS to 0x400 if TARGET_VIS4.
803 2016-10-21  Andrew Pinski  <apinski@cavium.com>
805         * config/aarch64/aarch64-cores.def: Rewrite so IMP and PART are
806         integer constants.
807         * config/aarch64/driver-aarch64.c (struct aarch64_core_data): Change
808         implementer_id to unsigned char.
809         Change part_no to unsigned int.
810         (AARCH64_BIG_LITTLE): New define.
811         (INVALID_IMP): New define.
812         (INVALID_CORE): New define.
813         (cpu_data): Change the last element's implementer_id and part_no to
814         integers.
815         (valid_bL_string_p): Rewrite to ..
816         (valid_bL_core_p): this for integers instead of strings.
817         (parse_field): New function.
818         (contains_string_p): Rewrite to ...
819         (contains_core_p): this for integers and only for the part_no.
820         (host_detect_local_cpu): Rewrite handling of implementation and
821         par num to be integers; simplifying the code.
823 2016-10-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
825         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Create nonzero
826         value range for pointers in more cases.
828 2016-10-21  Wilco Dijkstra  <wdijkstr@arm.com>
830         * config/aarch64/aarch64.c (aarch64_add_constant_internal):
831         Add extra argument to allow emitting the move immediate.
832         Use add/sub with positive immediate.
833         (aarch64_add_constant): Add inline function.
834         (aarch64_add_sp): Likewise.
835         (aarch64_sub_sp): Likewise.
836         (aarch64_expand_prologue): Call aarch64_sub_sp.
837         (aarch64_expand_epilogue): Call aarch64_add_sp.
838         Decide when to leave out move.
839         (aarch64_output_mi_thunk): Call aarch64_add_constant.
841 2016-10-21  Wilco Dijkstra  <wdijkstr@arm.com>
843         * config/aarch64/aarch64.c (aarch64_layout_frame):
844         Align FP callee-saves.
846 2016-10-21  Jakub Jelinek  <jakub@redhat.com>
848         * config/i386/adxintrin.h (_subborrow_u32, _addcarry_u32,
849         _addcarryx_u32, _subborrow_u64, _addcarry_u64, _addcarryx_u64):
850         Formatting fixes.
851         * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
852         _rdseed64_step): Likewise.
853         * config/i386/tbmintrin.h (__bextri_u32): Likewise.
855         PR target/78057
856         * config/i386/i386.c: Include fold-const-call.h, tree-vrp.h
857         and tree-ssanames.h.
858         (ix86_fold_builtin): Fold IX86_BUILTIN_[LT]ZCNT{16,32,64}
859         with INTEGER_CST argument.
860         (ix86_gimple_fold_builtin): New function.
861         (TARGET_GIMPLE_FOLD_BUILTIN): Define.
863         * dwarf2out.c (ranges_table): Change into vec<dw_ranges, va_gc> *.
864         (ranges_by_label): Change into vec<dw_ranges_by_label, va_gc> *.
865         (ranges_table_allocated, ranges_table_in_use,
866         ranges_by_label_allocated, ranges_by_label_in_use,
867         RANGES_TABLE_INCREMENT): Removed.
868         (add_ranges_num): Use vec_safe_push into ranges_table.
869         (add_ranges_by_labels): Use vec_safe_push into ranges_by_label.
870         (output_ranges): Adjust for ranges_table and ranges_by_label
871         conversion from arrays to vec.
872         (add_high_low_attributes, dwarf2out_finish): Adjust for range_table
873         conversion from arrays to vec.
874         (dwarf2out_c_finalize): Don't clear ranges_table_allocated,
875         ranges_table_in_use, ranges_by_label_allocated and
876         ranges_by_label_in_use.  Set ranges_by_label to NULL instead of 0.
878         * dwarf2out.c (gen_variable_die): Emit DW_AT_const_expr attribute
879         if needed.  Re-add origin_die variable and its initialization.
881         * gimplify.c (gimplify_bind_expr): Handle oacc_declare_returns
882         even for -fstack-reuse=none, or for volatile vars etc.
884 2016-10-21  David Malcolm  <dmalcolm@redhat.com>
886         * print-rtl-function.c (flag_compact): Move extern decl to...
887         * print-rtl.h (flag_compact): ...here.
888         * rtl-tests.c (selftests::assert_rtl_dump_eq): New function.
889         (ASSERT_RTL_DUMP_EQ): New macro.
890         (selftest::test_dumping_regs): New function.
891         (selftest::test_dumping_insns): New function.
892         (selftest::test_uncond_jump): Add uses of ASSERT_RTL_DUMP_EQ on
893         the insns.
894         (selftest::rtl_tests_c_tests): Call the new test functions.
896 2016-10-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
898         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
899         (outgoing_edges_match): Likewise.
900         (try_crossjump_to_edge): Likewise.
901         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
902         (rtl_tidy_fallthru_edge): Likewise.
903         * rtl.h (tablejump_p): Adjust prototype.
904         * rtlanal.c (tablejump_p): Return the label as a rtx_insn *.
906 2016-10-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
908         * rtl.h (label_ref_label): New function.
909         (set_label_ref_label): New function.
910         (LABEL_REF_LABEL): Delete.
911         * alias.c (rtx_equal_for_memref_p): Adjust.
912         * cfgbuild.c (make_edges): Likewise.
913         (purge_dead_tablejump_edges): Likewise.
914         * cfgexpand.c (convert_debug_memory_address): Likewise.
915         * cfgrtl.c (patch_jump_insn): Likewise.
916         * combine.c (distribute_notes): Likewise.
917         * cse.c (hash_rtx_cb): Likewise.
918         (exp_equiv_p): Likewise.
919         (fold_rtx): Likewise.
920         (check_for_label_ref): Likewise.
921         * cselib.c (rtx_equal_for_cselib_1): Likewise.
922         (cselib_hash_rtx): Likewise.
923         * emit-rtl.c (mark_label_nuses): Likewise.
924         * explow.c (convert_memory_address_addr_space_1): Likewise.
925         * final.c (output_asm_label): Likewise.
926         (output_addr_const): Likewise.
927         * gcse.c (add_label_notes): Likewise.
928         * genconfig.c (walk_insn_part): Likewise.
929         * genrecog.c (validate_pattern): Likewise.
930         * ifcvt.c (cond_exec_get_condition): Likewise.
931         (noce_emit_store_flag): Likewise.
932         (noce_get_alt_condition): Likewise.
933         (noce_get_condition): Likewise.
934         * jump.c (maybe_propagate_label_ref): Likewise.
935         (mark_jump_label_1): Likewise.
936         (redirect_exp_1): Likewise.
937         (rtx_renumbered_equal_p): Likewise.
938         * lra-constraints.c (operands_match_p): Likewise.
939         * print-rtl.c (print_value): Likewise.
940         * reload.c (find_reloads): Likewise.
941         * reload1.c (set_label_offsets): Likewise.
942         * reorg.c (get_branch_condition): Likewise.
943         * rtl-tests.c (test_uncond_jump): Likewise.
944         * rtl.c (rtx_equal_p_cb): Likewise.
945         (rtx_equal_p): Likewise.
946         * rtlanal.c (reg_mentioned_p): Likewise.
947         (rtx_referenced_p): Likewise.
948         (get_condition): Likewise.
949         * varasm.c (const_hash_1): Likewise.
950         (compare_constant): Likewise.
951         (const_rtx_hash_1): Likewise.
952         (output_constant_pool_1): Likewise.
954 2016-10-21  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
956         PR target/71627
957         * reload.c (find_valid_class_1): Allow regclass if atleast one
958         regno in regclass is ok. Compute and use rclass size based on
959         actually available regnos for mode in rclass.
961 2016-10-21  Eric Botcazou  <ebotcazou@adacore.com>
963         * config/sparc/sparc-modes.def (CCV): New.
964         (CCXV): Likewise.
965         * config/sparc/predicates.md (v_comparison_operator): New.
966         (icc_comparison_operator): Add support for CCV/CCXV.
967         (xcc_comparison_operator): Likewise.
968         * config/sparc/sparc.c (output_cbranch): Likewise.
969         (sparc_print_operand): Likewise.
970         * config/sparc/sparc.md (UNSPEC_{ADD,SUB,NEG}V): New constants.
971         (uaddvdi4): New expander.
972         (addvdi4): Likewise.
973         (uaddvdi4_sp32): New instruction.
974         (addvdi4_sp32): Likewise.
975         (uaddvsi4): New expander.
976         (addvsi4): Likewise.
977         (cmp_ccc_plus_sltu_set): New instruction.
978         (cmp_ccv_plus): Likewise.
979         (cmp_ccxv_plus): Likewise.
980         (cmp_ccv_plus_set): Likewise.
981         (cmp_ccxv_plus_set): Likewise.
982         (cmp_ccv_plus_sltu_set): Likewise.
983         (uaddvdi4): New expander.
984         (subvdi4): Likewise.
985         (usubdi4_sp32): New instruction.
986         (subvdi4_sp32): Likewise.
987         (usubvsi4): New expander.
988         (subvsi4): Likewise.
989         (cmpsi_minus_sltu_set): New instruction.
990         (cmp_ccv_minus): Likewise.
991         (cmp_ccxv_minus): Likewise.
992         (cmp_ccv_minus_set): Likewise.
993         (cmp_ccxv_minus_set): Likewise.
994         (cmp_ccv_minus_sltu_set): Likewise.
995         (unegvdi3): New expander.
996         (negvdi3): Likewise.
997         (unegdi3_sp32): New instruction.
998         (negvdi3_sp32): Likewise.
999         (unegvsi3): New expander.
1000         (negvsi3): Likewise.
1001         (cmp_ccc_neg_sltu_set): New instruction.
1002         (cmp_ccv_neg): Likewise.
1003         (cmp_ccxv_neg): Likewise.
1004         (cmp_ccv_neg_set): Likewise.
1005         (cmp_ccxv_neg_set): Likewise.
1006         (cmp_ccv_neg_sltu_set): Likewise.
1008         * tree-ssa-loop-split.c: Remove trailing spaces.
1009         * match.pd: Likewise.
1011 2016-10-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1013         PR rtl-optimization/78038
1014         * ree.c (get_defs): Return NULL if a defining insn for REG cannot
1015         be deduced to set REG through the RTL structure.
1016         (make_defs_and_copies_lists): Return false on a failing get_defs call.
1018 2016-10-21  Richard Biener  <rguenther@suse.de>
1020         PR tree-optimization/78051
1021         * tree-vrp.c (evrp_dom_walker::before_dom_children): Update stmt
1022         and mark replaced if folding did something.
1024 2016-10-21  David Edelsohn  <dje.gcc@gmail.com>
1026         * config/rs6000/rs6000.c (rs6000_assemble_visibility): Swap "internal"
1027         and "protected" in visibility types.
1028         (rs6000_xcoff_declare_function_name): Fix formatting.
1029         (rs6000_xcoff_declare_object_name): Fix formatting.
1031 2016-10-21  Uros Bizjak  <ubizjak@gmail.com>
1033         * config/i386/i386.c (ix86_fold_builtin): Handle IX86_BUILTIN_INFQ
1034         and IX86_BUILTIN_HUGE_VALQ here ...
1035         (ix86_expand_builtin): ... not here.
1037 2016-10-20  Jakub Jelinek  <jakub@redhat.com>
1039         * doc/gty.texi (for_user): Use @item next to @findex.
1041 2016-10-20  Uros Bizjak  <ubizjak@gmail.com>
1043         PR target/78037
1044         * config/i386/bmiintrin.h (__tzcnt_u16): Call __builtin_ia32_tzcnt_u16.
1045         (__tzcnt_u32, _tzcnt_u32): Call __builtin_ia32_tzcnt_u32.
1046         (__tzcnt_u64, _tzcnt_u64): Call __builtin_ia32_tzcnt_u64.
1047         * config/i386/lzcntintrin.h (__lzcnt_u16): Call
1048         __builtin_ia32_lzcnt_u16.
1049         (__lzcnt_u32, _lzcnt_u32): Call __builtin_ia32_lzcnt_u32.
1050         (__lzcnt_u64, _lzcnt_u64): Call __builtin_ia32_lzcnt_u64.
1051         * config/i386/i386.md (UNSPEC_LZCNT, UNSPEC_TZCNT): New unspecs.
1052         (ctz<mode>2, *ctz<mode>2): Use SWI48 mode iterator.
1053         (bmi_tzcnt_<mode>): New expander.
1054         (*bmi_tzcnt_<mode>_falsedep_1): New define_insn_and_split pattern.
1055         (*bmi_tzcnt_<mode>_falsedep, *bmi_tzcnt_<mode>): New insn patterns.
1056         (clz<mode>2_lzcnt, *clz<mode>2_lzcnt): Use SWI48 mode iterator.
1057         (lzcnt_<mode>): New expander.
1058         (*lzcnt_<mode>_falsedep_1): New define_insn_and_split pattern.
1059         (*lzcnt_<mode>_falsedep, *lzcnt_<mode>): New insn patterns.
1060         * config/i386/i386-builtin-types.def (UINT_FTYPE_UINT): New.
1061         (UINT64_FTYPE_UINT64): New.
1062         * config/i386/i386-builtin.def (__builtin_clzs): Remove description.
1063         (__builtin_ia32_lzcnt_u16): New description.
1064         (__builtin_ia32_lzcnt_u32): Ditto.
1065         (__builtin_ia32_lzcnt_u64): Ditto.
1066         (__builtin_ctzs): Remove description.
1067         (__builtin_ia32_tzcnt_u16): New description.
1068         (__builtin_ia32_tzcnt_u32): Ditto.
1069         (__builtin_ia32_tzcnt_u64): Ditto.
1070         * config/i386/i386.c (ix86_expand_args_builtin): Handle
1071         UINT_FTYPE_UINT and UINT64_FTYPE_UINT64.
1073 2016-10-20  Martin Liska  <mliska@suse.cz>
1075         PR lto/78049
1076         * lto-streamer-in.c (fixup_call_stmt_edges_1): Replace value
1077         comparison with STMT_UID_NOT_IN_RANGE.
1078         (fixup_call_stmt_edges): Do not fixup edges of a thunk in
1079         LTRANS.
1081 2016-10-20  Eric Botcazou  <ebotcazou@adacore.com>
1083         * compare-elim.c (conforming_compare): Accept UNSPECs.
1084         (find_comparison_dom_walker::before_dom_children): Deal with
1085         instructions both using and killing the flags register.
1086         (equivalent_reg_at_start): New function extracted from...
1087         (try_eliminate_compare): ...here.  Use it and add support for
1088         registers and UNSPECs as second operand of the compare.
1089         * config/visium/visium-modes.def (CCV): New.
1090         * config/visium/predicates.md (visium_v_comparison_operator): New.
1091         (visium_branch_operator): Deal with CCV mode.
1092         * config/visium/visium.c (visium_select_cc_mode): Likewise.
1093         (output_cbranch): Likewise.
1094         * config/visium/visium.md (UNSPEC_{ADD,SUB,NEG}V): New constants.
1095         (uaddv<mode>4): New expander.
1096         (addv<mode>4): Likewise.
1097         (add<mode>3_insn_set_carry): New instruction.
1098         (add<mode>3_insn_set_overflow): Likewise.
1099         (addsi3_insn_set_overflow): Likewise.
1100         (usubv<mode>4): New expander.
1101         (subv<mode>4): Likewise.
1102         (sub<mode>3_insn_set_carry): New instruction.
1103         (sub<mode>3_insn_set_overflow): Likewise.
1104         (subsi3_insn_set_overflow): Likewise.
1105         (unegv<mode>3): New expander.
1106         (negv<mode>3): Likewise.
1107         (neg<mode>2_insn_set_overflow): New instruction.
1108         (addv_tst<mode>): Likewise.
1109         (subv_tst<mode>): Likewise.
1110         (negv_tst<mode>): Likewise.
1111         (cbranch<mode>4_addv_insn): New splitter and instruction.
1112         (cbranch<mode>4_subv_insn): Likewise.
1113         (cbranch<mode>4_negv_insn): Likewise.
1115 2016-10-20  Richard Biener  <rguenther@suse.de>
1117         * tree-ssa-alias.c (ptrs_compare_unequal): Remove code duplication.
1118         Handle decls possibly not bound.
1119         * tree-ssa-structalias.c (get_constraint_for_ssa_var): Add
1120         nothing_id for decls that might not be bound if we are interested
1121         for the address.
1122         (get_constraint_for_component_ref): Deal with that.
1124 2016-10-20  Michael Matz  <matz@suse.de>
1126         Loop splitting.
1127         * common.opt (-fsplit-loops): New flag.
1128         * passes.def (pass_loop_split): Add.
1129         * opts.c (default_options_table): Add OPT_fsplit_loops entry at -O3.
1130         (enable_fdo_optimizations): Add loop splitting.
1131         * timevar.def (TV_LOOP_SPLIT): Add.
1132         * tree-pass.h (make_pass_loop_split): Declare.
1133         * tree-ssa-loop-manip.h (rewrite_into_loop_closed_ssa_1): Declare.
1134         * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h,
1135         * tree-ssa-loop-split.c: New file.
1136         * Makefile.in (OBJS): Add tree-ssa-loop-split.o.
1137         * doc/invoke.texi (fsplit-loops): Document.
1138         * doc/passes.texi (Loop optimization): Add paragraph about loop
1139         splitting.
1141 2016-10-20  Richard Biener  <rguenther@suse.de>
1143         * cgraphunit.c (analyze_functions): Set node->definition to
1144         false to signal symbol removal to debug_hooks->late_global_decl.
1145         * ipa.c (symbol_table::remove_unreachable_nodes): When not in
1146         WPA signal symbol removal to the debuginfo machinery.
1147         * dwarf2out.c (dwarf2out_late_global_decl): Instead of
1148         using early_finised to guard the we're called for symbol
1149         removal case look at the symtabs definition flag.
1150         (gen_variable_die): Remove redundant check.
1152 2016-10-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1154         * config/s390/s390.md ("prefetch"): Add fallthrough comment.
1156 2016-10-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
1158         PR tree-optimization/53979
1159         * match.pd ((a ^ b) | a -> a | b): New pattern.
1161 2016-10-19  John David Anglin  <danglin@gcc.gnu.org>
1163         * config/pa/pa64-hpux.h (PA_INIT_FRAME_DUMMY_ASM_OP): Move to
1164         config/pa/pa64-hpux-lib.h.
1165         (PA_CRTBEGIN_HACK): Likewise.
1166         (DTOR_LIST_BEGIN): Likewise.
1168 2016-10-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1170         * config/arm/arm.c (arm_emit_coreregs_64bit_shift): Clear the result
1171         register only if "in" and "out" are different registers.
1173 2016-10-19  Eric Botcazou  <ebotcazou@adacore.com>
1175         * omp-low.c (pass_oacc_device_lower::gate): New method.
1176         (execute): Always call execute_oacc_device_lower.
1178 2016-10-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1180         PR tree-optimization/77916
1181         PR tree-optimization/77937
1182         * gimple-ssa-strength-reduction.c (analyze_increments): Remove
1183         stopgap fix.
1184         (insert_initializers): Requirement of initializer for -1 should be
1185         based on pointer-typedness of the candidate basis.
1187 2016-10-19  Bin Cheng  <bin.cheng@arm.com>
1189         PR tree-optimization/78005
1190         * tree-vect-loop-manip.c (vect_gen_prolog_loop_niters): Compute
1191         upper (included) bound for niters of prolog loop.
1192         (vect_gen_scalar_loop_niters): Change parameter VF to VFM1.
1193         Compute niters of scalar loop above which vectorized loop is
1194         preferred, as well as the upper (included) bound for the niters.
1195         (vect_do_peeling): Record niter bound for loops accordingly.
1197 2016-10-19  Thomas Schwinge  <thomas@codesourcery.com>
1199         PR lto/77458
1200         * tree-core.h (enum tree_index): Put the complex types after their
1201         component types.
1202         * tree-streamer.c (verify_common_node_recorded): New function.
1203         (preload_common_nodes) <TREE_CODE (node) == COMPLEX_TYPE>: Use it.
1205 2016-10-19  Martin Liska  <mliska@suse.cz>
1207         * cgraph.h (cgraph_edge::binds_to_current_def_p):
1208         Replace NULL with false as a return value.
1210 2016-10-19  Thomas Schwinge  <thomas@codesourcery.com>
1212         PR tree-optimization/78024
1213         * omp-low.c (oacc_loop_discovery): Call clear_bb_flags before, and
1214         don't clear BB_VISITED after processing.
1216 2016-10-19  Richard Biener  <rguenther@suse.de>
1218         * domwalk.c (dom_walker::walk): Use RPO order.
1220 2016-10-19  Richard Biener  <rguenther@suse.de>
1222         * tree-vrp.c (evrp_dom_walker::evrp_dom_walker): Initialize
1223         stmts_to_remove.
1224         (evrp_dom_walker::~evrp_dom_walker): Free it.
1225         (evrp_dom_walker::stmts_to_remove): Add.
1226         (evrp_dom_walker::before_dom_children): Mark PHIs and stmts
1227         whose output we fully propagate for removal.  Propagate
1228         into BB destination PHI arguments.
1229         (execute_early_vrp): Remove queued stmts.  Dump value ranges
1230         before stmt removal.
1232 2016-10-18  Aldy Hernandez  <aldyh@redhat.com>
1234         * Makefile.in (OBJS): Add gimple-ssa-warn-alloca.o.
1235         * passes.def: Add two instances of pass_walloca.
1236         * tree-pass.h (make_pass_walloca): New.
1237         * gimple-ssa-warn-alloca.c: New file.
1238         * doc/invoke.texi: Document -Walloca, -Walloca-larger-than=, and
1239         -Wvla-larger-than= options.
1241 2016-10-18  Thomas Schwinge  <thomas@codesourcery.com>
1243         * cfg.c (clear_bb_flags): Use FOR_ALL_BB_FN.
1244         * config/nvptx/nvptx.c (nvptx_find_sese): Likewise.
1246 2016-10-18  Kelvin Nilsen  <kelvin@gcc.gnu.org>
1248         * config/rs6000/altivec.h (vec_xl_len): New macro.
1249         (vec_xst_len): New macro.
1250         (vec_cmpnez): New macro.
1251         (vec_cntlz_lsbb): New macro.
1252         (vec_cnttz_lsbb): New macro.
1253         (vec_xlx): New macro.
1254         (vec_xrx): New macro.
1255         (vec_all_nez): New C++ predicate template.
1256         (vec_any_eqz): New C++ predicate template.
1257         (vec_all_ne): Revised C++ predicate template under _ARCH_PWR9
1258         conditional compilation.
1259         (vec_any_eq): Revised C++ predicate template under _ARCH_PWR9
1260         conditional compilation.
1261         (vec_all_nez): New macro.
1262         (vec_any_eqz): New macro.
1263         (vec_all_ne): Revised macro under _ARCH_PWR9 conditional
1264         compilation.
1265         (vec_any_eq): Revised macro under _ARCH_PWR9 conditional
1266         compilation.
1267         * config/rs6000/vector.md (VI): Moved this mode iterator
1268         definition from altivec.md to vector.md.
1269         (UNSPEC_NEZ_P): New value.
1270         (vector_ne_<mode>_p): New expansion for implementation of
1271         vec_all_ne and vec_any_eq built-in functions.
1272         (vector_nez_<mode>_p): New expansion for implementation of
1273         vec_all_nez and vec_any_eqz built-in functions.
1274         (vector_ne_v2di_p): New expansion for implementation of vec_all_ne
1275         and vec_any_eq built-in function.
1276         (cr6_test_for_zero): New commentary to explain this expansion.
1277         (cr6_test_for_zero_reverse): New commentary to explain this expansion.
1278         (cr6_test_for_lt): New commentary to explain this expansion.
1279         (cr6_test_for_lt_reverse): New commentary to explain this
1280         expansion.
1281         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1282         overloaded function prototypes for vec_all_ne, vec_all_nez,
1283         vec_any_eq, vec_any_eqz, vec_cmpnez, vec_cntlz_lsbb,
1284         vec_cnttz_lsbb, vec_xl_len, vec_xst_len, vec_xlx, and vec_xrx
1285         built-in functions.
1286         (altivec_resolve_overloaded_builtin): Modify the handling of
1287         ALTIVEC_BUILTIN_VEC_CMPNE to use the Power9 instructions when
1288         the compiler is configured to support TARGET_P9_VECTOR.
1289         * config/rs6000/rs6000-builtin.def (BU_ALTIVEC_P): Add commentary
1290         to explain the special processing that is given to predicate
1291         built-ins introduced using this macro.
1292         (BU_ALTIVEC_OVERLOAD_P): Add commentary to alert maintainers to
1293         the special processing given to predicate built-ins introduced
1294         using this macro.
1295         (BU_VSX_P): Likewise.
1296         (BU_P8V_AV_P): Likewise.
1297         (BU_P9V_AV_P): Likewise.
1298         (BU_P9V_AV_X): New macro.
1299         (BU_P9V_64BIT_AV_X): New macro.
1300         (BU_P9V_VSX_3): New macro.
1301         (BU_P9V_OVERLOAD_P): New macro.
1302         (LXVL): New BU_P9V_64BIT_VSX_2.
1303         (VEXTUBLX): New BU_P9V_AV_2.
1304         (VEXTUBRX): Likewise.
1305         (VEXTUHLX): Likewise.
1306         (VEXTUHRX): Likewise.
1307         (VEXTUWLX): Likewise.
1308         (VEXTUWRX): Likewise.
1309         (STXVL): New BU_P9V_64BIT_AV_X.
1310         (VCLZLSBB): New BU_P9V_AV_1.
1311         (VCTZLSBB): Likewise.
1312         (CMPNEB): New BU_P9V_AV_2.
1313         (CMPNEH): Likewise.
1314         (CMPNEW): Likewise.
1315         (CMPNEF): Likewise.
1316         (CMPNED): Likewise.
1317         (VCMPNEB_P): New BU_P9V_AV_P.
1318         (VCMPNEH_P): Likewise.
1319         (VCMPNEW_P): Likewise.
1320         (VCMPNED_P): Likewise.
1321         (VCMPNEFP_P): Likewise.
1322         (VCMPNEDP_P): Likewise.
1323         (CMPNEZB): New BU_P9V_AV_2.
1324         (CMPNEZH): Likewise.
1325         (CMPNEZW): Likewise.
1326         (VCMPNEZB_P): New BU_P9V_AV_P.
1327         (VCMPNEZH_P): Likewise.
1328         (VCMPNEZW_P): Likewise.
1329         (LXVL): New BU_P9V_OVERLOAD_2.
1330         (STXVL): New BU_P9V_OVERLOAD_3.
1331         (VEXTULX): New BU_P9V_OVERLOAD_2.
1332         (VEXTURX): Likewise.
1333         (CMPNEZ): Likewise.
1334         (VCMPNEZ_P): New BU_P9V_OVERLOAD_P.
1335         (VCMPNE_P): Likewise.
1336         (VCLZLSBB): New BU_P9V_OVERLOAD_1.
1337         (VCTZLSBB): Likewise.
1338         * config/rs6000/rs6000.c (altivec_expand_predicate_builtin): Add
1339         comment to explain mode used for scratch register.
1340         (altivec_expand_stxvl_builtin): New function.
1341         (altivec_expand_builtin): Add case for new constant P9V_BUILTIN_STXVL.
1342         (altivec_init_builtins): Add initialized variable
1343         void_ftype_v16qi_pvoid_long and use this type to define the
1344         built-in function __builtin_altivec_stxvl.
1345         * config/rs6000/vsx.md (UNSPEC_LXVL): New value.
1346         (UNSPEC_STXVL): New value.
1347         (UNSPEC_VCLZLSBB): New value.
1348         (UNSPEC_VCTZLSBB): New value.
1349         (UNSPEC_VEXTUBLX): New value.
1350         (UNSPEC_VEXTUHLX): New value.
1351         (UNSPEC_VEXTUWLX): New value.
1352         (UNSPEC_VEXTUBRX): New value.
1353         (UNSPEC_VEXTUHRX): New value.
1354         (UNSPEC_VEXTUWRX): New value.
1355         (UNSPEC_VCMPNEB): New value.
1356         (UNSPEC_VCMPNEZB): New value.
1357         (UNSPEC_VCMPNEH): New value.
1358         (UNSPEC_VCMPNEZH): New value.
1359         (UNSPEC_VCMPNEW): New value.
1360         (UNSPEC_VCMPNEZW): New value.
1361         (*vsx_ne_<mode>_p): New insn for vector test all not equal with
1362         vector of integer modes.
1363         (*vsx_ne_<mode>_p): New insn for vector test all not equal with
1364         vector of float or double modes.
1365         (*vector_nez_<mode>_p): New insn for vector test all not equal or
1366         zero.
1367         (lxvl): New expand for load VSX vector with length.
1368         (*lxvl): New insn for load VSX vector with length.
1369         (stxvl): New expand for store VSX vector with length.
1370         (*stxvl): New insn for store VSX vector with length.
1371         (vcmpneb): New insn for vector of byte compare not equal.
1372         (vcmpnezb): New insn for vector of byte compare not equal or zero.
1373         (vcmpneh): New insn for vector of half word compare not equal.
1374         (vcmpnezh): New insn for vector of half word compare not equal or
1375         zero.
1376         (vcmpnew): New insn for vector of word compare not equal.
1377         (vcmpne<VSs>): New insn for vector of float or double compare not
1378         equal.
1379         (vcmpnezw): New insn for vector of word compare not equal or zero.
1380         (vclzlsbb): New insn for vector count leading zero
1381         least-significant bits byte.
1382         (vctzlsbb): New insn for vector count trailing zero least
1383         signficant bits byte.
1384         (vextublx): New insn for vector extract unsigned byte left
1385         indexed.
1386         (vextubrx): New insn for vector extract unsigned byte right
1387         indexed.
1388         (vextuhlx): New insn for vector extract unsigned half word left
1389         indexed.
1390         (vextuhrx): New insn for vector extract unsigned half word right
1391         indexed.
1392         (vextuwlx): New insn for vector extract unsigned word left
1393         indexed.
1394         (vextuwrx): New insn for vector extract unsigned word right
1395         indexed.
1396         * config/rs6000/rs6000.h (RS6000_BTC_CONST): Enhance comment to
1397         clarify intent of this constant.
1398         * config/rs6000/altivec.md (VI): Move this mode iterator to vsx.md.
1399         * doc/extend.texi (PowerPC Altivec Built-in Functions): Add
1400         documentation for vec_all_nez, vec_any_eqz, vec_cmpnez,
1401         vec_cntlz_lsbb, vec_cnttz_lsbb, vec_xl_len, vec_xst_len, vec_xlx,
1402         and vec_xrx functions.
1404 2016-10-18  Andrew Pinski  <apinski@cavium.com>
1406         PR tree-opt/65950
1407         * predict.c (is_exit_with_zero_arg): New function.
1408         (tree_bb_level_predictions): Don't consider paths leading to exit(0)
1409         as nottaken.
1411 2016-10-18  Uros Bizjak  <ubizjak@gmail.com>
1413         PR target/77991
1414         * config/i386/i386.c (legitimize_tls_address)
1415         <case TLS_MODEL_INITIAL_EXEC>: For TARGET_64BIT || TARGET_ANY_GNU_TLS
1416         convert dest to Pmode if different than Pmode.
1418 2016-10-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1420         PR tree-optimization/77916
1421         * gimple-ssa-strength-reduction.c (analyze_increments): Reinstate
1422         stopgap fix, as pointers with -1 increment are still broken.
1424 2016-10-18  David Edelsohn  <dje.gcc@gmail.com>
1426         * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Move storage
1427         mapping class decoration from here...
1428         (rs6000_xcoff_encode_section): ...to here.
1430         (rs6000_savres_strategy) [AIX,ELFv2]: Inline FPR save and restore
1431         if shrink-wrapping and optimizing for speed.
1433 2016-10-18  Richard Biener  <rguenther@suse.de>
1435         * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
1436         not visited but non-executable predecessors.  Return taken edge.
1437         Simplify conditions and refactor propagation vs. folding step.
1439 2016-10-18  Segher Boessenkool  <segher@kernel.crashing.org>
1441         * config/rs6000/rs6000.c (rs6000_savres_strategy): Do not select
1442         {SAVE,REST}_MULTIPLE if shrink-wrapping separate components.
1443         (rs6000_get_separate_components): Assert we do not have those
1444         strategies selected.
1446 2016-10-18  Richard Biener  <rguenther@suse.de>
1448         * tree-ssa-propagate.h (substitute_and_fold): Adjust prototype.
1449         * tree-ssa-propagate.c (ssa_prop_fini): Remove final BB_VISITED
1450         clearing.
1451         (substitute_and_fold_dom_walker): Adjust constructor.
1452         (substitute_and_fold_dom_walker::before_dom_children): Remove
1453         do_dce flag and handling (always true).
1454         (substitute_and_fold): Likewise.
1455         * tree-vrp.c (vrp_finalize): Adjust.
1456         (execute_early_vrp): Remove final BB_VISITED clearing.
1457         * tree-ssa-ccp.c (ccp_finalize): Adjust.
1458         * tree-ssa-copy.c (fini_copy_prop): Likewise.
1459         * ira.c (ira): Call clear_bb_flags.
1461 2016-10-18  Richard Biener  <rguenther@suse.de>
1463         * genmatch.c (dt_operand::gen_gimple_expr): Use get_name to
1464         get at the operand to look at with TREE_OPERAND for generic
1465         sub-nodes.
1467 2016-10-18  David Malcolm  <dmalcolm@redhat.com>
1469         * genattrtab.c (attr_string): Use rtx_reader_ptr for call to
1470         copy_md_ptr_loc.
1471         (gen_attr): Use rtx_reader_ptr for lookup_enum_type call.
1472         (write_test_expr): Use rtx_reader_ptr for calls to
1473         fprint_c_condition.
1474         (write_attr_value): Likewise.
1475         * genconditions.c (write_one_condition): Use rtx_reader_ptr for
1476         call to print_md_ptr_loc.
1477         (write_one_condition): Likewise for calls to print_c_condition.
1478         * genconstants.c: Include "statistics.h" and "vec.h".
1479         (main): Update for conversion to member functions.
1480         * genemit.c (emit_c_code): Use rtx_reader_ptr for
1481         call to print_md_ptr_loc.
1482         * genenums.c: Include "statistics.h" and "vec.h".
1483         (main): Update for conversion of traverse_enum_types to a method.
1484         * genmddeps.c: Include "statistics.h" and "vec.h".
1485         * genoutput.c (process_template): Use rtx_reader_ptr for call to
1486         print_md_ptr_loc.
1487         * genpreds.c (write_predicate_subfunction): Likewise.
1488         (write_predicate_expr): Likewise for calls to print_c_condition.
1489         * genrecog.c (print_test): Likewise.
1490         * gensupport.c (process_rtx): Likewise for calls to
1491         copy_md_ptr_loc and join_c_conditions.
1492         (alter_test_for_insn): Likewise for call to join_c_conditions.
1493         (process_substs_on_one_elem): Likewise.
1494         (gen_mnemonic_setattr): Update for move of string_obstack to a
1495         field of rtx_reader.
1496         (mnemonic_htab_callback): Likewise.  Fix formatting.
1497         (gen_mnemonic_attr): Likewise.
1498         * gentarget-def.c (def_target_insn): Use rtx_reader_ptr for calls
1499         to print_c_condition.
1500         * read-md.c: Include "statistics.h" and "vec.h".
1501         (string_obstack): Convert this global to field "m_string_obstack"
1502         of class rtx_reader.
1503         (ptr_locs): Likewise, as "m_ptr_locs".
1504         (ptr_loc_obstack): Likewise, as "m_ptr_loc_obstack".
1505         (joined_conditions): Likewise, as "m_joined_conditions".
1506         (joined_conditions_obstack): Likewise, as "m_joined_conditions_obstack".
1507         (md_constants): Likewise, as "m_md_constants".
1508         (enum_types): Likewise, as "m_enum_types".
1509         (set_md_ptr_loc): Convert to...
1510         (rtx_reader::set_md_ptr_loc): ...member function.
1511         (get_md_ptr_loc): Convert to...
1512         (rtx_reader::get_md_ptr_loc): ...member function.
1513         (copy_md_ptr_loc): Convert to...
1514         (rtx_reader::copy_md_ptr_loc): ...member function.
1515         (fprint_md_ptr_loc): Convert to...
1516         (rtx_reader::fprint_md_ptr_loc): ...member function.
1517         (print_md_ptr_loc): Convert to...
1518         (rtx_reader::print_md_ptr_loc): ...member function.
1519         (join_c_conditions): Convert to...
1520         (rtx_reader::join_c_conditions): ...member function.
1521         (fprint_c_condition): Convert to...
1522         (rtx_reader::fprint_c_condition): ...member function.
1523         (print_c_condition): Convert to...
1524         (rtx_reader::print_c_condition): ...member function.
1525         (read_name): Convert to...
1526         (rtx_reader::read_name): ...member function.
1527         (read_escape): Convert to...
1528         (rtx_reader::read_escape): ...member function.
1529         (read_quoted_string): Convert to...
1530         (rtx_reader::read_quoted_string): ...member function.
1531         (read_braced_string): Convert to...
1532         (rtx_reader::read_braced_string): ...member function.
1533         (read_string): Convert to...
1534         (rtx_reader::read_string): ...member function.
1535         (read_skip_construct): Convert to...
1536         (rtx_reader::read_skip_construct): ...member function.
1537         (handle_constants): Convert to...
1538         (rtx_reader::handle_constants): ...member function.
1539         (traverse_md_constants): Convert to...
1540         (rtx_reader::traverse_md_constants): ...member function.
1541         (handle_enum): Convert to...
1542         (rtx_reader::handle_enum): ...member function.
1543         (lookup_enum_type): Convert to...
1544         (rtx_reader::lookup_enum_type): ...member function.
1545         (traverse_enum_types): Convert to...
1546         (rtx_reader::traverse_enum_types): ...member function.
1547         (rtx_reader::rtx_reader): Move initializations
1548         of various former global data from rtx_reader::read_md_files to
1549         here, as fields, along with the call to unlock_std_streams.
1550         (rtx_reader::~rtx_reader): Clean up m_base_dir, and clean up
1551         the new fields.
1552         (rtx_reader::read_md_files): Move initializations of various
1553         global data from here to the ctor.
1554         * read-md.h (read_name): Convert to...
1555         (rtx_reader::read_name): ...member function.
1556         (rtx_reader::read_escape): New method decl.
1557         (read_quoted_string): Convert to...
1558         (rtx_reader::read_quoted_string): ...member function.
1559         (rtx_reader::read_braced_string): New method decl.
1560         (read_string): Convert to...
1561         (rtx_reader::read_string): ...member function.
1562         (rtx_reader::read_skip_construct): New method decl.
1563         (rtx_reader::set_md_ptr_loc): New method decl.
1564         (rtx_reader::get_md_ptr_loc): New method decl.
1565         (copy_md_ptr_loc): Convert to...
1566         (rtx_reader::copy_md_ptr_loc): ...member function.
1567         (fprint_md_ptr_loc): Convert to...
1568         (rtx_reader::fprint_md_ptr_loc): ...member function.
1569         (print_md_ptr_loc): Convert to...
1570         (rtx_reader::print_md_ptr_loc): ...member function.
1571         (rtx_reader::lookup_enum_type): New method decl.
1572         (rtx_reader::traverse_enum_types): New method decl.
1573         (rtx_reader::handle_constants): New method decl.
1574         (traverse_md_constants): Convert to...
1575         (rtx_reader::traverse_md_constants): ...member function.
1576         (rtx_reader::handle_enum): New method decl.
1577         (rtx_reader::join_c_conditions): New method decl.
1578         (fprint_c_condition): Convert to...
1579         (rtx_reader::fprint_c_condition): ...member function.
1580         (print_c_condition): Convert to...
1581         (rtx_reader::print_c_condition): ...member function.
1582         (rtx_reader::apply_iterator_to_string): New method decl.
1583         (rtx_reader::copy_rtx_for_iterators): New method decl.
1584         (rtx_reader::read_conditions): New method decl.
1585         (rtx_reader::record_potential_iterator_use): New method decl.
1586         (rtx_reader::read_mapping): New method decl.
1587         (rtx_reader::read_rtx): New method decl.
1588         (rtx_reader::read_rtx_code): New method decl.
1589         (rtx_reader::read_rtx_operand): New method decl.
1590         (rtx_reader::read_nested_rtx): New method decl.
1591         (rtx_reader::read_rtx_variadic): New method decl.
1592         (rtx_reader::get_string_obstack): New method.
1593         (rtx_reader::get_md_constants): New method.
1594         (string_obstack): Convert global variable decl to...
1595         (rtx_reader::m_string_obstack): ...this new field.
1596         (rtx_reader::m_ptr_locs): New field.
1597         (rtx_reader::m_ptr_loc_obstack): New field.
1598         (rtx_reader::m_joined_conditions): New field.
1599         (rtx_reader::m_joined_conditions_obstack): New field.
1600         (rtx_reader::m_md_constants): New field.
1601         (rtx_reader::m_enum_types): New field.
1602         * read-rtl.c (apply_iterator_to_string): Convert to...
1603         (rtx_reader::apply_iterator_to_string): ...member function.
1604         (copy_rtx_for_iterators): Convert to...
1605         (rtx_reader::copy_rtx_for_iterators): ...member function.
1606         (add_condition_to_string): Use rtx_reader_ptr for
1607         calls join_c_conditions.
1608         (apply_iterators): Use rtx_reader_ptr for calls to
1609         join_c_conditions and copy_rtx_for_iterators.
1610         (read_conditions): Convert to...
1611         (rtx_reader::read_conditions): ...member function.
1612         (record_potential_iterator_use): Convert to...
1613         (rtx_reader::record_potential_iterator_use): ...member function.
1614         (read_mapping): Convert to...
1615         (rtx_reader::read_mapping): ...member function.
1616         (read_subst_mapping): Use rtx_reader_ptr for read_string call.
1617         (read_rtx): Convert to...
1618         (rtx_reader::read_rtx): ...member function.
1619         (read_rtx_code): Convert to...
1620         (rtx_reader::read_rtx_code): ...member function.
1621         (read_rtx_operand): Convert to...
1622         (rtx_reader::read_rtx_operand): ...member function.  Update for move
1623         of string_obstack to a field.
1624         (read_nested_rtx): Convert to..
1625         (rtx_reader::read_nested_rtx): ...member function.
1626         (read_rtx_variadic): Convert to..
1627         (rtx_reader::read_rtx_variadic): ...member function.
1629 2016-10-18  Kugan Vivekanandarajah  <kuganv@linaro.org>
1631         * tree-vrp.c (get_value_range): Check get_ptr_nonnull.
1633 2016-10-18  Kugan Vivekanandarajah  <kuganv@linaro.org>
1635         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Set value range
1636         for pointer type too.
1637         (ipcp_update_vr): set_ptr_nonnull for pointer.
1639 2016-10-18  Kugan Vivekanandarajah  <kuganv@linaro.org>
1641         * tree-ssa-alias.h (pt_solution_singleton_or_null_p): Renamed from
1642         pt_solution_singleton_p.
1643         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use renamed
1644         pt_solution_singleton_or_null_p from pt_solution_singleton_p.
1645         * tree-ssa-structalias.c (find_what_p_points_to): Preserve
1646         pointer nonnull computed by VRP.
1647         Also Conservatively set pt.null to 1.
1648         (pt_solution_reset): Conservatively set pt.null to 1.
1649         (pt_solution_singleton_or_null_p): Renamed from
1650         pt_solution_singleton_p.
1651         * tree-ssanames.h (set_ptr_nonnull): Declare.
1652         (get_ptr_nonnull): Likewise.
1653         * tree-ssanames.c (set_ptr_nonnull): New.
1654         (get_ptr_nonnull): Likewise.
1655         * tree-vrp.c (vrp_finalize): Set ptr that are nonnull.
1656         (evrp_dom_walker::before_dom_children): Likewise.
1658 2016-10-17  Eric Botcazou  <ebotcazou@adacore.com>
1660         * config/i386/i386.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
1661         * config/i386/i386.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
1662         * config/ia64/ia64.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
1663         * config/ia64/ia64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
1664         * config/rs6000/rs6000.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to.
1665         * config/rs6000/rs6000.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ...here.
1666         (rs6000_option_override_internal): Clear it if ABI_AIX.
1667         * config/sparc/sparc.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Move to...
1668         * config/sparc/sparc.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): ... here.
1670 2016-10-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1672         * gimple-ssa-strength-reduction.c (record_increment): Remove
1673         garbage comment.
1675 2016-10-17  Eric Botcazou  <ebotcazou@adacore.com>
1677         * expmed.c (expand_shift_1): Add MAY_FAIL parameter and do not assert
1678         that the result is non-zero if it is true.
1679         (maybe_expand_shift): New wrapper around expand_shift_1.
1680         (emit_store_flag): Call maybe_expand_shift in lieu of expand_shift.
1682 2016-10-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1684         PR tree-optimization/77916
1685         * gimple-ssa-strength-reduction.c (create_add_on_incoming_edge):
1686         Don't allow a MINUS_EXPR for pointer arithmetic for either known
1687         or unknown strides.
1688         (record_increment): Increments of -1 for unknown strides just use
1689         a multiply initializer like other negative values.
1690         (analyze_increments): Remove stopgap solution for -1 increment
1691         applied to pointer arithmetic.
1693 2016-10-17  Yuri Rumyantsev  <ysrumyan@gmail.com>
1695         * dominance.c (dom_info::dom_info): Add new constructor for region
1696         which is vector of basic blocks.
1697         (dom_init): New method to initialize members common for both
1698         constructors.
1699         (dom_info::dom_info): Invoke dom_init for partial initialization.
1700         (dom_info::get_idom): Add check to corner cases on basic blocks which
1701         are not in region.
1702         (dom_info::calc_dfs_tree): Check M_FAKE_EXIT_EDGE instead of M_REVERSE
1703         to detect unreachable bbs.
1704         (dom_info::calc_idoms): Likewise.
1705         (compute_dom_fast_query_in_region): New function.
1706         (calculate_dominance_info_for_region): Likewise.
1707         (free_dominance_info_for_region): Likewise.
1708         * dominance.h: Add prototypes for introduced region-based functions
1709         tree-if-conv.c: (build_region): New function.
1710         (if_convertible_loop_p_1): Invoke local version of post-dominators
1711         calculation before basic block predication with subsequent freeing
1712         post-dominator info.
1713         (tree_if_conversion): Remove free of post-dominator info
1714         (pass_if_conversion::execute): Delete detection of infinite loops
1715         and fake edges to exit block since post-dominator calculation is
1716         performed per if-converted loop only.
1718 2016-10-17  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1720         PR target/77308
1721         * config/arm/arm.c (arm_emit_coreregs_64bit_shift): Clear the result
1722         register explicitly.
1723         * config/arm/arm.md (ashldi3, ashrdi3, lshrdi3): Don't FAIL if
1724         optimizing for size.
1726 2016-10-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1728         * config/aarch64/aarch64.c: Delete inclusion of
1729         cortex-a57-fma-steering.h.
1730         (aarch64_override_options): Delete call
1731         to aarch64_register_fma_steering.
1732         * config/aarch64/aarch64-protos.h (make_pass_fma_steering): Declare.
1733         * config/aarch64/cortex-a57-fma-steering.h: Delete.
1734         * config/aarch64/aarch64-passes.def: New file.
1735         * config/aarch64/cortex-a57-fma-steering.c
1736         (aarch64_register_fma_steering): Delete definition.
1737         (make_pass_fma_steering): Remove static qualifier.
1738         * config/aarch64/t-aarch64 (PASSES_EXTRA): New directive.
1739         (cortex-a57-fma-steering.o): Remove dependency on
1740         cortex-a57-fma-steering.h.
1742 2016-10-17  Eric Botcazou  <ebotcazou@adacore.com>
1744         * explow.c (validize_mem): Do not modify the argument in-place.
1746 2016-10-17  Thomas Schwinge  <thomas@codesourcery.com>
1748         * tree-streamer.c (record_common_node): Explicitly list expected
1749         tree codes.
1751 2016-10-17  Richard Biener  <rguenther@suse.de>
1753         PR tree-optimization/77988
1754         * tree-vrp.c (remove_range_assertions): Use replace_uses_by.
1756 2016-10-17  Marek Polacek  <polacek@redhat.com>
1758         * Makefile.in (C_COMMON_OBJS): Add c-family/c-attribs.o.
1760 2016-10-17  Richard Biener  <rguenther@suse.de>
1762         * bb-reorder.c (reorder_basic_blocks_simple): Clear BB_VISITED
1763         before using it.
1765 2016-10-17  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
1767         PR tree-optimization/71636
1768         * match.pd (x & ((1 << b) - 1) -> x & ~(~0 << b)): New pattern.
1770 2016-10-17  Richard Biener  <rguenther@suse.de>
1772         * gimplify.c (gimplify_function_tree): Do not move the outer
1773         binds block.
1775 2016-10-17  Jakub Jelinek  <jakub@redhat.com>
1777         * langhooks.h (struct lang_hooks_for_decls): Remove
1778         function_decl_explicit_p, function_decl_deleted_p and
1779         function_decl_defaulted hooks.  Add decl_dwarf_attribute hook.
1780         * langhooks-def.h (lhd_decl_dwarf_attribute): Declare.
1781         (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P,
1782         LANG_HOOKS_FUNCTION_DECL_DELETED_P,
1783         LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Remove.
1784         (LANG_HOOKS_DECL_DWARF_ATTRIBUTE): Define.
1785         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P,
1786         LANG_HOOKS_FUNCTION_DECL_DELETED_P and
1787         LANG_HOOKS_FUNCTION_DECL_DEFAULTED.  Add
1788         LANG_HOOKS_DECL_DWARF_ATTRIBUTE.
1789         * langhooks.c (lhd_decl_dwarf_attribute): New function.
1790         * dwarf2out.c (gen_subprogram_die): Use
1791         lang_hooks.decls.decl_dwarf_attribute instead of
1792         lang_hooks.decls.function_decl_*.
1794 2016-10-16  Eric Botcazou  <ebotcazou@adacore.com>
1796         PR ada/37139
1797         PR ada/67205
1798         * common.opt (-ftrampolines): New option.
1799         * doc/invoke.texi (Code Gen Options): Document it.
1800         * doc/tm.texi.in (Trampolines): Add TARGET_CUSTOM_FUNCTION_DESCRIPTORS.
1801         * doc/tm.texi: Regenerate.
1802         * builtins.def: Add init_descriptor and adjust_descriptor.
1803         * builtins.c (expand_builtin_init_trampoline): Do not issue a warning
1804         on platforms with descriptors.
1805         (expand_builtin_init_descriptor): New function.
1806         (expand_builtin_adjust_descriptor): Likewise.
1807         (expand_builtin) <BUILT_IN_INIT_DESCRIPTOR>: New case.
1808         <BUILT_IN_ADJUST_DESCRIPTOR>: Likewise.
1809         * calls.c (prepare_call_address): Remove SIBCALLP parameter and add
1810         FLAGS parameter.  Deal with indirect calls by descriptor and adjust.
1811         Set STATIC_CHAIN_REG_P on the static chain register, if any.
1812         (call_expr_flags): Set ECF_BY_DESCRIPTOR for calls by descriptor.
1813         (expand_call): Likewise.  Move around call to prepare_call_address
1814         and pass all flags to it.
1815         * cfgexpand.c (expand_call_stmt): Reinstate CALL_EXPR_BY_DESCRIPTOR.
1816         * gimple.h (enum gf_mask): New GF_CALL_BY_DESCRIPTOR value.
1817         (gimple_call_set_by_descriptor): New setter.
1818         (gimple_call_by_descriptor_p): New getter.
1819         * gimple.c (gimple_build_call_from_tree): SetCALL_EXPR_BY_DESCRIPTOR.
1820         (gimple_call_flags): Deal with GF_CALL_BY_DESCRIPTOR.
1821         * langhooks.h (struct lang_hooks): Add custom_function_descriptors.
1822         * langhooks-def.h (LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS): Define.
1823         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS.
1824         * rtl.h (STATIC_CHAIN_REG_P): New macro.
1825         * rtlanal.c (find_first_parameter_load): Skip static chain registers.
1826         * target.def (custom_function_descriptors): New POD hook.
1827         * tree.h (FUNC_ADDR_BY_DESCRIPTOR): New flag on ADDR_EXPR.
1828         (CALL_EXPR_BY_DESCRIPTOR): New flag on CALL_EXPR.
1829         * tree-core.h (ECF_BY_DESCRIPTOR): New mask.
1830         Document FUNC_ADDR_BY_DESCRIPTOR and CALL_EXPR_BY_DESCRIPTOR.
1831         * tree.c (make_node_stat) <tcc_declaration>: Use FUNCTION_ALIGNMENT.
1832         (build_common_builtin_nodes): Initialize init_descriptor and
1833         adjust_descriptor.
1834         * tree-nested.c: Include target.h.
1835         (struct nesting_info): Add 'any_descr_created' field.
1836         (get_descriptor_type): New function.
1837         (lookup_element_for_decl): New function extracted from...
1838         (create_field_for_decl): Likewise.
1839         (lookup_tramp_for_decl): ...here.  Adjust.
1840         (lookup_descr_for_decl): New function.
1841         (convert_tramp_reference_op): Deal with descriptors.
1842         (build_init_call_stmt): New function extracted from...
1843         (finalize_nesting_tree_1): ...here.  Adjust and deal with descriptors.
1844         * defaults.h (FUNCTION_ALIGNMENT): Define.
1845         (TRAMPOLINE_ALIGNMENT): Set to above instead of FUNCTION_BOUNDARY.
1846         * config/i386/i386.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
1847         * config/ia64/ia64.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Likewise.
1848         * config/rs6000/rs6000.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS):Likewise.
1849         * config/sparc/sparc.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Likewise.
1851 2016-10-16  Eric Botcazou  <ebotcazou@adacore.com>
1853         * config/sparc/sparc.c (sparc_expand_vector_init): Only accept literal
1854         constants in CONST_VECTORs.
1856 2016-10-15  Eric Botcazou  <ebotcazou@adacore.com>
1858         * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use a scratch
1859         register as destination of bmask.
1860         (vector_init_bshuffle): Likewise.
1861         * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
1862         (bmaskdi_vis): Enable only in 64-bit mode.
1864 2016-10-15  Segher Boessenkool  <segher@kernel.crashing.org>
1866         * config/rs6000/rs6000.c (rs6000_get_separate_components): Do not
1867         make LR a separately shrink-wrapped component unless savres_strategy
1868         contains all of {SAVE,REST}_INLINE_{GPRS,FPRS,VRS}.  Do not wrap
1869         GPRs unless both {SAVE,REST}_INLINE_GPRS.  Do not disallow all
1870         wrapping when not both {SAVE,REST}_INLINE_GPRS.
1872 2016-10-15  Eric Botcazou  <ebotcazou@adacore.com>
1874         * optabs.c (expand_parity): Fix mode mismatch, add final conversion
1875         and keep looping on failure.
1877 2016-10-14  David Malcolm  <dmalcolm@redhat.com>
1879         * print-rtl-function.c (print_edge): Omit "(flags)" when none are
1880         set.
1881         (print_rtx_function): Update example in comment for...
1882         * print-rtl.c (print_rtx_operand_code_r): In compact mode, print
1883         non-virtual pseudos with a '%' sigil followed by the regno, offset
1884         by (LAST_VIRTUAL_REGISTER + 1), so that the first non-virtual
1885         pseudo is dumped as "%0".
1887 2016-10-14  Jakub Jelinek  <jakub@redhat.com>
1889         PR middle-end/77959
1890         * expr.c (expand_expr_real_1) <case CONST_DECL>: For EXPAND_WRITE
1891         return a MEM.
1893 2016-10-14  Eric Botcazou  <ebotcazou@adacore.com>
1895         * config/sparc/sparc-passes.def: New file.
1896         * config/sparc/t-sparc (PASSES_EXTRA): Add sparc-passes.def.
1897         * config/sparc/sparc-protos.h (make_pass_work_around_errata): New.
1898         * config/sparc/sparc.c (sparc_option_override): Don't register passes.
1900 2016-10-14  Pat Haugen  <pthaugen@us.ibm.com>
1902         * loop-unroll.c (unroll_loop_runtime_iterations): Condition initial
1903         loop peel to loops with exit test at the beginning.
1905 2016-10-14  Pat Haugen  <pthaugen@us.ibm.com>
1907         PR rtl-optimization/68212
1908         * cfgloopmanip.c (duplicate_loop_to_header_edge): Use preheader edge
1909         frequency when computing scale factor for peeled copies.
1910         * loop-unroll.c (unroll_loop_runtime_iterations): Fix freq/count
1911         values for switch/peel blocks/edges.
1913 2016-10-14  Pedro Alves  <palves@redhat.com>
1915         * coretypes.h (OVERRIDE, FINAL): Delete, moved to include/ansidecl.h.
1917 2016-10-14  Catherine Moore  <clm@codesourcery.com>
1919         * gcc/config/mips/mips.c (mips_prepare_pch_save): Initialize
1920         micromips_globals to zero.
1922 2016-10-14  Richard Biener  <rguenther@suse.de>
1924         PR tree-optimization/77979
1925         * tree-vrp.c (compare_name_with_value): Handle released SSA names
1926         in the equivalency sets.
1927         (compare_names): Likewise.
1929 2016-10-14  Martin Liska  <mliska@suse.cz>
1931         * builtins.h(target_char_cst_p): Declare the function.
1932         * builtins.c (fold_builtin_memchr): Remove.
1933         (target_char_cst_p): Move the function from gimple-fold.c.
1934         (fold_builtin_3): Do not call the function.
1935         * gimple-fold.c (gimple_fold_builtin_memchr): New function.
1936         (gimple_fold_builtin): Call the function.
1937         * fold-const-call.c (fold_const_call_1): Handle CFN_BUILT_IN_MEMCHR.
1939 2016-10-14  Martin Liska  <mliska@suse.cz>
1941         * builtins.c (fold_builtin_strcmp): Remove function.
1942         (fold_builtin_strncmp): Likewise.
1943         (fold_builtin_2): Remove call of the function.
1944         (fold_builtin_3): Likewise.
1945         * fold-const-call.c (fold_const_call): Add constant folding
1946         for CFN_BUILT_IN_STRCASECMP and CFN_BUILT_IN_STRNCASECMP.
1947         * fold-const-call.h (build_cmp_result): Declare the function.
1948         * gimple-fold.c (gimple_load_first_char): New function.
1949         (gimple_fold_builtin_string_compare): Likewise.
1950         (gimple_fold_builtin): Call the function.
1952 2016-10-14  Nathan Sidwell  <nathan@acm.org>
1954         * gcov-io.c (gcov_open): Deconstify 'mode'.
1956 2016-10-14  Martin Liska  <mliska@suse.cz>
1958         * fold-const.c (c_getstr): Support of properly \0-terminated
1959         string constants.  New argument is added.
1960         * fold-const.h: New argument is added.
1962 2016-10-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1964         * config/aarch64/aarch64.c (aarch64_print_hint_for_core_or_arch):
1965         New function.
1966         (aarch64_print_hint_for_core): Likewise.
1967         (aarch64_print_hint_for_arch): Likewise.
1968         (aarch64_validate_march): Use it.  Fix indentation in type signature.
1969         (aarch64_validate_mcpu): Use aarch64_print_hint_for_core_or_arch.
1970         (aarch64_validate_mtune): Likewise.
1971         (aarch64_handle_attr_arch): Likewise.
1972         (aarch64_handle_attr_cpu): Likewise.
1973         (aarch64_handle_attr_tune): Likewise.
1975 2016-10-14  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
1977         * optabs.def: Remove optab function gen_int_libfunc for sdivmod_optab
1978         and udivmod_optab.
1980 2016-10-13  Andreas Schwab  <schwab@linux-m68k.org>
1982         * config/m68k/m68k.c (m68k_option_override): Check
1983         opt_fstack_limit_symbol_arg and opt_fstack_limit_register_no
1984         instead of stack_limit_rtx.
1986 2016-10-13  Jakub Jelinek  <jakub@redhat.com>
1988         * dwarf2out.c (gen_member_die): Handle inline static data member
1989         definitions.
1991 2016-10-13  Nathan Sidwell  <nathan@acm.org>
1993         * gcov-io.c (gcov_open): Fix documentation.  Simplify setting
1994         gcov_var.mode.  Remove unnecessary fstat.
1996 2016-10-13  Segher Boessenkool  <segher@kernel.crashing.org>
1998         PR bootstrap/77962
1999         * function.c (thread_prologue_and_epilogue_insns): Call all
2000         make_*logue_seq in the same order as traditional.  Call them
2001         all a second time if shrink_wrapped_separate.
2003 2016-10-13  Marek Polacek  <polacek@redhat.com>
2005         * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
2006         insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Don't
2007         use -Wno-error.
2009 2016-10-13  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2011         PR tree-optimization/77937
2012         * gimple-ssa-strength-reduction.c (analyze_increments): Set cost
2013         to infinite when we have a pointer with an increment of -1.
2015 2016-10-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2017         * coretypes.h: Move MEMMODEL_* macros and enum memmodel definition
2018         into ...
2019         * memmodel.h: This file.
2020         * alias.c, asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
2021           caller-save.c, calls.c, ccmp.c, cfgbuild.c, cfgcleanup.c,
2022           cfgexpand.c, cfgloopanal.c, cfgrtl.c, cilk-common.c, combine.c,
2023           combine-stack-adj.c, common/config/aarch64/aarch64-common.c,
2024           common/config/arm/arm-common.c, common/config/bfin/bfin-common.c,
2025           common/config/c6x/c6x-common.c, common/config/i386/i386-common.c,
2026           common/config/ia64/ia64-common.c, common/config/nvptx/nvptx-common.c,
2027           compare-elim.c, config/aarch64/aarch64-builtins.c,
2028           config/aarch64/aarch64-c.c, config/aarch64/cortex-a57-fma-steering.c,
2029           config/arc/arc.c, config/arc/arc-c.c, config/arm/arm-builtins.c,
2030           config/arm/arm-c.c, config/avr/avr.c, config/avr/avr-c.c,
2031           config/avr/avr-log.c, config/bfin/bfin.c, config/c6x/c6x.c,
2032           config/cr16/cr16.c, config/cris/cris.c, config/darwin-c.c,
2033           config/darwin.c, config/epiphany/epiphany.c,
2034           config/epiphany/mode-switch-use.c,
2035           config/epiphany/resolve-sw-modes.c, config/fr30/fr30.c,
2036           config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
2037           config/i386/i386-c.c, config/i386/winnt.c, config/iq2000/iq2000.c,
2038           config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
2039           config/m68k/m68k.c, config/mcore/mcore.c,
2040           config/microblaze/microblaze.c, config/mmix/mmix.c,
2041           config/mn10300/mn10300.c, config/moxie/moxie.c,
2042           config/msp430/msp430.c, config/nds32/nds32-cost.c,
2043           config/nds32/nds32-intrinsic.c, config/nds32/nds32-md-auxiliary.c,
2044           config/nds32/nds32-memory-manipulation.c,
2045           config/nds32/nds32-predicates.c, config/nds32/nds32.c,
2046           config/nios2/nios2.c, config/nvptx/nvptx.c, config/pa/pa.c,
2047           config/pdp11/pdp11.c, config/rl78/rl78.c, config/rs6000/rs6000-c.c,
2048           config/rx/rx.c, config/s390/s390-c.c, config/s390/s390.c,
2049           config/sh/sh.c, config/sh/sh-c.c, config/sh/sh-mem.cc,
2050           config/sh/sh_treg_combine.cc, config/sol2.c, config/spu/spu.c,
2051           config/stormy16/stormy16.c, config/tilegx/tilegx.c,
2052           config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
2053           config/visium/visium.c, config/vms/vms-c.c, config/xtensa/xtensa.c,
2054           coverage.c, cppbuiltin.c, cprop.c, cse.c, cselib.c, dbxout.c, dce.c,
2055           df-core.c, df-problems.c, df-scan.c, dojump.c, dse.c, dwarf2asm.c,
2056           dwarf2cfi.c, dwarf2out.c, emit-rtl.c, except.c, explow.c, expmed.c,
2057           expr.c, final.c, fold-const.c, function.c, fwprop.c, gcse.c,
2058           ggc-page.c, haifa-sched.c, hsa-brig.c, hsa-gen.c, hw-doloop.c,
2059           ifcvt.c, init-regs.c, internal-fn.c, ira-build.c, ira-color.c,
2060           ira-conflicts.c, ira-costs.c, ira-emit.c, ira-lives.c, ira.c, jump.c,
2061           loop-doloop.c, loop-invariant.c, loop-iv.c, loop-unroll.c,
2062           lower-subreg.c, lra.c, lra-assigns.c, lra-coalesce.c,
2063           lra-constraints.c, lra-eliminations.c, lra-lives.c, lra-remat.c,
2064           lra-spills.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
2065           postreload-gcse.c, postreload.c, predict.c, print-rtl-function.c,
2066           recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
2067           reload.c, reload1.c, reorg.c, resource.c, rtl-chkp.c, rtl-tests.c,
2068           rtlanal.c, rtlhooks.c, sched-deps.c, sched-rgn.c, sdbout.c,
2069           sel-sched-ir.c, sel-sched.c, shrink-wrap.c, simplify-rtx.c,
2070           stack-ptr-mod.c, stmt.c, stor-layout.c, target-globals.c,
2071           targhooks.c, toplev.c, tree-nested.c, tree-outof-ssa.c,
2072           tree-profile.c, tree-ssa-coalesce.c, tree-ssa-ifcombine.c,
2073           tree-ssa-loop-ivopts.c, tree-ssa-loop.c, tree-ssa-reassoc.c,
2074           tree-ssa-sccvn.c, tree-vect-data-refs.c, ubsan.c, valtrack.c,
2075           var-tracking.c, varasm.c: Include memmodel.h.
2076         * genattrtab.c (write_header): Include memmodel.h in generated file.
2077         * genautomata.c (main): Likewise.
2078         * gengtype.c (open_base_files): Likewise.
2079         * genopinit.c (main): Likewise.
2080         * genconditions.c (write_header): Include memmodel.h earlier in
2081         generated file.
2082         * genemit.c (main): Likewise.
2083         * genoutput.c (output_prologue): Likewise.
2084         * genpeep.c (main): Likewise.
2085         * genpreds.c (write_insn_preds_c): Likewise.
2086         * genrecog.c (write_header): Likewise.
2087         * Makefile.in (PLUGIN_HEADERS): Include memmodel.h
2089 2016-10-13  David Malcolm  <dmalcolm@redhat.com>
2091         * function-tests.c (selftest::test_expansion_to_rtl): Add "true"
2092         for new "compact" param of print_rtx_function.  Check for "cinsn"
2093         rather than "insn".
2094         * print-rtl-function.c (flag_compact): New decl.
2095         (print_rtx_function): Add param "compact" and use it to set
2096         flag_compact, adding a description of the effect to the leading
2097         comment, and updating the example output.
2098         * print-rtl.c (flag_compact): New variable.
2099         (print_rtx_operand_code_0): Omit the JUMP_LABEL reference in compact
2100         mode.
2101         (print_rtx_operand_code_i): When printing source locations, wrap
2102         xloc.file in quotes.  Don't print INSN_CODEs in compact mode.
2103         (print_rtx_operand_code_r): Don't print regnos for hard regs and
2104         virtuals in compact mode.
2105         (print_rtx_operand_code_u): Don't print insn UIDs in compact mode,
2106         apart from in LABEL_REFs.
2107         (print_rtx_operand): In case 'w', don't print in hex in compact mode.
2108         Don't print basic block ids in compact mode.
2109         (print_rtx):  In compact mode, prefix the code of insns with "c",
2110         only print the INSN_UID of CODE_LABELs, and omit their LABEL_NUSES.
2111         * print-rtl.h (print_rtx_function): Add "compact" param.
2113 2016-10-13  Richard Earnshaw  <rearnsha@arm.com>
2115         * arm.h (TARGET_VFP): Delete.
2116         (TARGET_VFPD32): Remove references to TARGET_VFP.
2117         (TARGET_VFP3, TARGET_VFP5): Likewise.
2118         (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE): Likewise.
2119         (TARGET_NEON_FP16): Likewise.
2120         (TARGET_FMA): Likewise.
2121         (TARGET_CRYPTO): Likewise.
2122         (TARGET_NEON): Likewise.
2123         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
2124         (FUNCTION_ARG_REGNO_P): Likewise.
2125         * arm.c (arm_option_check_internal): Likewise.
2126         (arm_option_override): Likewise.
2127         (use_return_insn): Likewise.
2128         (arm_function_value_regno_p): Likewise.
2129         (arm_apply_result_size): Likewise.
2130         (use_vfp_abi): Likewise.
2131         (arm_legitimate_address_outer_p): Likewise.
2132         (thumb2_legitimate_address_p): Likewise.
2133         (arm_legitimate_index_p): Likewise.
2134         (thumb2_legitimate_index_p): Likewise.
2135         (arm_legitimate_address): Likewise.
2136         (arm_get_vfp_saved_size): Likewise.
2137         (arm_emit_vfp_multi_reg_pop): Likewise.
2138         (arm_get_frame_offsets): Likewise.
2139         (arm_save_coproc_regs): Likewise.
2140         (arm_hard_regno_mode_ok): Likewise.
2141         (arm_expand_epilogue_apcs_frame): Likewise.
2142         (arm_expand_epilogue): Likewise.
2143         (arm_file_start): Likewise.
2144         (arm_conditional_register_usage): Likewise.
2145         (arm_validize_comparison): Use vfp_compare_operand directly.
2146         * arm-builtins.c (arm_init_builtins): Remove references to TARGET_VFP.
2147         (arm_expand_vfp_builtin): Use TARGET_HARD_FLOAT for detecting
2148         unsupported usage.
2149         (arm_atomic_assign_expand_fenv): Likewise.
2150         * arm.md (divsf3): Likewise.
2151         (arm_negsi2): Likewise.
2152         (absdf2): Likewise.
2153         (arm_movdi): Likewise.
2154         (arm_movt): Likewise.
2155         (cbranchsf4): Change predicate to vfp_compare_operand.
2156         (cbranchdf4): Change predicate to vfp_compare_operand.
2157         (cstorehf4): Change predicate to vfp_compare_operand.
2158         (cstoresf4): Change predicate to vfp_compare_operand.
2159         (cstoredf4): Change predicate to vfp_compare_operand.
2160         (vfp_pop_multiple_with_writeback): Remove references to TARGET_VFP.
2161         (movhi_insn_arch4, movhi_bytes): Likewise.
2162         * constraints.md (Dt): Likewise.
2163         (Dp): Likewise.
2164         * iterators.md (SDF): Likewise.
2165         * predicates.md (arm_float_compare_operand): Delete.
2166         (const_double_vcvt_power_of_two_reciprocal): Remove references to
2167         TARGET_VFP.
2168         (const_double_vcvt_power_of_two): Likewise.
2169         * thumb2.md thumb2_movsi_insn): Likewise.
2170         * vfp.md (arm_movhi_vfp, thumb2_movhi_vfp): Likewise.
2171         (movhf_vfp): Likewise.
2172         (arm_movsi_vfp, thumb2_movsi_vfp): Likewise.
2173         (movdi_vfp, movdi_vfp_cortexa8): Likewise.
2174         (movsf_vfp, thumb2_movsf_vfp): Likewise.
2175         (movdf_vfp, thumb2_movdf_vfp): Likewise.
2176         (movsfcc_vfp, abssf2_vfp, negsf2_vfp, addsf3_vfp): Likewise.
2177         (subsf3_vfp, divsf3_vfp): Likewise.
2178         (mulsf3_vfp, mulsf3negsf_vfp, negmulsf3_vfp): Likewise.
2179         (mulsf3addsf_vfp, (mulsf3subsf_vfp, mulsf3negsfaddsf_vfp): Likewise.
2180         (mulsf3negsfsubsf_vfp): Likewise.
2181         (truncsisf2_vfp, fixuns_truncsfsi2, floatsisf2_vfp): Likewise.
2182         (floatunssisf2, sqrtsf2_vfp): Likewise.
2183         (movcc_vfp): Likewise.
2184         (cmpsf_split_vfp, cmpsf_trap_split_vfp): Likewise.
2185         (cmpsf_vfp, cmpsf_trap_vfp): Likewise.
2186         (push_multi_vfp): Likewise.
2187         (set_fpscr, get_fpscr): Likewise.
2188         * arm-c.c (arm_cpu_builtins): Unconditionally define __VFP_FP__.
2190 2016-10-13  Richard Earnshaw  <rearnsha@arm.com>
2192         * arm.h (TARGET_VFP): Unconditionally define to 1.
2193         (arm_fpu_desc): Remove 'model' field.
2194         (TARGET_FPU_MODEL): Delete.
2195         * arm.c (all_fpus): Don't initialize the model field.
2196         (arm_can_inline_p): Don't check the FPU model.
2197         * arm-fpus.def: Remove redundant model field from all FPU
2198         descriptions.
2200 2016-10-13  Richard Biener  <rguenther@suse.de>
2202         PR middle-end/77826
2203         * genmatch.c (struct capture): Add value_match member.
2204         (commutate): Preserve value_match.
2205         (lower_opt_convert): Likewise.
2206         (lower_cond): Likewise.
2207         (replace_id): Likewise.
2208         (struct dt_operand): Add value_match member.
2209         (decision_tree::cmp_node): Compare it.
2210         (decision_tree::insert_operand): Honor it when finding and
2211         when appending a DT_MATCH.
2212         (dt_operand::gen_match_op): Generate a type check after
2213         operand_equal_p if ! value_match for both GENERIC and GIMPLE.
2214         (parser::get_internal_capture_id): New helper.
2215         (parser::finish_match_operand): New function lowering @@<id>.
2216         (parser::parse_capture): Parse @@<id> as value-match.
2217         (parser::parse_expr): Use get_internal_capture_id.
2218         (parser::parse_simplify): Call finish_match_operand.
2219         (walk_captures): New helper.
2220         * match.pd (X - (X / Y) * Y -> X % Y): Use value-matching instead
2221         of operand_equal_p.
2222         ((X /[ex] A) * A -> X): Likewise.
2223         ((X | Y) ^ X -> Y & ~ X): Handle constants properly by using
2224         convert[12] and value-matching.
2225         ((A | B) & (A | C) ->  A | (B & C)): Likewise.
2226         ((X | Y) | Y -> X | Y): Likewise.
2227         ((X ^ Y) ^ Y -> X): Likewise.
2228         (A - (A & B) -> ~B & A): Likewise.
2229         ((T)(P + A) - (T)P -> (T) A): Likewise.
2230         ((T)P - (T)(P + A) -> -(T) A): Likewise.
2231         ((T)(P + A) - (T)(P + B) -> (T)A - (T)B): Likewise.
2232         * doc/match-and-simplify.texi: Amend capture section.
2234 2016-10-13  Claudiu Zissulescu  <claziss@synopsys.com>
2236         * config/arc/arc.md (umul_600): Remove predicated variant.
2237         (umul64_600): Likewise.
2239 2016-10-13  Claudiu Zissulescu  <claziss@synopsys.com>
2241         * config/arc/arc.h (INSN_LENGTH_ALIGNMENT): Change.
2243 2016-10-13  Bin Cheng  <bin.cheng@arm.com>
2245         * tree-vect-loop.c (loop_niters_no_overflow): New func.
2246         (vect_transform_loop): Call loop_niters_no_overflow.  Pass the
2247         no-overflow information to vect_do_peeling_for_loop_bound and
2248         vect_gen_vector_loop_niters.
2250 2016-10-13  Bin Cheng  <bin.cheng@arm.com>
2252         * tree-predcom.c (tree_predictive_commoning_loop): Skip loop that only
2253         iterates 1 time.
2255 2016-10-13  Bin Cheng  <bin.cheng@arm.com>
2257         * tree-vect-loop-manip.c (adjust_vec_debug_stmts): Don't release
2258         adjust_vec automatically.
2259         (slpeel_add_loop_guard): Remove param cond_expr_stmt_list.  Rename
2260         param exit_bb to guard_to.
2261         (slpeel_checking_verify_cfg_after_peeling):
2262         (set_prologue_iterations):
2263         (create_lcssa_for_virtual_phi): New func which is factored out from
2264         slpeel_tree_peel_loop_to_edge.
2265         (slpeel_tree_peel_loop_to_edge):
2266         (iv_phi_p): New func.
2267         (vect_can_advance_ivs_p): Call iv_phi_p.
2268         (vect_update_ivs_after_vectorizer): Call iv_phi_p.  Directly insert
2269         new gimple stmts in basic block.
2270         (vect_gen_niters_for_prolog_loop): Rename to...
2271         (vect_gen_prolog_loop_niters): ...Rename from.  Change parameters and
2272         adjust implementation.
2273         (vect_update_inits_of_drs): Fix code style issue.  Convert niters to
2274         sizetype if necessary.
2275         (vect_build_loop_niters): Move to here from tree-vect-loop.c.  Change
2276         it to external function.
2277         (vect_gen_scalar_loop_niters, vect_gen_vector_loop_niters): New.
2278         (vect_gen_vector_loop_niters_mult_vf): New.
2279         (slpeel_update_phi_nodes_for_loops): New.
2280         (slpeel_update_phi_nodes_for_guard1): Reimplement.
2281         (find_guard_arg, slpeel_update_phi_nodes_for_guard2): Reimplement.
2282         (slpeel_update_phi_nodes_for_lcssa, vect_do_peeling): New.
2283         * tree-vect-loop.c (vect_build_loop_niters): Move to file
2284         tree-vect-loop-manip.c
2285         (vect_generate_tmps_on_preheader): Delete.
2286         (vect_transform_loop): Rename vectorization_factor to vf.  Call
2287         vect_do_peeling instead of vect_do_peeling-* functions.
2288         * tree-vectorizer.h (vect_do_peeling): New decl.
2289         (vect_build_loop_niters, vect_gen_vector_loop_niters): New decls.
2290         (vect_do_peeling_for_loop_bound): Delete.
2291         (vect_do_peeling_for_alignment): Delete.
2293 2016-10-13  Bin Cheng  <bin.cheng@arm.com>
2295         * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg): Put
2296         duplicated loop after its preheader and after the original loop.
2298 2016-10-13  Bin Cheng  <bin.cheng@arm.com>
2300         * tree-vect-loop.c (vect_analyze_loop_2): Check and skip loop if it
2301         has no enough iterations for LOOP_VINFO_PEELING_FOR_GAPS.
2303 2016-10-13  Bin Cheng  <bin.cheng@arm.com>
2305         * tree-vect-loop.c (vectorizable_live_operation): Support handling
2306         for live variable outside loop but not in lcssa form.
2308 2016-10-13  Bin Cheng  <bin.cheng@arm.com>
2310         * cfg.c (reset_original_copy_tables): New func.
2311         * cfg.h (reset_original_copy_tables): New decl.
2313 2016-10-13  Jakub Jelinek  <jakub@redhat.com>
2315         PR c/77946
2316         * tree.h (FALLTHROUGH_LABEL_P): Use private_flag instead of
2317         public_flag.
2318         * varasm.c (default_binds_local_p_3): Formatting fix.
2320 2016-10-13  Bin Cheng  <bin.cheng@arm.com>
2322         * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Fix code
2323         style issue.
2324         (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
2325         Remove useless code.
2327 2016-10-13  Martin Liska  <mliska@suse.cz>
2329         PR tree-optimization/77943
2330         * tree-ssa-tail-merge.c (merge_stmts_p): Do not merge BBs with
2331         a different EH landing pads.
2333 2016-10-13  Jakub Jelinek  <jakub@redhat.com>
2335         PR target/77957
2336         * hooks.h (hook_tree_void_null): Declare.
2337         * hooks.c (hook_tree_void_null): New function.
2338         * langhooks.c (lhd_return_null_tree_v): Remove.
2339         * langhooks-def.h (lhd_return_null_tree_v): Remove.
2340         * cfgexpand.c (stack_protect_prologue): If guard_decl is NULL,
2341         set y to const0_rtx.
2342         * function.c (stack_protect_epilogue): Likewise.
2343         * config/tilepro/tilepro.c (TARGET_STACK_PROTECT_GUARD): Redefine
2344         if TARGET_THREAD_SSP_OFFSET is defined.
2345         * config/s390/s390.c (TARGET_STACK_PROTECT_GUARD): Likewise.
2346         * config/sparc/sparc.c (TARGET_STACK_PROTECT_GUARD): Likewise.
2347         * config/tilegx/tilegx.c (TARGET_STACK_PROTECT_GUARD): Likewise.
2348         * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Likewise.
2349         * config/i386/i386.c (TARGET_STACK_PROTECT_GUARD): Likewise.
2350         (ix86_stack_protect_guard): New function.
2352 2016-10-13  Richard Biener  <rguenther@suse.de>
2354         * dwarf2out.c (tree_add_const_value_attribute): Do not try
2355         rtl_for_decl_init during early phase.
2356         (gen_variable_die): Do not create locations during early phase.
2357         (gen_label_die): Likewise.
2358         (decls_for_scope): Do not waste time handling BLOCK_NONLOCALIZED_VARs
2359         twice.
2361 2016-10-12  Richard Biener  <rguenther@suse.de>
2363         * tree-vrp.c (evrp_dom_walker::try_find_new_range): Renamed from
2364         try_add_new_range and made to eturn new range.
2365         (evrp_dom_walker::before_dom_children): Push op1 value range before
2366         pushing op0 value range.
2368 2016-10-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2370         PR tree-optimization/77937
2371         * gimple-ssa-strength-reduction.c (analyze_increments): Use
2372         POINTER_TYPE_P on the candidate type to determine whether
2373         candidates in this chain require pointer arithmetic.
2375 2016-10-12  Eric Botcazou  <ebotcazou@adacore.com>
2377         * config/visium/visium.c (visium_gimplify_va_arg): Emit a big-endian
2378         correction if the type is smaller than a word.
2379         (visium_select_cc_mode): Add ... fall through ... comment.
2381 2016-10-12  Segher Boessenkool  <segher@kernel.crashing.org>
2383         * config/rs6000/rs6000.c (machine_function): Add new fields
2384         gpr_is_wrapped_separately and lr_is_wrapped_separately.
2385         (TARGET_SHRINK_WRAP_GET_SEPARATE_COMPONENTS,
2386         TARGET_SHRINK_WRAP_COMPONENTS_FOR_BB,
2387         TARGET_SHRINK_WRAP_DISQUALIFY_COMPONENTS,
2388         TARGET_SHRINK_WRAP_EMIT_PROLOGUE_COMPONENTS,
2389         TARGET_SHRINK_WRAP_EMIT_EPILOGUE_COMPONENTS,
2390         TARGET_SHRINK_WRAP_SET_HANDLED_COMPONENTS): Define.
2391         (rs6000_get_separate_components): New function.
2392         (rs6000_components_for_bb): New function.
2393         (rs6000_disqualify_components): New function.
2394         (rs6000_emit_prologue_components): New function.
2395         (rs6000_emit_epilogue_components): New function.
2396         (rs6000_set_handled_components): New function.
2397         (rs6000_emit_prologue): Don't emit LR save if lr_is_wrapped_separately.
2398         Don't emit GPR saves if gpr_is_wrapped_separately for that register.
2399         (restore_saved_lr): Don't restore LR if lr_is_wrapped_separately.
2400         (rs6000_emit_epilogue): Don't emit GPR restores if
2401         gpr_is_wrapped_separately for that register.  Don't make a
2402         REG_CFA_RESTORE note for registers we did not restore, either.
2404 2016-10-12  Segher Boessenkool  <segher@kernel.crashing.org>
2406         * function.c (thread_prologue_and_epilogue_insns): Call
2407         try_shrink_wrapping_separate.  Compute the prologue_seq afterwards,
2408         if it has possibly changed.  Compute the split_prologue_seq and
2409         epilogue_seq later, too.
2410         * shrink-wrap.c: #include cfgbuild.h and insn-config.h.
2411         (dump_components): New function.
2412         (struct sw): New struct.
2413         (SW): New function.
2414         (init_separate_shrink_wrap): New function.
2415         (fini_separate_shrink_wrap): New function.
2416         (place_prologue_for_one_component): New function.
2417         (spread_components): New function.
2418         (disqualify_problematic_components): New function.
2419         (emit_common_heads_for_components): New function.
2420         (emit_common_tails_for_components): New function.
2421         (insert_prologue_epilogue_for_components): New function.
2422         (try_shrink_wrapping_separate): New function.
2423         * shrink-wrap.h: Declare try_shrink_wrapping_separate.
2425 2016-10-12  Segher Boessenkool  <segher@kernel.crashing.org>
2427         * regrename.c (build_def_use): Invalidate chains that have a
2428         REG_CFA_RESTORE on some instruction.
2430 2016-10-12  Segher Boessenkool  <segher@kernel.crashing.org>
2432         * dce.c (delete_unmarked_insns): Don't delete instructions with
2433         a REG_CFA_RESTORE note.
2435 2016-10-12  Segher Boessenkool  <segher@kernel.crashing.org>
2437         * common.opt (-fshrink-wrap-separate): New flag.
2438         * doc/invoke.texi: Document it.
2439         * doc/tm.texi.in (Shrink-wrapping separate components): New subsection.
2440         * doc/tm.texi: Regenerate.
2441         * emit-rtl.h (struct rtl_data): New field shrink_wrapped_separate.
2442         * target.def (shrink_wrap): New hook vector.
2443         (get_separate_components, components_for_bb, disqualify_components,
2444         emit_prologue_components, emit_epilogue_components,
2445         set_handled_components): New hooks.
2447 2016-10-12  Segher Boessenkool  <segher@kernel.crashing.org>
2449         * config/rs6000/rs6000.c (rs6000_return_in_memory): Warn for
2450         vector return by reference only if -Wpsabi.
2451         (rs6000_pass_by_reference): Similarly, for argument passing.
2453 2016-10-12  David Malcolm  <dmalcolm@redhat.com>
2455         * function-tests.c: Include "print-rtl.h".
2456         (selftest::test_expansion_to_rtl): Call print_rtx_function on the
2457         function, and verify what is dumped.
2458         * print-rtl-function.c (print_edge): New function.
2459         (begin_any_block): New function.
2460         (end_any_block): New function.
2461         (can_have_basic_block_p): New function.
2462         (print_rtx_function): Track the basic blocks of insns in the
2463         chain, wrapping those that are within blocks within "(block)"
2464         directives.  Remove the "(cfg)" directive.
2466 2016-10-12  David Malcolm  <dmalcolm@redhat.com>
2468         * selftest.c (selftest::read_file): New function.
2469         (selftest::test_read_file): New function.
2470         (selftest::selftest_c_tests): Call test_read_file.
2471         * selftest.h (selftest::read_file): New decl.
2473 2016-10-12  Richard Biener  <rguenther@suse.de>
2475         PR debug/77947
2476         * cgraphunit.c (analyze_functions): Preserve cgraph nodes
2477         function context.
2479 2016-10-12  Thomas Schwinge  <thomas@codesourcery.com>
2481         * lto-streamer.c: Fix LTO_STREAMER_DEBUG build.
2483         * dwarf2out.c (dwarf2_lineno_debug_hooks): Use
2484         dwarf2out_assembly_start.
2486         * Makefile.in (SELFTEST_FLAGS): Add -nostdinc.
2488         * Makefile.in (SELFTEST_FLAGS): New variable.
2489         (s-selftest, selftest-gdb, selftest-valgrind): Use it.
2491         * vmsdbgout.c (vmsdbg_debug_hooks): Add filename parameter to
2492         early_finish hook.
2494 2016-10-12  Georg-Johann Lay  <avr@gjlay.de>
2496         * rtl.h (struct rtx_def): Comment how RTX_FLAGS will be
2497         dumped in RTL dumps.
2499 2016-10-12  Martin Liska  <mliska@suse.cz>
2501         * gimple-fold.c (create_tmp_reg_or_ssa_name): New function.
2502         (gimple_fold_builtin_memory_op): Use the function.
2503         (gimple_fold_builtin_strchr): Likewise.
2504         (gimple_fold_builtin_strcat): Likewise.
2505         (gimple_build): Likewise.
2507 2016-10-12  Nathan Sidwell  <nathan@acm.org>
2509         * diagnostic.c (diagnostc_report_diagnostic): Fix formatting.
2511 2016-10-12  Pierre-Marie de Rodat  <derodat@adacore.com>
2513         * dwarf2out.c (int_loc_descriptor): Generate opcodes for another
2514         equivalent 32-bit constant (modulo 2**32) when that yields
2515         smaller instructions.
2516         (size_of_int_loc_descriptor): Update accordingly.
2518 2016-10-12  Pierre-Marie de Rodat  <derodat@adacore.com>
2520         * dwarf2out.c (dwarf2out_early_global_decl): For nested
2521         functions, call dwarf2out_decl on the parent function first.
2523 2016-10-12  Richard Biener  <rguenther@suse.de>
2525         * match.pd ((X /[ex] A) * A -> X): Remove unnecessary constraint
2526         on the conversion.
2528 2016-10-12  Richard Biener  <rguenther@suse.de>
2530         * tree-ssa-propagate.c
2531         (substitute_and_fold_dom_walker::before_dom_children): Do not
2532         ignore ASSERT_EXPRs but only preserve them.
2533         * tree-vrp.c (remove_range_assertions): Deal with ASSERT_EXPRs
2534         that have been propagated into.
2535         (vrp_finalize): Enable DCE for substitute_and_fold.
2537 2016-10-12  Richard Biener  <rguenther@suse.de>
2539         PR tree-optimization/77920
2540         * tree-vrp.c (simplify_div_or_mod_using_ranges): Simplify.
2541         (simplify_min_or_max_using_ranges): Pass in gsi and use it.
2542         (simplify_abs_using_ranges): Likewise.
2543         (simplify_conversion_using_ranges): Likewise.
2544         (simplify_stmt_using_ranges): Adjust.
2546 2016-10-12  Jakub Jelinek  <jakub@redhat.com>
2548         PR tree-optimization/77929
2549         * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Handle
2550         (*ops)[ranges[i].idx]->op != ranges[i].exp case.
2552 2016-10-12  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
2554         PR target/77934
2555         * config/rs6000/vmx.md (vsx_concat_<mode>): The mtvsrdd instruction
2556         needs a base register for arg 1.
2558 2016-10-12  Jakub Jelinek  <jakub@redhat.com>
2560         * common.opt (Wimplicit-fallthrough) Turn into alias to
2561         -Wimplicit-fallthrough=3.  Remove EnabledBy.
2562         (Wimplicit-fallthrough=): New option.
2563         * gimplify.c (warn_implicit_fallthrough_r): Use
2564         OPT_Wimplicit_fallthrough_ instead of OPT_Wimplicit_fallthrough.
2565         * doc/invoke.texi (-Wimplicit-fallthrough): Document as alias
2566         to -Wimplicit-fallthrough=3.
2567         (-Wimplicit-fallthrough=): Document.
2569 2016-10-11  Eric Botcazou  <ebotcazou@adacore.com>
2571         * config/sparc/sparc.c (emit_scc_insn): Remove direct support for EQ
2572         and GEU in DImode if TARGET_SUBXC.
2573         * config/sparc/sparc.md (seqdi<W:mode>_zero): Remove TARGET_SUBXC.
2574         (seqdi<W:mode>_zero_subxc): Delete.
2575         (neg_seqdi<W:mode>_zero): Remove TARGET_VIS3.
2576         (neg_seqdi<W:mode>_zero_vis3): Delete.
2577         (plus_seqdi<W:mode>_zero): Likewise.
2578         (minus_seqdi<W:mode>_zero): Likewise.
2579         (plus_plus_sltu<W:mode>): Accept only register.
2580         (addx<W:mode>): Likewise.
2581         (plus_sltu<W:mode>_vis3): Likewise.
2582         (plus_plus_sltu<W:mode>_vis3): Likewise.
2583         (neg_sgeu<W:mode>_vis3): Delete.
2584         (minus_sgeu<W:mode>_vis3): Likewise.
2585         (addxc<W:mode>): Accept only registers.
2586         (neg_sltu<W:mode>_subxc): Write %%g0 instead of 0.
2587         (minus_neg_sltu<W:mode>_subxc): Accept only register.
2588         (neg_plus_sltu<W:mode>_subxc): Likewise.
2589         (minus_sltu<W:mode>_subxc): Write %%g0 instead of 0.
2590         (minus_minus_sltu<W:mode>_subxc): Accept only register.
2591         (sgeu<W:mode>_insn_subxc): Delete.
2592         (plus_sgeu<W:mode>_subxc): Likewise.
2593         (subxc<W:mode>): Accept only register.
2594         (scc splitter): Split always GEU again.
2596 2016-10-11  Jeff Law  <law@redhat.com>
2598         PR tree-optimization/77424
2599         * tree-ssa-threadupdate.c (thread_through_all_blocks): Remove
2600         dead conditionals.  Assert that all e->aux fields are NULL.
2602 2016-10-11  David Malcolm  <dmalcolm@redhat.com>
2604         * print-rtl.c (print_rtx): Rename "i" to "idx".  Split out the
2605         operand-printing "switch" statement into...
2606         (print_rtx_operand_code_0): ...this new function, ...
2607         (print_rtx_operand_code_e): ...this new function, ...
2608         (print_rtx_operand_codes_E_and_V): ...this new function, ...
2609         (print_rtx_operand_code_i): ...this new function, ...
2610         (print_rtx_operand_code_r): ...this new function, ...
2611         (print_rtx_operand_code_u): ...this new function, ...
2612         (print_rtx_operand): ...and this new function.
2614 2016-10-11  Uros Bizjak  <ubizjak@gmail.com>
2616         * config/alpha/alpha-passes.def: New file.
2617         * config/alpha/t-alpha: New file.
2618         * config/alpha/alpha-protos.h (gcc::context, rtl_opt_pass): Declare.
2619         (make_pass_handle_trap_shadows): New prototype.
2620         (make_pass_align_insns): Ditto.
2621         * config/alpha/alpha.c (alpha_option_override): Don't register
2622         passes here.
2623         * config.gcc (alpha*-*-*) Add alpha/t-alpha to tmake_file.
2625 2016-10-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
2627         PR target/77924
2628         * config/rs6000/rs6000.c (rs6000_init_builtins): Only create the
2629         distinct __ibm128 IBM extended double type if long doubles are
2630         128-bits and the default format for long double is IEEE 128-bit.
2632 2016-10-11  Richard Biener  <rguenther@suse.de>
2634         * dwarf2out.c (DEBUG_STR_OFFSETS_SECTION): Remove conditional.
2635         (init_sections_and_labels): Use DEBUG_DWO_STR_OFFSETS_SECTION.
2636         (verify_die): New function.
2637         (dwarf2out_finish): Call it.
2638         (output_line_info): Handle case of -gsplit-dwarf without
2639         DWARF2_ASM_LINE_DEBUG_INFO.
2641 2016-10-11  Richard Biener  <rguenther@suse.de>
2643         PR debug/77931
2644         * gimple-low.c (lower_gimple_bind): Handle arbitrary common
2645         sub-chains of BLOCK_VARS and gimple_bind_vars.
2647 2016-10-11  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
2649         * config/i386/znver1.md : Fix imov/imovx load type reservations.
2651 2016-10-11  Eric Botcazou  <ebotcazou@adacore.com>
2653         * config/sparc/sparc.opt (msubxc): New option.
2654         * doc/invoke.texi (SPARC options): Document it and tidy up.
2655         * doc/tm.texi.in (Condition Codes): Adjust SPARC example.
2656         * doc/tm.texi: Regenerate.
2657         * config/sparc/sparc-modes.def (CC_NOOV): Rename into...
2658         (CCNZ): ...this.
2659         (CCX_NOOV): Rename into...
2660         (CCXNZ): ...this.
2661         (CCC): New.
2662         (CCXC): Likewise.
2663         * config/sparc/predicates.m (fcc_register_operand): Simplify.
2664         (fcc0_register_operand): Likewise.
2665         (icc_register_operand): New.
2666         (icc_or_fcc_register_operand): Simplify.
2667         (nz_comparison_operator): New.
2668         (c_comparison_operator): Likewise.
2669         (noov_compare_operator): Rename into...
2670         (icc_comparison_operator): ...this.  Use above predicates.
2671         (noov_compare64_operator): Rename into...
2672         (v9_comparison_operator): ...this and tidy up.
2673         (fcc_comparison_operator): New.
2674         (icc_or_fcc_comparison_operator): Likewise.
2675         (v9_register_compare_operator): Rename info...
2676         (v9_register_comparison_operator): ...this.
2677         * config/sparc/sparc.c (TARGET_FIXED_CONDITION_CODE_REGS): Define.
2678         (sparc_option_override): Remove redundant VIS masks and add MASK_SUBXC
2679         for Niagara-7.
2680         (sparc_fixed_condition_code_regs): New function.
2681         (select_cc_mode): Remove ATTRIBUTE_UNUSED.  Adjust for CCNZ/CCXNZ
2682         renaming and add support for CCC/CCXC.
2683         (output_cbranch): Likewise.
2684         (sparc_print_operand): Likewise.
2685         (gen_v9_scc): Remove obsolete assertion.
2686         (emit_scc_insn): Emit RTL directly for EQ and NE.  Add direct support
2687         for EQ in DImode if TARGET_SUBXC.  Remove test on TARGET_VIS3 for GEU.
2688         (output_cbcond): Remove bogus handling of CC modes.
2689         (sparc_register_move_cost): Return 100 for NO_REGS.
2690         * config/sparc/sparc.md (W): New mode iterator.
2691         (length): Adjust for noov_compare64_operator renaming.
2692         (cmpsi_sne): New instruction.
2693         (cmpdi_sne): Likewise.
2694         (seqdi_special): Delete.
2695         (seqdi_special): Likewise.
2696         (snesi<P:mode>_special): Likewise.
2697         (snedi_special): Likewise.
2698         (snedi_special_vis3): Likewise.
2699         (snesi patterns): Use W iterator.
2700         (snedi patterns): Likewise.  Add TARGET_SUBXC patterns.
2701         (sltu patterns): Likewise.
2702         (sgeu patterns): Likewise.
2703         (scc splitter): Do not split GEU in DImode if TARGET_SUBXC.
2704         (normal_branch): Use icc_comparison_operator predicate.
2705         (inverted_branch): Likewise.
2706         (cbcond_sp32): Use comparison_operator predicate.
2707         (cbcond_sp64): Likewise.
2708         (normal_int_branch_sp64): Adjust for renaming
2709         (inverted_int_branch_sp64): Likewise.
2710         (mov<I:mode>_cc_reg_sp64): Likewise.
2711         (movsf_cc_reg_sp6): Likewise.
2712         (movdf_cc_reg_sp64): Likewise.
2713         (movtf_cc_reg_hq_sp64): Likewise.
2714         (movtf_cc_reg_sp64): Likewise.
2715         (mov<I:mode>_cc_v9): Use icc_or_fcc_comparison_operator predicate.
2716         (movsf_cc_v9): Likewise.
2717         (movdf_cc_v9): Likewise.
2718         (movtf_cc_hq_v9): Likewise.
2719         (movtf_cc_v9): Likewise.
2720         (adddi3): Call gen_adddi3_sp32.
2721         (adddi3_insn_sp32): Rename to...
2722         (adddi3_sp32): ...this.  Accept only register_operand as operand #1
2723         and use CCCmode for the carry.
2724         (addx_extend_sp32): Use CCCmode for the carry.
2725         (addx_extend_sp64): Delete.
2726         (adddi3_extend_sp32): Use CCCmode for the carry.
2727         (cmp_plus patterns): Use CCNZ/CCXNZ mode and add C variants.
2728         (subdi3): Call gen_subdi3_sp32.
2729         (subdi3_insn_sp32): Rename to...
2730         (subdi3_sp32): ...this and use CCmode for the carry.
2731         (subx_extend_sp32): Use CCCmode for the carry.
2732         (subx_extend_sp64): Delete.
2733         (subdi3_extend_sp32): Use CCmode for the carry.
2734         (cmp_minus patterns): Use CCNZ/CCXNZ mode and add C variants.
2735         (negdi3): Call gen_negdi3_sp32.
2736         (negdi3_sp32): Use CCCmode for the carry.
2737         (cmp_neg patterns): Use CCNZ/CCXNZ mode and add C variants.
2738         (cmp_nz_ashift_1): Use CCNZ mode.
2739         (cmp_nz_set_ashift_1): Likewise.
2740         (ctrapsi4): Use comparison_operator predicate.
2741         (ctrapdi4): Likewise.
2742         (trapsi_insn): Use icc_comparison_operator predicate.
2743         (trapdi_insn): Likewise.
2744         (edge8 patterns): Use CCNZmode.
2745         (edge16 patterns): Likewise.
2746         (edge32 patterns): Likewise.
2748 2016-10-11  Eric Botcazou  <ebotcazou@adacore.com>
2750         * config/visium/visium-modes.def (CC_NOOV): Rename into...
2751         (CCNZ): ...this.
2752         (CC_BTST): Rename into...
2753         (CCC): ...this.
2754         * config/visium/predicates.md (real_add_operand): New.
2755         (visium_btst_operator): Rename into...
2756         (visium_equality_comparison_operator): ...this.
2757         (visium_noov_operator): Rename into...
2758         (visium_nz_comparison_operator): ...this.
2759         (visium_c_comparison_operator): New.
2760         (visium_branch_operator): Adjust and deal with all CC modes.
2761         * config/visium/visium.c (visium_adjust_cost): Adjust.
2762         (visium_split_double_add): Use the *_set_carry patterns.
2763         (visium_select_cc_mode): Add support for CCC mode and adjust.
2764         (output_cbranch): Adjust and use the carry-based operators for
2765         floating-point comparisons.
2766         * config/visium/visium.md (flags_subst_arith): Adjust.
2767         (addsi3_insn_set_carry): New instruction.
2768         (subsi3_insn_set_carry): Likewise.
2769         (negsi2_insn_set_carry): Likewise.
2770         (btst): Adjust.
2771         (cmp<mode>_sne): Likewise.
2772         (cbranch<mode>4): Use ordered_comparison_operator.
2773         (cbranch<mode>4_insn): Likewise.
2774         (cbranchsi4_btst_insn): Adjust.
2776 2016-10-11  Tom de Vries  <tom@codesourcery.com>
2778         PR middle-end/77558
2779         * builtins.c (std_canonical_va_list_type): Remove RECORD_TYPE
2780         special-casing.
2782 2016-10-11  Eric Botcazou  <ebotcazou@adacore.com>
2784         * tree.h (build_complex_type): Add second parameter with default.
2785         * tree.c (build_complex_type): Add NAMED second parameter and adjust
2786         recursive call.  Create a TYPE_DECL only if NAMED is true.
2787         (build_common_tree_nodes): Pass true in calls to build_complex_type.
2789 2016-10-11  Georg-Johann Lay  <avr@gjlay.de>
2791         New avr-passes.def to register AVR specific passes.
2793         * config/avr/avr-passes.def: New file.
2794         * config/avr/t-avr (PASSES_EXTRA): Add avr-passes.def.
2795         * config/avr/avr-protos.h (gcc::context, rtl_opt_pass): Declare.
2796         (make_avr_pass_recompute_note): New proto.
2797         * config/avr/avr.c (make_avr_pass_recompute_notes): New function.
2798         (avr_pass_recompute_notes): Use anonymous namespace.
2799         (avr_register_passes): Remove function...
2800         (avr_option_override): ...and its call.
2802 2016-10-11  Robert Suchanek  <robert.suchanek@imgtec.com>
2804         * config/mips/mips-cpus.def: Replace PTF_AVOID_BRANCHLIKELY with
2805         PTF_AVOID_BRANCHLIKELY_ALWAYS for generic architecture and with
2806         PTF_AVOID_BRANCHLIKELY_SPEED for others.
2807         (mips2, mips3, mips4): Add PTF_AVOID_BRANCHLIKELY_SIZE to tune
2808         flags.
2809         * config/mips/mips.c (mips_option_override): Enable the branch
2810         likely depending on the tune flags and optimization level.
2811         * config/mips/mips.h (PTF_AVOID_BRANCHLIKELY): Remove.
2812         (PTF_AVOID_BRANCHLIKELY_SPEED): Define.
2813         (PTF_AVOID_BRANCHLIKELY_SIZE): Likewise.
2814         (PTF_AVOID_BRANCHLIKELY_ALWAYS): Likewise.
2816 2016-10-11  Richard Biener  <rguenther@suse.de>
2818         * lto-streamer-out.c (collect_block_tree_leafs): New helper.
2819         (output_function): Properly stream the whole block tree.
2820         * lto-streamer-in.c (input_function): Likewise.
2822 2016-10-11  Marek Polacek  <polacek@redhat.com>
2824         * Makefile.in (C_COMMON_OBJS): Add c-family/c-warn.o.
2826 2016-10-11  Kugan Vivekanandarajah  <kuganv@linaro.org>
2828         * tree-vrp.c (evrp_dom_walker::try_add_new_range): New.
2829         (evrp_dom_walker::before_dom_children): Infer and push new value
2830         ranges for x in y < x.
2832 2016-10-10  Joseph Myers  <joseph@codesourcery.com>
2834         PR target/77586
2835         * config/ia64/ia64.c (ia64_libgcc_floating_mode_supported_p)
2836         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
2837         * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Likewise.
2838         * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Likewise.
2839         * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
2840         (IA64_NO_LIBGCC_TFMODE): Likewise.
2842 2016-10-11  Kugan Vivekanandarajah  <kuganv@linaro.org>
2844         * tree-vrp.c (vrp_intersect_ranges_1): Allocate bitmap before
2845           copying.
2847 2016-10-10  Andreas Tobler  <andreast@gcc.gnu.org>
2849         * config.gcc: Add aarch64-*-freebsd* support.
2850         * config.host: Likewise.
2851         * config/aarch64/aarch64-freebsd.h: New file.
2852         * config/aarch64/t-aarch64-freebsd: Ditto.
2854 2016-10-10  Jeff Law  <law@redhat.com>
2856         PR tree-optimization/71947
2857         * tree-ssa-dom.c (cprop_into_stmt): Avoid replacing A with B, then
2858         B with A within a single statement.
2860 2016-10-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2862         PR tree-optimization/77824
2863         * gimple-ssa-strength-reduction.c (stmt_cost): Explicitly return
2864         zero cost for copies.
2865         (find_candidates_dom_walker::before_dom_children): Replace
2866         MODIFY_EXPR with SSA_NAME.
2867         (replace_mult_candidate): Likewise.
2868         (replace_profitable_candidates): Likewise.
2870 2016-10-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2872         * config/s390/s390.h: Wrap more macros args in brackets and fix
2874 2016-10-10  Georg-Johann Lay  <avr@gjlay.de>
2876         * config/avr/gen-avr-mmcu-texi.c (string.h): Include.
2878 2016-10-10  Andreas Schwab  <schwab@suse.de>
2880         PR target/77738
2881         * config/ia64/ia64.md ("doloop_end"): Reject if mode of loop
2882         pseudo is not DImode.
2884 2016-10-10  Claudiu Zissulescu  <claziss@synopsys.com>
2886         * common/config/arc/arc-common.c (arc_option_optimization_table):
2887         Remove compact casesi option.
2888         * config/arc/arc.c (arc_override_options): Use compact casesi
2889         option only for pre-ARCv2 cores.
2890         * doc/invoke.texi (mcompact-casesi): Update text.
2892 2016-10-09  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
2894         * config/rs6000/rs6000.h (TARGET_EFFICIENT_OVERLAPPING_UNALIGNED):
2895         Add macro to say we can efficiently handle overlapping unaligned
2896         loads.
2897         * config/rs6000/rs6000.c (expand_block_compare): Avoid generating
2898         poor code for processors older than p8.
2900 2016-10-09  Eric Botcazou  <ebotcazou@adacore.com>
2902         * gen-pass-instances.awk: Remove GNUism.
2904 2016-10-09  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
2906         * ipa-prop.c (ipcp_transform_function): Set fields m_vr and bits to
2907         NULL of (*ipcp_transformations)][node->uid].
2909 2016-10-09  John David Anglin  <danglin@gcc.gnu.org>
2911         * config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
2912         (MALLOC_ABI_ALIGNMENT): Define.
2914 2016-10-09  Jakub Jelinek  <jakub@redhat.com>
2916         * tree-ssa.c (target_for_debug_bind, verify_phi_args,
2917         ssa_undefined_value_p, maybe_optimize_var): Use VAR_P and/or
2918         VAR_OR_FUNCTION_DECL_P macros.
2919         * tree-chkp.c (chkp_register_var_initializer, chkp_make_static_bounds,
2920         chkp_get_bounds_for_decl_addr, chkp_parse_array_and_component_ref,
2921         chkp_find_bounds_1): Likewise.
2922         * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Likewise.
2923         * hsa-gen.c (get_symbol_for_decl): Likewise.
2924         * cgraphunit.c (check_global_declaration, analyze_functions,
2925         handle_alias_pairs, thunk_adjust, cgraph_node::expand_thunk):
2926         Likewise.
2927         * gimple-fold.c (can_refer_decl_in_current_unit_p,
2928         canonicalize_constructor_val, gimple_get_virt_method_for_vtable):
2929         Likewise.
2930         * tree.c (set_decl_section_name, copy_node_stat,
2931         need_assembler_name_p, free_lang_data_in_decl, find_decls_types_r,
2932         merge_dllimport_decl_attributes, handle_dll_attribute,
2933         decl_init_priority_insert, auto_var_in_fn_p, array_at_struct_end_p,
2934         verify_type): Likewise.
2935         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior,
2936         find_explicit_erroneous_behavior): Likewise.
2937         * sdbout.c (sdbout_toplevel_data, sdbout_late_global_decl): Likewise.
2938         * ipa.c (process_references): Likewise.
2939         * tree-chkp-opt.c (chkp_get_check_result): Likewise.
2940         * varasm.c (get_block_for_decl, use_blocks_for_decl_p, make_decl_rtl,
2941         notice_global_symbol, assemble_variable, mark_decl_referenced,
2942         build_constant_desc, output_constant_def_contents, do_assemble_alias,
2943         make_decl_one_only, default_section_type_flags,
2944         categorize_decl_for_section, default_encode_section_info): Likewise.
2945         * trans-mem.c (requires_barrier): Likewise.
2946         * gimple-expr.c (mark_addressable): Likewise.
2947         * cfgexpand.c (add_scope_conflicts_1, expand_one_var,
2948         expand_used_vars_for_block, clear_tree_used, stack_protect_decl_p,
2949         expand_debug_expr): Likewise.
2950         * tree-dump.c (dequeue_and_dump): Likewise.
2951         * ubsan.c (instrument_bool_enum_load): Likewise.
2952         * tree-pretty-print.c (print_declaration): Likewise.
2953         * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
2954         * tree-ssa-uninit.c (warn_uninitialized_vars): Likewise.
2955         * asan.c (asan_protect_global, instrument_derefs): Likewise.
2956         * tree-into-ssa.c (rewrite_stmt, maybe_register_def,
2957         pass_build_ssa::execute): Likewise.
2958         * var-tracking.c (var_debug_decl, track_expr_p): Likewise.
2959         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost, split_address_cost):
2960         Likewise.
2961         * ipa-split.c (test_nonssa_use, consider_split, mark_nonssa_use):
2962         Likewise.
2963         * tree-inline.c (insert_debug_decl_map, remap_ssa_name,
2964         can_be_nonlocal, remap_decls, copy_debug_stmt,
2965         initialize_inlined_parameters, add_local_variables,
2966         reset_debug_binding, replace_locals_op): Likewise.
2967         * dse.c (can_escape): Likewise.
2968         * ipa-devirt.c (compare_virtual_tables, referenced_from_vtable_p):
2969         Likewise.
2970         * tree-diagnostic.c (default_tree_printer): Likewise.
2971         * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
2972         unpack_ts_decl_with_vis_value_fields,
2973         lto_input_ts_decl_common_tree_pointers): Likewise.
2974         * builtins.c (builtin_save_expr, fold_builtin_expect,
2975         readonly_data_expr): Likewise.
2976         * tree-ssa-structalias.c (new_var_info, get_constraint_for_ssa_var,
2977         create_variable_info_for, set_uids_in_ptset, visit_loadstore):
2978         Likewise.
2979         * gimple-streamer-out.c (output_gimple_stmt): Likewise.
2980         * gimplify.c (force_constant_size, gimplify_bind_expr,
2981         gimplify_decl_expr, gimplify_var_or_parm_decl,
2982         gimplify_compound_lval, gimplify_init_constructor,
2983         gimplify_modify_expr, gimplify_asm_expr, gimplify_oacc_declare,
2984         gimplify_type_sizes): Likewise.
2985         * cgraphbuild.c (record_reference, record_type_list, mark_address,
2986         mark_load, mark_store, pass_build_cgraph_edges::execute): Likewise.
2987         * tree-ssa-live.c (mark_all_vars_used_1, remove_unused_scope_block_p,
2988         remove_unused_locals): Likewise.
2989         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p, ptrs_compare_unequal,
2990         ref_maybe_used_by_call_p_1, call_may_clobber_ref_p_1): Likewise.
2991         * function.c (instantiate_expr, instantiate_decls_1,
2992         setjmp_vars_warning, add_local_decl): Likewise.
2993         * alias.c (ao_ref_from_mem, get_alias_set, compare_base_symbol_refs):
2994         Likewise.
2995         * tree-stdarg.c (find_va_list_reference, va_list_counter_struct_op,
2996         va_list_ptr_read, va_list_ptr_write, check_all_va_list_escapes,
2997         optimize_va_list_gpr_fpr_size): Likewise.
2998         * tree-nrv.c (pass_nrv::execute): Likewise.
2999         * tsan.c (instrument_expr): Likewise.
3000         * tree-ssa-dce.c (remove_dead_stmt): Likewise.
3001         * vtable-verify.c (verify_bb_vtables): Likewise.
3002         * tree-dfa.c (ssa_default_def, set_ssa_default_def,
3003         get_ref_base_and_extent): Likewise.
3004         * toplev.c (wrapup_global_declaration_1, wrapup_global_declaration_2):
3005         Likewise.
3006         * tree-sra.c (static bool constant_decl_p, find_var_candidates,
3007         analyze_all_variable_accesses): Likewise.
3008         * tree-nested.c (get_nonlocal_debug_decl,
3009         convert_nonlocal_omp_clauses, note_nonlocal_vla_type,
3010         note_nonlocal_block_vlas, convert_nonlocal_reference_stmt,
3011         get_local_debug_decl, convert_local_omp_clauses,
3012         convert_local_reference_stmt, nesting_copy_decl, remap_vla_decls):
3013         Likewise.
3014         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Likewise.
3015         * stmt.c (decl_overlaps_hard_reg_set_p): Likewise.
3016         * dbxout.c (dbxout_late_global_decl, dbxout_type_fields,
3017         dbxout_symbol, dbxout_common_check): Likewise.
3018         * expr.c (expand_assignment, expand_expr_real_2, expand_expr_real_1,
3019         string_constant): Likewise.
3020         * hsa.c (hsa_get_declaration_name): Likewise.
3021         * passes.c (rest_of_decl_compilation): Likewise.
3022         * tree-ssanames.c (make_ssa_name_fn): Likewise.
3023         * tree-streamer-out.c (pack_ts_decl_common_value_fields,
3024         pack_ts_decl_with_vis_value_fields,
3025         write_ts_decl_common_tree_pointers): Likewise.
3026         * stor-layout.c (place_field): Likewise.
3027         * symtab.c (symtab_node::maybe_create_reference,
3028         symtab_node::verify_base, symtab_node::make_decl_local,
3029         symtab_node::copy_visibility_from,
3030         symtab_node::can_increase_alignment_p): Likewise.
3031         * dwarf2out.c (add_var_loc_to_decl, tls_mem_loc_descriptor,
3032         decl_by_reference_p, reference_to_unused, rtl_for_decl_location,
3033         fortran_common, add_location_or_const_value_attribute,
3034         add_scalar_info, add_linkage_name, set_block_abstract_flags,
3035         local_function_static, gen_variable_die, dwarf2out_late_global_decl,
3036         optimize_one_addr_into_implicit_ptr,
3037         optimize_location_into_implicit_ptr): Likewise.
3038         * gimple-low.c (record_vars_into): Likewise.
3039         * ipa-visibility.c (update_vtable_references): Likewise.
3040         * tree-ssa-address.c (fixed_address_object_p, copy_ref_info):
3041         Likewise.
3042         * lto-streamer-out.c (tree_is_indexable, get_symbol_initial_value,
3043         DFS::DFS_write_tree_body, write_symbol): Likewise.
3044         * langhooks.c (lhd_warn_unused_global_decl,
3045         lhd_set_decl_assembler_name): Likewise.
3046         * attribs.c (decl_attributes): Likewise.
3047         * except.c (output_ttype): Likewise.
3048         * varpool.c (varpool_node::get_create, ctor_for_folding,
3049         varpool_node::assemble_decl, varpool_node::create_alias): Likewise.
3050         * fold-const.c (fold_unary_loc): Likewise.
3051         * ipa-prop.c (ipa_compute_jump_functions_for_edge,
3052         ipa_find_agg_cst_from_init): Likewise.
3053         * omp-low.c (expand_omp_regimplify_p, expand_omp_taskreg,
3054         expand_omp_target, lower_omp_regimplify_p,
3055         grid_reg_assignment_to_local_var_p, grid_remap_prebody_decls,
3056         find_link_var_op): Likewise.
3057         * tree-chrec.c (chrec_contains_symbols): Likewise.
3058         * tree-cfg.c (verify_address, verify_expr, verify_expr_location_1,
3059         gimple_duplicate_bb, move_stmt_op, replace_block_vars_by_duplicates,
3060         execute_fixup_cfg): Likewise.
3062         PR tree-optimization/77901
3063         * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Only optimize
3064         if ranges[i].exp is SSA_NAME when looking for >= and only when
3065         ranges[i].exp is NULL or SSA_NAME when looking for the other
3066         comparison.
3068 2016-10-09  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
3070         * ipa-cp.c (ipcp_alignment_lattice): Remove.
3071         (ipcp_param_lattices): Remove field alignment.
3072         (print_all_lattices): Remove call to ipcp_alignment_lattice::print.
3073         (set_all_contains_variable): Remove call to
3074         ipcp_alignment_lattice::set_to_bottom.
3075         (initialize_node_lattices): Likewise.
3076         (propagate_alignment_accross_jump_function): Remove.
3077         (propagate_constants_accross_call): Remove call to
3078         propagate_alignment_accross_jump_function.
3079         (ipcp_store_alignment_results): Remove.
3080         (ipcp_driver): Remove call to ipcp_store_alignment_results.
3081         (propagate_bits_accross_jump_function): Handle ancestor jump function.
3082         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Remove
3083         pretty-printing of alignment jump function.
3084         (ipa_set_jf_unknown): Remove assignment to jfunc->alignment.known.
3085         (ipa_compute_jump_functions_for_edge): Adjust ipa_bits jump function for
3086         alignments and remove computing ipa_alignment jump function.
3087         (ipa_node_params_t::duplicate): Remove copying of src_trans->alignments.
3088         (ipa_write_jump_functions): Remove streaming for ipa_alignment.
3089         (ipa_read_jump_function): Remove reading of ipa_alignment.
3090         (write_ipcp_transformation_info): Remove streaming for alignment
3091         propagation summary.
3092         (read_ipcp_transformation_info): Remove reading of alignment
3093         propagation summary.
3094         (ipcp_update_alignments): Remove.
3095         (ipcp_update_bits): Adjust to set alignment for parameters of pointer
3096         type.
3097         (ipcp_transform_function): Remove call to ipcp_update_alignments()
3098         and remove assignment to (*ipcp_transformations)[node->uid].alignments.
3099         * ipa-prop.h (ipa_alignment): Remove.
3100         (ipa_jump_func): Remove field alignment.
3101         (ipcp_transformation_summary): Remove field alignments.
3102         * doc/invoke.texi: Mark fipa-cp-alignment as obsolete.
3103         * opts.c (default_options_table): Remove entry for fipa-cp-alignment.
3104         (enable_fdo_optimizations): Remove checking for fipa-cp-alignment.
3106 2016-10-08  Eric Botcazou  <ebotcazou@adacore.com>
3108         * config/sparc/sparc.h (FIXED_REGISTERS): Add %icc.
3110         * config/visium/visium.c (visium_expand_int_cstore): Revert latest
3111         change.
3112         (visium_expand_fp_cstore): Likewise.
3114 2016-10-08  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
3116         * diagnostic-core.h (warning_at_rich_loc_n): Declare.
3117         * diagnostic.c (warning_at_rich_loc_n): New function.
3118         (diagnostic_n_impl_richloc): Likewise.
3119         (diagnostic_n_impl): Move most of the function to
3120         diagnostic_n_impl_richloc and call it.
3122 2016-10-08  Jakub Jelinek  <jakub@redhat.com>
3124         * gen-pass-instances.awk: Rewritten.
3125         * Makefile.in (pass-instances.def): Depend on $(PASSES_EXTRA), pass
3126         $(PASSES_EXTRA) after passes.def to the script.
3127         * config/i386/t-i386 (PASSES_EXTRA): Add i386-passes.def.
3128         * config/i386/i386-passes.def: New file.
3129         * config/i386/i386-protos.h (make_pass_insert_vzeroupper,
3130         make_pass_stv): Declare.
3131         * config/i386/i386.c (pass_stv::pass_stv): Initialize timode_p to
3132         false.
3133         (pass_stv::gate): Depending on timode_p member require TARGET_64BIT
3134         or !TARGET_64BIT.
3135         (pass_stv::clone, pass_stv::set_pass_param): New methods.
3136         (pass_stv::timode_p): New non-static data member.
3137         (ix86_option_override): Don't register passes here.
3139         * doc/invoke.texi: Document accepting Else, fallthrough.
3141         * doc/invoke.texi (-Wimplicit-fallthrough): Document FALLTHRU comment
3142         style changes.
3144         * doc/invoke.texi (-Wimplicit-fallthrough): Document the accepted
3145         FALLTHRU comment styles.
3147 2016-10-07  Andrew Pinski  <apinski@cavium.com>
3149         * config/aarch64/aarch64-arches.def (AARCH64_ARCH): #undef at the end.
3150         * config/aarch64/aarch64-cores.def (AARCH64_CORE): Likewise.
3151         * config/aarch64/aarch64-fusion-pairs.def (AARCH64_FUSION_PAIR):
3152         Likewise.
3153         * config/aarch64/aarch64-option-extensions.def (AARCH64_OPT_EXTENSION):
3154         Likewise.
3155         * config/aarch64/aarch64-tuning-flags.def (AARCH64_EXTRA_TUNING_OPTION):
3156         Likewise.
3157         * config/aarch64/aarch64-opts.h (AARCH64_CORE): Don't #undef here.
3158         (AARCH64_ARCH): Likewise.
3159         * common/config/aarch64/aarch64-common.c (AARCH64_OPT_EXTENSION):
3160         Likewise.
3161         (AARCH64_CORE): Likewise.
3162         (AARCH64_ARCH): Likewise.
3163         * config/aarch64/aarch64-protos.h (AARCH64_FUSION_PAIR): Likewise.
3164         (AARCH64_EXTRA_TUNING_OPTION): Likewise.
3165         * config/aarch64/aarch64.c (AARCH64_FUION_PAIR): Likewise.
3166         (AARCH64_EXTRA_TUNING_OPTION): Likewise.
3167         (AARCH64_ARCH): Likewise.
3168         (AARCH64_CORE): Likewise.
3169         * config/aarch64/aarch64.h (AARCH64_CORE): Likewise.
3170         * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Likewise.
3171         (AARCH64_CORE): Likewise.
3172         (AARCH64_ARCH): Likewise.
3174 2016-10-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
3176         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Split
3177         -mfloat128 into -mfloat128-type that enables the IEEE 128-bit
3178         floating point type infrastructre, and -mfloat128 that enables the
3179         keyword.  Define __FLOAT128__ if -mfloat128, and __FLOAT128_TYPE__
3180         if -mfloat128-type.  Define __ibm128 to be long double by default.
3181         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print whether
3182         the IEEE 128-bit floating point type infrastructure should
3183         automatically be enabled.
3184         (rs6000_init_hard_regno_mode_ok): Switch to use -mfloat128-type
3185         instead of -mfloat128 to enable KFmode.
3186         (rs6000_option_override_internal): Split the option -mfloat128
3187         into -mfloat128-type and -mfloat128.  On Linux PowerPC 64-bit
3188         systems, automatically set -mfloat128-type, but don't enable it on
3189         other operating systems.  Move setting the long double size and
3190         IEEE quad support before the IEEE 128-bit floating point changes.
3191         (rs6000_init_builtins): Do not create a unique type for __ibm128
3192         if long double is IBM extended double, instead rely on __ibm128
3193         being defined as 'long double'.  If -mfloat128-type and not
3194         -mfloat128, create the KFmode type with an undocumented __ieee128
3195         keyword.
3196         (rs6000_init_libfuncs): Use -mfloat128-type instead of
3197         -mfloat128 for tests about the types, but keep tests for
3198         -mfloat128 to enable the keyword support.
3199         (rs6000_complex_function_value): Likewise.
3200         (rs6000_scalar_mode_supported_p): Likewise.
3201         (rs6000_floatn_mode): Likewise.
3202         (rs6000_c_mode_for_suffix): Likewise.
3203         (rs6000_opt_masks): Add -mfloat128-type.
3204         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add support for
3205         -mfloat128-type being split from -mfloat128.  Add
3206         -mfloat128-hardware, which was missing.
3207         * config/rs6000/rs6000.opt (-mfloat128): Split -mfloat128 into
3208         -mfloat128 and -mfloat128-type:
3209         (-mfloat128-type): Likewise.
3210         * config/rs6000/linux64.h (TARGET_FLOAT128_ENABLE_TYPE): Define so
3211         that 64-bit Linux systems with enable -mfloat128-type by default
3212         on VSX systems.
3213         * config/rs6000/rs6000.h (TARGET_FLOAT128_ENABLE_TYPE): Likewise.
3214         (FLOAT128_VECTOR_P): Switch IEEE 128-bit floating points to use
3215         -mfloat128-type instead of -mfloat128.
3216         (FLOAT128_2REG_P): Likewise.
3217         (MASK_FLOAT128_TYPE): Likewise.
3218         (ALTIVEC_ARG_MAX_RETURN): Likewise.
3219         (RS6000_BTM_FLOAT128): Likewise.
3220         (TARGET_FLOAT128): Poison old identifiers.
3221         (OPTION_MASK_FLOAT128): Likewise.
3222         (MASK_FLOAT128): Likewise.
3223         * config/rs6000/rs6000.md (FP): Likewise.
3224         (FLOAT128): Likewise.
3225         (fix_trunc<mode>di2): Likewise.
3226         (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
3227         (floatdi<mode>2): Likewise.
3228         (floatuns<SDI:mode><IEEE128:mode>2): Likewise.
3229         (neg<mode>2, FLOAT128 iterator): Likewise.
3230         (abs<mode>2, FLOAT128 iterator): Likewise.
3231         (ieee_128bit_negative_zero): Likewise.
3232         (ieee_128bit_vsx_neg<mode>2): Likewise.
3233         (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
3234         (ieee_128bit_vsx_abs<mode>2): Likewise.
3235         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
3236         (ieee_128bit_vsx_nabs<mode>2): Likewise.
3237         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
3238         (extendiftf2): Likewise.
3239         (extendifkf2): Likewise.
3240         (extendtfkf2): Likewise.
3241         (trunciftf2): Likewise.
3242         (truncifkf2): Likewise.
3243         (trunckftf2): Likewise.
3244         (trunctfif2): Likewise.
3245         (extendkftf2): Likewise.
3246         (trunctfkf2): Likewise.
3248 2016-10-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3250         * simplify-rtx.c (simplify_immed_subreg): Zero-initialize tmp array
3251         before merging in bytes to pass down to real_from_target.
3253 2016-10-07  Richard Biener  <rguenther@suse.de>
3255         * tree-ssa-propagate.c (replace_phi_args_in): Remove no longer
3256         required hack.
3257         (substitute_and_fold_dom_walker::before_dom_children):
3258         Substitute and fold before pass specific folding to avoid
3259         feeding that with SSA names that will be later released.
3260         * tree-ssa-ccp.c (get_value_for_expr): Guard for new SSA names
3261         introduced by folding and visited by evaluate_stmt called during
3262         ccp_fold_stmt.
3263         (likely_value): Likewise.
3264         (evaluate_stmt): Likewise.
3265         * tree-vrp.c (simplify_truth_ops_using_ranges): Fold modified stmt.
3266         (simplify_div_or_mod_using_ranges): Likewise.
3267         (simplify_min_or_max_using_ranges): Likewise.
3268         (simplify_abs_using_ranges): Likewise.
3269         (simplify_conversion_using_ranges): Likewise.
3270         (simplify_float_conversion_using_ranges): Likewise.
3271         (simplify_stmt_using_ranges): Likewise.
3273 2016-10-07  Marek Polacek  <polacek@redhat.com>
3275         * gimplify.c (should_warn_for_implicit_fallthrough): Check for
3276         FALLTHROUGH_LABEL_P here...
3277         (warn_implicit_fallthrough_r): ...not here.
3279 2016-10-07  Bernd Schmidt  <bschmidt@redhat.com>
3281         PR tree-optimization/77880
3282         * expr.c (by_pieces_ninsns): Use unsigned HOST_WIDE_INT where
3283         necessary.
3285 2016-10-07  Marek Polacek  <polacek@redhat.com>
3287         PR c++/77803
3288         * gimplify.c (last_stmt_in_scope): Add check for FALLTHROUGH ().
3290 2016-10-07  Richard Biener  <rguenther@suse.de>
3292         * bitmap.h: Document constraints on bitmap modification while
3293         iterating over it.
3295 2016-10-07  Richard Biener  <rguenther@suse.de>
3297         * bitmap.c (bitmap_elem_to_freelist): Set indx to -1.
3298         * bitmap.h (bmp_iter_set): When advancing to the next element
3299         check that we didn't remove the current one.
3300         (bmp_iter_and): Likewise.
3301         (bmp_iter_and_compl): Likewise.
3302         * tree-ssa.c (release_defs_bitset): Do not remove worklist bit
3303         we currently iterate on but keep a one-level queue.
3304         * sched-deps.c (remove_from_deps): Do not clear current bit
3305         but keep a one-level queue.
3307 2016-10-07  Jakub Jelinek  <jakub@redhat.com>
3309         PR tree-optimization/77664
3310         * tree-ssa-reassoc.c (update_range_test): Also clear low and high
3311         for the other ranges.
3312         (optimize_range_tests_diff): Fix up formatting.
3313         (optimize_range_tests_var_bound): New function.
3314         (optimize_range_tests): Use it.
3316 2016-10-07  Martin Liska  <mliska@suse.cz>
3318         * coverage.c (build_gcov_exit_decl): Fix priority what
3319         should be really 99.
3321 2016-10-07  Richard Biener  <rguenther@suse.de>
3323         * gimple-low.c (lower_gimple_bind): Clear DECL_CHAIN of
3324         vars in gimple_bind_vars but not in BLOCK_VARS.
3326 2016-10-07  Richard Biener  <rguenther@suse.de>
3328         PR tree-optimization/77879
3329         * tree-ssa-structalias.c (handle_const_call): Properly handle
3330         NRV return slots.
3331         (handle_pure_call): Likewise.
3333 2016-10-06  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
3335         * config/rs6000/rs6000.c (rs6000_elf_asm_out_constructor)
3336         (rs6000_elf_asm_out_destructor): increase size of buf to avoid
3337         possible overflow.
3339 2016-10-06  Andrew Pinski  <apinski@cavium.com>
3341         * config/aarch64/aarch64-cores.def: Add a comment before each
3342         set of cores.
3344 2016-10-06  Kugan Vivekanandarajah  <kuganv@linaro.org>
3346         PR tree-optimization/77862
3347         * tree-vrp.c (add_equivalence): Use get_value_range so that
3348         num_vr_values is checked before accessing vr_values.
3350 2016-10-06  Kugan Vivekanandarajah  <kuganv@linaro.org>
3352         * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
3353           POINTER_TYPE_P.
3355 2016-10-05  Jeff Law  <law@redhat.com>
3357         PR tree-optimization/71661
3358         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Handle case when
3359         removal of a forwarder exposes a new natural loop.
3361 2016-10-06  Uros Bizjak  <ubizjak@gmail.com>
3363         * config/i386/sse.md (andnot<mode>3): Add FALLTHRU comments.
3364         Introduce ssesuffix variable.
3365         (<mask_codefor><code><mode>3<mask_name>): Ditto.
3366         (*<code><mode>3): Ditto.
3368 2016-10-06  Jan Hubicka  <hubicka@ucw.cz>
3370         * postreload.c (reload_cse_simplify): Skip also USE when detecting
3371         noop move.
3373 2016-10-06  Richard Biener  <rguenther@suse.de>
3375         PR tree-optimization/77855
3376         * tree-ssa-pre.c (prune_clobbered_mems): Queue exprs to remove
3377         instead of removing the current item while iterating over the set
3378         which is not safe.
3380 2016-10-06  James Clarke  <jrtc27@jrtc27.com>
3381             Eric Botcazou  <ebotcazou@adacore.com>
3383         PR target/77759
3384         * config/sparc/sparc.c (classify_data_t): Remove int_regs field.
3385         (classify_registers): Don't set it
3386         (function_arg_slotno): Don't initialize and test it.  Tidy up.
3388 2016-10-06  Richard Biener  <rguenther@suse.de>
3390         PR tree-optimization/77839
3391         * tree-ssa-sccvn.c (set_ssa_val_to): Forbid value -> constant value
3392         lattice transition.
3394 2016-10-06  Martin Liska  <mliska@suse.cz>
3396         * gcc.c: Set -fprofile-update=atomic when profiling is
3397         enabled and -pthread is set.  Warn when one combines
3398         -pthread and -fprofile-update=single for an app using
3399         profiling code.
3401 2016-10-06  Martin Liska  <mliska@suse.cz>
3403         PR bootstrap/77788
3404         * expmed.h (mul_highpart_cost_ptr): Add an gcc_assert.
3405         * gimple-ssa-strength-reduction.c (slsr_process_cast):
3406         Initialize a pointer to NULL.
3407         (slsr_process_copy): Likewise.
3408         * input.c (location_get_source_line): Likewise.
3409         * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
3411 2016-10-05  Andrew Senkevich  <andrew.senkevich@intel.com>
3413         * common/config/i386/i386-common.c (OPTION_MASK_ISA_PCOMMIT_UNSET,
3414         OPTION_MASK_ISA_PCOMMIT_SET): Deleted definitions.
3415         (ix86_handle_option): Deleted handle of OPT_mpcommit.
3416         * config.gcc: Deleted pcommitintrin.h
3417         * config/i386/pcommitintrin.h: Deleted file.
3418         * config/i386/cpuid.h (bit_PCOMMIT): Deleted.
3419         * config/i386/driver-i386.c (host_detect_local_cpu): Deleted pcommit
3420         detection.
3421         * config/i386/i386-c.c (ix86_target_macros_internal): Deleted define
3422         __PCOMMIT__.
3423         * config/i386/i386.c (ix86_target_string): Deleted -mpcommit.
3424         (PTA_PCOMMIT): Deleted define.
3425         (ix86_option_override_internal): Deleted handle of option.
3426         (ix86_valid_target_attribute_inner_p): Deleted pcommit.
3427         * config/i386/i386-builtin.def (IX86_BUILTIN_PCOMMIT,
3428         __builtin_ia32_pcommit): Deleted.
3429         * config/i386/i386.h (TARGET_PCOMMIT, TARGET_PCOMMIT_P): Deleted.
3430         * config/i386/i386.md (unspecv): Deleted UNSPECV_PCOMMIT.
3431         (pcommit): Deleted instruction.
3432         * config/i386/i386.opt: Mention -mpcommit deprecation.
3433         * config/i386/x86intrin.h: Deleted inclusion of pcommitintrin.h.
3435 2016-10-05  Uros Bizjak  <ubizjak@gmail.com>
3437         PR target/77874
3438         * config/i386/sse.md (<mask_codefor><code><mode>3<mask_name>):
3439         Remove wrong assert.
3440         (<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>:
3441         Use <round_constraint> as operand 1 constraint.
3443 2016-10-05  Jakub Jelinek  <jakub@redhat.com>
3445         PR sanitizer/66343
3446         * ubsan.c (ubsan_create_data): Call initialize_sanitizer_builtins here.
3447         (ubsan_instrument_float_cast): And not here.
3449         PR sanitizer/66343
3450         * ubsan.c (ubsan_ids): New GTY(()) array.
3451         (ubsan_type_descriptor, ubsan_create_data): Use ubsan_ids
3452         instead of static local counters.
3454 2016-10-05  Martin Sebor  <msebor@redhat.com>
3456         PR bootstrap/77819
3457         * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define macro.
3458         * config/linux.c (gnu_libc_printf_pointer_format): Remove.
3459         * targhooks.c [DEFAULT_LIBC == LIBC_UCLIBC) && SINGLE_LIBC]
3460         (default_printf_pointer_format): Define function.
3461         * targhooks.c (linux_printf_pointer_format): Define new function.
3462         * targhooks.h (linux_printf_pointer_format): Declare.
3463         (gnu_libc_printf_pointer_format): Remove declaration.
3465 2016-10-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3467         * fold-const.c (native_encode_real): Fix logic for selecting offset
3468         to write to when BYTES_BIG_ENDIAN.
3470 2016-10-05  Wilco Dijkstra  <wdijkstr@arm.com>
3472         * builtins.c (fold_builtin_strchr): Remove function.
3473         (fold_builtin_strrchr): Likewise.
3474         (fold_builtin2): Remove strchr, index, strrchr, rindex cases.
3475         * gimple-fold.c (target_char_cst_p): New function.
3476         (gimple_fold_builtin_strchr) Add more foldings.
3477         (gimple_fold_builtin): Add index, strrchr, rindex cases.
3479 2016-10-05  Richard Biener  <rguenther@suse.de>
3481         PR middle-end/77863
3482         * genmatch.c (capture_info::walk_c_expr): Diagnose unknown
3483         capture ids in c-exprs.
3485 2016-10-05  Richard Biener  <rguenther@suse.de>
3487         PR middle-end/77826
3488         * genmatch.c (dt_operand::gen_match_op): Amend operand_equal_p
3489         with types_match for GIMPLE code gen to handle type mismatched
3490         constants properly.
3491         (dt_operand::gen): Adjust.
3492         * match.pd ((X /[ex] A) * A -> X): Properly handle converted
3493         and constant A.
3495 2016-10-05  Richard Biener  <rguenther@suse.de>
3497         * match.pd (copysign(x, CST) -> [-]abs (x)): New pattern.
3499 2016-10-05  Richard Biener  <rguenther@suse.de>
3501         PR middle-end/77842
3502         * genmatch.c (parser::parse_c_expr): Handle premature EOF.
3504 2016-10-05  Pierre-Marie de Rodat  <derodat@adacore.com>
3506         * dwarf2out.c (dwarf2out_imported_module_or_decl): Move DWARF
3507         version check to protect only DW_TAG_imported_module generation.
3509 2016-10-05  Richard Biener  <rguenther@suse.de>
3511         PR middle-end/55152
3512         * match.pd (min(a,-a) -> -abs(a)): New pattern.
3514 2016-10-04  Ian Lance Taylor  <iant@golang.org>
3516         * explow.c (allocate_dynamic_stack_space): Call
3517         do_pending_stack_adjust before handling flag_split_stack.
3519 2016-10-04  David Malcolm  <dmalcolm@redhat.com>
3521         * genattrtab.c (make_internal_attr): Supply dummy column number to
3522         file_location ctor.
3523         (main): Likewise.
3524         * genoutput.c (init_insn_for_nothing): Likewise.
3525         * gensupport.c (add_define_attr): Likewise.
3526         * read-md.c (message_at_1): Print column number.
3527         (fatal_with_file_and_line): Likewise.
3528         (rtx_reader::read_char): Track column numbers.
3529         (rtx_reader::unread_char): Likewise.
3530         (rtx_reader::rtx_reader): Initialize m_read_md_colno.
3531         (rtx_reader::handle_include): Stash and restore m_read_md_colno.
3532         (rtx_reader::handle_file): Initialize m_read_md_colno.
3533         (rtx_reader::get_current_location): Supply column number to
3534         file_location ctor.
3535         * read-md.h (struct file_location): Add field "colno".
3536         (file_location::file_location): Likewise.
3537         (rtx_reader::get_colno): New accessor.
3538         (rtx_reader::m_read_md_colno): New field.
3539         (rtx_reader::m_last_line_colno): New field.
3541 2016-10-04  Jakub Jelinek  <jakub@redhat.com>
3543         * doc/extend.texi (Java Exceptions): Remove.
3544         (java_interface): Remove.
3546 2016-10-04  Doug Gilmore  <doug.gilmore@imgtec.com>
3548         PR tree-optimization/77808
3549         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Check base_addr
3550         and addr are different before copying points-to information.
3552 2016-10-04  Uros Bizjak  <ubizjak@gmail.com>
3554         * config/i386/x86-tune.def (X86_TUNE_VECTORIZE_DOUBLE): Remove.
3555         * config/i386/i386.h (TARGET_VECTORIZE_DOUBLE): Remove.
3556         * config/i386/i386.c (ix86_add_stmt_cost): Use TARGET_BONNEL instead
3557         of !TARGET_VECTORIZE_DOUBLE when penalizing DFmode vector ops.
3559 2016-10-04  Richard Biener  <rguenther@suse.de>
3561         PR tree-optimization/77399
3562         * tree-ssa-forwprop.c (simplify_vector_constructor): Properly
3563         verify the target can convert.
3565 2016-10-04  Richard Biener  <rguenther@suse.de>
3567         PR middle-end/77833
3568         * explow.c (plus_constant): Verify the mode of the constant
3569         pool offset before calling plus_constant.
3571 2016-10-04  Richard Biener  <rguenther@suse.de>
3573         PR middle-end/77407
3574         * match.pd (X / abs (X) -> X < 0 ? -1 : 1): Drop vector
3575         type support, mark with :C.
3576         (X / -X -> -1): Mark with :C.
3578 2016-10-04  Jakub Jelinek  <jakub@redhat.com>
3580         * defaults.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Remove.
3581         * system.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Poison.
3582         * doc/tm.texi.in (TARGET_USE_JCR_SECTION): Remove.
3583         * doc/tm.texi: Regenerated.
3584         * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Remove.
3585         * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Remove.
3586         * config/darwin.h (JCR_SECTION_NAME): Remove.
3587         * config/pa/pa64-hpux.h (JCR_SECTION_NAME): Remove.
3588         * config/rs6000/aix71.h (TARGET_USE_JCR_SECTION): Remove.
3589         * config/rs6000/aix51.h (TARGET_USE_JCR_SECTION): Remove.
3590         * config/rs6000/aix52.h (TARGET_USE_JCR_SECTION): Remove.
3591         * config/rs6000/aix53.h (TARGET_USE_JCR_SECTION): Remove.
3592         * config/rs6000/aix61.h (TARGET_USE_JCR_SECTION): Remove.
3594 2016-10-03  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
3596         * ipa-cp.c (propagate_bits_accross_jump_function): Introduce space
3597         between "because" and "param" in dump message in call to fprintf.
3599 2016-10-03  Jeff Law  <law@redhat.com>
3601         PR tree-optimization/71550
3602         PR tree-optimization/71403
3603         * tree-ssa-threadbackward.c: Include tree-vectorizer.h
3604         (profitable_jump_thread_path): Also return boolean indicating if
3605         the realized path will create an irreducible loop.
3606         Remove loop depth tests from 71403.
3607         (fsm_find_control_statement_thread_paths): Remove loop depth tests
3608         from 71403.  If threading will create an irreducible loop, then
3609         throw away loop iteration and related information.
3611 2016-10-03  Uros Bizjak  <ubizjak@gmail.com>
3613         * configure.ac (strict_warn): Merge -Wmissing-format-attribute and
3614         -Woverloaded-virtual checks for warning options.
3615         * configure: Regenerate.
3617 2016-10-03  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3619         PR preprocessor/77699
3620         * input.c (maybe_grow): Don't allocate one byte extra headroom.
3621         (get_next_line): Return false on error.
3622         (read_next_line): Removed, use get_next_line instead.
3623         (read_line_num): Don't copy the line.
3624         (location_get_source_line): Don't use static data.
3625         (selftest::test_reading_source_line): Add more test cases.
3627 2016-10-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3629         Revert
3630         2016-09-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3632         * ifcvt.c (noce_try_avoid_const_materialization): New function.
3633         (noce_process_if_block): Use it.
3635 2016-10-03  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3637         * doc/invoke.texi: Update -Wint-in-bool-context.
3639 2016-10-02  Jakub Jelinek  <jakub@redhat.com>
3641         * dwarf2out.c (output_fde, output_call_frame_info,
3642         dwarf2out_do_cfi_startproc, set_indirect_string,
3643         gen_internal_sym, output_die, output_line_info): Use
3644         MAX_ARTIFICIAL_LABEL_BYTES as char array sizes for
3645         ASM_GENERATE_INTERNAL_LABEL output.
3647 2016-10-01  Richard Biener  <rguenther@suse.de>
3649         PR middle-end/77798
3650         * genmatch.c (get_operand_type): Add operand position arg
3651         and handle COND_EXPR comparison operand with fixed boolean_type_node.
3652         (expr::gen_transform): Adjust.
3653         (dt_simplify::gen_1): Likewise.
3655 2016-10-01  Jakub Jelinek  <jakub@redhat.com>
3657         * config/i386/sse.md (<mask_codefor><code><mode>): Add FALLTHRU
3658         comments.  Simplify asserts, remove unnecessary conditions.
3659         Formatting fixes.
3660         (*<code><mode>3): Likewise.
3662 2016-09-30  Jakub Jelinek  <jakub@redhat.com>
3664         * doc/invoke.texi (-Wregister): Document.
3666 2016-09-30  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3668         * configure.ac: Split CHECKING_P into CHECKING_P and
3669         ENABLE_EXTRA_CHECKING.
3670         * configure: Regenerated.
3671         * config.in: Adjust commment of CHECKING_P.  Add ENABLE_EXTRA_CHECKING.
3672         * common.opt (flag_checking): Use CHECKING_P and ENABLE_EXTRA_CHECKING.
3674 2016-09-30  Prasad Ghangal  <prasad.ghangal@gmail.com>
3676         PR other/31566
3677         * gcc.c (process_command): For @filename handling, output
3678         the correct name if the file does not exist.
3680 2016-09-30  Marek Polacek  <polacek@redhat.com>
3682         * config/aarch64/aarch64-simd.md: Adjust fall through comments.
3683         * config/alpha/predicates.md: Likewise.
3685 2016-09-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3687         * ifcvt.c (noce_try_avoid_const_materialization): New function.
3688         (noce_process_if_block): Use it.
3690 2016-09-30  Martin Liska  <mliska@suse.cz>
3692         * doc/invoke.texi: Document asan-use-after-return that
3693         it's disabled by default in runtime.
3695 2016-09-30  Richard Biener  <rguenther@suse.de>
3697         * tree-vrp.c (intersect_ranges): If we failed to handle
3698         the intersection choose a constant singleton range if available.
3700 2016-09-30  Richard Biener  <rguenther@suse.de>
3702         PR tree-optimization/77399
3703         * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
3704         float <-> int conversions.
3706 2016-09-30  Alan Modra  <amodra@gmail.com>
3708         * config/rs6000/rs6000.c (rs6000_opt_vars): Revert last change.
3710 2016-09-29  Uros Bizjak  <ubizjak@gmail.com>
3712         * config/i386/driver-i386.c (host_detect_local_cpu): Check maximum
3713         ext_level before calling CPUID with 0x80000008.
3714         Simplify xgetbv checks.
3716 2016-09-29  David Malcolm  <dmalcolm@redhat.com>
3718         * Makefile.in (OBJS): Add print-rtl-function.o.
3719         * print-rtl-function.c: New file.
3720         * print-rtl.h (print_rtx_function): New decl.
3722 2016-09-29  Uros Bizjak  <ubizjak@gmail.com>
3724         PR target/77756
3725         * config/i386/cpuid.h (__get_cpuid_count): New.
3726         (__get_cpuid): Rename __level to __leaf.
3728 2016-09-29  Marek Polacek  <polacek@redhat.com>
3730         * genattrtab.c (write_attr_case): Also emit FALLTHRU marker.
3732 2016-09-29  Bernd Schmidt  <bschmidt@redhat.com>
3734         * builtins.c (expand_builtin_memcmp): don't swap args unless
3735         result is only being compared with zero.
3737 2016-09-29  Marek Polacek  <polacek@redhat.com>
3739         * dwarf2out.c (loc_descriptor): Add fall through comment.
3740         (add_const_value_attribute): Likewise.
3742 2016-09-29  Matthew Wahab  <matthew.wahab@arm.com>
3744         * config/arm/arm.md (*arm_movsi_insn): Replace "t2" arch attribute
3745         with "v6t2".  Move "arch" attribute above "pool_range".
3746         * config/arm/vfp.md (*arm_movhi_vfp): Replace "t2" arch attribute
3747         with "v6t2".
3748         (*thumb2_movhi_vfp): Likewise.
3749         (*arm_movhi_fp16): Likewise.
3750         (*thumb2_movhi_fp16): Likewise.
3751         (*arm_movsi_vfp): Remove "arch" attribute.
3752         (*thumb2_movsi_vfp): Likewise.
3754 2016-09-29  Martin Liska  <mliska@suse.cz>
3756         * doc/extend.texi: Remove limitation of Objective C for
3757         __attribute__((constructor)) and __attribute__((destructor)).
3759 2016-09-29  Richard Biener  <rguenther@suse.de>
3761         PR tree-optimization/77768
3762         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
3763         Handle stores to readonly memory when removing redundant stores.
3765 2016-09-29  Richard Biener  <rguenther@suse.de>
3767         PR middle-end/77407
3768         * match.pd: Add X / abs (X) -> X < 0 ? -1 : 1 and
3769         X / -X -> -1 simplifications.
3771 2016-09-29  Richard Biener  <rguenther@suse.de>
3773         PR middle-end/55152
3774         * match.pd: Add max(a,-a) -> abs(a) pattern.
3775         * tree-ssa-phiopt.c (minmax_replacement): Disable for
3776         HONOR_SIGNED_ZEROS types.
3778 2016-09-29  James Greenhalgh  <james.greenhalgh@arm.com>
3780         * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Remove.
3781         * system.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Poison.
3783 2016-09-29  Richard Biener  <rguenther@suse.de>
3785         * tree-vrp.c (set_defs_to_varying): New helper avoiding
3786         writing to vr_const_varying.
3787         (vrp_initialize): Call it.
3788         (vrp_visit_stmt): Likewise.
3789         (evrp_dom_walker::before_dom_children): Likewise.
3791 2016-09-29  Richard Biener  <rguenther@suse.de>
3793         * tree-vect-stmts.c (vectorizable_load): Avoid emitting vector
3794         constructors with vector elements.
3796 2016-09-29  Richard Biener  <rguenther@suse.de>
3798         PR tree-optimization/77768
3799         * tree-ssa-sccvn.c (visit_reference_op_store): Properly deal
3800         with stores to a place we know has a constant value.
3802 2016-09-29  Alan Modra  <amodra@gmail.com>
3804         * config/rs6000/sysv4.opt (mgnu-attribute): New option.
3805         * doc/invoke.texi: Document it.
3806         * config/rs6000/rs6000.c (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): Define.
3807         (rs6000_passes_float): Comment.
3808         (rs6000_passes_long_double): New static var.
3809         (call_ABI_of_interest): Return false unless rs6000_gnu_attr is set.
3810         (init_cumulative_args): Set up to emit fp .gnu_attribute for
3811         ELF 64-bit ABIs as well as 32-bit ELF.  Correct rs6000_passes_float
3812         to include fp values returned in vectors.
3813         Set rs6000_passes_long_double.
3814         (rs6000_function_arg_advance_1): Likewise for function args.
3815         (rs6000_elf_file_end): Emit fp .gnu_attribute for ELF 64-bit ABIs,
3816         and SPE.  Emit long double tag value too.
3817         (rs6000_opt_vars): Add gnu-attr.
3818         * configure.ac (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): New ppc32 test.
3819         * configure: Regenerate.
3820         * config.in: Regenerate.
3822 2016-09-28  Jakub Jelinek  <jakub@redhat.com>
3824         * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Use x > 0 instead
3825         of 0 < x.
3826         (format_floating, format_string, format_directive,
3827         get_destination_size, pass_sprintf_length::handle_gimple_call):
3828         Likewise.
3830 2016-09-28  Jakub Jelinek  <jakub@redhat.com>
3832         * gimple-ssa-sprintf.c: Fix comment formatting.
3833         (format_integer): Use is_gimple_assign.
3834         (pass_sprintf_length::handle_gimple_call): Use gimple_call_builtin_p
3835         and gimple_call_fndecl.  Reorder case BUILT_IN_SPRINTF_CHK.  Fix up
3836         BUILT_IN_SNPRINTF_CHK comment.  Replace "to to" with "to" in comment.
3837         (pass_sprintf_length::execute): Use is_gimple_call.
3839 2016-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
3841         * gimple-fold.c (gimple_fold_builtin): After failing to fold
3842         strchr, also try the generic folding.
3844 2016-09-28  Martin Sebor  <msebor@redhat.com>
3846         PR c/77762
3847         * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call):
3848         Fix typos.
3850 2016-09-28  Martin Sebor  <msebor@redhat.com>
3852         PR middle-end/77683
3853         * gimple-ssa-sprintf.c (format_integer): Fail gracefully when
3854         length modifier is not expected.
3855         (format_floating): Ignore l length modifier and fail gracefuly
3856         when it isn't one of the other expected ones.
3858 2016-09-28  Martin Sebor  <msebor@redhat.com>
3860         PR bootstrap/77753
3861         * varasm.c (assemble_addr_to_section): Increase local buffer size.
3863 2016-09-27  Richard Biener  <rguenther@suse.de>
3865         * dwarf2out.c (cu_die_list): New global.
3866         (dwarf2out_finish): Walk cu_die_list instead of limbo DIEs.  Add
3867         main_comp_unit_die to cu_die_list if we created it.
3868         Move break_out_includes ...
3869         (dwarf2out_early_finish): ... here.  Push created CU DIEs onto
3870         the cu_die_list.
3872 2016-09-28  Richard Biener  <rguenther@suse.de>
3874         * dwarf2out.c (struct die_struct): Add removed flag.
3875         (lookup_type_die): If the DIE is marked as removed, clear
3876         TYPE_SYMTAB_DIE and return NULL.
3877         (lookup_decl_die): If the DIE is marked as removed, remove it
3878         from the hash and return NULL.
3879         (mark_removed): New helper.
3880         (prune_unused_types_prune): Call it for removed DIEs.
3881         (gen_subprogram_die): Move the premark_used_types call to after
3882         DIEs for the functions scopes are generated.
3883         (process_scope_var): Do not re-create pruned types or type decls.
3884         Make sure to also re-parent type decls.
3885         (dwarf2out_finish): Move unused type pruning and debug_types
3886         handling ...
3887         (dwarf2out_early_finish): ... here.
3889 2016-09-29  Claudiu Zissulescu  <claziss@synopsys.com>
3891         * config/arc/arc-c.c: New file.
3892         * config/arc/arc-c.def: Likewise.
3893         * config/arc/t-arc: Likewise.
3894         * config.gcc: Include arc-c.o as c and cpp object.
3895         * config/arc/arc-protos.h (arc_cpu_cpp_builtins): Add prototype.
3896         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Use
3897         arc_cpu_cpp_builtins.
3899 2016-09-29  Claudiu Zissulescu  <claziss@synopsys.com>
3901         * config/arc/arc.md (*rotrsi3_cnt1): New pattern.
3902         (*ashlsi2_cnt1, *lshrsi3_cnt1, *ashrsi3_cnt1): Likewise.
3904 2016-09-28  Nathan Sidwell  <nathan@acm.org>
3906         * gimple-pretty-print.c (dump_gimple_call_args): Simplify "' "
3907         printing.
3909 2016-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
3911         PR tree-optimization/61056
3912         * gimple-fold.c (gimple_fold_builtin_strchr):
3913         New function to optimize strchr (s, 0) to strlen.
3914         (gimple_fold_builtin): Add BUILT_IN_STRCHR case.
3916 2016-09-27  Robin Dapp  <rdapp@linux.vnet.ibm.com>
3918         PR tree-optimization/77724
3919         * tree-vect-loop-manip.c (create_intersect_range_checks_index):
3920         Add tree_fits_shwi_p check.
3922 2016-09-27  Jakub Jelinek  <jakub@redhat.com>
3924         * auto-inc-dec.c (try_merge): Remove break after return.
3925         * cselib.c (autoinc_split): Likewise.
3926         * explow.c (promote_mode): Likewise.
3927         * fixed-value.c (fixed_arithmetic): Likewise.
3928         * hsa.c (hsa_internal_fn::get_arity): Likewise.
3929         * rtlanal.c (modified_between_p, modified_in_p): Likewise.
3930         * trans-mem.c (get_attrs_for): Likewise.
3931         * tree-if-conv.c (if_convertible_stmt_p): Likewise.
3932         * tree-vrp.c (simplify_stmt_using_ranges): Likewise.
3933         * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Likewise.
3934         * config/aarch64/aarch64.c (aarch64_get_condition_code_1): Likewise.
3935         * config/c6x/c6x.c (c6x_get_unit_specifier): Likewise.
3936         * config/cr16/cr16.c (legitimate_pic_operand_p): Likewise.
3937         * config/cris/cris.c (cris_op_str): Likewise.
3938         * config/mn10300/mn10300.c (cc_flags_for_code): Likewise.
3939         * config/tilepro/tilepro.c (tilepro_emit_setcc_internal_di): Likewise.
3941 2016-09-27  Nathan Sidwell  <nathan@codesourcery.com>
3943         * internal-fn.h (IFN_UNIQUE_CODES, IFN_GOACC_LOOP_CODES,
3944         IFN_GOACC_REDUCTION_CODES): New.
3945         (enum ifn_unique_kind, enum ifn_goacc_loop_kind, enum
3946         ifn_goacc_reduction_kind): Use them.
3947         * gimple-pretty-print.c (dump_gimple_call_args): Decode first arg
3948         of internal functions, when applicable.
3950 2016-09-27  Maciej W. Rozycki  <macro@imgtec.com>
3952         * config/mips/constraints.md (d): Fix documentation.
3953         * doc/md.texi (Machine Constraints): Update accordingly.
3955 2016-09-27  Richard Biener  <rguenther@suse.de>
3957         * dwarf2out.c (dwarf2out_init): Move text_section_line_info,
3958         cur_line_info_table initialization ...
3959         (dwarf2out_assembly_start): ... here.
3961 2016-09-27  Matthew Wahab  <matthew.wahab@arm.com>
3963         * config/arm/arm.md (*arm_movsi_insn): Add "arch" attribute.
3964         * config/arm/vfp.md (*arm_movhi_vfp): Likewise.
3965         (*thumb2_movhi_vfp): Likewise.
3966         (*arm_movhi_fp16): Remove predication operand from VMOV.F16
3967         template.  Expand predicable attribute to mark VMOV.F16 as not
3968         predicable.  Add "arch" attribute.
3969         (*thumb2_movhi_fp16): Likewise.
3970         (*arm_movsi_vfp): Break a long line.  Add "arch" attribute.
3971         (*thumb2_movsi_vfp): Add "arch" attribute.
3973 2016-09-27  David Edelsohn  <dje.gcc@gmail.com>
3975         * config/rs6000/rs6000.c (rs6000_output_symbol): Don't modify
3976         VAR_DECL string.
3978 2016-09-27  Marek Polacek  <polacek@redhat.com>
3980         * config/ia64/ia64.c (ia64_print_operand): Adjust fall through
3981         comment.
3983         * config/c6x/c6x.h: Adjust fall through comment.
3984         * config/sh/sh.c (final_prescan_insn): Likewise.
3985         * config/visium/visium.c (visium_expand_int_cstore): Likewise.
3986         (visium_expand_fp_cstore): Likewise.
3988 2016-09-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3990         * config/arm/arm.c (const_ok_for_op): Use "Fall through" comment form
3991         expected by -Wimplicit-fallthrough.
3992         (thumb1_size_rtx_costs): Likewise.
3993         (thumb2_reorg): Likewise.
3994         (tls_mentioned_p): Add "Fall through" comment.
3995         (thumb2_reorg): Likewise.
3996         * config/arm/arm-builtins.c (arm_expand_neon_args): Use "Fall through"
3997         comment form expected by -Wimplicit-fallthrough.
3999 2016-09-27  Martin Liska  <mliska@suse.cz>
4001         PR gcov-profile/46266
4002         * input.h (RESERVED_LOCATION_P): New macro.
4003         * profile.c (branch_prob): Use RESERVED_LOCATION_P and
4004         instread of comparison with UNKNOWN_LOCATION.
4006 2016-09-27  Richard Biener  <rguenther@suse.de>
4008         PR tree-optimization/77745
4009         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
4010         When removing redundant stores make sure to check compatibility
4011         of the TBAA state for downstream accesses.
4012         * tree-ssa-sccvn.c (visit_reference_op_store): Likewise for when
4013         value-numbering virtual operands for store matches.
4015 2016-09-27  Oleg Endo  <olegendo@gcc.gnu.org>
4017         PR target/51244
4018         * config/sh/sh.c (sh_rtx_costs): Fix return value of SET of movt and
4019         movrt patterns.  Match them before anything else in the SET case.
4021 2016-09-27  Martin Liska  <mliska@suse.cz>
4023         PR gcov-profile/7970
4024         PR gcov-profile/16855
4025         PR gcov-profile/44779
4026         * coverage.c (build_gcov_exit_decl): New function.
4027         (coverage_obj_init): Call the function and generate __gcov_exit
4028         destructor.
4029         * doc/gcov.texi: Document when __gcov_exit function is called.
4031 2016-09-27  Marek Polacek  <polacek@redhat.com>
4033         PR bootstrap/77751
4034         * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
4035         insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Use
4036         -Wno-error instead of -Wno-implicit-fallthrough.
4038 2016-09-27  Martin Liska  <mliska@suse.cz>
4040         PR bootstrap/77749
4041         * gcov-counter.def: Remove GCOV_COUNTER_V_DELTA.
4043 2016-09-27  Jakub Jelinek  <jakub@redhat.com>
4045         * combine.c (simplify_comparison): Add canonical FALLTHROUGH comments.
4046         * config/i386/i386.c (ix86_dep_by_shift_count_body): Add FALLTHROUGH
4047         comments.  Remove break after return.
4048         (ix86_fp_compare_code_to_integer, has_dispatch,
4049         ix86_simd_clone_usable): Remove break after return.
4051 2016-09-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4053         PR rlt-optimization/77714
4054         * lra-eliminations.c (eliminate_regs_in_insn): Avoid alias on
4055         REG_EQUAL note.
4057 2016-09-27  Kugan Vivekanandarajah  <kuganv@linaro.org>
4059         PR ipa/77677
4060         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Use
4061         extract_range_from_unary_expr to convert value_range.
4062         * tree-vrp.c (extract_range_from_unary_expr_1): Rename to.
4063         (extract_range_from_unary_expr): This.
4064         * tree-vrp.h (extract_range_from_unary_expr): Declare.
4066 2016-09-27  Segher Boessenkool  <segher@kernel.crashing.org>
4068         * config/rs6000/rs6000.md (movcc_internal1): Disparage using CTR or LR.
4070 2016-09-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4072         * config/i386/i386.c (ix86_print_operand)
4073         [HAVE_AS_IX86_CMOV_SUN_SYNTAX]: Add gcc_fallthrough.
4074         * config/sparc/sparc.c (check_pic): Add fallthrough comment.
4075         (epilogue_renumber): Likewise.
4077 2016-09-26  Kugan Vivekanandarajah  <kuganv@linaro.org>
4079         PR middle-end/77719
4080         * tree-ssa-reassoc.c (make_new_ssa_for_def): Use gimple_get_lhs
4081         to get lhs instead of gimple_assign_lhs as stmt can be builtins too.
4083 2016-09-26  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4085         * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
4086         is_mm_consume, is_mm_acquire, is_mm_release, is_mm_acq_rel,
4087         is_mm_seq_cst, is_mm_sync): Move to ...
4088         * memmodel.h: This.  New file.
4089         * builtins.c: Include memmodel.h.
4090         * optabs.c: Likewise.
4091         * tsan.c: Likewise.
4092         * config/aarch64/aarch64.c: Likewise.
4093         * config/alpha/alpha.c: Likewise.
4094         * config/arm/arm.c: Likewise.
4095         * config/i386/i386.c: Likewise.
4096         * config/ia64/ia64.c: Likewise.
4097         * config/mips/mips.c: Likewise.
4098         * config/rs6000/rs6000.c: Likewise.
4099         * config/sparc/sparc.c: Likewise.
4100         * genconditions.c: Include memmodel.h in generated file.
4101         * genemit.c: Likewise.
4102         * genoutput.c: Likewise.
4103         * genpeep.c: Likewise.
4104         * genpreds.c: Likewise.
4105         * genrecog.c: Likewise.
4107 2016-09-26  David Malcolm  <dmalcolm@redhat.com>
4109         * read-rtl.c (read_rtx_code): Rename local "i" to "idx", and use
4110         "c" instead when parsing characters.  Move operand parsing into...
4111         (read_rtx_operand): ...this new function, renaming "i" to "idx",
4112         and tightening the scope of various locals.
4114 2016-09-26  Liu Hao  <lh_mouse@126.com>
4116         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Fix typo.
4118 2016-09-26  Marek Polacek  <polacek@redhat.com>
4120         * system.h: Use __has_attribute to check whether the fallthrough
4121         attribute is supported.
4123 2016-09-26  Marek Polacek  <polacek@redhat.com>
4125         * ipa-inline-analysis.c (find_foldable_builtin_expect): Use
4126         gimple_call_internal_p.
4127         * ipa-split.c (find_return_bb): Likewise.
4128         (execute_split_functions): Likewise.
4129         * omp-low.c (dump_oacc_loop_part): Likewise.
4130         (oacc_loop_xform_head_tail): Likewise.
4131         * predict.c (predict_loops): Likewise.
4132         * sanopt.c (pass_sanopt::execute): Likewise.
4133         * tree-cfg.c (get_abnormal_succ_dispatcher): Likewise.
4134         * tree-parloops.c (oacc_entry_exit_ok_1): Likewise.
4135         * tree-stdarg.c (gimple_call_ifn_va_arg_p): Remove function.
4136         (expand_ifn_va_arg_1): Use gimple_call_internal_p.
4137         (expand_ifn_va_arg): Likewise.
4138         * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
4139         (optimize_mask_stores): Likewise.
4140         * tree-vect-stmts.c (vect_simd_lane_linear): Likewise.
4141         (vect_transform_stmt): Likewise.
4142         * tree-vectorizer.c (vect_loop_vectorized_call): Likewise.
4143         * tsan.c (instrument_memory_accesses): Likewise.
4145 2016-09-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4146             Alexander Monakov  <amonakov@ispras.ru>
4148         * regrename.c (rename_chains): Check
4149         HARD_FRAME_POINTER_IS_FRAME_POINTER rather than
4150         HARD_FRAME_POINTER_REGNUM when picking unavailable registers.
4151         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4153 2016-09-26  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4155         * config/s390/s390.c (s390_rtx_costs): Add /* fallthrough */.
4156         (s390_sched_score): Likewise.
4158 2016-09-26  Martin Liska  <mliska@suse.cz>
4160         * doc/gcov.texi: Update program output of gcov tool.
4162 2016-09-26  Martin Liska  <mliska@suse.cz>
4164         PR gcov-profile/23332
4165         * profile.c (instrument_values): Do not handle HIST_TYPE_CONST_DELTA.
4166         * tree-profile.c (gimple_gen_const_delta_profiler): Remove.
4167         * value-prof.c (dump_histogram_value): Do not handle
4168         HIST_TYPE_CONST_DELTA.
4169         (stream_in_histogram_value): Likewise.
4170         (gimple_find_values_to_profile): Likewise.
4171         * value-prof.h (enum hist_type): Likewise.
4173 2016-09-26  Martin Liska  <mliska@suse.cz>
4175         * common.opt: Exclude SANITIZE_UNREACHABLE and SANITIZE_RETURN
4176         from default sanitize recover values.
4177         * doc/invoke.texi: Fix documentation related to -fsanitize=leak,
4178         -fsanitize=address, -fsanitize=thread and -fsanitize-recover.
4179         * flag-types.h: Replace couple of 1 << x to 1UL << x, make it
4180         consistent.
4181         * opts.c (finish_options): Do a generic loop over options
4182         that can be recovered.
4183         (parse_sanitizer_options): Exclude SANITIZE_UNREACHABLE and
4184         SANITIZE_RETURN.
4185         (common_handle_option): Likewise.
4186         * opts.h: Declare can_recover to sanitizer_opts_s.
4188 2016-09-26  Andre Vieira  <andre.simoesdiasvieira@arm.com>
4190         * target.def(elf_flags_numeric): Change documentation to present tense.
4191         * doc/tm.texi: Regenerate.
4193 2016-09-26  Marek Polacek  <polacek@redhat.com>
4195         PR c/7652
4196         * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
4197         insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Add
4198         -Wno-switch-fallthrough.
4199         * builtins.c (expand_builtin_int_roundingfn_2): Add gcc_fallthrough.
4200         (expand_builtin): Likewise.
4201         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass): Likewise.
4202         * convert.c (convert_to_real_1): Likewise.
4203         (convert_to_integer_1): Likewise.
4204         * final.c (output_alternate_entry_point): Likewise.
4205         * genattrtab.c (make_canonical): Likewise.
4206         (write_test_expr): Likewise.
4207         * genpreds.c (validate_exp): Likewise.
4208         * gimple-ssa-strength-reduction.c
4209         (find_candidates_dom_walker::before_dom_children): Likewise.
4210         * godump.c (go_format_type): Likewise.
4211         * reload1.c (elimination_effects): Likewise.
4212         * resource.c (mark_referenced_resources): Likewise.
4213         (mark_set_resources): Likewise.
4214         * tree-ssa-loop-ivopts.c (find_deriving_biv_for_expr): Likewise.
4215         * varasm.c (output_addressed_constants): Likewise.
4217 2016-09-26  Marek Polacek  <polacek@redhat.com>
4219         PR c/7652
4220         * common.opt (Wimplicit-fallthrough): New option.
4221         * doc/extend.texi: Document statement attributes and the fallthrough
4222         attribute.
4223         * doc/invoke.texi: Document -Wimplicit-fallthrough.
4224         * gimple.h (gimple_call_internal_p): New function.
4225         * gimplify.c (struct gimplify_ctx): Add in_switch_expr.
4226         (struct label_entry): New struct.
4227         (find_label_entry): New function.
4228         (case_label_p): New function.
4229         (collect_fallthrough_labels): New function.
4230         (last_stmt_in_scope): New function.
4231         (should_warn_for_implicit_fallthrough): New function.
4232         (warn_implicit_fallthrough_r): New function.
4233         (maybe_warn_implicit_fallthrough): New function.
4234         (expand_FALLTHROUGH_r): New function.
4235         (expand_FALLTHROUGH): New function.
4236         (gimplify_switch_expr): Call maybe_warn_implicit_fallthrough and
4237         expand_FALLTHROUGH for the innermost GIMPLE_SWITCH.
4238         (gimplify_label_expr): New function.
4239         (gimplify_case_label_expr): Set location.
4240         (gimplify_expr): Call gimplify_label_expr.
4241         * internal-fn.c (expand_FALLTHROUGH): New function.
4242         * internal-fn.def (FALLTHROUGH): New internal function.
4243         * langhooks.c (lang_GNU_OBJC): New function.
4244         * langhooks.h (lang_GNU_OBJC): Declare.
4245         * system.h (gcc_fallthrough): Define.
4246         * tree-core.h: Add FALLTHROUGH_LABEL_P comment.
4247         * tree.h (FALLTHROUGH_LABEL_P): Define.
4249 2016-09-26  Richard Biener  <rguenther@suse.de>
4251         * dwarf2out.c (stripattributes): Remove unused function.
4252         (DEBUG_NORM_MACINFO_SECTION): Rename to DEBUG_MACINFO_SECTION.
4253         Push dwarf_split_debug_info handling into init_sections_and_labels.
4254         (DEBUG_NORM_MACRO_SECTION): Likewise to DEBUG_MACRO_SECTION.
4255         (DEBUG_MACRO_SECTION_FLAGS): Remove.
4256         (debug_macinfo_section_name): New global.
4257         (output_macinfo): Use debug_macinfo_section_name.
4258         (init_sections_and_labels): Split out section and label generation
4259         from dwarf2out_init.  Set debug_macinfo_section_name.
4260         (dwarf2out_init): Move text section label generation and emission
4261         to ...
4262         (dwarf2out_assembly_start): ... here.
4263         (dwarf2out_finish): Call init_sections_and_labels before DWARF
4264         output starts.
4266 2016-09-26  Richard Biener  <rguenther@suse.de>
4268         PR debug/77692
4269         * cgraphunit.c (analyze_functions): Before early removing
4270         global vars calls the late_global_decl debug handler mark
4271         the variable as readonly.
4273 2016-09-25  Oleg Endo  <olegendo@gcc.gnu.org>
4275         PR target/51244
4276         * config/sh/sh.c (sh_movt_set_dest, sh_movrt_set_dest): Add overloads.
4277         (sh_rtx_costs): Handle SET of movt and movrt patterns.
4278         * cnofig/sh/sh-protos.h (sh_movt_set_dest, sh_movrt_set_dest): Forward
4279         declare new overloads.
4280         * config/sh/sh.md (*cset_zero): Add variant that takes a treg_set_expr
4281         operand.
4283 2016-09-24  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
4285         * config/rs6000/rs6000.c (expand_block_compare, do_load_for_compare):
4286         Change TARGET_LITTLE_ENDIAN to !BYTES_BIG_ENDIAN.
4288 2016-09-24  David Edelsohn  <dje.gcc@gmail.com>
4290         * configure.ac (gcc_cv_as_aix_dwloc): Fix typo in assembly fragment.
4291         * configure: Regenerate.
4293 2016-09-24  Marek Polacek  <polacek@redhat.com>
4295         PR c/77490
4296         * doc/invoke.texi: Document -Wbool-operation.
4298 2016-09-23  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
4300         * config/rs6000/rs6000.md (cmpmemsi): New define_expand.
4301         * config/rs6000/rs6000.c (expand_block_compare): New function used by
4302         cmpmemsi pattern to do builtin expansion of memcmp ().
4303         (compute_current_alignment): Add helper function for
4304         expand_block_compare used to compute alignment as the compare proceeds.
4305         (select_block_compare_mode): Used by expand_block_compare to select
4306         the mode used for reading the next chunk of bytes in the compare.
4307         (do_load_for_compare): Used by expand_block_compare to emit the load
4308         insns for the compare.
4309         (rs6000_emit_dot_insn): Moved this function to avoid a forward
4310         reference from expand_block_compare ().
4311         * config/rs6000/rs6000-protos.h (expand_block_compare): Add a
4312         prototype for this function.
4313         * config/rs6000/rs6000.opt (mblock-compare-inline-limit): Add a new
4314         target option for controlling how much code inline expansion of
4315         memcmp() will be allowed to generate.
4317 2016-09-23  Jakub Jelinek  <jakub@redhat.com>
4319         * hooks.c (hook_bool_bool_false, hook_bool_bool_gcc_optionsp_false,
4320         hook_bool_mode_false, hook_bool_mode_true,
4321         hook_bool_mode_const_rtx_false, hook_bool_mode_const_rtx_true,
4322         hook_bool_mode_rtx_false, hook_bool_mode_rtx_true,
4323         hook_bool_const_rtx_insn_const_rtx_insn_true,
4324         hook_bool_mode_uhwi_false, hook_void_FILEptr_constcharptr,
4325         hook_bool_FILEptr_rtx_false, hook_bool_gsiptr_false,
4326         hook_bool_const_tree_hwi_hwi_const_tree_false,
4327         hook_bool_const_tree_hwi_hwi_const_tree_true,
4328         default_can_output_mi_thunk_no_vcall, hook_int_uint_mode_1,
4329         hook_int_const_tree_0, hook_int_const_tree_const_tree_1,
4330         hook_int_rtx_0, hook_int_rtx_bool_0, hook_void_tree,
4331         hook_void_constcharptr, hook_void_tree_treeptr, hook_void_int_int,
4332         hook_bool_tree_false, hook_bool_const_tree_false, hook_bool_tree_true,
4333         hook_bool_const_tree_true, hook_bool_tree_tree_false,
4334         hook_bool_tree_tree_true, hook_bool_tree_bool_false,
4335         hook_bool_rtx_insn_true, hook_bool_rtx_false,
4336         hook_bool_uintp_uintp_false,
4337         hook_bool_rtx_mode_int_int_intp_bool_false, hook_rtx_rtx_null,
4338         hook_rtx_tree_int_null, hook_uint_mode_0,
4339         hook_constcharptr_const_tree_null, hook_tree_tree_int_treep_bool_null,
4340         hook_tree_tree_tree_null, hook_tree_tree_tree_tree_null,
4341         hook_constcharptr_const_rtx_insn_null,
4342         hook_constcharptr_const_tree_const_tree_null,
4343         hook_constcharptr_int_const_tree_null,
4344         hook_constcharptr_int_const_tree_const_tree_null,
4345         hook_tree_const_tree_null, hook_bool_rtx_insn_int_false,
4346         hook_void_rtx_insn_int, hook_void_gcc_optionsp): For arguments with
4347         ATTRIBUTE_UNUSED, remove parameter name as well as ATTRIBUTE_UNUSED.
4349         * vec.h (vNULL): Extend comment to say = vNULL initialization
4350         isn't needed for static vars.
4352         * sel-sched-ir.c (sel_global_bb_info, sel_region_bb_info,
4353         loop_nests, s_i_d, last_added_blocks): Remove unnecessary
4354         = vNULL initialization of file scope vec.
4355         * passes.c (pass_tab, enabled_pass_uid_range_tab,
4356         disabled_pass_uid_range_tab): Likewise.
4357         * haifa-sched.c (sched_luids, h_i_d): Likewise.
4358         * tree-chkp-opt.c (check_infos): Likewise.
4359         * sel-sched.c (vec_av_set, vec_temp_moveop_nops): Likewise.
4361         * vec.h (vnull::operator vec): Add constexpr keyword for
4362         C++11 and later.
4364 2016-09-23  Doug Gilmore  <doug.gilmore@imgtec.com>
4366         PR tree-optimization/77654
4367         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Add call
4368         to duplicate_ssa_name_ptr_info.
4370 2016-09-23  David Malcolm  <dmalcolm@redhat.com>
4372         PR preprocessor/77672
4373         * input.c (selftest::test_lexer_string_locations_simple): Update
4374         test to expect location information of the terminator character
4375         at the location of the final closing quote.
4376         (selftest::test_lexer_string_locations_hex): Likewise.
4377         (selftest::test_lexer_string_locations_oct): Likewise.
4378         (selftest::test_lexer_string_locations_letter_escape_1): Likewise.
4379         (selftest::test_lexer_string_locations_letter_escape_2): Likewise.
4380         (selftest::test_lexer_string_locations_ucn4): Likewise.
4381         (selftest::test_lexer_string_locations_ucn8): Likewise.
4382         (selftest::test_lexer_string_locations_u8): Likewise.
4383         (selftest::test_lexer_string_locations_utf8_source): Likewise.
4384         (selftest::test_lexer_string_locations_concatenation_1): Likewise.
4385         (selftest::test_lexer_string_locations_concatenation_2): Likewise.
4386         (selftest::test_lexer_string_locations_concatenation_3): Likewise.
4387         (selftest::test_lexer_string_locations_macro): Likewise.
4388         (selftest::test_lexer_string_locations_long_line): Likewise.
4390 2016-09-23  Richard Biener  <rguenther@suse.de>
4392         * tree-ssa-sccvn.c (visit_reference_op_call): Value number
4393         virtual definition to virtual use if the call devirtualizes
4394         to a const or pure function.
4395         (visit_use): Also visit calls we can devirtualize to a
4396         const or pure function.
4398 2016-09-23  Richard Biener  <rguenther@suse.de>
4400         PR tree-optimization/77697
4401         * tree-ssa-forwprop.c (defcodefor_name): Remove bogus code,
4402         signal error if we have sth ternary or unhandled.
4404 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
4406         * config/arm/arm_neon.h (vabd_f16): New.
4407         (vabdq_f16): New.
4408         (vabs_f16): New.
4409         (vabsq_f16): New.
4410         (vadd_f16): New.
4411         (vaddq_f16): New.
4412         (vcage_f16): New.
4413         (vcageq_f16): New.
4414         (vcagt_f16): New.
4415         (vcagtq_f16): New.
4416         (vcale_f16): New.
4417         (vcaleq_f16): New.
4418         (vcalt_f16): New.
4419         (vcaltq_f16): New.
4420         (vceq_f16): New.
4421         (vceqq_f16): New.
4422         (vceqz_f16): New.
4423         (vceqzq_f16): New.
4424         (vcge_f16): New.
4425         (vcgeq_f16): New.
4426         (vcgez_f16): New.
4427         (vcgezq_f16): New.
4428         (vcgt_f16): New.
4429         (vcgtq_f16): New.
4430         (vcgtz_f16): New.
4431         (vcgtzq_f16): New.
4432         (vcle_f16): New.
4433         (vcleq_f16): New.
4434         (vclez_f16): New.
4435         (vclezq_f16): New.
4436         (vclt_f16): New.
4437         (vcltq_f16): New.
4438         (vcltz_f16): New.
4439         (vcltzq_f16): New.
4440         (vcvt_f16_s16): New.
4441         (vcvt_f16_u16): New.
4442         (vcvt_s16_f16): New.
4443         (vcvt_u16_f16): New.
4444         (vcvtq_f16_s16): New.
4445         (vcvtq_f16_u16): New.
4446         (vcvtq_s16_f16): New.
4447         (vcvtq_u16_f16): New.
4448         (vcvta_s16_f16): New.
4449         (vcvta_u16_f16): New.
4450         (vcvtaq_s16_f16): New.
4451         (vcvtaq_u16_f16): New.
4452         (vcvtm_s16_f16): New.
4453         (vcvtm_u16_f16): New.
4454         (vcvtmq_s16_f16): New.
4455         (vcvtmq_u16_f16): New.
4456         (vcvtn_s16_f16): New.
4457         (vcvtn_u16_f16): New.
4458         (vcvtnq_s16_f16): New.
4459         (vcvtnq_u16_f16): New.
4460         (vcvtp_s16_f16): New.
4461         (vcvtp_u16_f16): New.
4462         (vcvtpq_s16_f16): New.
4463         (vcvtpq_u16_f16): New.
4464         (vcvt_n_f16_s16): New.
4465         (vcvt_n_f16_u16): New.
4466         (vcvtq_n_f16_s16): New.
4467         (vcvtq_n_f16_u16): New.
4468         (vcvt_n_s16_f16): New.
4469         (vcvt_n_u16_f16): New.
4470         (vcvtq_n_s16_f16): New.
4471         (vcvtq_n_u16_f16): New.
4472         (vfma_f16): New.
4473         (vfmaq_f16): New.
4474         (vfms_f16): New.
4475         (vfmsq_f16): New.
4476         (vmax_f16): New.
4477         (vmaxq_f16): New.
4478         (vmaxnm_f16): New.
4479         (vmaxnmq_f16): New.
4480         (vmin_f16): New.
4481         (vminq_f16): New.
4482         (vminnm_f16): New.
4483         (vminnmq_f16): New.
4484         (vmul_f16): New.
4485         (vmul_lane_f16): New.
4486         (vmul_n_f16): New.
4487         (vmulq_f16): New.
4488         (vmulq_lane_f16): New.
4489         (vmulq_n_f16): New.
4490         (vneg_f16): New.
4491         (vnegq_f16): New.
4492         (vpadd_f16): New.
4493         (vpmax_f16): New.
4494         (vpmin_f16): New.
4495         (vrecpe_f16): New.
4496         (vrecpeq_f16): New.
4497         (vrnd_f16): New.
4498         (vrndq_f16): New.
4499         (vrnda_f16): New.
4500         (vrndaq_f16): New.
4501         (vrndm_f16): New.
4502         (vrndmq_f16): New.
4503         (vrndn_f16): New.
4504         (vrndnq_f16): New.
4505         (vrndp_f16): New.
4506         (vrndpq_f16): New.
4507         (vrndx_f16): New.
4508         (vrndxq_f16): New.
4509         (vrsqrte_f16): New.
4510         (vrsqrteq_f16): New.
4511         (vrecps_f16): New.
4512         (vrecpsq_f16): New.
4513         (vrsqrts_f16): New.
4514         (vrsqrtsq_f16): New.
4515         (vsub_f16): New.
4516         (vsubq_f16): New.
4518 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
4520         * config.gcc (extra_headers): Add arm_fp16.h
4521         * config/arm/arm_fp16.h: New.
4522         * config/arm/arm_neon.h: Include "arm_fp16.h".
4524 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
4526         * config/arm/arm_neon_builtins.def (vadd): New (v8hf, v4hf
4527         variants).
4528         (vmulf): New (v8hf, v4hf variants).
4529         (vfma): New (v8hf, v4hf variants).
4530         (vfms): New (v8hf, v4hf variants).
4531         (vsub): New (v8hf, v4hf variants).
4532         (vcage): New (v8hf, v4hf variants).
4533         (vcagt): New (v8hf, v4hf variants).
4534         (vcale): New (v8hf, v4hf variants).
4535         (vcalt): New (v8hf, v4hf variants).
4536         (vceq): New (v8hf, v4hf variants).
4537         (vcgt): New (v8hf, v4hf variants).
4538         (vcge): New (v8hf, v4hf variants).
4539         (vcle): New (v8hf, v4hf variants).
4540         (vclt): New (v8hf, v4hf variants).
4541         (vceqz): New (v8hf, v4hf variants).
4542         (vcgez): New (v8hf, v4hf variants).
4543         (vcgtz): New (v8hf, v4hf variants).
4544         (vcltz): New (v8hf, v4hf variants).
4545         (vclez): New (v8hf, v4hf variants).
4546         (vabd): New (v8hf, v4hf variants).
4547         (vmaxf): New (v8hf, v4hf variants).
4548         (vmaxnm): New (v8hf, v4hf variants).
4549         (vminf): New (v8hf, v4hf variants).
4550         (vminnm): New (v8hf, v4hf variants).
4551         (vpmaxf): New (v4hf variant).
4552         (vpminf): New (v4hf variant).
4553         (vpadd): New (v4hf variant).
4554         (vrecps): New (v8hf, v4hf variants).
4555         (vrsqrts): New (v8hf, v4hf variants).
4556         (vabs): New (v8hf, v4hf variants).
4557         (vneg): New (v8hf, v4hf variants).
4558         (vrecpe): New (v8hf, v4hf variants).
4559         (vrnd): New (v8hf, v4hf variants).
4560         (vrnda): New (v8hf, v4hf variants).
4561         (vrndm): New (v8hf, v4hf variants).
4562         (vrndn): New (v8hf, v4hf variants).
4563         (vrndp): New (v8hf, v4hf variants).
4564         (vrndx): New (v8hf, v4hf variants).
4565         (vrsqrte): New (v8hf, v4hf variants).
4566         (vmul_lane): Add v4hf and v8hf variants.
4567         (vmul_n): Add v4hf and v8hf variants.
4568         (vext): New (v8hf, v4hf variants).
4569         (vcvts): New (v8hi, v4hi variants).
4570         (vcvts): New (v8hf, v4hf variants).
4571         (vcvtu): New (v8hi, v4hi variants).
4572         (vcvtu): New (v8hf, v4hf variants).
4573         (vcvts_n): New (v8hf, v4hf variants).
4574         (vcvtu_n): New (v8hi, v4hi variants).
4575         (vcvts_n): New (v8hi, v4hi variants).
4576         (vcvtu_n): New (v8hf, v4hf variants).
4577         (vbsl): New (v8hf, v4hf variants).
4578         (vcvtas): New (v8hf, v4hf variants).
4579         (vcvtau): New (v8hf, v4hf variants).
4580         (vcvtms): New (v8hf, v4hf variants).
4581         (vcvtmu): New (v8hf, v4hf variants).
4582         (vcvtns): New (v8hf, v4hf variants).
4583         (vcvtnu): New (v8hf, v4hf variants).
4584         (vcvtps): New (v8hf, v4hf variants).
4585         (vcvtpu): New (v8hf, v4hf variants).
4587 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
4589         * config/arm/arm-builtins.c (hf_UP): New.
4590         (si_UP): New.
4591         (vfp_builtin_data): New.  Update comment.
4592         (enum arm_builtins): Include "arm_vfp_builtins.def".
4593         (ARM_BUILTIN_VFP_PATTERN_START): New.
4594         (arm_init_vfp_builtins): New.
4595         (arm_init_builtins): Add arm_init_vfp_builtins.
4596         (arm_expand_vfp_builtin): New.
4597         (arm_expand_builtins): Update for arm_expand_vfp_builtin.  Fix
4598         long line.
4599         * config/arm/arm_vfp_builtins.def: New file.
4600         * config/arm/t-arm (arm.o): Add arm_vfp_builtins.def.
4601         (arm-builtins.o): Likewise.
4603 2016-09-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
4605         PR ipa/77677
4606         * ipa-cp.c (propagate_vr_accross_jump_function): Drop TREE_OVERFLOW
4607         from constant while creating value range.
4609 2016-09-23  Renlin Li  <renlin.li@arm.com>
4611         * ira.c (ira): Move ira_use_lra_p initialization code to ...
4612         (ira_init_once): Here.
4614 2016-09-23  Uros Bizjak  <ubizjak@gmail.com>
4615             Jakub Jelinek  <jakub@redhat.com>
4617         * hooks.h (hook_uint_uintp_false): Rename to...
4618         (hook_bool_uint_uintp_false): ... this.
4619         * hooks.c (hook_uint_uintp_false): Rename to...
4620         (hook_bool_uint_uintp_false): ... this.
4621         * target.def (elf_flags_numeric): Use hook_bool_uint_uintp_false
4622         instead of hook_uint_uintp_false.
4624 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
4626         * config/arm/arm-builtins.c (arm_init_neon_builtin): New.
4627         (arm_init_builtins): Move body of a loop to the standalone
4628         function arm_init_neon_builtin.
4629         (arm_expand_neon_builtin_1): New.  Update comment.  Function body
4630         moved from arm_neon_builtin with some white-space fixes.
4631         (arm_expand_neon_builtin): Move code into the standalone function
4632         arm_expand_neon_builtin_1.
4634 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
4636         * config/arm/iterators.md (VCVTHI): New.
4637         (NEON_VCMP): Add UNSPEC_VCLT and UNSPEC_VCLE.  Fix a long line.
4638         (NEON_VAGLTE): New.
4639         (VFM_LANE_AS): New.
4640         (VH_CVTTO): New.
4641         (V_reg): Add HF, V4HF and V8HF.  Fix white-space.
4642         (V_HALF): Add V4HF.  Fix white-space.
4643         (V_if_elem): Add HF, V4HF and V8HF.  Fix white-space.
4644         (V_s_elem): Likewise.
4645         (V_sz_elem): Fix white-space.
4646         (V_elem_ch): Likewise.
4647         (VH_elem_ch): New.
4648         (scalar_mul_constraint): Add V8HF and V4HF.
4649         (Is_float_mode): Fix white-space.
4650         (Is_d_reg): Add V4HF and V8HF.  Fix white-space.
4651         (q): Add HF.  Fix white-space.
4652         (float_sup): New.
4653         (float_SUP): New.
4654         (cmp_op_unsp): Add UNSPEC_VCALE and UNSPEC_VCALT.
4655         (neon_vfm_lane_as): New.
4656         * config/arm/neon.md (add<mode>3_fp16): New.
4657         (sub<mode>3_fp16): New.
4658         (mul<mode>3add<mode>_neon): New.
4659         (fma<VH:mode>4_intrinsic): New.
4660         (fmsub<VCVTF:mode>4_intrinsic): Fix white-space.
4661         (fmsub<VH:mode>4_intrinsic): New.
4662         (<absneg_str><mode>2): New.
4663         (neon_v<absneg_str><mode>): New.
4664         (neon_v<fp16_rnd_str><mode>): New.
4665         (neon_vrsqrte<mode>): New.
4666         (neon_vpaddv4hf): New.
4667         (neon_vadd<mode>): New.
4668         (neon_vsub<mode>): New.
4669         (neon_vmulf<mode>): New.
4670         (neon_vfma<VH:mode>): New.
4671         (neon_vfms<VH:mode>): New.
4672         (neon_vc<cmp_op><mode>): New.
4673         (neon_vc<cmp_op><mode>_fp16insn): New
4674         (neon_vc<cmp_op_unsp><mode>_fp16insn_unspec): New.
4675         (neon_vca<cmp_op><mode>): New.
4676         (neon_vca<cmp_op><mode>_fp16insn): New.
4677         (neon_vca<cmp_op_unsp><mode>_fp16insn_unspec): New.
4678         (neon_vc<cmp_op>z<mode>): New.
4679         (neon_vabd<mode>): New.
4680         (neon_v<maxmin>f<mode>): New.
4681         (neon_vp<maxmin>fv4hf: New.
4682         (neon_<fmaxmin_op><mode>): New.
4683         (neon_vrecps<mode>): New.
4684         (neon_vrsqrts<mode>): New.
4685         (neon_vrecpe<mode>): New (VH variant).
4686         (neon_vdup_lane<mode>_internal): New.
4687         (neon_vdup_lane<mode>): New.
4688         (neon_vcvt<sup><mode>): New (VCVTHI variant).
4689         (neon_vcvt<sup><mode>): New (VH variant).
4690         (neon_vcvt<sup>_n<mode>): New (VH variant).
4691         (neon_vcvt<sup>_n<mode>): New (VCVTHI variant).
4692         (neon_vcvt<vcvth_op><sup><mode>): New.
4693         (neon_vmul_lane<mode>): New.
4694         (neon_vmul_n<mode>): New.
4695         * config/arm/unspecs.md (UNSPEC_VCALE): New
4696         (UNSPEC_VCALT): New.
4697         (UNSPEC_VFMA_LANE): New.
4698         (UNSPECS_VFMS_LANE): New.
4700 2016-09-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4702         * config/s390/s390.md ("*extzv<mode>_zEC12", "*extzv<mode>_z10")
4703         ("*extzv<mode><clobbercc_or_nocc>"):
4704         Correct a typo in a comment.
4705         Merged patterns.
4706         ("*insv<mode>_zEC12", "*insv<mode>_z10")
4707         ("*insv<mode><clobbercc_or_nocc>"): Ditto.
4708         ("*insv<mode>_zEC12_appendbitsleft")
4709         ("*insv<mode><clobbercc_or_nocc>_appendbitsleft")
4710         ("*insv<mode>_z10_appendbitsleft"): Ditto.
4711         ("*insv<mode>_zEC12_noshift", "*insv<mode>_z10_noshift")
4712         ("*insv<mode><clobbercc_or_nocc>_noshift"): Ditto.
4713         Provide pattern with operands switched.
4714         ("*pre_z10_extv<mode>"):
4715         Use new subst patterns.
4716         ("*extzvdi<clobbercc_or_nocc>_lshiftrt", "*<risbg_n>_ior_and_sr_ze")
4717         ("*extvsidi<clobbercc_or_nocc>", "*<risbg_n>_and_subregdi_rotr")
4718         ("*<risbg_n>_and_subregdi_rotl", "*<risbg_n>_di_and_rot")
4719         ("*insv_z10_noshift_cc", "*insv_z10_noshift_cconly")
4720         ("*<risbg_n>_<mode>_ior_and_lshiftrt")
4721         ("*<risbg_n>_sidi_ior_and_lshiftrt")
4722         ("*trunc_sidi_and_subreg_lshrt<clobbercc_or_nocc>"):
4723         New patterns.
4724         ("*extzv_<mode>_sll", "*extzv_<mode>_srl")
4725         ("*extzv_<mode>_srl<clobbercc_or_nocc>")
4726         ("*extzv_<mode>_sll<clobbercc_or_nocc>"): Renamed patterns, use risbgn
4727         on zEC12.
4728         ("SINT"): New mode_iterator with SI, HI, QI.
4729         * config/s390/subst.md ("clobbercc_or_nocc_subst", "z10_or_zEC12_cond")
4730         ("clobbercc_or_nocc", "risbg_n"): New constructs for risbg pattern
4731         duplication.
4733 2016-09-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4735         * config/s390/predicates.md ("contiguous_bitmask_operand"): Adapt to
4736         new interface of s390_contiguous_bitmask_p.
4737         ("contiguous_bitmask_nowrap_operand"): New predicate.
4738         ("*anddi3_cc", "*anddi3_cconly", "*anddi3"): Replace NxxDq with NxxDw.
4739         * config/s390/constraints.md ("NxxDw", "NxxSq"): Adapt to new interface
4740         of s390_contiguous_bitmask_p.
4741         ("NxxDw"): Rename NxxDq constraint to NxxDw.
4742         ("NxxSw"): New constraint.
4743         * config/s390/s390.md ("*andsi3_zarch"): Enable bitmask wraparound.
4744         * config/s390/s390-protos.h (s390_contiguous_bitmask_p): Updated
4745         interface.
4746         (s390_contiguous_bitmask_nowrap_p): Export.
4747         * config/s390/s390.c (s390_contiguous_bitmask_nowrap_p): New name of
4748         former s390_contiguous_bitmask_p.
4749         (s390_contiguous_bitmask_p): Use s390_contiguous_bitmask_nowrap_p to
4750         detect contiguous bit ranges with wraparound.  Change signature to
4751         return START and END position instead of POS and LENGTH.
4752         (s390_contiguous_bitmask_vector_p): Remove extra code for continous bit
4753         ranges with wraparound.
4754         (s390_extzv_shift_ok): Use s390_contiguous_bitmask_nowrap_p.
4755         (s390_contiguous_bitmask_vector_p,s390_extzv_shift_ok,print_operand):
4756         Adapt to new signature of s390_contiguous_bitmask_p.
4758 2016-09-23  Bin Cheng  <bin.cheng@arm.com>
4760         * tree-vect-loop-manip.c (create_intersect_range_checks_index): New.
4761         (create_intersect_range_checks): New.
4762         (vect_create_cond_for_alias_checks): Call above function.
4764 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
4766         * config/arm/iterators.md (Code iterators): Fix some white-space
4767         in the comments.
4768         (GLTE): New.
4769         (ABSNEG): New
4770         (FCVT): Moved from vfp.md.
4771         (VCVT_HF_US_N): New.
4772         (VCVT_SI_US_N): New.
4773         (VCVT_HF_US): New.
4774         (VCVTH_US): New.
4775         (FP16_RND): New.
4776         (absneg_str): New.
4777         (FCVTI32typename): Moved from vfp.md.
4778         (sup): Add UNSPEC_VCVTA_S, UNSPEC_VCVTA_U, UNSPEC_VCVTM_S,
4779         UNSPEC_VCVTM_U, UNSPEC_VCVTN_S, UNSPEC_VCVTN_U, UNSPEC_VCVTP_S,
4780         UNSPEC_VCVTP_U, UNSPEC_VCVT_HF_S_N, UNSPEC_VCVT_HF_U_N,
4781         UNSPEC_VCVT_SI_S_N, UNSPEC_VCVT_SI_U_N,  UNSPEC_VCVTH_S_N,
4782         UNSPEC_VCVTH_U_N, UNSPEC_VCVTH_S and UNSPEC_VCVTH_U.
4783         (vcvth_op): New.
4784         (fp16_rnd_str): New.
4785         (fp16_rnd_insn): New.
4786         * config/arm/unspecs.md (UNSPEC_VCVT_HF_S_N): New.
4787         (UNSPEC_VCVT_HF_U_N): New.
4788         (UNSPEC_VCVT_SI_S_N): New.
4789         (UNSPEC_VCVT_SI_U_N): New.
4790         (UNSPEC_VCVTH_S): New.
4791         (UNSPEC_VCVTH_U): New.
4792         (UNSPEC_VCVTA_S): New.
4793         (UNSPEC_VCVTA_U): New.
4794         (UNSPEC_VCVTM_S): New.
4795         (UNSPEC_VCVTM_U): New.
4796         (UNSPEC_VCVTN_S): New.
4797         (UNSPEC_VCVTN_U): New.
4798         (UNSPEC_VCVTP_S): New.
4799         (UNSPEC_VCVTP_U): New.
4800         (UNSPEC_VCVTP_S): New.
4801         (UNSPEC_VCVTP_U): New.
4802         (UNSPEC_VRND): New.
4803         (UNSPEC_VRNDA): New.
4804         (UNSPEC_VRNDI): New.
4805         (UNSPEC_VRNDM): New.
4806         (UNSPEC_VRNDN): New.
4807         (UNSPEC_VRNDP): New.
4808         (UNSPEC_VRNDX): New.
4809         * config/arm/vfp.md (<absneg_str>hf2): New.
4810         (neon_vabshf): New.
4811         (neon_v<fp16_rnd_str>hf): New.
4812         (neon_vrndihf): New.
4813         (addhf3): New.
4814         (subhf3): New.
4815         (divhf3): New.
4816         (mulhf3): New.
4817         (*mulsf3neghf_vfp): New.
4818         (*negmulhf3_vfp): New.
4819         (*mulsf3addhf_vfp): New.
4820         (*mulhf3subhf_vfp): New.
4821         (*mulhf3neghfaddhf_vfp): New.
4822         (*mulhf3neghfsubhf_vfp): New.
4823         (fmahf4): New.
4824         (neon_vfmahf): New.
4825         (fmsubhf4_fp16): New.
4826         (neon_vfmshf): New.
4827         (*fnmsubhf4): New.
4828         (*fnmaddhf4): New.
4829         (neon_vsqrthf): New.
4830         (neon_vrsqrtshf): New.
4831         (FCVT): Move to iterators.md.
4832         (FCVTI32typename): Likewise.
4833         (neon_vcvth<sup>hf): New.
4834         (neon_vcvth<sup>si): New.
4835         (neon_vcvth<sup>_nhf_unspec): New.
4836         (neon_vcvth<sup>_nhf): New.
4837         (neon_vcvth<sup>_nsi_unspec): New.
4838         (neon_vcvth<sup>_nsi): New.
4839         (neon_vcvt<vcvth_op>h<sup>si): New.
4840         (neon_<fmaxmin_op>hf): New.
4842 2016-09-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4844         * config/s390/s390.md (bitoff, bitoff_plus): Neq mode attributes.
4845         ("*extzv<mode>_zEC12", "*insv<mode>_zEC12", "*insv<mode>_z10")
4846         ("*insv<mode>_zEC12_appendbitsleft")
4847         ("*insv<mode>_z10_appendbitsleft", "*r<noxa>sbg_<mode>_sll")
4848         ("*r<noxa>sbg_<mode>_srl"): Use new attributes.
4850 2016-09-23  Jakub Jelinek  <jakub@redhat.com>
4852         * ipa-cp.c (ipcp_store_vr_results): Avoid static local var zero.
4853         * sreal.h (sreal::min, sreal::max): Avoid static local vars,
4854         construct values without normalization.
4855         * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't initialize
4856         static local lhs_ops to vNULL.
4858 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
4859             Jiong Wang <jiong.wang@arm.com>
4861         * config/arm/arm.c (coproc_secondary_reload_class): Make HFmode
4862         available when FP16 instructions are available.
4863         (output_move_vfp): Add support for 16-bit data moves.
4864         (arm_validize_comparison): Fix some white-space.  Support HFmode
4865         by conversion to SFmode.
4866         * config/arm/arm.md (truncdfhf2): Fix a comment.
4867         (extendhfdf2): Likewise.
4868         (cstorehf4): New.
4869         (movsicc): Fix some white-space.
4870         (movhfcc): New.
4871         (movsfcc): Fix some white-space.
4872         (*cmovhf): New.
4873         * config/arm/vfp.md (*arm_movhi_vfp): Disable when VFP FP16
4874         instructions are available.
4875         (*thumb2_movhi_vfp): Likewise.
4876         (*arm_movhi_fp16): New.
4877         (*thumb2_movhi_fp16): New.
4878         (*movhf_vfp_fp16): New.
4879         (*movhf_vfp_neon): Disable when VFP FP16 instructions are available.
4880         (*movhf_vfp): Likewise.
4881         (extendhfsf2): Enable when VFP FP16 instructions are available.
4882         (truncsfhf2):  Enable when VFP FP16 instructions are available.
4884 2016-09-23  Martin Liska  <mliska@suse.cz>
4886         * config/s390/vx-builtins.md: Replace 'adress' with 'address'.
4888 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
4890         * config/arm/arm.c (arm_evpc_neon_vuzp): Add support for V8HF and
4891         V4HF modes.
4892         (arm_evpc_neon_vtrn): Likewise.
4893         (arm_evpc_neon_vrev): Likewise.
4894         (arm_evpc_neon_vext): Likewise.
4895         * config/arm/arm_neon.h (vbsl_f16): New.
4896         (vbslq_f16): New.
4897         (vdup_n_f16): New.
4898         (vdupq_n_f16): New.
4899         (vdup_lane_f16): New.
4900         (vdupq_lane_f16): New.
4901         (vext_f16): New.
4902         (vextq_f16): New.
4903         (vmov_n_f16): New.
4904         (vmovq_n_f16): New.
4905         (vrev64_f16): New.
4906         (vrev64q_f16): New.
4907         (vtrn_f16): New.
4908         (vtrnq_f16): New.
4909         (vuzp_f16): New.
4910         (vuzpq_f16): New.
4911         (vzip_f16): New.
4912         (vzipq_f16): New.
4913         * config/arm/arm_neon_buillins.def (vdup_n): New (v8hf, v4hf variants).
4914         (vdup_lane): New (v8hf, v4hf variants).
4915         (vext): New (v8hf, v4hf variants).
4916         (vbsl): New (v8hf, v4hf variants).
4917         * config/arm/iterators.md (VDQWH): New.
4918         (VH): New.
4919         (V_double_vector_mode): Add V8HF and V4HF.  Fix white-space.
4920         (Scalar_mul_8_16): Fix white-space.
4921         (Is_d_reg): Add V4HF and V8HF.
4922         * config/arm/neon.md (neon_vdup_lane<mode>_internal): New.
4923         (neon_vdup_lane<mode>): New.
4924         (neon_vtrn<mode>_internal): Replace VDQW with VDQWH.
4925         (*neon_vtrn<mode>_insn): Likewise.
4926         (neon_vzip<mode>_internal): Likewise. Also fix white-space.
4927         (*neon_vzip<mode>_insn): Likewise
4928         (neon_vuzp<mode>_internal): Likewise.
4929         (*neon_vuzp<mode>_insn): Likewise
4930         * config/arm/vec-common.md (vec_perm_const<mode>): New.
4932 2016-09-23  Jiong Wang  <jiong.wang@arm.com>
4933             Matthew Wahab  <matthew.wahab@arm.com>
4935         * config/arm/arm.c (output_move_vfp): Weaken assert to allow HImode.
4936         (arm_hard_regno_mode_ok): Allow HImode values in VFP registers.
4937         * config/arm/arm.md (*movhi_bytes): Disable when VFP registers are
4938         available.  Also fix some white-space.
4939         * config/arm/vfp.md (*arm_movhi_vfp): New.
4940         (*thumb2_movhi_vfp): New.
4942 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
4944         * config/arm/arm-c.c (arm_cpu_builtins): Define
4945         "__ARM_FEATURE_FP16_SCALAR_ARITHMETIC" and
4946         "__ARM_FEATURE_FP16_VECTOR_ARITHMETIC".
4948 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
4950         * doc/sourcebuild.texi (ARM-specific attributes): Add anchor for
4951         arm_v8_1a_neon_ok.  Add entries for arm_v8_2a_fp16_scalar_ok,
4952         arm_v8_2a_fp16_scalar_hw, arm_v8_2a_fp16_neon_ok and
4953         arm_v8_2a_fp16_neon_hw.
4954         (Add options): Add entries for arm_v8_1a_neon, arm_v8_2a_scalar,
4955         arm_v8_2a_neon.
4957 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
4959         * doc/sourcebuild.texi (ARM-specific attributes): Add entries for
4960         arm_fp16_alternative_ok and arm_fp16_none_ok.
4962 2016-09-23  Martin Liska  <mliska@suse.cz>
4964         * ipa-icf.c (sem_variable::merge): Replace adress with address.
4966 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
4968         * config/arm/arm-arches.def ("armv8.1-a"): Add FL_CRC32.
4969         ("armv8.2-a"): New.
4970         ("armv8.2-a+fp16"): New.
4971         * config/arm/arm-protos.h (FL2_ARCH8_2): New.
4972         (FL2_FP16INST): New.
4973         (FL2_FOR_ARCH8_2A): New.
4974         * config/arm/arm-tables.opt: Regenerate.
4975         * config/arm/arm.c (arm_arch8_2): New.
4976         (arm_fp16_inst): New.
4977         (arm_option_override): Set arm_arch8_2 and arm_fp16_inst.  Check
4978         for incompatible fp16-format settings.
4979         * config/arm/arm.h (TARGET_VFP_FP16INST): New.
4980         (TARGET_NEON_FP16INST): New.
4981         (arm_arch8_2): Declare.
4982         (arm_fp16_inst): Declare.
4983         * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for
4984         march=armv8.2-a and march=armv8.2-a+fp16.
4985         * config/arm/t-aprofile (Arch Matches): Add entries for armv8.2-a
4986         and armv8.2-a+fp16.
4987         * doc/invoke.texi (ARM Options): Add "-march=armv8.1-a",
4988         "-march=armv8.2-a" and "-march=armv8.2-a+fp16".
4990 2016-09-23  Martin Liska  <mliska@suse.cz>
4992         * doc/extend.texi: Remove fused-madd from i386 target options.
4994 2016-09-23  Martin Liska  <mliska@suse.cz>
4996         * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
4997         Handle movbe.
4999 2016-09-23  Martin Liska  <mliska@suse.cz>
5001         * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
5002         Handle crc32.
5004 2016-09-23  Martin Liska  <mliska@suse.cz>
5006         PR target/71652
5007         * config/i386/i386.c (ix86_option_override_internal): Change
5008         signature and return false when there's an error related to
5009         arch string.
5010         (release_options_strings): New function.
5011         (ix86_valid_target_attribute_tree): Call the function.
5013 2016-09-23  Jakub Jelinek  <jakub@redhat.com>
5015         * hsa-gen.c (hsa_op_immed::hsa_op_immed Use CONSTRUCTOR_NELTS (...)
5016         instead of vec_safe_length (CONSTRUCTOR_ELTS (...)).
5017         (gen_hsa_ctor_assignment): Likewise.
5018         * print-tree.c (print_node): Likewise.
5019         * tree-dump.c (dequeue_and_dump): Likewise.
5020         * tree-sra.c (sra_modify_constructor_assign): Likewise.
5021         * expr.c (store_constructor): Likewise.
5022         * fold-const.c (operand_equal_p): Likewise.
5023         * tree-pretty-print.c (dump_generic_node): Likewise.
5024         * hsa-brig.c (hsa_op_immed::emit_to_buffer): Likewise.
5025         * ipa-icf-gimple.c (func_checker::compare_operand): Likewise.
5027 2016-09-23  Richard Biener  <rguenther@suse.de>
5029         * hooks.h (hook_uint_uintp_false): Declare.
5031 2016-09-22  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
5033         * config/avr/avr.c (avr_rtx_costs_1): Handle DImode MULT.
5034         (avr_address_cost): Replace 61 with MAX_LD_OFFSET(mode).
5036 2016-09-22  Martin Sebor  <msebor@redhat.com>
5038         PR target/77676
5039         * gimple-ssa-sprintf.c (target_int_min, target_int_max): Use
5040         HOST_BITS_PER_WIDE_INT, make a static local variable auto.
5041         (target_int_min): Correct computation.
5042         (format_integer): Use long long as the argument for the ll length
5043         modifier.
5044         (format_floating): Use target_int_max().
5045         (get_string_length): Same.
5046         (format_string): Avoid setting the bounded flag for strings
5047         of unknown length.
5048         (try_substitute_return_value): Avoid setting range info when
5049         the result isn't bounded.
5050         * varasm.c (assemble_name): Increase buffer size.
5052 2016-09-22  Andre Vieira  <andre.simoesdiasvieira@arm.com>
5053             Terry Guo  <terry.guo@arm.com>
5055         * target.def (elf_flags_numeric): New target hook.
5056         * targhooks.h (default_asm_elf_flags_numeric): New.
5057         * varasm.c (default_asm_elf_flags_numeric): New.
5058         (default_elf_asm_named_section): Use new target hook.
5059         * config/arm/arm.opt (mpure-code): New.
5060         * config/arm/arm.h (SECTION_ARM_PURECODE): New.
5061         * config/arm/arm.c (arm_asm_init_sections): Add section
5062         attribute to default text section if -mpure-code.
5063         (arm_option_check_internal): Diagnose use of option with
5064         non supported targets and/or options.
5065         (arm_asm_elf_flags_numeric): New.
5066         (arm_function_section): New.
5067         (arm_elf_section_type_flags): New.
5068         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Disable
5069         for -mpure-code.
5070         * gcc/doc/texi (TARGET_ASM_ELF_FLAGS_NUMERIC): New.
5071         * gcc/doc/texi.in (TARGET_ASM_ELF_FLAGS_NUMERIC): Likewise.
5073 2016-09-22  Jan Hubicka  <hubicka@ucw.cz>
5075         * regcprop.c (copyprop_hardreg_forward_1): Remove noop moves.
5077 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5079         * emit-rtl.c (next_cc0_user): Make argument type rtx_insn *.
5080         * rtl.h: Adjust prototype.
5082 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5084         * emit-rtl.c (next_active_insn): Change argument type to rtx_insn *.
5085         (prev_active_insn): Likewise.
5086         (active_insn_p): Likewise.
5087         * rtl.h: Adjust prototypes.
5088         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
5089         * config/arc/arc.md: Likewise.
5090         * config/pa/pa.c (branch_to_delay_slot_p): Likewise.
5091         (branch_needs_nop_p): Likewise.
5092         (use_skip_p): Likewise.
5093         * config/sh/sh.c (gen_block_redirect): Likewise.
5094         (split_branches): Likewise.
5095         * reorg.c (optimize_skip): Likewise.
5096         (fill_simple_delay_slots): Likewise.
5097         (fill_slots_from_thread): Likewise.
5098         (relax_delay_slots): Likewise.
5099         * resource.c (mark_target_live_regs): Likewise.
5101 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5103         * config/cris/cris.c (cris_asm_output_case_end): Change argument
5104         type to rtx_insn *.
5105         * emit-rtl.c (next_nonnote_nondebug_insn): Likewise.
5106         (prev_nonnote_nondebug_insn): Likewise.
5107         * config/cris/cris-protos.h: Adjust prototype.
5108         * rtl.h: Likewise.
5109         * jump.c (rtx_renumbered_equal_p): Adjust.
5111 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5113         * emit-rtl.c (prev_real_insn): Change argument type to rtx_insn *.
5114         * rtl.h: Adjust prototype.
5115         * config/sh/sh.md: Adjust.
5116         * dwarf2out.c (add_var_loc_to_decl): Likewise.
5118 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5120         * emit-rtl.c (next_nondebug_insn): Change argument type to rtx_insn *.
5121         (prev_nondebug_insn): Likewise.
5122         * loop-doloop.c (doloop_condition_get): Likewise.
5123         * rtl.h: Adjust prototype.
5124         * cfgloop.h: Likewise.
5126 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5128         * emit-rtl.c (next_nonnote_insn): Change argument type to rtx_insn *.
5129         (prev_nonnote_insn): Likewise.
5130         * jump.c (reversed_comparison_code_parts): Likewise.
5131         (reversed_comparison): Likewise.
5132         * rtl.h: Adjust prototypes.
5133         * config/arc/arc.md: Adjust.
5134         * cse.c (find_comparison_args): Likewise.
5135         * reorg.c (redundant_insn): Change return type to rtx_insn *.
5136         (fix_reg_dead_note): Change argument type to rtx_insn *.
5137         (delete_prior_computation): Likewise.
5138         (delete_computation): Likewise.
5139         (fill_slots_from_thread): Adjust.
5140         (relax_delay_slots): Likewise.
5141         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
5142         (simplify_relational_operation_1): Likewise.
5143         (simplify_ternary_operation): Likewise.
5145 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5147         * config/arc/arc-protos.h (arc_label_align): Change type of
5148         variables from rtx to rtx_insn *.
5149         * config/arc/arc.c (arc_label_align): Likewise.
5150         * config/arm/arm.c (any_sibcall_could_use_r3): Likewise.
5151         * config/bfin/bfin.c (workaround_speculation): Likewise.
5152         * config/c6x/c6x.c (find_next_cycle_insn): Likewise.
5153         (find_last_same_clock): Likewise.
5154         (reorg_split_calls): Likewise.
5155         * config/cris/cris-protos.h (cris_cc0_user_requires_cmp): Likewise.
5156         * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise.
5157         * config/h8300/h8300-protos.h (same_cmp_preceding_p): Likewise.
5158         (same_cmp_following_p): Likewise.
5159         * config/h8300/h8300.c (same_cmp_preceding_p): Likewise.
5160         (same_cmp_following_p): Likwise.
5161         * config/m32r/m32r.c (m32r_expand_epilogue): Likewise.
5162         * config/nds32/nds32-protos.h (nds32_target_alignment): Likewise.
5163         * config/nds32/nds32.c (nds32_target_alignment): Likewise.
5164         * config/rl78/rl78.c (rl78_alloc_physical_registers_op2): Likewise.
5165         (rl78_alloc_physical_registers_cmp): Likewise.
5166         (rl78_alloc_physical_registers_umul): Likewise.
5167         (rl78_calculate_death_notes): Likewise.
5168         * config/s390/s390-protos.h (s390_label_align): Likewise.
5169         * config/s390/s390.c (s390_label_align): Likewise.
5170         * config/sh/sh.c (barrier_align): Likewise.
5171         * config/sparc/sparc-protos.h (emit_cbcond_nop): Likewise.
5172         * config/sparc/sparc.c (sparc_asm_function_epilogue): Likewise.
5173         (emit_cbcond_nop): Likewise.
5175 2016-09-22  Martin Liska  <mliska@suse.cz>
5177         PR ipa/77653
5178         * ipa-icf.c (sem_variable::merge): Yield merge operation if
5179         alias address matters, not necessarily address of original.
5181 2016-09-22  Richard Biener  <rguenther@suse.de>
5183         PR middle-end/77697
5184         * gimple-fold.c (fold_array_ctor_reference): Turn asserts into
5185         fold fails.
5187 2016-09-22  Richard Biener  <rguenther@suse.de>
5189         PR middle-end/77677
5190         * gimple-match-head.c (gimple_resimplify1): Drop TREE_OVERFLOW
5191         from constant folding results.
5192         (gimple_resimplify2): Likewise.
5193         (gimple_resimplify3): Likewise.
5195 2016-09-22  Richard Biener  <rguenther@suse.de>
5197         PR middle-end/77678
5198         * expr.c (expand_expr_real_1): Guard array access against negative
5199         offset.
5201 2016-09-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5203         * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN instead
5204         of MPFR_RNDN.
5205         (format_floating): Likewise.
5207 2016-09-22  Jakub Jelinek  <jakub@redhat.com>
5209         PR fortran/77665
5210         * tree-inline.c (remap_gimple_stmt): Set has_simduid_loops
5211         for all IFN_GOMP_SIMD_* internal fns, not just for
5212         IFN_GOMP_SIMD_ORDERED_*.
5214 2016-09-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
5216         PR target/77670
5217         * config/rs6000/predicates.md (invert_fpmask_comparison_operator):
5218         New predicate that matches the ISA 3.0 XSCMP{EQ,GT,GE}DP
5219         instructions when you want to invert the test.
5220         * config/rs6000/rs6000.md (fpmask<mode>): Use the arguments in the
5221         correct order for XXSEL.
5222         (mov<SFDF:mode><SFDF2:mode>cc_invert_p9): Define the inverted test
5223         for using XSCMP{EQ,GT,GE}DP.
5225 2016-09-21  David Malcolm  <dmalcolm@redhat.com>
5227         * genconstants.c (main): Introduce noop_reader and convert call
5228         to read_md_files to a method call.
5229         * genenums.c (main): Likewise.
5230         * genmddeps.c (main): Likewise.
5231         * genpreds.c (write_tm_constrs_h): Replace use of "in_fname" with
5232         rtx_reader_ptr->get_top_level_filename ().
5233         (write_tm_preds_h): Likewise.
5234         (write_insn_preds_c): Likewise.
5235         * gensupport.c (class gen_reader): New subclass of rtx_reader.
5236         (rtx_handle_directive): Convert to...
5237         (gen_reader::handle_unknown_directive): ...this.
5238         (init_rtx_reader_args_cb): Convert return type from bool to
5239         rtx_reader *.  Create a gen_reader instance, using it for the
5240         call to read_md_files.  Return it if no errors occur.
5241         (init_rtx_reader_args): Convert return type from bool to
5242         rtx_reader *.
5243         * gensupport.h (init_rtx_reader_args_cb): Likewise.
5244         (init_rtx_reader_args_cb): Likewise.
5245         * read-md.c (struct file_name_list): Move to class rtx_reader.
5246         (read_md_file): Delete in favor of rtx_reader::m_read_md_file.
5247         (read_md_filename): Delete in favor of
5248         rtx_reader::m_read_md_filename.
5249         (read_md_lineno): Delete in favor of rtx_reader::m_read_md_lineno.
5250         (in_fname): Delete in favor of rtx_reader::m_toplevel_fname.
5251         (base_dir): Delete in favor of rtx_reader::m_base_dir.
5252         (first_dir_md_include): Delete in favor of
5253         rtx_reader::m_first_dir_md_include.
5254         (last_dir_md_include_ptr): Delete in favor of
5255         rtx_reader::m_last_dir_md_include_ptr.
5256         (max_include_len): Delete.
5257         (rtx_reader_ptr): New.
5258         (fatal_with_file_and_line): Use get_filename and get_lineno
5259         accessors of rtx_reader_ptr.
5260         (require_char_ws): Likewise.
5261         (rtx_reader::read_char): New method, based on ::read_char.
5262         (rtx_reader::unread_char): New method, based on ::unread_char.
5263         (read_escape): Use get_filename and get_lineno accessors of
5264         rtx_reader_ptr.
5265         (read_braced_string): Use get_lineno accessor of rtx_reader_ptr.
5266         (read_string): Use get_filename and get_lineno accessors of
5267         rtx_reader_ptr.
5268         (rtx_reader::rtx_reader): New ctor.
5269         (rtx_reader::~rtx_reader): New dtor.
5270         (handle_include): Convert from a function to...
5271         (rtx_reader::handle_include): ...this method, converting
5272         handle_directive from a callback to a virtual function.
5273         (handle_file): Likewise, converting to...
5274         (rtx_reader::handle_file): ...this method.
5275         (handle_toplevel_file): Likewise, converting to...
5276         (rtx_reader::handle_toplevel_file): ...this method.
5277         (rtx_reader::get_current_location): New method.
5278         (parse_include): Convert from a function to...
5279         (rtx_reader::add_include_path): ...this method, dropping redundant
5280         update to unused max_include_len.
5281         (read_md_files): Convert from a function to...
5282         (rtx_reader::read_md_files): ...this method, converting
5283         handle_directive from a callback to a virtual function.
5284         (noop_reader::handle_unknown_directive): New method.
5285         * read-md.h (directive_handler_t): Delete this typedef.
5286         (in_fname): Delete.
5287         (read_md_file): Delete.
5288         (read_md_lineno): Delete.
5289         (read_md_filename): Delete.
5290         (class rtx_reader): New class.
5291         (rtx_reader_ptr): New decl.
5292         (class noop_reader): New subclass of rtx_reader.
5293         (read_char): Reimplement in terms of rtx_reader::read_char.
5294         (unread_char): Reimplement in terms of rtx_reader::unread_char.
5295         (read_md_files): Delete.
5296         * read-rtl.c (read_rtx_code): Update for deletion of globals
5297         read_md_filename and read_md_lineno.
5299 2016-09-21  Jason Merrill  <jason@redhat.com>
5301         * input.h (from_macro_definition_at): New.
5303 2016-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
5305         * doc/rtl.texi (JUMP_LABEL): Document RETURN and SIMPLE_RETURN values.
5307 2016-09-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5309         PR tree-optimization/77550
5310         * tree-vect-stmts.c (create_array_ref): Change parameters.
5311         (get_group_alias_ptr_type): New function.
5312         (vectorizable_store, vectorizable_load): Use get_group_alias_ptr_type.
5314 2016-09-21  Marek Polacek  <polacek@redhat.com>
5316         * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
5317         Add falls through comment.
5319 2016-09-21  Richard Biener  <rguenther@suse.de>
5321         * dwarf2out.c (remove_child_with_prev): Clear child->die_sib.
5322         (replace_child): Likewise.
5323         (remove_child_TAG): Adjust.
5324         (move_marked_base_types): Likewise.
5325         (prune_unused_types_prune): Clear die_sib of removed children.
5327 2016-09-21  Georg-Johann Lay  <avr@gjlay.de>
5329         PR target/77326
5330         * config/avr/avr.c (avr_notice_update_cc) [CC_NONE]: If insn
5331         touches some regs mentioned in cc_status, do CC_STATUS_INIT.
5333 2016-09-21  Richard Biener  <rguenther@suse.de>
5335         PR tree-optimization/77648
5336         * tree-ssa-structalias.c (process_constraint): Handle all DEREF
5337         with complex RHS.
5338         (make_transitive_closure_constraints): Adjust comment.
5339         (make_any_offset_constraints): New function.
5340         (handle_rhs_call): Make sure to first expand a pointer to all
5341         subfields before transitively closing it.
5342         (handle_const_call): Likewise.  Properly expand returned
5343         pointers as well.
5344         (handle_pure_call): Likewise.
5346 2016-09-21  Richard Biener  <rguenther@suse.de>
5347             Jakub Jelinek  <jakub@redhat.com>
5349         PR tree-optimization/77621
5350         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
5351         group at non-vectorizable stmts.
5353 2016-09-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
5355         PR tree-optimization/72835
5356         * tree-ssa-reassoc.c (make_new_ssa_for_def): New.
5357         (make_new_ssa_for_all_defs): Likewise.
5358         (zero_one_operation): Replace all SSA_NAMEs defined in the chain.
5360 2016-09-20  Martin Sebor  <msebor@redhat.com>
5362         PR middle-end/49905
5363         * Makefile.in (OBJS): Add gimple-ssa-sprintf.o.
5364         * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Redefine.
5365         * config/linux.c (gnu_libc_printf_pointer_format): New function.
5366         * config/sol2.h (TARGET_PRINTF_POINTER_FORMAT): Same.
5367         * config/sol2.c (solaris_printf_pointer_format): New function.
5368         * doc/invoke.texi (-Wformat-length, -fprintf-return-value): New
5369         options.
5370         * doc/tm.texi.in (TARGET_PRINTF_POINTER_FORMAT): Document.
5371         * doc/tm.texi: Regenerate.
5372         * gimple-fold.h (get_range_strlen): New function.
5373         (get_maxval_strlen): Declare existing function.
5374         * gimple-fold.c (get_range_strlen): Add arguments and compute both
5375         maximum and minimum.
5376          (get_range_strlen): Define overload.
5377         (get_maxval_strlen): Adjust.
5378         * gimple-ssa-sprintf.c: New file and pass.
5379         * passes.def (pass_sprintf_length): Add new pass.
5380         * targhooks.h (default_printf_pointer_format): Declare new function.
5381         (gnu_libc_printf_pointer_format): Same.
5382         (solaris_libc_printf_pointer_format): Same.
5383         * targhooks.c (default_printf_pointer_format): Define new function.
5384         * tree-pass.h (make_pass_sprintf_length): Declare new function.
5385         * print-tree.c: Increase buffer size.
5387 2016-09-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
5389         * tree-vrp.c (get_value_range): Teach PARM_DECL to use ipa-vrp results.
5391 2016-09-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
5393         * common.opt: New option -fipa-vrp.
5394         * ipa-cp.c (ipa_get_vr_lat): New.
5395         (ipcp_vr_lattice::print): Likewise.
5396         (print_all_lattices): Call ipcp_vr_lattice::print.
5397         (ipcp_vr_lattice::meet_with): New.
5398         (ipcp_vr_lattice::meet_with_1): Likewise.
5399         (ipcp_vr_lattice::top_p): Likewise.
5400         (ipcp_vr_lattice::bottom_p): Likewsie.
5401         (ipcp_vr_lattice::set_to_bottom): Likewise.
5402         (set_all_contains_variable): Call VR set_to_bottom.
5403         (initialize_node_lattices): Init VR lattices.
5404         (propagate_vr_accross_jump_function): New.
5405         (propagate_constants_accross_call): Call
5406         propagate_vr_accross_jump_function.
5407         (ipcp_store_vr_results): New.
5408         (ipcp_driver): Handle VR.
5409         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Handle VR.
5410         (ipa_set_jf_unknown): Likewise.
5411         (ipa_compute_jump_functions_for_edge): Likewise.
5412         (ipa_node_params_t::duplicate): Likewise.
5413         (ipa_write_jump_function): Likewise.
5414         (ipa_read_jump_function): Likewise.
5415         (write_ipcp_transformation_info): Likewise.
5416         (read_ipcp_transformation_info): Likewise.
5417         (ipcp_update_vr): New.
5418         (ipcp_transform_function): Handle VR.
5419         * ipa-prop.h (struct ipa_vr): New.
5420         * cgraph.c: Include tree-vrp.h.
5421         * cgraphunit.c: Likewise.
5422         * ipa-utils.c: Likewise.
5423         * ipa.c: Likewise.
5424         * opts.c: Likewise.
5425         * toplev.c: Likewise.
5426         * ipa-devirt.c: Likewise.
5427         * ipa-inline-transform.c: Likewise.
5428         * ipa-inline.c: Likewise.
5429         * ipa-profile.c: Likewise.
5431 2016-09-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
5433         * doc/invoke.texi: Document -fdump-tree-evrp.
5434         * passes.def: Define new pass_early_vrp.
5435         * timevar.def: Define new TV_TREE_EARLY_VRP.
5436         * tree-pass.h (make_pass_early_vrp): New.
5437         * tree-ssa-propagate.c: Make replace_uses_in non static.
5438         * tree-ssa-propagate.h: Export replace_uses_in.
5439         * tree-vrp.c (extract_range_for_var_from_comparison_expr): New.
5440         (extract_range_from_assert): Factor out
5441         extract_range_for_var_from_comparison_expr.
5442         (vrp_initialize_lattice): New.
5443         (vrp_initialize): Factor out vrp_initialize_lattice.
5444         (vrp_valueize): Fix it to reject complex value ranges.
5445         (vrp_free_lattice): New.
5446         (evrp_dom_walker::before_dom_children): Likewise.
5447         (evrp_dom_walker::after_dom_children): Likewise.
5448         (evrp_dom_walker::push_value_range): Likewise.
5449         (evrp_dom_walker::pop_value_range): Likewise.
5450         (execute_early_vrp): Likewise.
5451         (execute_vrp): Call vrp_initialize_lattice and vrp_free_lattice.
5452         (make_pass_early_vrp): New.
5454 2016-09-20  Uros Bizjak  <ubizjak@gmail.com>
5456         * config/i386/i386.md (mult->ashift peephole2s): Use pow2p_hwi
5457         instead of exact_log2.
5459 2016-09-20  Uros Bizjak  <ubizjak@gmail.com>
5461         PR target/77621
5462         * config/i386/i386.c (ix86_preferred_simd_mode) <case DFmode>:
5463         Don't return word_mode for !TARGET_VECTORIZE_DOUBLE.
5464         (ix86_add_stmt_cost): Penalize DFmode vector operations
5465         for !TARGET_VECTORIZE_DOUBLE.
5467 2016-09-20  Gerald Pfeifer  <gerald@pfeifer.com>
5469         * doc/invoke.texi (Warning Options): Simplify language.
5470         (Optimize Options): Complete sentence.
5472 2016-09-20  David Edelsohn  <dje.gcc@gmail.com>
5474         * dbxout.c (xcoff_debug_hooks):  Add filename parameter to
5475         early_finish hook.
5477 2016-09-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
5479         PR target/71395
5480         * config/rs6000/rs6000.c (rs6000_expand_vector_init): For V4SF
5481         inits on power8 and above, use the VMRGEW instruction instead of a
5482         permute.
5484         * config/rs6000/altivec.md (UNSPEC_VMRGEW_DIRECT): New unspec.
5485         (p8_vmrgew_v4sf_direct): New VMRGEW insn for V4SF floating
5486         initialization.
5488 2016-09-20  Tamar Christina  <tamar.christina@arm.com>
5490         * config/aarch64/arm_neon.h
5491         (vst2_s64, vst2_u64, vst2_f64, vst2_s8): Add missing attributes.
5492         (vst3_s64, vst3_u64, vst3_f64, vst3_s8): Likewise.
5493         (vst4_s64, vst4_u64, vst4_f64, vst4_s8): Likewise.
5495 2016-09-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5497         * config/var/vax.h (ELIMINABLE_REGS): Define.
5498         (INITIAL_ELIMINATION_OFFSET): Define.
5500 2016-09-20  Jakub Jelinek  <jakub@redhat.com>
5502         PR middle-end/77624
5503         * builtins.c (fold_builtin_atomic_always_lock_free): Only look through
5504         cast to void * if the cast is from some other pointer type.
5506 2016-09-20  Richard Biener  <rguenther@suse.de>
5508         PR tree-optimization/77646
5509         * tree-ssa-sccvn.c (visit_reference_op_call): Always value-number
5510         a VDEF.
5512 2016-09-20  Tamar Christina  <tamar.christina@arm.com>
5514         * config/aarch64/arm_neon.h: Add gnu_inline and artificial
5515         attributes to all inlined functions and make them extern.
5517 2016-09-20  Richard Biener  <rguenther@suse.de>
5519         * debug.h (gcc_debug_hooks): Add filename parameter to early_finish
5520         hook.
5521         * debug.c (do_nothing_debug_hooks): Adjust.
5522         * dbxout.c (dbx_debug_hooks): Likewise.
5523         * sdbout.c (sdb_debug_hooks): Likewise.
5524         * dwarf2out.c (dwarf2_lineno_debug_hooks): Likewise.
5525         (dwarf2out_finish): Move producer, filename and
5526         path annotation ...
5527         (dwarf2out_early_finish): ... here.  Remove in_lto_p special-casing.
5528         * cgraphunit.c (symbol_table::finalize_compilation_unit): Adjust.
5530 2016-09-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5532         PR c++/77434
5533         * doc/invoke.texi: Document -Wint-in-bool-context.
5535         PR middle-end/77421
5536         * dwarf2out.c (output_loc_operands): Fix an assertion.
5538 2016-09-19  Joseph Myers  <joseph@codesourcery.com>
5540         * ginclude/float.h [__STDC_WANT_IEC_60559_BFP_EXT__]
5541         (CR_DECIMAL_DIG): New macro.
5543 2016-09-19  Joseph Myers  <joseph@codesourcery.com>
5545         * ginclude/stddef.h (max_align_t) [__i386__]: Add __float128
5546         element.
5548 2016-09-19  Vladimir Makarov  <vmakarov@redhat.com>
5550         PR rtl-optimization/77416
5551         * lra-remat.c (operand_to_remat): Process hard coded insn
5552         registers.
5554 2016-09-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5556         * simplify-rtx.c (simplify_relational_operation_1): Add transformation
5557         (GTU (PLUS a C) (C - 1)) --> (LTU a -C).
5559 2016-09-19  Segher Boessenkool  <segher@kernel.crashing.org>
5561         * target.def (lra_p): Wordsmithing.
5562         * doc/tm.texi: Regenerate.
5564 2016-09-19  Jakub Jelinek  <jakub@redhat.com>
5565             Jan Hubicka  <jh@suse.cz>
5567         PR target/77587
5568         * cgraph.c (cgraph_node::rtl_info): Pass &avail to
5569         ultimate_alias_target call, return NULL if avail < AVAIL_AVAILABLE.
5570         Call ultimate_alias_target just once, not up to 4 times.
5572 2016-09-19  Richard Biener  <rguenther@suse.de>
5574         * dwarf2out.c (early_dwarf_finished): New global.
5575         (set_early_dwarf::set_early_dwarf): Assert early_dwarf_finished
5576         is false.
5577         (dwarf2out_early_finish): Set early_dwarf_finished at the end,
5578         if called from LTO exit early.
5579         (dwarf2out_late_global_decl): When being during the early
5580         debug phase do not add locations but only const value attributes.
5581         Adjust the way we generate early DIEs for LTO.
5583 2016-09-19  Richard Biener  <rguenther@suse.de>
5585         PR middle-end/77605
5586         * tree-data-ref.c (analyze_subscript_affine_affine): Use the
5587         proper niter to bound the loops.
5589 2016-09-19  Richard Biener  <rguenther@suse.de>
5591         PR tree-optimization/77514
5592         * tree-ssa-pre.c (create_expression_by_pieces): Optimize
5593         search for folded stmt.
5595 2016-09-17  Jan Hubicka  <hubicka@ucw.cz>
5597         * passes.def (pass_early_thread_jumps): Schedule after forwprop.
5598         * tree-pass.h (make_pass_early_thread_jumps): Declare.
5599         * tree-ssa-threadbackward.c (fsm_find_thread_path,
5600         fsm_find_thread_path, profitable_jump_thread_path,
5601         fsm_find_control_statement_thread_paths,
5602         find_jump_threads_backwards): Add speed_p parameter.
5603         (pass_data_early_thread_jumps): New pass.
5604         (make_pass_early_thread_jumps): New function.
5606 2016-09-17  Andreas Schwab  <schwab@suse.de>
5608         * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Add cast.
5609         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
5611 2016-09-16  Eric Botcazou  <ebotcazou@adacore.com>
5613         * recog.c (rest_of_handle_split_after_reload): Delete.
5614         (pass_split_after_reload::gate): New method.
5615         (pass_split_after_reload::execute): Call split_all_insns directly.
5617 2016-09-16  Jonathan Wakely  <jwakely@redhat.com>
5619         * doc/extend.texi (Integer Overflow Builtins): Fix type of out
5620         parameters for functions taking long long arguments.
5622 2016-09-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5624         PR target/77613
5625         * config/rs6000/rs6000.c (rtx_is_swappable_p): Add support for
5626         splat with truncate.
5628 2016-09-16  Jason Merrill  <jason@redhat.com>
5630         * hwint.h (least_bit_hwi, pow2_or_zerop, pow2p_hwi, ctz_or_zero):
5631         New.
5632         * hwint.c (exact_log2): Use pow2p_hwi.
5633         (ctz_hwi, ffs_hwi): Use least_bit_hwi.
5634         * alias.c (memrefs_conflict_p): Use pow2_or_zerop.
5635         * builtins.c (get_object_alignment_2, get_object_alignment)
5636         (get_pointer_alignment, fold_builtin_atomic_always_lock_free): Use
5637         least_bit_hwi.
5638         * calls.c (compute_argument_addresses, store_one_arg): Use
5639         least_bit_hwi.
5640         * cfgexpand.c (expand_one_stack_var_at): Use least_bit_hwi.
5641         * combine.c (force_to_mode): Use least_bit_hwi.
5642         (contains_muldiv, find_split_point, combine_simplify_rtx)
5643         (simplify_if_then_else, simplify_set, force_to_mode)
5644         (if_then_else_cond, simplify_and_const_int_1)
5645         (simplify_compare_const): Use pow2p_hwi.
5646         * cse.c (fold_rtx): Use pow2p_hwi.
5647         * emit-rtl.c (set_mem_attributes_minus_bitpos, adjust_address_1):
5648         Use least_bit_hwi.
5649         * expmed.c (synth_mult, expand_divmod): Use ctz_or_zero, ctz_hwi.
5650         (init_expmed_one_conv): Use pow2p_hwi.
5651         * expr.c (is_aligning_offset): Use pow2p_hwi.
5652         * fold-const.c (round_up_loc, round_down_loc): Use pow2_or_zerop.
5653         (fold_binary_loc): Use pow2p_hwi.
5654         * function.c (assign_parm_find_stack_rtl): Use least_bit_hwi.
5655         * gimple-fold.c (gimple_fold_builtin_memory_op): Use pow2p_hwi.
5656         * gimple-ssa-strength-reduction.c (replace_ref): Use least_bit_hwi.
5657         * hsa-gen.c (gen_hsa_addr_with_align, hsa_bitmemref_alignment):
5658         Use least_bit_hwi.
5659         * ifcvt.c (noce_try_store_flag_constants): Use pow2p_hwi.
5660         * ipa-cp.c (ipcp_alignment_lattice::meet_with_1): Use least_bit_hwi.
5661         * ipa-prop.c (ipa_modify_call_arguments): Use least_bit_hwi.
5662         * omp-low.c (oacc_loop_fixed_partitions)
5663         (oacc_loop_auto_partitions): Use least_bit_hwi.
5664         * rtlanal.c (nonzero_bits1): Use ctz_or_zero.
5665         * stor-layout.c (place_field): Use least_bit_hwi.
5666         * tree-pretty-print.c (dump_generic_node): Use pow2p_hwi.
5667         * tree-sra.c (build_ref_for_offset): Use least_bit_hwi.
5668         * tree-ssa-ccp.c (ccp_finalize): Use least_bit_hwi.
5669         * tree-ssa-math-opts.c (bswap_replace): Use least_bit_hwi.
5670         * tree-ssa-strlen.c (handle_builtin_memcmp): Use pow2p_hwi.
5671         * tree-vect-data-refs.c (vect_analyze_group_access_1)
5672         (vect_grouped_store_supported, vect_grouped_load_supported)
5673         (vect_permute_load_chain, vect_shift_permute_load_chain)
5674         (vect_transform_grouped_load): Use pow2p_hwi.
5675         * tree-vect-generic.c (expand_vector_divmod): Use ctz_or_zero.
5676         * tree-vect-patterns.c (vect_recog_divmod_pattern): Use ctz_or_zero.
5677         * tree-vect-stmts.c (vectorizable_mask_load_store): Use
5678         least_bit_hwi.
5679         * tsan.c (instrument_expr): Use least_bit_hwi.
5680         * var-tracking.c (negative_power_of_two_p): Use pow2_or_zerop.
5682 2016-09-16  Andreas Schwab  <schwab@suse.de>
5684         * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Use parameter
5685         OFFSET, not offset.
5686         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
5688 2016-09-16  Jakub Jelinek  <jakub@redhat.com>
5690         PR target/77526
5691         * combine.c (rest_of_handle_combine): If any edges have been purged,
5692         free dominators if available.
5694 2016-09-16  Jakub Jelinek  <jakub@redhat.com>
5695             Eric Botcazou  <ebotcazou@adacore.com>
5697         PR middle-end/77594
5698         * internal-fn.c (expand_arith_overflow) <case MINUS_EXPR>: Don't fall
5699         through into expand_addsub_overflow after expand_neg_overflow.
5701 2016-09-15  David Malcolm  <dmalcolm@redhat.com>
5703         * diagnostic-show-locus.c
5704         (selftest::test_fixit_insert_containing_newline): New function.
5705         (selftest::test_fixit_replace_containing_newline): New function.
5706         (selftest::diagnostic_show_locus_c_tests): Call the above.
5708 2016-09-15  Bin Cheng  <bin.cheng@arm.com>
5710         PR tree-optimization/77503
5711         * tree-vect-loop.c (vectorizable_reduction): Record reduction
5712         code for CONST_COND_REDUCTION at analysis stage and use it at
5713         transform stage.
5714         * tree-vectorizer.h (struct _stmt_vec_info): New field.
5715         (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): New macro.
5716         * tree-vect-stmts.c (new_stmt_vec_info): Initialize above new
5717         field.
5719 2016-09-15  Richard Biener  <rguenther@suse.de>
5721         PR middle-end/77544
5722         * fold-const.c (split_tree): Do not split constant ~X.
5724 2016-09-15  Jakub Jelinek  <jakub@redhat.com>
5726         PR rtl-optimization/77425
5727         * sched-int.h (sd_iterator_cond): Don't update it_ptr->linkp if list
5728         is NULL.
5730         PR middle-end/77475
5731         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Simplify,
5732         use %qs instead of %s where desirable, use argument instead of arg in
5733         the diagnostic wording, add list of supported strategies and
5734         spellcheck hint.
5735         (ix86_option_override_internal): Emit target("m...") instead of
5736         option("m...") in the diagnostic.  Use %qs instead of %s in invalid
5737         -march/-mtune option diagnostic.  Add list of supported arches/tunings
5738         and spellcheck hint.  Remove prefix, suffix and sw variables, use
5739         main_args_p ? "..." : "..." in diagnostics to make translation
5740         possible.
5742 2016-09-15  Richard Biener  <rguenther@suse.de>
5744         * dwarf2asm.h (dw2_asm_output_offset): Add overload with
5745         extra offset argument.
5746         * dwarf2asm.c (dw2_asm_output_offset): Implement that.
5747         * doc/tm.texi.in (ASM_OUTPUT_DWARF_OFFSET): Adjust documentation
5748         to reflect new offset parameter.
5749         * doc/tm.texi: Regenerate.
5750         * config/darwin.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
5751         * config/darwin-protos.h (darwin_asm_output_dwarf_delta): Add
5752         offset argument.
5753         (darwin_asm_output_dwarf_offset): Likewise.
5754         * config/darwin.c (darwin_asm_output_dwarf_delta): Add offset
5755         argument.
5756         (darwin_asm_output_dwarf_offset): Pass offset argument through.
5757         * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
5758         * config/i386/cygmin.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
5760 2016-09-15  Chung-Lin Tang  <cltang@codesourcery.com>
5762         PR fortran/72743
5763         * ipa-icf.c (set_alias_uids): New function.
5764         (sem_variable::merge): Use set_alias_uids to set DECL_PT_UID of
5765         all the merged variable's referring aliases.
5767 2016-09-15  Richard Biener  <rguenther@suse.de>
5769         PR tree-optimization/77514
5770         * tree-ssa-pre.c (create_expression_by_pieces): Handle garbage
5771         only forced_stmts sequence.
5773 2016-09-15  Kugan Vivekanandarajah  <kuganv@linaro.org>
5775         * tree-ssanames.h (FOR_EACH_SSA_NAME): New.
5776         * cfgexpand.c (update_alias_info_with_stack_vars): Use
5777         FOR_EACH_SSA_NAME to iterate over SSA variables.
5778         (pass_expand::execute): Likewise.
5779         * omp-simd-clone.c (ipa_simd_modify_function_body): Likewise.
5780         * tree-cfg.c (dump_function_to_file): Likewise.
5781         * tree-into-ssa.c (pass_build_ssa::execute): Likewise.
5782         (update_ssa): Likewise.
5783         * tree-ssa-alias.c (dump_alias_info): Likewise.
5784         * tree-ssa-ccp.c (ccp_finalize): Likewise.
5785         * tree-ssa-coalesce.c (build_ssa_conflict_graph): Likewise.
5786         (create_outofssa_var_map): Likewise.
5787         (coalesce_ssa_name): Likewise.
5788         * tree-ssa-operands.c (dump_immediate_uses): Likewise.
5789         * tree-ssa-pre.c (compute_avail): Likewise.
5790         * tree-ssa-sccvn.c (init_scc_vn): Likewise.
5791         (scc_vn_restore_ssa_info): Likewise.
5792         (free_scc_vn): Likwise.
5793         (run_scc_vn): Likewise.
5794         * tree-ssa-structalias.c (compute_points_to_sets): Likewise.
5795         * tree-ssa-ter.c (new_temp_expr_table): Likewise.
5796         * tree-ssa-copy.c (fini_copy_prop): Likewise.
5797         * tree-ssa.c (verify_ssa): Likewise.
5799 2016-09-14  Matthew Fortune  <matthew.fortune@imgtec.com>
5801         * config.gcc (mips*-mti-elf*, mips*-mti-linux*): Set mips32r2
5802         and mips64r2 as default 32-bit and 64-bit architectures.
5803         (mips*-img-elf*, mips*-img-linux*): Set mips32r6 and mips64r6
5804         as default 32-bit and 64-bit architectures.
5806 2016-09-14  Pat Haugen  <pthaugen@us.ibm.com>
5808         * loop-unroll.c (unroll_loop_runtime_iterations): Set probability
5809         of succ edge.
5811 2016-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
5813         * target.def (lra_p): Change commentary (for the manual) for the
5814         new default.
5815         * doc/tm.texi: Regenerate.
5817 2016-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
5819         * config/aarch64/aarch64.c (TARGET_LRA_P): Delete macro.
5820         * config/arm/arm.c (TARGET_LRA_P): Delete macro.
5821         * config/i386/i386.c (TARGET_LRA_P): Delete macro.
5822         * config/nds32/nds32.c (TARGET_LRA_P): Delete macro.
5824 2016-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
5826         * targhooks.c (default_lra_p): Return true instead of false.
5828 2016-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
5830         * config/alpha/alpha.c (TARGET_LRA_P): New macro, defined to
5831         hook_bool_void_false.
5832         * config/avr/avr.c: Ditto.
5833         * config/bfin/bfin.c: Ditto.
5834         * config/c6x/c6x.c: Ditto.
5835         * config/cr16/cr16.c: Ditto.
5836         * config/cris/cris.c: Ditto.
5837         * config/epiphany/epiphany.c: Ditto.
5838         * config/fr30/fr30.c: Ditto.
5839         * config/frv/frv.c: Ditto.
5840         * config/h8300/h8300.c: Ditto.
5841         * config/ia64/ia64.c: Ditto.
5842         * config/iq2000/iq2000.c: Ditto.
5843         * config/lm32/lm32.c: Ditto.
5844         * config/m32c/m32c.c: Ditto.
5845         * config/m32r/m32r.c: Ditto.
5846         * config/m68k/m68k.c: Ditto.
5847         * config/mcore/mcore.c: Ditto.
5848         * config/microblaze/microblaze.c: Ditto.
5849         * config/mmix/mmix.c: Ditto.
5850         * config/mn10300/mn10300.c: Ditto.
5851         * config/moxie/moxie.c: Ditto.
5852         * config/msp430/msp430.c: Ditto.
5853         * config/nios2/nios2.c: Ditto.
5854         * config/nvptx/nvptx.c: Ditto.
5855         * config/pa/pa.c: Ditto.
5856         * config/pdp11/pdp11.c: Ditto.
5857         * config/rl78/rl78.c: Ditto.
5858         * config/sparc/sparc.c: Ditto.
5859         * config/spu/spu.c: Ditto.
5860         * config/stormy16/stormy16.c: Ditto.
5861         * config/tilegx/tilegx.c: Ditto.
5862         * config/tilepro/tilepro.c: Ditto.
5863         * config/v850/v850.c: Ditto.
5864         * config/vax/vax.c: Ditto.
5865         * config/visium/visium.c: Ditto.
5866         * config/xtensa/xtensa.c: Ditto.
5868 2016-09-14  Jakub Jelinek  <jakub@redhat.com>
5870         PR sanitizer/68260
5871         * tsan.c: Include target.h.
5872         (enum tsan_atomic_action): Add bool_clear and bool_test_and_set.
5873         (BOOL_CLEAR, BOOL_TEST_AND_SET): Define.
5874         (tsan_atomic_table): Add BUILT_IN_ATOMIC_CLEAR and
5875         BUILT_IN_ATOMIC_TEST_AND_SET entries.
5876         (instrument_builtin_call): Handle bool_clear and bool_test_and_set.
5878 2016-09-14  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5879             Martin Liska  <mliska@suse.cz>
5881         PR middle-end/77574
5882         * predict.c (force_edge_cold): Add braces to a condition.
5884 2016-09-13  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5886         PR rtl-optimization/77289
5887         * lra-constraints.c (get_final_hard_regno): Removed.
5888         (get_hard_regno): Add new parameter final_p.
5889         (get_reg_class): Directly call lra_get_elimination_hard_regno.
5890         (operands_match_p): Adjust call to get_hard_regno.
5891         (uses_hard_regs_p): Likewise.
5892         (process_alt_operands): Likewise.
5894 2016-09-13  Joe Seymour  <joe.s@somniumtech.com>
5896         PR target/70713
5897         * config/msp430/msp430.c (msp430_start_function): Emit an error
5898         if a function is both weak and specifies an interrupt number.
5900 2016-09-13  Jakub Jelinek  <jakub@redhat.com>
5902         PR tree-optimization/77454
5903         * tree-ssa-dom.c (optimize_stmt): Set modified flag on stmt after
5904         changing GIMPLE_COND.  Move update_stmt_if_modified call after this.
5905         Formatting fix.
5907 2016-09-13  Tamar Christina  <tamar.christina@arm.com>
5909         * config/aarch64/aarch64-builtins.c
5910         (aarch64_init_simd_builtins): Fix builtin type signature printing.
5912 2016-09-13  Uros Bizjak  <ubizjak@gmail.com>
5914         * config/alpha/alpha.c (alpha_pass_by_reference): Pass un-named
5915         SFmode and SCmode arguments by reference.
5917 2016-09-13  David Malcolm  <dmalcolm@redhat.com>
5919         * diagnostic-show-locus.c (selftest::test_one_liner_fixit_insert):
5920         Rename to...
5921         (selftest::test_one_liner_fixit_insert_before): ...this, and update
5922         for renaming of add_fixit_insert to add_fixit_insert_before.
5923         (selftest::test_one_liner_fixit_insert_after): New function.
5924         (selftest::test_one_liner_fixit_validation_adhoc_locations):
5925         Update for renaming of add_fixit_insert to add_fixit_insert_before.
5926         (selftest::test_one_liner_many_fixits): Likewise.
5927         (selftest::test_diagnostic_show_locus_one_liner): Update for
5928         renaming, call new test function.
5929         (selftest::test_diagnostic_show_locus_fixit_lines): Update for
5930         renaming of add_fixit_insert to add_fixit_insert_before.
5931         (selftest::test_fixit_consolidation): Likewise.
5932         * diagnostic.c (selftest::test_print_parseable_fixits_insert):
5933         Likewise.
5934         * edit-context.c (selftest::test_applying_fixits_insert): Rename to...
5935         (selftest::test_applying_fixits_insert_before): ...this.
5936         (selftest::test_applying_fixits_insert): Update for renaming of
5937         add_fixit_insert to add_fixit_insert_before.
5938         (selftest::test_applying_fixits_insert_after): New function.
5939         (selftest::test_applying_fixits_insert_after_at_line_end): New
5940         function.
5941         (selftest::test_applying_fixits_insert_after_failure): New function.
5942         (selftest::test_applying_fixits_multiple): Update for renaming of
5943         add_fixit_insert to add_fixit_insert_before.
5944         (selftest::change_line): Likewise.
5945         (selftest::test_applying_fixits_unreadable_file): Likewise.
5946         (selftest::test_applying_fixits_line_out_of_range): Likewise.
5947         (selftest::test_applying_fixits_column_validation): Likewise.
5948         (selftest::test_applying_fixits_column_validation): Likewise.
5949         (selftest::edit_context_c_tests): Update for renamed test function;
5950         call new test functions.
5952 2016-09-13  Pat Haugen  <pthaugen@us.ibm.com>
5954         PR tree-optimization/77536
5955         PR rtl-optimization/68212
5956         * config/rs6000/rs6000.md (div->recip splitter): Remove
5957         optimize_insn_for_speed_p condition.
5959 2016-09-13  Maciej W. Rozycki  <macro@imgtec.com>
5961         * optabs.c (prepare_cmp_insn): Update documentation comment.
5963 2016-09-13  Jakub Jelinek  <jakub@redhat.com>
5964             Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5966         PR middle-end/77475
5967         * opts.h (candidates_list_and_hint): Declare.
5968         * opts-common.c (candidates_list_and_hint): New function.
5969         (cmdline_handle_error): Use it.
5971 2016-09-12  David Malcolm  <dmalcolm@redhat.com>
5973         * edit-context.c (edited_line::get_len): New accessor.
5974         (edited_file::print_diff): Split out hunk-printing into...
5975         (edited_file::print_diff_hunk): New method.
5976         (edited_file::print_diff_line): New method.
5978 2016-09-12  Andrew Pinski  <apinski@cavium.com>
5980         * config/aarch64/aarch64-tuning-flags.def (SLOW_UNALIGNED_LDPW):
5981         New tuning option.
5982         * config/aarch64/aarch64.c (thunderx_tunings): Enable
5983         AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW.
5984         (aarch64_operands_ok_for_ldpstp): Return false if
5985         AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW and the mode
5986         was SImode and the alignment is less than 8 byte.
5987         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
5989 2016-09-12  Orlando Arias  <oarias@knights.ucf.edu>
5991         PR target/77570
5992         * config/msp430/msp430.md (delay_cycles_32x): Fix pushm/popm.
5994 2016-09-12  Marek Polacek  <polacek@redhat.com>
5996         * doc/extend.texi: Use lowercase "boolean".
5997         * doc/invoke.texi: Likewise.
5998         * doc/md.texi: Likewise.
5999         * target.def: Likewise.
6000         * doc/tm.texi: Regenerated.
6002 2016-09-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6004         PR middle-end/77426
6005         * expmed.c (synth_mult): Delete duplicate mode check.
6007 2016-09-10  Tom de Vries  <tom@codesourcery.com>
6009         PR C/71602
6010         * builtins.c (std_canonical_va_list_type): Strictly return non-null for
6011         va_list type only.
6012         * config/i386/i386.c (ix86_canonical_va_list_type): Same.
6013         * gimplify.c (gimplify_va_arg_expr): Handle &va_list.
6015 2016-09-09  Peter Bergner  <bergner@vnet.ibm.com>
6017         PR rtl-optimization/77289
6018         * lra-constraints.c (get_final_hard_regno): Add support for non hard
6019         register numbers.  Remove support for subregs.
6020         (get_hard_regno): Use SUBREG_P.  Don't call get_final_hard_regno().
6021         (get_reg_class): Delete removed get_final_hard_regno() argument.
6022         (uses_hard_regs_p): Call get_final_hard_regno().
6024 2016-09-09  Martin Sebor  <msebor@redhat.com>
6026         PR c/77520
6027         PR c/77521
6028         * pretty-print.c (pp_quoted_string): New function.
6029         (pp_format): Call it for %c and %s directives.
6031 2016-09-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6033         * doc/tm.texi.in (INITIAL_FRAME_POINTER_OFFSET): Remove.
6034         (ELIMINABLE_REGS, TARGET_CAN_ELIMINATE,
6035         INITIAL_ELIMINATION_OFFSET) : Update documentation.
6036         * target.def (frame_pointer_required, can_eliminate): Likewise.
6037         * doc/tm.texi: Regenerated.
6038         * builtins.c (expand_builtin_setjmp_receiver): Remove #ifdef
6039         ELIMINABLE_REGS.
6040         * df-scan.c (df_hard_reg_init): Likewise.
6041         * ira.c (ira_setup_eliminable_regset): Likewise.
6042         * lra-eliminations.c (reg_eliminate_1, (update_reg_eliminate,
6043         init_elim_table): Likewise.
6044         * reload1.c (reg_eliminate_1, verify_initial_elim_offsets,
6045         set_initial_elim_offsets, update_eliminables,
6046         init_elim_table): Likewise.
6047         * rtlanal.c (get_initial_register_offset): Likewise.
6048         * config/ft32/ft32.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
6049         * config/m32r/m32r.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
6050         * config/moxie/moxie.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
6051         * config/vax/vax.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
6052         * config/fr30/fr30.h: Fix comment.
6053         * config/frv/frv.c: Likewise.
6054         * config/frv/frv.h: Likewise.
6055         * config/ft32/ft32.h: Likewise.
6056         * config/visium/visium.h: Likewise.
6057         * config/pa/pa64-linux.h: Likewise.
6058         * config/v850/v850.h: Likewise.
6059         * config/cris/cris.c: Likewise.
6060         * config/ia64/ia64.h: Likewise.
6061         * config/moxie/moxie.h: Likewise.
6062         * config/m32r/m32r.h: Likewise.
6064 2016-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6066         PR target/77267
6067         * config.in: Regenerate.
6068         * config/i386/linux-common.h (MPX_LD_AS_NEEDED_GUARD_PUSH):
6069         New macro.
6070         (MPX_LD_AS_NEEDED_GUARD_PUSH): Ditto.
6071         (LIBMPXWRAPPERS_SPEC): Remove "--no-whole-archive" from
6072         static-libmpxwrappers case.
6073         (LIBMPX_SPEC): Add guards with MPX_LD_AS_NEEDED_GUARD_PUSH and
6074         MPX_LD_AS_NEEDED_GUARD_POP.
6075         * configure: Regenerate.
6076         * configure.ac (HAVE_LD_PUSHPOPSTATE_SUPPORT): New variable.
6077         defined if linker support "--push-state"/"--pop-state".
6079 2016-09-09  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6081         * doc/cpp.texi (__*_WIDTH__): Small wording fixes.
6083 2016-09-09  Joseph Myers  <joseph@codesourcery.com>
6085         * doc/cpp.texi (__SCHAR_WIDTH__, __SHRT_WIDTH__, __INT_WIDTH__)
6086         (__LONG_WIDTH__, __LONG_LONG_WIDTH__, __PTRDIFF_WIDTH__)
6087         (__SIG_ATOMIC_WIDTH__, __SIZE_WIDTH__, __WCHAR_WIDTH__)
6088         (__WINT_WIDTH__, __INT_LEAST8_WIDTH__, __INT_LEAST16_WIDTH__)
6089         (__INT_LEAST32_WIDTH__, __INT_LEAST64_WIDTH__)
6090         (__INT_FAST8_WIDTH__, __INT_FAST16_WIDTH__, __INT_FAST32_WIDTH__)
6091         (__INT_FAST64_WIDTH__, __INTPTR_WIDTH__, __INTMAX_WIDTH__):
6092         Document.
6093         * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Define
6094         width macros from TS 18661-1.
6095         * glimits.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Likewise.
6097 2016-09-08  Jakub Jelinek  <jakub@redhat.com>
6099         PR fortran/77516
6100         * omp-low.c (lower_rec_simd_input_clauses): Use max_vf for non-positive
6101         OMP_CLAUSE_SAFELEN_EXPR.
6103 2016-09-07  David Malcolm  <dmalcolm@redhat.com>
6105         * Makefile.in (OBJS): Add substring-locations.o.
6106         * langhooks-def.h (class substring_loc): New forward decl.
6107         (lhd_get_substring_location): New decl.
6108         (LANG_HOOKS_GET_SUBSTRING_LOCATION): New macro.
6109         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_GET_SUBSTRING_LOCATION.
6110         * langhooks.c (lhd_get_substring_location): New function.
6111         * langhooks.h (class substring_loc): New forward decl.
6112         (struct lang_hooks): Add field get_substring_location.
6113         * substring-locations.c: New file, taking definition of
6114         format_warning_va and format_warning_at_substring from
6115         c-family/c-format.c, making them non-static.
6116         * substring-locations.h (class substring_loc): Move class here
6117         from c-family/c-common.h.  Add and rewrite comments.
6118         (format_warning_va): New decl.
6119         (format_warning_at_substring): New decl.
6120         (get_source_location_for_substring): Add comment.
6122 2016-09-07  Eric Gallager  <egall@gwmail.gwu.edu>
6124         * config/i386/i386.c: Add 'U' suffix to processor feature bits
6125         to avoid -Wnarrowing warning.
6126         * config/i386/x86-tune.def: Likewise for DEF_TUNE selector bitmasks.
6127         * opts.c: Likewise for SANITIZER_OPT bitmasks.
6129 2016-09-07  Wilco Dijkstra  <wdijkstr@arm.com>
6131         * config/aarch64/aarch64.c (aarch64_legitimize_address):
6132         Avoid use of base_offset if offset already in range.
6134 2016-09-07  Kaz Kojima  <kkojima@gcc.gnu.org>
6136         * config/sh/sh-protos.h (struct sh_atomic_model,
6137         selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
6138         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
6139         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Move to...
6140         * config/sh/sh.h (struct sh_atomic_model,
6141         selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
6142         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
6143         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): ...here.
6144         Guard with __cplusplus.
6146 2016-09-06  Jakub Jelinek  <jakub@redhat.com>
6148         PR target/69255
6149         * config/i386/i386.c (ix86_expand_builtin): For builtin with
6150         unsupported or unknown ISA, use expand_call.
6152 2016-09-06  Martin Liska  <mliska@suse.cz>
6154         PR gcov-profile/77378
6155         PR gcov-profile/77466
6156         * tree-profile.c (tree_profiling): Detect whether target can use
6157         -fprofile-update=atomic.
6159 2016-09-06  Richard Biener  <rguenther@suse.de>
6161         PR tree-optimization/77479
6162         * tree-vrp.c (update_value_range): Extend overflow handling to
6163         VARYING.
6165 2016-09-05  Jakub Jelinek  <jakub@redhat.com>
6167         PR target/77476
6168         * config/i386/i386.md (isa): Add x64_avx512bw.
6169         (*zero_extendsidi2): For alternative 11 use x64_avx512bw isa.
6170         (kmov_isa): New mode attr.
6171         (zero_extend<mode>di2): Use <kmov_isa> isa for the last alternative.
6172         (*zero_extend<mode>si2): Likewise.
6173         (*zero_extendqihi2): Use avx512dq isa for the last alternative.
6175 2016-09-05  Gerald Pfeifer  <gerald@pfeifer.com>
6177         * doc/invoke.texi (SPU Options): nops -> NOPs.
6178         (x86 Options): Ditto.
6180 2016-09-05  Jakub Jelinek  <jakub@redhat.com>
6182         PR middle-end/77475
6183         * toplev.c (process_options): Temporarily set input_location
6184         to UNKNOWN_LOCATION around targetm.target_option.override () call.
6186 2016-09-05  Uros Bizjak  <ubizjak@gmail.com>
6188         PR rtl-optimization/77452
6189         * explow.c (plus_constant) <case MEM>: Extract scalar constant from
6190         inner-mode reference to a CONST_VECTOR constant in the constant pool.
6192 2016-09-05  Marek Polacek  <polacek@redhat.com>
6194         PR c/77423
6195         * doc/invoke.texi: Update -Wlogical-not-parentheses documentation.
6197 2016-09-05  Jakub Jelinek  <jakub@redhat.com>
6199         PR other/77421
6200         * gensupport.c (alter_output_for_subst_insn): Remove redundant
6201         *insn_out == '*' test.  Don't copy unnecessary to yet another
6202         memory buffer, and don't leak it.
6204         PR rtl-optimization/77425
6205         * ipa-devirt.c (get_odr_type): Set val->id unconditionally.
6207 2016-09-03  Kirill Yukhin  <kirill.yukhin@intel.com>
6209         * ubsan.c (ubsan_use_new_style_p): Fix check for empty string.
6211 2016-09-02  David Malcolm  <dmalcolm@redhat.com>
6213         * common.opt (fdiagnostics-generate-patch): New option.
6214         * diagnostic.c: Include "edit-context.h".
6215         (diagnostic_initialize): Initialize context->edit_context_ptr.
6216         (diagnostic_finish): Delete context->edit_context_ptr.
6217         (diagnostic_report_diagnostic): Add fix-it hints from the
6218         diagnostic to context->edit_context_ptr, if any.
6219         * diagnostic.h (class edit_context): Add forward decl.
6220         (struct diagnostic_context): Add field "edit_context_ptr".
6221         * doc/invoke.texi (Diagnostic Message Formatting Options): Add
6222         -fdiagnostics-generate-patch.
6223         (-fdiagnostics-generate-patch): New item.
6224         * toplev.c: Include "edit-context.h".
6225         (process_options): Set global_dc->edit_context_ptr to a new
6226         edit_context if the options need one.
6227         (toplev::main): Handle -fdiagnostics-generate-patch by using
6228         global_dc->edit_context_ptr.
6230 2016-09-02  Jakub Jelinek  <jakub@redhat.com>
6232         PR c/65467
6233         * gimplify.c (gimplify_adjust_omp_clauses_1): Diagnose implicit
6234         map and firstprivate clauses on target construct for _Atomic
6235         qualified decls.
6236         (gimplify_adjust_omp_clauses): Diagnose explicit firstprivate clauses
6237         on target construct for _Atomic qualified decls.
6238         * omp-low.c (use_pointer_for_field): Return true for _Atomic qualified
6239         decls.
6240         * omp-simd-clone.c (simd_clone_clauses_extract): Warn and give up for
6241         _Atomic qualified arguments not mentioned in uniform clause.
6243 2016-09-02  David Malcolm  <dmalcolm@redhat.com>
6245         * Makefile.in (OBJS-libcommon): Add edit-context.o.
6246         * diagnostic-color.c (color_dict): Add "diff-filename",
6247         "diff-hunk", "diff-delete", and "diff-insert".
6248         (parse_gcc_colors): Update default value of GCC_COLORS in comment
6249         to reflect above changes.
6250         * doc/invoke.texi (-fdiagnostics-color): Update description of
6251         default GCC_COLORS, and of the supported capabilities.
6252         * edit-context.c: New file.
6253         * edit-context.h: New file.
6254         * input.c (struct fcache): Add field "missing_trailing_newline".
6255         (diagnostics_file_cache_forcibly_evict_file): Initialize it to
6256         true.
6257         (add_file_to_cache_tab): Likewise.
6258         (fcache::fcache): Likewise.
6259         (get_next_line): Update c->missing_trailing_newline.
6260         (location_missing_trailing_newline): New function.
6261         * input.h (location_missing_trailing_newline): New decl.
6262         * selftest-run-tests.c (selftest::run_tests): Call
6263         edit_context_c_tests.
6264         * selftest.h (edit_context_c_tests): New decl.
6266 2016-09-02  Jakub Jelinek  <jakub@redhat.com>
6267             Richard Biener  <rguenth@suse.de>
6269         PR tree-optimization/77444
6270         * tree-ssa-loop-ivopts.c (cand_value_at): For pointers use sizetype
6271         as steptype, remove redundant initialization.
6273 2016-09-02  Jakub Jelinek  <jakub@redhat.com>
6275         PR sanitizer/77396
6276         * sanopt.c: Include gimple-ssa.h, tree-phinodes.h and ssa-iterators.h.
6277         (sanopt_optimize_walker): Optimize away
6278         __asan_before_dynamic_init (...) followed by
6279         __asan_after_dynamic_init () without intervening memory loads/stores.
6280         * ipa-pure-const.c (special_builtin_state): Handle
6281         BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT and
6282         BUILT_IN_ASAN_AFTER_DYNAMIC_INIT.
6284 2016-09-02  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
6286         * cfg.c (free_original_copy_tables): Replace second assignment of
6287         bb_copy = NULL by bb_original = NULL.
6289 2016-09-02  Jakub Jelinek  <jakub@redhat.com>
6291         PR other/77421
6292         * config/i386/i386.c (ix86_expanded_args_builtin): Remove redundant
6293         assignment added in r216794.
6295 2016-09-02  David Malcolm  <dmalcolm@redhat.com>
6297         * Makefile.in (OBJS): Add typed-splay-tree.o.
6298         * selftest-run-tests.c (selftest::run_tests): Call
6299         typed_splay_tree_c_tests.
6300         * selftest.h (typed_splay_tree_c_tests): New decl.
6301         * typed-splay-tree.c: New file.
6302         * typed-splay-tree.h (typed_splay_tree::foreach_fn): New typedef.
6303         (typed_splay_tree::max): New method.
6304         (typed_splay_tree::min): New method.
6305         (typed_splay_tree::foreach): New method.
6306         (typed_splay_tree::closure): New struct.
6307         (typed_splay_tree::inner_foreach_fn): New function.
6309 2016-09-02  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
6311         * ipa-cp.c (ipcp_store_bits_results): Change option name from
6312         -fipa-cp-bit to -fipa-bit-cp.
6314 2016-09-01  Martin Sebor  <msebor@redhat.com>
6316         PR tree-optimization/71831
6317         * tree-object-size.h: Return bool instead of the size and add
6318         argument for the size.
6319         * tree-object-size.c (compute_object_offset): Update signature.
6320         (addr_object_size): Same.
6321         (compute_builtin_object_size): Return bool instead of the size
6322         and add argument for the size.  Handle POINTER_PLUS_EXPR when
6323         optimization is disabled.
6324         (expr_object_size): Adjust.
6325         (plus_stmt_object_size): Adjust.
6326         (pass_object_sizes::execute): Adjust.
6327         * builtins.c (fold_builtin_object_size): Adjust.
6328         * doc/extend.texi (Object Size Checking): Update.
6329         * ubsan.c (instrument_object_size): Adjust.
6331 2016-09-01  Martin Sebor  <msebor@redhat.com>
6333         * genmatch.c (parser::parse_expr): Increase buffer size to guarantee
6334         it fits the output of the formatted function regardless of its
6335         arguments.
6336         * gcc/genmodes.c (parser::parse_expr): Same.
6337         * gimplify.c (gimplify_asm_expr): Same.
6338         * passes.c (pass_manager::register_one_dump_file): Same.
6339         * print-tree.c (print_node): Same.
6341 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
6343         * config/rs6000/altivec.md: Use VSCR_REGNO instead of 110 throughout.
6345 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
6347         * config/rs6000/altivec.md: Use VRSAVE_REGNO instead of 109 throughout.
6349 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
6351         * config/rs6000/altivec.md: Use CR6_REGNO instead of 74 throughout.
6352         * config/rs6000/vector.md: Ditto.
6353         * config/rs6000/vsx.md: Ditto.
6355 2016-09-01  Eric Botcazou  <ebotcazou@adacore.com>
6357         * ipa-inline-analysis.c (param_change_prob): Get to the base object
6358         first in all cases.
6360 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
6362         * config/rs6000/rs6000.md (*restore_gpregs_<mode>_r11,
6363         *restore_gpregs_<mode>_r12, *restore_gpregs_<mode>_r1,
6364         *return_and_restore_gpregs_<mode>_r11,
6365         *return_and_restore_gpregs_<mode>_r12,
6366         *return_and_restore_gpregs_<mode>_r1,
6367         *return_and_restore_fpregs_<mode>_r11,
6368         *return_and_restore_fpregs_<mode>_r12,
6369         *return_and_restore_fpregs_<mode>_r1): Use the hard register LR_REGNO
6370         directly instead of via the "l" constraint.  Renumber operands.
6371         Fix whitespace.
6373 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
6375         * config/rs6000/altivec.md (*save_world, *save_vregs_<mode>_r11,
6376         save_vregs_<mode>_r12, *restore_vregs_<mode>_r11,
6377         *restore_vregs_<mode>_r12): Use LR_REGNO instead of 65.
6378         * config/rs6000/darwin.md (load_macho_picbase, load_macho_picbase_si,
6379         load_macho_picbase_di, *call_indirect_nonlocal_darwin64,
6380         *call_nonlocal_darwin64, *call_value_indirect_nonlocal_darwin64,
6381         *call_value_nonlocal_darwin64, reload_macho_picbase,
6382         reload_macho_picbase_si, reload_macho_picbase_di): Ditto.
6383         * config/rs6000/rs6000.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Ditto.
6384         * config/rs6000/rs6000.md (*save_gpregs_<mode>_r11,
6385         *save_gpregs_<mode>_r12, *save_gpregs_<mode>_r1,
6386         *save_fpregs_<mode>_r11, *save_fpregs_<mode>_r12,
6387         *save_fpregs_<mode>_r1): Ditto.
6388         * config/rs6000/spe.md (*save_gpregs_spe, *restore_gpregs_spe,
6389         *return_and_restore_gpregs_spe): Ditto.
6391 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
6393         * config/rs6000/rs6000.md
6394         (define_insn "*return_and_restore_fpregs_aix_<mode>_r11"): Delete
6395         the use of the link register.
6396         (define_insn "*return_and_restore_fpregs_aix_<mode>_r1"): Ditto.
6398 2016-09-01  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6399             Michael Meissner  <meissner@linux.vnet.ibm.com>
6401         PR target/72827
6402         * config/rs6000/rs6000.c (rs6000_legitimize_address): Avoid
6403         reg+reg addressing for TImode.
6404         (rs6000_legitimate_address_p): Only allow register indirect
6405         addressing for TImode, even without TARGET_QUAD_MEMORY.
6407 2016-09-01  Richard Biener  <rguenther@suse.de>
6409         PR middle-end/77436
6410         * tree-chrec.c (tree_fold_binomial): Use widest_int, properly
6411         check whether the result fits the desired result type.
6413 2016-09-01  Nathan Sidwell  <nathan@acm.org>
6415         * config/nvptx/nvptx.md (cbranch<mode>4): Op 2 can be const.
6417 2016-09-01  Wilco Dijkstra  <wdijkstr@arm.com>
6419         * config/aarch64/aarch64.c (aarch64_legitimize_address_displacement):
6420         New function.
6421         (TARGET_LEGITIMIZE_ADDRESS_DISPLACEMENT): Define.
6423 2016-09-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6425         * config/aarch64/aarch64.md (*ands<mode>_compare0): New pattern.
6426         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_NZmode
6427         for comparisons of integer ZERO_EXTEND against zero.
6429 2016-09-01  Eric Botcazou  <ebotcazou@adacore.com>
6431         * config/i386/i386.c (ix86_option_override_internal): Also disable the
6432         STV pass if -mstackrealign is enabled.
6434 2016-08-31  Ilya Verbin  <iverbin@gmail.com>
6436         * config/i386/driver-i386.c (host_detect_local_cpu): Fix detection of
6437         AVX512IFMA.
6439 2016-08-31  David Malcolm  <dmalcolm@redhat.com>
6441         * diagnostic-show-locus.c (class layout): Add field m_fixit_hints.
6442         (layout_range::intersects_line_p): New method.
6443         (test_range_contains_point_for_single_point): Rename to...
6444         (test_layout_range_for_single_point): ...this, and add testing
6445         for layout_range::intersects_line_p.
6446         (test_range_contains_point_for_single_line): Rename to...
6447         (test_layout_range_for_single_line): ...this,  and add testing
6448         for layout_range::intersects_line_p.
6449         (test_range_contains_point_for_multiple_lines): Rename to...
6450         (test_layout_range_for_multiple_lines): ...this,  and add testing
6451         for layout_range::intersects_line_p.
6452         (layout::layout): Populate m_fixit_hints.
6453         (layout::get_expanded_location): Handle the case of a line-span
6454         for a fix-it hint.
6455         (layout::validate_fixit_hint_p): New method.
6456         (get_line_span_for_fixit_hint): New function.
6457         (layout::calculate_line_spans): Add spans for fixit-hints.
6458         (layout::should_print_annotation_line_p): New method.
6459         (layout::print_any_fixits): Drop param "richloc", instead using
6460         validated fixits in m_fixit_hints.  Add "const" to hint pointers.
6461         (diagnostic_show_locus): Avoid printing blank annotation lines.
6462         (selftest::test_diagnostic_context::test_diagnostic_context):
6463         Initialize show_column and start_span.
6464         (selftest::test_diagnostic_context::start_span_cb): New static
6465         function.
6466         (selftest::test_diagnostic_show_locus_fixit_lines): New function.
6467         (selftest::diagnostic_show_locus_c_tests): Update for function
6468         renamings.  Call test_diagnostic_show_locus_fixit_lines.
6470 2016-08-31  Marc Glisse  <marc.glisse@inria.fr>
6472         PR tree-optimization/73714
6473         * match.pd (a * (1 << b)): Revert change from 2016-05-23.
6475 2016-08-31  David Malcolm  <dmalcolm@redhat.com>
6477         * selftest.c: Move "namespace selftest {" to top of file,
6478         removing explicit "selftest::" qualifiers throughout.
6480 2016-08-31  Marc Glisse  <marc.glisse@inria.fr>
6482         * config/i386/avx512fintrin.h (__m512_u, __m512i_u, __m512d_u):
6483         New types.
6484         (_mm512_loadu_pd, _mm512_storeu_pd, _mm512_loadu_ps,
6485         _mm512_storeu_ps, _mm512_loadu_si512, _mm512_storeu_si512):
6486         Replace builtin with vector extension.
6487         * config/i386/avxintrin.h (__m256_u, __m256i_u, __m256d_u):
6488         New types.
6489         (_mm256_loadu_pd, _mm256_storeu_pd, _mm256_loadu_ps,
6490         _mm256_storeu_ps, _mm256_loadu_si256, _mm256_storeu_si256):
6491         Replace builtin with vector extension.
6492         * config/i386/emmintrin.h (__m128i_u, __m128d_u): New types.
6493         (_mm_loadu_pd, _mm_storeu_pd, _mm_loadu_si128, _mm_storeu_si128):
6494         Replace builtin with vector extension.
6495         * config/i386/xmmintrin.h (__m128_u): New type.
6496         (_mm_loadu_ps, _mm_storeu_ps): Replace builtin with vector extension.
6497         (_mm_load_ps, _mm_store_ps): Simplify.
6499 2016-08-31  Eric Botcazou  <ebotcazou@adacore.com>
6501         * config/arm/arm.c (thumb1_size_rtx_costs) <SET>: Add missing guard.
6503 2016-08-30  David Malcolm  <dmalcolm@redhat.com>
6505         * diagnostic-show-locus.c (colorizer::begin_state): Support more
6506         than 3 ranges per diagnostic by alternating between color 1 and
6507         color 2.
6508         (layout::layout): Replace use of rich_location::MAX_RANGES
6509         with richloc->get_num_locations ().
6510         (layout::calculate_line_spans): Replace use of
6511         rich_location::MAX_RANGES with m_layout_ranges.length ().
6512         (layout::print_annotation_line): Handle arbitrary numbers of
6513         ranges in caret-printing by defaulting to '^'.
6514         (selftest::test_one_liner_many_fixits): New function.
6515         (test_diagnostic_show_locus_one_liner): Call it.
6516         * diagnostic.c (diagnostic_initialize): Update for renaming
6517         of rich_location::MAX_RANGES to
6518         rich_location::STATICALLY_ALLOCATED_RANGES.
6519         * diagnostic.h (struct diagnostic_context): Likewise.
6521 2016-08-30  David Malcolm  <dmalcolm@redhat.com>
6523         * selftest.c (selftest::named_temp_file::named_temp_file): New
6524         ctor.
6525         (selftest::temp_source_file::~temp_source_file): Move to...
6526         (selftest::named_temp_file::~named_temp_file): ...here.
6527         (selftest::test_named_temp_file): New function.
6528         (selftest::selftest_c_tests): Call test_named_temp_file.
6529         * selftest.h (class named_temp_file): New class.
6530         (class temp_source_file): Convert to a subclass of named_temp_file.
6532 2016-08-30  Segher Boessenkool  <segher@kernel.crashing.org>
6534         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Do not emit
6535         USEs of LR_REGNO in returns and sibcalls.
6536         (rs6000_output_mi_thunk): Similar.
6537         (rs6000_sibcall_aix): Similar.
6538         * config/rs6000/rs6000.md (sibcall, sibcall_value, sibcall_local32,
6539         sibcall_local64, sibcall_value_local32, sibcall_value_local64,
6540         sibcall_nonlocal_sysv<mode>, sibcall_value_nonlocal_sysv<mode>):
6541         Remove the USE of LR_REGNO from the patterns as well.  Delete an
6542         obsolete comment.
6543         (return_internal_<mode>): Delete.
6545 2016-08-30  Tamar Christina  <tamar.christina@arm.com>
6547         * gcc/config/aarch64/aarch64-simd.md
6548         (aarch64_ld2<mode>_dreg_le): New.
6549         (aarch64_ld2<mode>_dreg_be): New.
6550         (aarch64_ld2<mode>_dreg): Removed.
6551         (aarch64_ld3<mode>_dreg_le): New.
6552         (aarch64_ld3<mode>_dreg_be): New.
6553         (aarch64_ld3<mode>_dreg): Removed.
6554         (aarch64_ld4<mode>_dreg_le): New.
6555         (aarch64_ld4<mode>_dreg_be): New.
6556         (aarch64_ld4<mode>_dreg): Removed.
6557         (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Wrapper around _le, _be.
6559 2016-08-30  David Malcolm  <dmalcolm@redhat.com>
6561         * diagnostic-show-locus.c (test_one_liner_fixit_insert): Remove
6562         redundant location param.
6563         (test_one_liner_fixit_remove): Likewise.
6564         (test_one_liner_fixit_replace): Likewise.
6565         (test_one_liner_fixit_replace_equal_secondary_range): Likewise.
6566         * gcc-rich-location.c
6567         (gcc_rich_location::add_fixit_misspelled_id): Eliminate call to
6568         get_range_from_loc.  Drop overload taking a const char *.
6569         * gcc-rich-location.h
6570         (gcc_rich_location::add_fixit_misspelled_id): Drop overload taking
6571         a const char *.
6573 2016-08-30  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6575         * config/linux.c (linux_libc_has_function): Return true on musl.
6577 2016-08-30  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6579         * config.gcc (*-*-*musl*): Disable gnu-indirect-function.
6581 2016-08-30  Eric Botcazou  <ebotcazou@adacore.com>
6583         * postreload-gcse.c (bb_has_well_behaved_predecessors): Tweak criterion
6584         used for abnormal egdes.
6586 2016-08-30  Jakub Jelinek  <jakub@redhat.com>
6588         PR tree-optimization/72866
6589         * tree-vect-patterns.c (search_type_for_mask): Turn into
6590         a small wrapper, move all code to ...
6591         (search_type_for_mask_1): ... this new function.  Add caching
6592         and adjust recursive calls.
6594         PR debug/77363
6595         * dwarf2out.c (modified_type_die): Use lookup_type_die (type)
6596         instead of lookup_type_die (type_main_variant (type)) even for array
6597         types.
6599         PR middle-end/77377
6600         * simplify-rtx.c (avoid_constant_pool_reference): For out of bounds
6601         constant pool reference return x instead of c.
6603 2016-08-29  Segher Boessenkool  <segher@kernel.crashing.org>
6605         * config/rs6000/rs6000.h (CALL_REALLY_USED_REGISTERS): Do not
6606         include MQ.
6608 2016-08-29  David Malcolm  <dmalcolm@redhat.com>
6610         * input.c
6611         (selftest::test_make_location_nonpure_range_endpoints): Fix
6612         header comment.
6614 2016-08-29  David Malcolm  <dmalcolm@redhat.com>
6616         * diagnostic-show-locus.c
6617         (selftest::test_one_liner_fixit_validation_adhoc_locations): New
6618         function.
6619         (selftest::test_diagnostic_show_locus_one_liner): Call it.
6620         * input.c (get_pure_location): Move to libcpp/line-map.c.
6621         * input.h (get_pure_location): Convert decl to an inline function
6622         calling implementation in libcpp.
6624 2016-08-29  Uros Bizjak  <ubizjak@gmail.com>
6626         PR target/77403
6627         * config/i386/sse.md (vec_set_lo_<mode><mask_name>): Fix assembler
6628         template for intel asm dialect.
6629         (vec_set_hi_<mode><mask_name>): Ditto.
6631 2016-08-29  David Malcolm  <dmalcolm@redhat.com>
6633         * selftest.h (selftest::fail): Add ATTRIBUTE_NORETURN.
6634         (selftest::fail_formatted): Likewise.
6636 2016-08-29  David Malcolm  <dmalcolm@redhat.com>
6638         * input.c (make_location): Call get_start and get_finish
6639         on the endpoints to avoid storing packed ranges or ad-hoc
6640         ranges in them.
6641         (selftest::test_make_location_nonpure_range_endpoints): New function.
6642         (selftest::input_c_tests): Call it.
6643         * input.h (get_start): New inline function.
6645 2016-08-29  Tom de Vries  <tom@codesourcery.com>
6647         PR c/77398
6648         * gimplify.c (gimplify_va_arg_expr): Replace first argument type error
6649         with assert.
6651 2016-08-29  Eric Botcazou  <ebotcazou@adacore.com>
6653         * Makefile.in (gcov-iov.h): Add dummy recipe.
6655 2016-08-29  Nathan Sidwell  <nathan@acm.org>
6657         * config/nvptx/nvptx.c: #include tree-vrp.h.
6659 2016-08-28  Eric Botcazou  <ebotcazou@adacore.com>
6661         PR target/77324
6662         * config/sparc/sparc.c (sparc_legitimate_address_p): Accept special
6663         HIGH+LO construct during reload.
6665 2016-08-28  Tom de Vries  <tom@codesourcery.com>
6667         PR lto/70955
6668         * config/i386/i386.c (ix86_build_builtin_va_list_64): Tag type with
6669         'sysv_abi va_list' attribute.
6670         (ix86_build_builtin_va_list): Tag type with 'ms_abi va_list' attribute.
6671         (ix86_canonical_va_list_type): Handle 'sysv_abi/ms_abi va_list'
6672         attributes.
6674 2016-08-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6676         * emit-rtl.h (struct rtl_data): Make stack_slot_list a vector.
6677         * emit-rtl.c (unshare_all_rtl_1): Adjust.
6678         (unshare_all_rtl_again): Likewise.
6679         * function.c (assign_stack_local_1): Likewise.
6680         (assign_stack_temp_for_type): Likewise.
6682 2016-08-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6684         * cfgbuild.c (make_edges): Adjust.
6685         * cfgrtl.c (can_delete_label_p): Likewise.
6686         * dwarf2cfi.c (create_trace_edges): Likewise.
6687         * except.c (sjlj_emit_dispatch_table): Likewise.
6688         * function.h (struct expr_status): make x_forced_labels a vector.
6689         * jump.c (rebuild_jump_labels_1): Adjust.
6690         * reload1.c (set_initial_label_offsets): Likewise.
6691         * stmt.c (force_label_rtx): Likewise.
6692         (expand_label): Likewise.
6694 2016-08-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6696         * haifa-sched.c (fix_recovery_deps): Make ready_list a vector.
6698 2016-08-27  Patrick Palka  <ppalka@gcc.gnu.org>
6700         PR tree-optimization/71077
6701         PR tree-optimization/68542
6702         * fold-const.c (fold_relational_const): Fix folding of
6703         VECTOR_CST comparisons that have a scalar boolean result type.
6704         (selftest::test_vector_folding): New static function.
6705         (selftest::fold_const_c_tests): Call it.
6707 2016-08-27  Gerald Pfeifer  <gerald@pfeifer.com>
6709         * doc/extend.texi (SPU Built-in Functions): Remove stale
6710         references to material formerly at IBM and Sony.
6712 2016-08-26  David Edelsohn  <dje.gcc@gmail.com>
6714         PR target/77349
6715         * config/rs6000/xcoff.h (DWARF_OFFSET_SIZE): Define as PTR_SIZE.
6717 2016-08-26  David Malcolm  <dmalcolm@redhat.com>
6719         * diagnostic-show-locus.c
6720         (selftest::test_fixit_consolidation): New function.
6721         (selftest::diagnostic_show_locus_c_tests): Call it.
6722         * gcc-rich-location.h (gcc_rich_location): Eliminate unused
6723         constructor based on source_range.
6725 2016-08-26  David Malcolm  <dmalcolm@redhat.com>
6727         * diagnostic-color.c (color_dict): Add "fixit-insert" and
6728         "fixit-delete".
6729         (parse_gcc_colors): Update description of default GCC_COLORS.
6730         * diagnostic-show-locus.c (colorizer::set_fixit_hint): Delete.
6731         (colorizer::set_fixit_insert): New method.
6732         (colorizer::set_fixit_delete): New method.
6733         (colorizer::get_color_by_name): New method.
6734         (colorizer::STATE_FIXIT_INSERT): New constant.
6735         (colorizer::STATE_FIXIT_DELETE): New constant.
6736         (class colorizer): Drop "_cs" suffix from fields.  Delete "_ce"
6737         fields in favor of new field "m_stop_color".  Add fields
6738         "m_fixit_insert" and "m_fixit_delete".
6739         (colorizer::colorizer): Update for above changes.  Replace
6740         colorize_start calls with calls to get_color_by_name.
6741         (colorizer::begin_state): Handle STATE_FIXIT_INSERT and
6742         STATE_FIXIT_DELETE.  Update for field renamings.
6743         (colorizer::finish_state): Simplify by using m_stop_color,
6744         rather than multiple identical "*_ce" fields.
6745         (colorizer::get_color_by_name): New method.
6746         (layout::print_any_fixits): Print insertions and replacements
6747         using the "fixit-insert" color, and deletions using the
6748         "fixit-delete" color.
6749         * doc/invoke.texi (-fdiagnostics-color): Update description of
6750         default GCC_COLORS, and of the supported capabilities.
6752 2016-08-26  Max Filippov  <jcmvbkbc@gmail.com>
6754         * config/xtensa/xtensa.c (xtensa_expand_prologue): Update
6755         current_function_static_stack_size variable with the static
6756         stack frame size of the current function when
6757         flag_stack_usage_info is enabled.
6759 2016-08-26  Nathan Sidwell  <nathan@acm.org>
6761         * ipa-inline-analysis.c (inline_write_summary): Remove unnecessary
6762         assignment inside if condition.
6764 2016-08-26  Richard Biener  <rguenther@suse.de>
6766         PR tree-optimization/69047
6767         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle general bitfield
6768         extracts similar to what FRE does.
6769         (non_rewritable_mem_ref_base): Likewise.
6771 2016-08-26  Joseph Myers  <joseph@codesourcery.com>
6773         * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p)
6774         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
6775         * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
6776         * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
6777         * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE):
6778         Likewise.
6779         * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
6780         * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
6781         * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
6782         * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Likewise.
6783         * config/i386/vxworks.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
6785 2016-08-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6787         PR target/70473
6788         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_muld): Reduce
6789         reservation duration to 15 cycles.
6790         (cortex_a8_vfp_macs): Likewise.
6791         (cortex_a8_vfp_macd): Likewise.
6792         (cortex_a8_vfp_divs): Likewise.
6793         (cortex_a8_vfp_divd): Likewise.
6795 2016-08-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6797         * config/arm/arm.c (arm_sets_movw_movt_fusible_p): New function.
6798         (aarch_macro_fusion_pair_p): Use above to avoid early return.
6800 2016-08-26  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
6801             Martin Jambhor  <mjambor@suse.cz>
6803         * common.opt: New option -fipa-bit-cp.
6804         * doc/invoke.texi: Document -fipa-bit-cp.
6805         * opts.c (default_options_table): Add entry for -fipa-bit-cp.
6806         (enable_fdo_optimizations): Check for flag_ipa_bit_cp.
6807         * tree-ssa-ccp.h: New header file.
6808         * tree-ssa-ccp.c: Include tree-ssa-ccp.h
6809         (bit_value_binop_1): Change to bit_value_binop_1 and export it.
6810         Replace all occurences of tree parameter by two new params: signop, int.
6811         (bit_value_unop_1): Change to bit_value_unop and export it.
6812         Replace all occurences of tree parameter by two new params: signop,
6813         int.
6814         (bit_value_binop): Change call from bit_value_binop_1 to
6815         bit_value_binop.
6816         (bit_value_assume_aligned): Likewise.
6817         (bit_value_unop): Change call from bit_value_unop_1 to bit_value_unop.
6818         (do_ssa_ccp): Pass nonzero_p || flag_ipa_cp_bit instead of nonzero_p
6819         to ccp_finalize.
6820         (ccp_finalize): Skip processing if val->mask == 0.
6821         * ipa-cp.c: Include tree-ssa-ccp.h
6822         (ipcp_bits_lattice): New class.
6823         (ipcp_param_lattice (bits_lattice): New member.
6824         (print_all_lattices): Call ipcp_bits_lattice::print.
6825         (set_all_contains_variable): Call ipcp_bits_lattice::set_to_bottom.
6826         (initialize_node_lattices): Likewise.
6827         (propagate_bits_accross_jump_function): New function.
6828         (propagate_constants_accross_call): Call
6829         propagate_bits_accross_jump_function.
6830         (ipcp_propagate_stage): Store parameter types when in_lto_p is true.
6831         (ipcp_store_bits_results): New function.
6832         (ipcp_driver): Call ipcp_store_bits_results.
6833         * ipa-prop.h (ipa_bits): New struct.
6834         (ipa_jump_func): Add new member bits of type ipa_bits.
6835         (ipa_param_descriptor): Change decl to decl_or_type.
6836         (ipa_get_param): Change decl to decl_or_type and assert on
6837         PARM_DECL.
6838         (ipa_get_type): New function.
6839         (ipcp_transformation_summary): New member bits.
6840         * ipa-prop.c (ipa_get_param_decl_index_1): s/decl/decl_or_type.
6841         (ipa_populate_param_decls): Likewise.
6842         (ipa_dump_param): Likewise.
6843         (ipa_print_node_jump_functions_for_edge): Pretty-print ipa_bits jump
6844         function.
6845         (ipa_set_jf_unknown): Set ipa_bits::known to false.
6846         (ipa_compute_jump_functions_for_edge): Compute jump function for bits
6847         propagation.
6848         (ipa_node_params_t::duplicate): Copy src->bits into dst->bits.
6849         (ipa_write_jump_function): Add streaming for ipa_bits.
6850         (ipa_read_jump_function): Add support for reading streamed ipa_bits.
6851         (write_ipcp_transformation_info): Add streaming for ipa_bits
6852         summary for ltrans.
6853         (read_ipcp_transfomration_info): Add support for reading streamed
6854         ipa_bits.
6855         (ipcp_update_bits): New function.
6856         (ipcp_transform_function): Call ipcp_update_bits.
6858 2016-08-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6860         * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Update.
6861         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Update.
6863 2016-08-25  David Edelsohn  <dje.gcc@gmail.com>
6865         * multiple_target.c (pass_data_dispatcher_calls): Fix typo.
6867 2016-08-25  Richard Biener  <rguenther@suse.de>
6869         * dwarf2out.c (gen_remaining_tmpl_value_param_die_attributes):
6870         Only add locations in late dwarf.
6871         (gen_scheduled_generic_parms_dies): Do not set early dwarf here.
6872         (dwarf2out_early_finish): But do it here.
6874 2016-08-24  Michael Collison  <michael.collison@linaro.org>
6875             Michael Collison  <michael.collison@arm.com>
6877         * config/arm/arm-modes.def: Add new condition code mode CC_V
6878         to represent the overflow bit.
6879         * config/arm/arm.c (maybe_get_arm_condition_code):
6880         Add support for CC_Vmode.
6881         (arm_gen_unlikely_cbranch): New function to generate common
6882         rtl conditional branches for overflow patterns.
6883         * config/arm/arm-protos.h: Add prototype for
6884         arm_gen_unlikely_cbranch.
6885         * config/arm/arm.md (addv<mode>4, add<mode>3_compareV,
6886         addsi3_compareV_upper): New patterns to support signed
6887         builtin overflow add operations.
6888         (uaddv<mode>4, add<mode>3_compareC, addsi3_compareV_upper):
6889         New patterns to support unsigned builtin add overflow operations.
6890         (subv<mode>4, sub<mode>3_compare1): New patterns to support signed
6891         builtin overflow subtract operations,
6892         (usubv<mode>4): New patterns to support unsigned builtin subtract
6893         overflow operations.
6894         (negvsi3, negvdi3, negdi2_compare, negsi2_carryin_compare): New patterns
6895         to support builtin overflow negate operations.
6897 2016-08-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6899         Revert
6900         2016-08-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
6902         * explow.c (get_dynamic_stack_size): Take known alignment of stack
6903         pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
6904         needed.
6906 2016-08-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
6908         * doc/fragments.texi (MULTILIB_REUSE): Mention that only options in
6909         MULTILIB_OPTIONS should be used.  Small wording fixes.
6910         * genmultilib: Memorize set of all option combinations in
6911         combination_space.  Detect if RHS of MULTILIB_REUSE uses an option not
6912         found in MULTILIB_OPTIONS by checking if option set is listed in
6913         combination_space.  Output new and existing error message to stderr.
6915 2016-08-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
6917         * config/arm/t-aprofile (MULTILIB_MATCHES): Add mapping for
6918         -mcpu=cortex-a7, -mfpu=neon-fp16, -mfpu=fpv5-d16 and -mfpu=fp-armv8.
6919         Fix typo in -mfpu=vfpv3-d16-fp16 mapping.
6920         (MULTILIB_REUSE): Remove reuse rules for option set including
6921         -mfpu=fp-armv8 and -mfpu=vfpv4
6923 2016-08-24  Sebastian Huber  <sebastian.huber@embedded-brains.de>
6925         * config/arm/t-rtems: Add vfp multilib.
6927 2016-08-23  Ian Lance Taylor  <iant@golang.org>
6929         * config/s390/s390.c (s390_asm_file_start): Call
6930         default_file_start.
6932 2016-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
6934         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Set
6935         initialization of all 0's to the 0 constant, instead of directly
6936         generating XOR.  Add support for V4SImode vector initialization on
6937         64-bit systems with direct move, and rework the ISA 3.0 V4SImode
6938         initialization.  Change variables used in V4SFmode vector
6939         intialization.  For V4SFmode vector splat on ISA 3.0, make sure
6940         any memory addresses are in index form.  Add support for using
6941         VSPLTH/VSPLTB to initialize vector short and vector char vectors
6942         with all of the same element.
6943         (regno_or_subregno): New helper function to return a register
6944         number for either REG or SUBREG.
6945         (rs6000_adjust_vec_address): Do not generate ADDI <reg>,R0,<num>.
6946         Use regno_or_subregno where possible.
6947         (rs6000_split_v4si_init_di_reg): New helper function to build up a
6948         DImode value from two SImode values in order to generate V4SImode
6949         vector initialization on 64-bit systems with direct move.
6950         (rs6000_split_v4si_init): Split up the insns for a V4SImode vector
6951         initialization.
6952         (rtx_is_swappable_p): V4SImode vector initialization insn is not
6953         swappable.
6954         * config/rs6000/rs6000-protos.h (rs6000_split_v4si_init): Add
6955         declaration.
6956         * config/rs6000/vsx.md (VSX_SPLAT_I): New mode iterators and
6957         attributes to initialize V8HImode and V16QImode vectors with the
6958         same element.
6959         (VSX_SPLAT_COUNT): Likewise.
6960         (VSX_SPLAT_SUFFIX): Likewise.
6961         (UNSPEC_VSX_VEC_INIT): New unspec.
6962         (vsx_concat_v2sf): Eliminate using 'preferred' register classes.
6963         Allow SFmode values to come from Altivec registers.
6964         (vsx_init_v4si): New insn/split for V4SImode vector initialization
6965         on 64-bit systems with direct move.
6966         (vsx_splat_<mode>, VSX_W iterator): Rework V4SImode and V4SFmode
6967         vector initializations, to allow V4SImode vector initializations
6968         on 64-bit systems with direct move.
6969         (vsx_splat_v4si): Likewise.
6970         (vsx_splat_v4si_di): Likewise.
6971         (vsx_splat_v4sf): Likewise.
6972         (vsx_splat_v4sf_internal): Likewise.
6973         (vsx_xxspltw_<mode>, VSX_W iterator): Eliminate using 'preferred'
6974         register classes.
6975         (vsx_xxspltw_<mode>_direct, VSX_W iterator): Likewise.
6976         (vsx_vsplt<VSX_SPLAT_SUFFIX>_di): New insns to support
6977         initializing V8HImode and V16QImode vectors with the same
6978         element.
6979         * config/rs6000/rs6000.h (TARGET_DIRECT_MOVE_64BIT): Disallow
6980         optimization if -maltivec=be.
6982 2016-08-23  Christophe Lyon  <christophe.lyon@linaro.org>
6984         * config/arm/arm.md (arm_movqi_insn): Swap predicable_short_it
6985         attribute for alternatives 3 and 4.
6987 2016-08-23  David Malcolm  <dmalcolm@redhat.com>
6989         * selftest.c (selftest::assert_str_contains): New function.
6990         (selftest::test_assertions): Verify ASSERT_STR_CONTAINS.
6991         * selftest.h (selftest::assert_str_contains): New decl.
6992         (ASSERT_STR_CONTAINS): New macro.
6994 2016-08-23  Richard Biener  <rguenther@suse.de>
6996         PR tree-optimization/77286
6997         * tree-vect-loop.c (vect_analyze_loop_form_1): Do not modify
6998         the CFG here.
6999         (vect_transform_loop): Split exit edges of loop and scalar
7000         loop if required and at the appropriate time.
7002 2016-08-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
7004         * explow.c (get_dynamic_stack_size): Take known alignment of stack
7005         pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
7006         needed.
7007         Correct a typo in a comment.
7009 2016-08-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
7011         * config/s390/s390.md ("*andc_split"): New splitter for and with
7012         complement.
7014 2016-08-23  Richard Biener  <rguenther@suse.de>
7016         PR tree-optimization/27336
7017         * tree-vrp.c (infer_value_range): Handle stmts that can throw
7018         by looking for a non-EH edge.
7019         (process_assert_insertions_for): Likewise.
7021 2016-08-23  Richard Biener  <rguenther@suse.de>
7023         PR middle-end/77305
7024         * statistics.c (statistics_counter_event): Robustify against
7025         NULL current_pass.
7027 2016-08-23  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
7029         * config/i386/i386.c (processor_alias_table): Enable PTA_PRFCHW
7030         for targets amdfam10 and barcelona.
7032 2016-08-22  Uros Bizjak  <ubizjak@gmail.com>
7034         * config/i386/i386.md (*zero_extendsidi2): Add (*r,*k) alternative.
7035         (zero_extend<mode>di2): Ditto.
7036         (*zero_extend<mode>si2): Ditto.
7037         (*zero_extendqihi2): Ditto.
7039 2016-08-22  Joseph Myers  <joseph@codesourcery.com>
7041         PR middle-end/77269
7042         * builtins.c (fold_builtin_classify): Use builtin_decl_explicit
7043         (BUILT_IN_SIGNBIT) to expand __builtin_isinf_sign.
7045 2016-08-22  Patrick Palka  <ppalka@gcc.gnu.org>
7047         * print-tree.c (print_node) [VECTOR_CST]: Coalesce the output of
7048         identical consecutive elements.
7049         [SSA_NAME]: Print the name's def stmt on its own line.  When printing
7050         the node's def stmt, avoid printing an unwanted trailing newline by
7051         replacing the call to print_gimple_stmt() with its inlined body and
7052         adjusting it to not set pp_needs_newline and to call pp_flush()
7053         instead of pp_newline_and_flush().
7055 2016-08-22  Joseph Myers  <joseph@codesourcery.com>
7057         * tree.h (CASE_FLT_FN_FLOATN_NX, float16_type_node)
7058         (float32_type_node, float64_type_node, float32x_type_node)
7059         (float128x_type_node): New macros.
7060         * builtin-types.def (BT_FLOAT16, BT_FLOAT32, BT_FLOAT64)
7061         (BT_FLOAT128, BT_FLOAT32X, BT_FLOAT64X, BT_FLOAT128X)
7062         (BT_FN_FLOAT16, BT_FN_FLOAT32, BT_FN_FLOAT64, BT_FN_FLOAT128)
7063         (BT_FN_FLOAT32X, BT_FN_FLOAT64X, BT_FN_FLOAT128X)
7064         (BT_FN_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32)
7065         (BT_FN_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128)
7066         (BT_FN_FLOAT32X_FLOAT32X, BT_FN_FLOAT64X_FLOAT64X)
7067         (BT_FN_FLOAT128X_FLOAT128X, BT_FN_FLOAT16_CONST_STRING)
7068         (BT_FN_FLOAT32_CONST_STRING, BT_FN_FLOAT64_CONST_STRING)
7069         (BT_FN_FLOAT128_CONST_STRING, BT_FN_FLOAT32X_CONST_STRING)
7070         (BT_FN_FLOAT64X_CONST_STRING, BT_FN_FLOAT128X_CONST_STRING)
7071         (BT_FN_FLOAT16_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32_FLOAT32)
7072         (BT_FN_FLOAT64_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128_FLOAT128)
7073         (BT_FN_FLOAT32X_FLOAT32X_FLOAT32X)
7074         (BT_FN_FLOAT64X_FLOAT64X_FLOAT64X)
7075         (BT_FN_FLOAT128X_FLOAT128X_FLOAT128X): New type definitions.
7076         * builtins.def (DEF_GCC_FLOATN_NX_BUILTINS): New macro.
7077         (copysign, fabs, huge_val, inf, nan, nans): Use it.
7078         * builtins.c (expand_builtin): Use CASE_FLT_FN_FLOATN_NX for fabs
7079         and copysign.
7080         (fold_builtin_0): Use CASE_FLT_FN_FLOATN_NX for inf and huge_val.
7081         (fold_builtin_1): Use CASE_FLT_FN_FLOATN_NX for fabs.
7082         * doc/extend.texi (Other Builtins): Document these built-in
7083         functions.
7084         * fold-const-call.c (fold_const_call): Use CASE_FLT_FN_FLOATN_NX
7085         for nan and nans.
7087 2016-08-22  Gerald Pfeifer  <gerald@pfeifer.com>
7089         * doc/install.texi (Binaries): www.opencsw.org now uses https.
7091 2016-08-22  Richard Biener  <rguenther@suse.de>
7093         * tree-ssa-forwprop.c (pass_forwprop::execute): Use RPO order.
7095 2016-08-21  Uros Bizjak  <ubizjak@gmail.com>
7097         PR target/77270
7098         * config/i386/i386.md (prefetch): When TARGET_PRFCHW or
7099         TARGET_PREFETCHWT1 are disabled, emit 3dNOW! write prefetches for
7100         non-SSE2 athlons only, otherwise prefer SSE prefetches.
7102 2016-08-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
7104         * tree-vrp.c (vrp_visit_assignment_or_call): Changed to Return VR.
7105         (vrp_visit_cond_stmt): Just sets TAKEN_EDGE_P.
7106         (vrp_visit_switch_stmt): Likewise.
7107         (extract_range_from_stmt): Factored out from vrp_visit_stmt.
7108         (extract_range_from_phi_node): Factored out from vrp_visit_phi_stmt.
7109         (vrp_visit_stmt): Use extract_range_from_stmt.
7110         (vrp_visit_phi_node): Use extract_range_from_phi_node.
7112 2016-08-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
7114         * Makefile.in: Add tree-vrp.h to GTFILES.
7115         * gengtype.c (open_base_files): Add tree-vrp.h.
7116         * asan.c: Add tree-vrp.h which now has the definition value_range_type.
7117         * builtins.c: Likewise.
7118         * fold-const.c: Likewise.
7119         * gimple-builder.c: Likewise.
7120         * gimple-laddress.c: Likewise.
7121         * hsa-gen.c: Likewise.
7122         * internal-fn.c: Likewise.
7123         * ssa.h: Likewise.
7124         * targhooks.c: Liewise,
7125         * tree-ssa-address.c: Likewise.
7126         * tree-ssanames.h (value_range_type: Move to tree-vrp.h.
7127         * tree-vrp.c (struct value_range): Move to tree-vrp.h
7128         * tree-vrp.h: New file.
7130 2016-08-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
7132         PR tree-optimization/61839
7133         * tree-vrp.c (two_valued_val_range_p): New.
7134         (simplify_stmt_using_ranges): Convert CST BINOP VAR where VAR is
7135         two-valued to VAR == VAL1 ? (CST BINOP VAL1) : (CST BINOP VAL2).
7136         Also Convert VAR BINOP CST where VAR is two-valued to
7137         VAR == VAL1 ? (VAL1 BINOP CST) : (VAL2 BINOP CST).
7139 2016-08-19  David Malcolm  <dmalcolm@redhat.com>
7141         * diagnostic-show-locus.c
7142         (layout::annotation_line_showed_range_p): New method.
7143         (layout::print_any_fixits): Remove case fixit_hint::REMOVE.
7144         Reimplement case fixit_hint::REPLACE to cover removals, and
7145         replacements where the range of the replacement isn't one
7146         of the ranges in the rich_location.
7147         (test_one_liner_fixit_replace): Likewise.
7148         (selftest::test_one_liner_fixit_replace_non_equal_range): New
7149         function.
7150         (selftest::test_one_liner_fixit_replace_equal_secondary_range):
7151         New function.
7152         (selftest::test_diagnostic_show_locus_one_liner): Call the new
7153         functions.
7154         * diagnostic.c (print_parseable_fixits): Remove case
7155         fixit_hint::REMOVE.
7157 2016-08-19  Uros Bizjak  <ubizjak@gmail.com>
7159         PR target/77270
7160         * config/i386/i386.c (ix86_option_override_internal): Remove
7161         PTA_PRFCHW from entries that also have PTA_3DNOW flag.
7162         Enable SSE prefetch also for TARGET_PREFETCHWT1.
7163         Do not try to enable TARGET_PRFCHW ISA flag here.
7164         * config/i386/i386.md (prefetch): Enable also for TARGET_3DNOW.
7165         Rewrite expander function body.
7166         (*prefetch_3dnow): Enable for TARGET_3DNOW and TARGET_PREFETCHWT1.
7168 2016-08-19  Joseph Myers  <joseph@codesourcery.com>
7170         PR c/32187
7171         * tree-core.h (TI_COMPLEX_FLOAT16_TYPE)
7172         (TI_COMPLEX_FLOATN_NX_TYPE_FIRST, TI_COMPLEX_FLOAT32_TYPE)
7173         (TI_COMPLEX_FLOAT64_TYPE, TI_COMPLEX_FLOAT128_TYPE)
7174         (TI_COMPLEX_FLOAT32X_TYPE, TI_COMPLEX_FLOAT64X_TYPE)
7175         (TI_COMPLEX_FLOAT128X_TYPE, TI_FLOAT16_TYPE, TI_FLOATN_TYPE_FIRST)
7176         (TI_FLOATN_NX_TYPE_FIRST, TI_FLOAT32_TYPE, TI_FLOAT64_TYPE)
7177         (TI_FLOAT128_TYPE, TI_FLOATN_TYPE_LAST, TI_FLOAT32X_TYPE)
7178         (TI_FLOATNX_TYPE_FIRST, TI_FLOAT64X_TYPE, TI_FLOAT128X_TYPE)
7179         (TI_FLOATNX_TYPE_LAST, TI_FLOATN_NX_TYPE_LAST): New enum
7180         tree_index values.
7181         (NUM_FLOATN_TYPES, NUM_FLOATNX_TYPES, NUM_FLOATN_NX_TYPES): New
7182         macros.
7183         (struct floatn_type_info): New structure type.
7184         (floatn_nx_types): New variable declaration.
7185         * tree.h (FLOATN_TYPE_NODE, FLOATN_NX_TYPE_NODE)
7186         (FLOATNX_TYPE_NODE, float128_type_node, float64x_type_node)
7187         (COMPLEX_FLOATN_NX_TYPE_NODE): New macros.
7188         * tree.c (floatn_nx_types): New variable.
7189         (build_common_tree_nodes): Initialize _FloatN, _FloatNx and
7190         corresponding complex types.
7191         * target.def (floatn_mode): New hook.
7192         * targhooks.c: Include "real.h".
7193         (default_floatn_mode): New function.
7194         * targhooks.h (default_floatn_mode): New prototype.
7195         * doc/extend.texi (Floating Types): Document _FloatN and _FloatNx
7196         types.
7197         * doc/sourcebuild.texi (float@var{n}, float@var{n}x): Document new
7198         effective-target and dg-add-options keywords.
7199         (float@var{n}_runtime, float@var{n}x_runtime, floatn_nx_runtime):
7200         Document new effective-target keywords.
7201         * doc/tm.texi.in (TARGET_FLOATN_MODE): New @hook.
7202         * doc/tm.texi: Regenerate.
7203         * ginclude/float.h (LDBL_DECIMAL_DIG): Define to
7204         __LDBL_DECIMAL_DIG__, not __DECIMAL_DIG__.
7205         [__STDC_WANT_IEC_60559_TYPES_EXT__]: Define macros from TS
7206         18661-3.
7207         * real.h (struct real_format): Add field ieee_bits.
7208         * real.c (ieee_single_format, mips_single_format)
7209         (motorola_single_format, spu_single_format, ieee_double_format)
7210         (mips_double_format, motorola_double_format)
7211         (ieee_extended_motorola_format, ieee_extended_intel_96_format)
7212         (ieee_extended_intel_128_format)
7213         (ieee_extended_intel_96_round_53_format, ibm_extended_format)
7214         (mips_extended_format, ieee_quad_format, mips_quad_format)
7215         (vax_f_format, vax_d_format, vax_g_format, decimal_single_format)
7216         (decimal_double_format, decimal_quad_format, ieee_half_format)
7217         (arm_half_format, real_internal_format: Initialize ieee_bits
7218         field.
7219         * config/i386/i386.c (ix86_init_builtin_types): Do not initialize
7220         float128_type_node.  Set float80_type_node to float64x_type_node
7221         if appropriate and long_double_type_node not appropriate.
7222         * config/ia64/ia64.c (ia64_init_builtins): Likewise.
7223         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format):
7224         Initialize ieee_bits field.
7225         * config/rs6000/rs6000.c (TARGET_FLOATN_MODE): New macro.
7226         (rs6000_init_builtins): Set ieee128_float_type_node to
7227         float128_type_node.
7228         (rs6000_floatn_mode): New function.
7230 2016-08-19  Jakub Jelinek  <jakub@redhat.com>
7232         * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
7233         _rdseed64_step): Uglify argument names and/or local variable names
7234         in inline functions.
7235         * config/i386/rtmintrin.h (_xabort): Likewise.
7236         * config/i386/avx512vlintrin.h (_mm256_ternarylogic_epi64,
7237         _mm256_mask_ternarylogic_epi64, _mm256_maskz_ternarylogic_epi64,
7238         _mm256_ternarylogic_epi32, _mm256_mask_ternarylogic_epi32,
7239         _mm256_maskz_ternarylogic_epi32, _mm_ternarylogic_epi64,
7240         _mm_mask_ternarylogic_epi64, _mm_maskz_ternarylogic_epi64,
7241         _mm_ternarylogic_epi32, _mm_mask_ternarylogic_epi32,
7242         _mm_maskz_ternarylogic_epi32): Likewise.
7243         * config/i386/lwpintrin.h (__llwpcb, __lwpval32, __lwpval64,
7244         __lwpins32, __lwpins64): Likewise.
7245         * config/i386/avx2intrin.h (_mm_i32gather_pd, _mm_mask_i32gather_pd,
7246         _mm256_i32gather_pd, _mm256_mask_i32gather_pd, _mm_i64gather_pd,
7247         _mm_mask_i64gather_pd, _mm256_i64gather_pd, _mm256_mask_i64gather_pd,
7248         _mm_i32gather_ps, _mm_mask_i32gather_ps, _mm256_i32gather_ps,
7249         _mm256_mask_i32gather_ps, _mm_i64gather_ps, _mm_mask_i64gather_ps,
7250         _mm256_i64gather_ps, _mm256_mask_i64gather_ps, _mm_i32gather_epi64,
7251         _mm_mask_i32gather_epi64, _mm256_i32gather_epi64,
7252         _mm256_mask_i32gather_epi64, _mm_i64gather_epi64,
7253         _mm_mask_i64gather_epi64, _mm256_i64gather_epi64,
7254         _mm256_mask_i64gather_epi64, _mm_i32gather_epi32,
7255         _mm_mask_i32gather_epi32, _mm256_i32gather_epi32,
7256         _mm256_mask_i32gather_epi32, _mm_i64gather_epi32,
7257         _mm_mask_i64gather_epi32, _mm256_i64gather_epi32,
7258         _mm256_mask_i64gather_epi32): Likewise.
7259         * config/i386/pmm_malloc.h (_mm_malloc, _mm_free): Likewise.
7260         * config/i386/ia32intrin.h (__writeeflags): Likewise.
7261         * config/i386/pkuintrin.h (_wrpkru): Likewise.
7262         * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd,
7263         _mm512_mask_prefetch_i32gather_ps, _mm512_mask_prefetch_i64gather_pd,
7264         _mm512_mask_prefetch_i64gather_ps, _mm512_prefetch_i32scatter_pd,
7265         _mm512_prefetch_i32scatter_ps, _mm512_mask_prefetch_i32scatter_pd,
7266         _mm512_mask_prefetch_i32scatter_ps, _mm512_prefetch_i64scatter_pd,
7267         _mm512_prefetch_i64scatter_ps, _mm512_mask_prefetch_i64scatter_pd,
7268         _mm512_mask_prefetch_i64scatter_ps): Likewise.
7269         * config/i386/gmm_malloc.h (_mm_malloc, _mm_free): Likewise.
7270         * config/i386/avx512fintrin.h (_mm512_ternarylogic_epi64,
7271         _mm512_mask_ternarylogic_epi64, _mm512_maskz_ternarylogic_epi64,
7272         _mm512_ternarylogic_epi32, _mm512_mask_ternarylogic_epi32,
7273         _mm512_maskz_ternarylogic_epi32, _mm512_i32gather_ps,
7274         _mm512_mask_i32gather_ps, _mm512_i32gather_pd, _mm512_i64gather_ps,
7275         _mm512_i64gather_pd, _mm512_i32gather_epi32, _mm512_i32gather_epi64,
7276         _mm512_i64gather_epi32, _mm512_i64gather_epi64): Likewise.
7278         * config/i386/fxsrintrin.h (_fxsave): Remove return keyword in inlines
7279         returning void.
7280         (_fxrstor, _fxsave64, _fxrstor64): Likewise.
7281         * config/i386/xsaveintrin.h (_xsave, _xrstor, _xsave64, _xrstor64):
7282         Likewise.
7283         * config/i386/xsaveoptintrin.h (_xsaveopt, _xsaveopt64): Likewise.
7284         * config/i386/pkuintrin.h (_wrpkru): Likewise.  Add space after
7285         function name.
7286         (_rdpkru_u32): Add space after function name.
7288         * config/i386/t-i386 (i386-c.o): Don't depend on
7289         i386-builtin-types.inc.
7290         (i386.o): Depend on i386-builtin-types.inc.
7292 2016-08-19  Matthew Wahab  <matthew.wahab@arm.com>
7294         PR target/77281
7295         * config/arm/arm.c (neon_valid_immediate): Delete declaration.
7296         Use const_vec_duplicate to check for duplicated elements.
7298 2016-08-19  Richard Biener  <rguenther@suse.de>
7300         PR tree-optimization/77290
7301         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
7302         Fix flag_tree_parallelize_loops check.
7304 2016-08-19  Richard Biener  <rguenther@suse.de>
7306         * match.pd (x | 0 -> x): Add.
7308 2016-08-19  Richard Biener  <rguenther@suse.de>
7310         PR tree-optimization/77286
7311         * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
7312         Deal with virtual PHIs being out-of-order.
7314 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
7316         * doc/invoke.texi (fverbose-asm): Note that source code lines
7317         are emitted, and provide an example.
7318         * final.c (asm_show_source): New function.
7319         (final_scan_insn): Call asm_show_source.
7321 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
7323         * diagnostic-show-locus.c (colorizer::colorizer): Replace diagnostic
7324         param with diagnostic_kind.
7325         (class colorizer): Similarly replace field m_diagnostic with
7326         m_diagnostic_kind.
7327         (colorizer::colorizer): Replace diagnostic
7328         param with diagnostic_kind.
7329         (colorizer::begin_state): Update for above field change.
7330         (layout::layout): Replace diagnostic param with rich_location *
7331         and diagnostic_kind.
7332         (diagnostic_show_locus): Replace diagnostic param with richloc
7333         and diagnostic_kind.
7334         (class selftest::test_diagnostic_context): New class.
7335         (selftest::test_diagnostic_show_locus_unknown_location): New
7336         function.
7337         (selftest::test_one_liner_simple_caret): New function.
7338         (selftest::test_one_liner_caret_and_range): New function.
7339         (selftest::test_one_liner_multiple_carets_and_ranges): New
7340         function.
7341         (selftest::test_one_liner_fixit_remove): New function.
7342         (selftest::test_one_liner_fixit_replace): New function.
7343         (selftest::test_diagnostic_show_locus_one_liner): New function.
7344         (selftest::diagnostic_show_locus_c_tests): Call the new test
7345         functions.
7346         * diagnostic.c (diagnostic_initialize): Initialize
7347         colorize_source_p, show_ruler_p and parseable_fixits_p.
7348         (default_diagnostic_finalizer): Update for change to
7349         diagnostic_show_locus.
7350         (diagnostic_append_note): Likewise.
7351         * diagnostic.h (diagnostic_show_locus): Replace
7352         const diagnostic_info * param with location * and diagnostic_t.
7354 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
7356         * input.c (saved_line_table): New global.
7357         (class selftest::temp_line_table): Rename to line_table_test and
7358         move declaration to selftest.h, and drop field m_old_line_table.
7359         (selftest::temp_line_table::temp_line_table): Rename ctor to...
7360         (selftest::line_table_test::line_table_test): ...this.  Add a
7361         default ctor.  Store current value of line_table within
7362         saved_line_table.
7363         (selftest::temp_line_table::~temp_line_table): Rename dtor to...
7364         (selftest::line_table_test::~line_table_test): ...this, and
7365         restore line_table from the saved_line_table, rather than
7366         m_old_line_table.
7367         (selftest::test_accessing_ordinary_linemaps): Update for above
7368         renaming.
7369         (selftest::test_lexer): Likewise.
7370         (struct selftest::lexer_test): Likewise.
7371         (selftest::lexer_test::lexer_test): Likewise.
7372         (selftest::input_c_tests): Move the looping over test cases from
7373         here into...
7374         (selftest::for_each_line_table_case): New function.
7375         * input.h (saved_line_table): New decl.
7376         * selftest.h (struct selftest::line_table_case): New forward decl.
7377         (class selftest::line_table_test): New class, moved here from
7378         selftest::temp_line_table in input.c, and renamed.
7379         (selftest::for_each_line_table_case): New decl.
7381 2015-08-18  H.J. Lu  <hongjiu.lu@intel.com>
7383         PR target/72839
7384         * config/i386/i386.c (lakemont_cost): Set MOVE_RATIO to 17.
7386 2016-08-18  Chung-Lin Tang  <cltang@codesourcery.com>
7388         PR middle-end/70895
7389         * gimplify.c (omp_add_variable): Adjust/add variable mapping on
7390         enclosing parallel construct for reduction variables on OpenACC loop
7391         directives.
7393 2016-08-18  Pierre-Marie de Rodat  <derodat@adacore.com>
7395         * dwarf2out.c (copy_dwarf_procedure): Remove obsolete comment.
7396         (new_dwarf_proc_die): Emit DW_TAG_dwarf_procedure DIEs even for
7397         -gdwarf-3.
7398         (function_to_dwarf_procedure): Update comment.
7400 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
7402         * input.c (diagnostics_file_cache_forcibly_evict_file): New
7403         function.
7404         * input.h (diagnostics_file_cache_forcibly_evict_file): New
7405         declaration.
7406         * selftest.c (selftest::temp_source_file::~temp_source_file):
7407         Evict m_filename from the diagnostic file cache.
7409 2016-08-18  Richard Biener  <rguenther@suse.de>
7411         * tree-pass.h (make_pass_materialize_all_clones): Declare.
7412         * ipa.c (pass_data_materialize_all_clones, pass_materialize_all_clones,
7413         make_pass_materialize_all_clones): New simple IPA pass encapsulating
7414         clone materialization.
7415         * passes.def (all_late_ipa_passes): Start with
7416         pass_materialize_all_clones.
7417         * cgraphunit.c (symbol_table::compile): Remove call to
7418         materialize_all_clones.
7419         * tree-into-ssa.c: Include statistics.h.
7420         (update_ssa): Count number of times we do incremental/rewrite
7421         SSA update.
7423 2016-08-18  Richard Biener  <rguenther@suse.de>
7425         PR tree-optimization/77282
7426         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
7427         When doing auto-parallelizing also prevent use of PHIs that
7428         carry dependences across loop backedges.
7430 2016-08-18  Tamar Christina  <tamar.christina@arm.com>
7431             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7433         * varasm.c (default_use_anchors_for_symbol_p): Reject too large decls.
7435 2016-08-18  Richard Biener  <rguenther@suse.de>
7437         * ssa-iterators.h (ssa_vuse_operand): New inline.
7438         * tree-if-conv.c (ifc_temp_var): Update virtual operand.
7439         (predicate_all_scalar_phis): Use remove_phi_node to remove
7440         phi nodes predicated.  Delay removing virtual PHIs.
7441         (predicate_mem_writes): Update virtual operands.
7442         (combine_blocks): Likewise.  Propagate out remaining virtual PHIs.
7443         (tree_if_conversion): Do not rewrite virtual SSA form.
7444         * tree-phinodes.c (release_phi_node): Make static.
7445         * tree-phinodes.h (release_phi_node): Remove.
7447 2016-08-18  Jakub Jelinek  <jakub@redhat.com>
7449         * config/i386/i386.c (enum ix86_builtins): Remove IX86_BUILTIN_*
7450         codes that appear in bdesc_* arrays, instead include i386-builtin.def
7451         twice to define those.
7452         (bdesc_comi, bdesc_pcmpestr, bdesc_pcmpistr, bdesc_special_args,
7453         bdesc_args, bdesc_round_args, bdesc_mpx, bdesc_mpx_const,
7454         bdesc_multi_arg): Define by including i386-builtin.def the third time.
7455         * config/i386/i386-builtin.def: New file.
7457 2016-08-17  David Malcolm  <dmalcolm@redhat.com>
7459         * input.c (get_source_range_for_char): Rename to...
7460         (selftest::get_source_range_for_char): ...this, and move within
7461         the #if CHECKING_P guard.
7462         (get_num_source_ranges_for_substring): Rename to...
7463         (selftest::get_num_source_ranges_for_substring): ...this, move
7464         within the #if CHECKING_P guard, and make static.
7465         (selftest::assert_num_substring_ranges): Initialize
7466         actual_num_ranges.
7468 2016-08-18  Alan Modra  <amodra@gmail.com>
7470         PR rtl-optimization/72771
7471         * reload.c (find_reloads): Don't assume that a subreg mem is OK
7472         when find_reloads_toplev returns address_reloaded==-1.
7473         (alternative_allows_const_pool_ref): Update comment.
7475 2015-08-17  Alan Hayward  <alan.hayward@arm.com>
7477         PR tree-optimization/71752
7478         * tree-vect-loop.c (vectorizable_reduction): Keep SLP operand ordering.
7479         * tree-vect-slp.c (vect_get_slp_defs): Handle null operands.
7481 2016-08-17  Jakub Jelinek  <jakub@redhat.com>
7483         * gimple-fold.c (gimple_fold_call): Use gimple_call_noreturn_p
7484         instead of testing ECF_NORETURN bit in gimple_call_flags.
7485         * tree-cfg.c (make_edges_bb, execute_fixup_cfg): Likewise.
7486         * predict.c (tree_bb_level_predictions): Likewise.
7487         * gimple-low.c (gimple_stmt_may_fallthru): Likewise.
7489         PR middle-end/77259
7490         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): If
7491         turning a call into __builtin_unreachable-like noreturn call, adjust
7492         gimple_call_set_fntype.
7493         * tree-cfgcleanup.c (fixup_noreturn_call): Remove lhs also if
7494         gimple_call_fntype has void return type.
7496 2016-08-17  Chung-Lin Tang  <cltang@codesourcery.com>
7498         * omp-low.c (lower_oacc_reductions): Adjust variable lookup to use
7499         maybe_lookup_decl, to handle nested acc loop directives.
7501 2016-08-17  Richard Biener  <rguenther@suse.de>
7503         PR tree-optimization/76490
7504         * tree-vrp.c (update_value_range): Preserve overflow infinities
7505         when intersecting with ranges from get_range_info.
7506         (operand_less_p): Handle overflow infinities correctly.
7507         (value_range_constant_singleton): Use vrp_operand_equal_p
7508         to handle overflow max/min correctly.
7509         (vrp_valueize): Likewise.
7510         (union_ranges): Likewise.
7511         (intersect_ranges): Likewise.
7512         (vrp_visit_phi_node): Improve iteration limitation to only
7513         apply when we'll possibly re-visit the PHI via a changed argument
7514         on the backedge.
7516 2016-08-17  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7518         * config/arm/t-aprofile (MULTILIB_EXCEPTIONS): Rewrite into ...
7519         (MULTILIB_REQUIRED): This by specifying multilib needing to be built
7520         rather than those that should not be built.
7522 2016-08-17  Stanislaw Halik  <sthalik@misaki.pl>
7524         PR target/66488
7525         * config/i386/xm-mingw32.h (HOST_BITS_PER_PTR): Define if __x86_64__.
7527 2016-08-17  Richard Biener  <rguenther@suse.de>
7529         * tree-ssa.c: Include tree-cfg.h and tree-dfa.h.
7530         (verify_vssa): New function verifying virtual SSA form.
7531         (verify_ssa): Call it.
7532         * tree-ssa-loop-manip.c (slpeel_update_phi_nodes_for_guard2):
7533         Do not apply loop-closed SSA handling to virtuals.
7534         * ssa-iterators.h (op_iter_init): Handle GIMPLE_TRANSACTION.
7535         * tree-into-ssa.c (prepare_use_sites_for): Skip virtual SSA names
7536         when rewriting their symbol.
7537         (prepare_def_site_for): Likewise.
7538         * tree-chkp-opt.c (chkp_reduce_bounds_lifetime): Clear virtual
7539         operands of moved stmts.
7541 2016-08-17  Richard Biener  <rguenther@suse.de>
7543         PR tree-optimization/23855
7544         * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h.
7545         (tree_unswitch_outer_loop): Iterate find_loop_guard as long as we
7546         find guards to hoist.  Do not update SSA form but rewrite virtuals
7547         into loop closed SSA.
7548         (find_loop_guard): Adjust to skip already hoisted guards.  Do
7549         not mark virtuals for renaming or update SSA form.
7551 2016-08-17  Martin Liska  <mliska@suse.cz>
7553         * coverage.c (get_gcov_type): Replace GCOV_TYPE_SIZE with
7554         a LONG_LONG_TYPE_SIZE comparison.
7555         * gcov-io.h: Remove macro definitions.
7556         * tree-profile.c (gimple_gen_edge_profiler): Replace usage
7557         of GCOV_TYPE_ATOMIC_FETCH_ADD with a LONG_LONG_TYPE_SIZE
7558         comparison.
7560 2016-08-16  Jakub Jelinek  <jakub@redhat.com>
7562         * config/i386/i386.c (enum ix86_builtins): Reorder enumerators, so
7563         that builtins not mentioned in bdesc_* arrays come first, then
7564         the ones mentioned in bdesc_* arrays in the order they appear in
7565         the arrays in between IX86_BUILTIN__BDESC_*_FIRST and
7566         IX86_BUILTIN__BDESC_*_LAST enumerator.
7567         (bdesc_mpx): Fix up a comment typo.
7568         (bdesc_multi_arg): Remove __builtin_ia32_vpcomne[bwdq] and
7569         __builtin_ia32_vpcomneu[bwdq] builtins.
7570         (BDESC_VERIFY, BDESC_VERIFYS): Define.
7571         (ix86_init_mmx_sse_builtins, ix86_init_mpx_builtins): Verify
7572         enum ix86_builtins ordering.
7573         (ix86_expand_builtin): Use enum ix86_builtins ordering assumption
7574         for direct bdesc_* array member access instead of searching all the
7575         arrays until an fcode match is found.
7577 2016-08-16  Uros Bizjak  <ubizjak@gmail.com>
7579         * config/i386/i386.md (*ashl<mode>3_mask): Rewrite define_insn
7580         pattern as define_insn_and_split.  Split insn before reload to
7581         ashl<mode>3_1.
7582         (*<shift_insn><mode>3_mask): Ditto.  Split insn before reload to
7583         <shift_insn><mode>3_1.
7584         (*<rotate_insn><mode>3_mask): Ditto.  Split insn before reload to
7585         <rotate_insn><mode>3_1.
7587 2016-08-16  David Malcolm  <dmalcolm@redhat.com>
7589         PR c/72857
7590         * input.c (get_source_range_for_substring): Rename to...
7591         (get_source_location_for_substring): ...this, adding param
7592         "caret_idx", and converting output param from source_range * to
7593         location_t *.
7594         (get_source_range_for_char): New function.
7595         (get_num_source_ranges_for_substring): Update comment to reflect
7596         above renaming.
7597         (assert_char_at_range): Update to use get_source_range_for_char
7598         rather than get_source_range_for_substring.
7599         (test_lexer_string_locations_concatenation_2): Likewise.
7600         * substring-locations.h (get_source_range_for_substring): Rename
7601         to...
7602         (get_source_location_for_substring): ...this, and adding param
7603         "caret_idx", and converting output param from source_range * to
7604         location_t *.
7606 2016-08-16  David Malcolm  <dmalcolm@redhat.com>
7608         * input.c (class selftest::temp_source_file): Move to
7609         selftest.h.
7610         (selftest::temp_source_file::temp_source_file): Move to
7611         selftest.c.
7612         (selftest::temp_source_file::~temp_source_file): Likewise.
7613         * selftest.c (selftest::temp_source_file::temp_source_file): Move
7614         here from input.c.
7615         (selftest::temp_source_file::~temp_source_file): Likewise.
7616         * selftest.h (class selftest::temp_source_file): Move here from
7617         input.c
7619 2016-08-16  Jakub Jelinek  <jakub@redhat.com>
7621         PR target/71910
7622         * tree-cfg.c (execute_fixup_cfg): Add node variable, use it.  Before
7623         inlining, add cgraph edge for the added __builtin_unreachable call.
7625         PR middle-end/67485
7626         * expmed.c (expand_mult_const): Change val_so_far's type to UHWI,
7627         only cast it to SHWI for the final comparison.
7629 2016-08-16  Martin Liska  <mliska@suse.cz>
7631         PR gcov-profile/36412
7632         * doc/gcov.texi: Document --hash-filenames(-x).
7633         * gcov.c (print_usage): Add the option.
7634         (process_args): Process the option, sort options alphabetically.
7635         (md5sum_to_hex): New function.
7636         (make_gcov_file_name): Do the md5sum and append it to a
7637         filename.
7639 2016-08-16  Bin Cheng  <bin.cheng@arm.com>
7641         PR tree-optimization/69848
7642         * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Invert NE
7643         and swtich operands to avoid additional NOT instruction.
7644         (vcond<v_cmp_mixed><mode>): Ditto.
7645         (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
7647 2016-08-16  Eric Botcazou  <ebotcazou@adacore.com>
7649         * doc/install.texi (*-*-solaris2*): Adjust latest change.
7651 2016-08-16  Richard Biener  <rguenther@suse.de>
7653         PR tree-optimization/76783
7654         * tree-ssa-propagate.c (ssa_prop_init): Use RPO order.  Clear
7655         BB visited flags at start.
7657 2016-08-16  Bin Cheng  <bin.cheng@arm.com>
7659         PR tree-optimization/72817
7660         PR tree-optimization/73450
7661         * tree-ssa-loop-niter.c (number_of_iterations_ne): Check
7662         multiple_of_p for adjusted IV.base.
7664 2016-08-15  Uros Bizjak  <ubizjak@gmail.com>
7666         PR target/72867
7667         * config/i386/sse.md (<code><mode>3<mask_name><round_saeonly_name>):
7668         Emit ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>
7669         for !flag_finite_math_only or flag_signed_zeros.
7670         (*<code><mode>3<mask_name><round_saeonly_name>): Rename from
7671         *<code><mode>3_finite<mask_name><round_saeonly_name>.  Do not
7672         depend on flag_finite_math_only.
7673         (ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>):
7674         New insn pattern.
7675         (*<code><mode>3<mask_name><round_saeonly_name>): Remove.
7676         (*ieee_smin<mode>3): Ditto.
7677         (*ieee_smax<mode>3): Ditto.
7678         * config/i386/mmx.md (mmx_<code>v2sf3): Emit
7679         mmx_ieee_<ieee_maxmin>v2sf3 for !flag_finite_math_only or
7680         flag_signed_zeros.
7681         (*mmx_<code>v2sf3): Rename from *mmx_<code>v2sf3_finite.  Do not
7682         depend on flag_finite_math_only.
7683         (mmx_ieee_<ieee_maxmin>v2sf3): New insn pattern.
7684         (*mmx_<code>v2sf3): Remove.
7685         * config/i386/subst.md (round_saeonly_mask_arg3): New subst attribute.
7686         * config/i386/i386.c (ix86_expand_sse_fp_mimnax): Check
7687         flag_signed_zeros instead of !flag_unsafe_math_optimizations.
7689 2016-08-15  Segher Boessenkool  <segher@kernel.crashing.org>
7691         PR rtl-optimization/73650
7692         * lra-constraints.c (simple_move_p): If the insn is multiple_sets
7693         it is not a simple move.
7695 2016-08-15  Martin Liska  <mliska@suse.cz>
7697         PR driver/72765
7698         * gcc.c (do_spec_1): Call save_string with the right size.
7699         (save_string): Do an assert about string we copy.
7701 2016-08-15  Richard Biener  <rguenther@suse.de>
7703         * ree.c (rest_of_handle_ree): Remove redundant timevar push/pop.
7704         * config/i386/i386.c (pass_data_insert_vzeroupper): Account to
7705         TV_MACH_DEP.
7706         (pass_data_stv): Likewise.
7708 2016-08-15  Richard Biener  <rguenther@suse.de>
7710         PR tree-optimization/73434
7711         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Preserve
7712         TBAA info on the base when forwarding a non-invariant address.
7714 2016-08-15  Jakub Jelinek  <jakub@redhat.com>
7716         * dwarf2out.c (struct checksum_attributes): Add
7717         at_string_length_bit_size and at_string_length_byte_size fields.
7718         (collect_checksum_attributes): Handle DW_AT_string_length_bit_size
7719         and DW_AT_string_length_byte_size.
7720         (die_checksum_ordered): Handle at_string_length_bit_size and
7721         at_string_length_byte_size.
7722         (gen_array_type_die): For dwarf_version >= 5 emit
7723         DW_AT_string_length_byte_size instead of DW_AT_byte_size.
7724         (adjust_string_types): For dwarf_version >= 5 remove
7725         DW_AT_string_length_byte_size instead of DW_AT_byte_size.
7726         (resolve_addr): Likewise.
7728         PR debug/71906
7729         * dwarf2out.c (string_types): New variable.
7730         (gen_array_type_die): Change early_dwarf handling of
7731         DW_AT_string_length, create DW_OP_call4 referencing the
7732         length var temporarily.  Handle parameters that are pointers
7733         to string length.
7734         (adjust_string_types): New function.
7735         (gen_subprogram_die): Temporarily set string_types to local var,
7736         call adjust_string_types if needed.
7737         (non_dwarf_expression, copy_deref_exprloc, optimize_string_length):
7738         New functions.
7739         (resolve_addr): Adjust DW_AT_string_length if it is DW_OP_call4.
7741 2016-08-15  Eric Botcazou  <ebotcazou@adacore.com>
7743         * doc/install.texi (*-*-solaris2*): Fix version number and document
7744         requirement on GNU make for building libjava with the Solaris linker.
7746 2016-08-15  Martin Liska  <mliska@suse.cz>
7747             Jakub Jelinek  <jakub@redhat.com>
7749         PR tree-optimization/72824
7750         * tree-loop-distribution.c (const_with_all_bytes_same)
7751         <case VECTOR_CST>: Fix a typo.
7753 2016-08-14  Uros Bizjak  <ubizjak@gmail.com>
7755         PR target/76342
7756         * config/i386/avx512fintrin.h (_mm512_undefined_epi32):
7757         Renamed from _mm512_undefined_si512.
7758         (_mm_undefined_si512): New definition.
7760 2016-08-13  Richard Biener  <rguenther@suse.de>
7762         * tree-ssa-forwprop.c (pass_forwprop::execute): Propagate
7763         into PHIs and update the lattice for its def.
7765 2016-08-12  Jakub Jelinek  <jakub@redhat.com>
7767         PR c/71512
7768         * ubsan.c (instrument_si_overflow): Pass true instead of false
7769         to gsi_replace.
7770         (pass_ubsan::execute): Call gimple_purge_dead_eh_edges at the end
7771         of bbs.  Return TODO_cleanup_cfg if any returned true.
7773 2016-08-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
7775         * config/rs6000/vsx.md (vsx_concat_<mode>): Add support for the
7776         ISA 3.0 MTVSRDD instruction.
7777         (vsx_splat_<mode>): Change cpu type of MTVSRDD instruction to
7778         vecperm.
7780 2016-08-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7782         PR tree-optimization/71083
7783         * tree-predcom.c (ref_at_iteration): Use a COMPONENT_REF for the
7784         bitfield access when possible.
7786 2016-08-12  Patrick Palka  <ppalka@gcc.gnu.org>
7788         PR middle-end/71654
7789         * match.pd ((T)A CMP (T)B -> A CMP B): Allow (T)A to be a
7790         sign-changing cast from a shorter unsigned type to a wider
7791         signed type.
7793 2016-08-12  Jakub Jelinek  <jakub@redhat.com>
7795         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm,
7796         vec_extract_hi_<mode>_mask, vec_extract_lo_<mode>_mask,
7797         vec_extract_hi_<mode>_mask): Use Yk constraint instead of k.
7799 2016-08-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7801         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
7802         Correct costs for vec_construct.
7804 2016-08-12  Bin Cheng  <bin.cheng@arm.com>
7806         PR tree-optimization/69848
7807         * tree-vectorizer.h (enum vect_def_type): New condition reduction
7808         type CONST_COND_REDUCTION.
7809         * tree-vect-loop.c (vectorizable_reduction): Support new condition
7810         reudction type CONST_COND_REDUCTION.
7812 2016-08-12  Richard Biener  <rguenther@suse.de>
7814         PR tree-optimization/57326
7815         * tree-ssa-pre.c (fully_constant_expression): Handle simplification
7816         returning an SSA name.
7817         (phi_translate_1): When fully_constant_expression returns a NAME
7818         make sure we have a leader for it.
7820 2016-08-12  Martin Liska  <mliska@suse.cz>
7821             Adam Fineman  <afineman@afineman.com>
7823         * gcov.c (process_file): Create .gcov file when .gcda
7824         file is missing.
7826 2016-08-12  Marek Polacek  <polacek@redhat.com>
7828         PR c/7652
7829         * alias.c (find_base_value): Adjust fall through comment.
7830         * cfgexpand.c (expand_debug_expr): Likewise.
7831         * combine.c (find_split_point): Likewise.
7832         (expand_compound_operation): Likewise.  Add FALLTHRU.
7833         (make_compound_operation): Adjust fall through comment.
7834         (canon_reg_for_combine): Add FALLTHRU.
7835         (force_to_mode): Adjust fall through comment.
7836         (simplify_shift_const_1): Likewise.
7837         (simplify_comparison): Likewise.
7838         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Add
7839         FALLTHRU.
7840         * config/aarch64/predicates.md: Likewise.
7841         * config/i386/i386.c (function_arg_advance_32): Likewise.
7842         (ix86_gimplify_va_arg): Likewise.
7843         (print_reg): Likewise.
7844         (ix86_print_operand): Likewise.
7845         (ix86_build_const_vector): Likewise.
7846         (ix86_expand_branch): Likewise.
7847         (ix86_sched_init_global): Adjust fall through comment.
7848         (ix86_expand_args_builtin): Add FALLTHRU.
7849         (ix86_expand_builtin): Likewise.
7850         (ix86_expand_vector_init_one_var): Likewise.
7851         * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
7852         (rs6000_adjust_cost): Likewise.
7853         (insn_must_be_first_in_group): Likewise.
7854         * config/rs6000/rs6000.md: Likewise.  Adjust fall through comment.
7855         * dbxout.c (dbxout_symbol): Adjust fall through comment.
7856         * df-scan.c (df_uses_record): Likewise.
7857         * dojump.c (do_jump): Add FALLTHRU.
7858         * dwarf2out.c (mem_loc_descriptor): Likewise.  Adjust fall through
7859         comment.
7860         (resolve_args_picking_1): Adjust fall through comment.
7861         (loc_list_from_tree_1): Likewise.
7862         * expmed.c (make_tree): Likewise.
7863         * expr.c (expand_expr_real_2): Add FALLTHRU.
7864         (expand_expr_real_1): Likewise.  Adjust fall through comment.
7865         * fold-const.c (const_binop): Adjust fall through comment.
7866         (fold_truth_not_expr): Likewise.
7867         (fold_cond_expr_with_comparison): Add FALLTHRU.
7868         (fold_binary_loc): Likewise.
7869         (contains_label_1): Adjust fall through comment.
7870         (multiple_of_p): Likewise.
7871         * gcov-tool.c (process_args): Add FALLTHRU.
7872         * genattrtab.c (check_attr_test): Likewise.
7873         (write_test_expr): Likewise.
7874         * genconfig.c (walk_insn_part): Likewise.
7875         * genpreds.c (validate_exp): Adjust fall through comment.
7876         (needs_variable): Likewise.
7877         * gensupport.c (get_alternatives_number): Add FALLTHRU.
7878         (subst_dup): Likewise.
7879         * gimple-pretty-print.c (dump_gimple_assign): Likewise.
7880         * gimplify.c (gimplify_addr_expr): Adjust fall through comment.
7881         (gimplify_scan_omp_clauses): Add FALLTHRU.
7882         (goa_stabilize_expr): Likewise.
7883         * graphite-isl-ast-to-gimple.c (substitute_ssa_name): Adjust fall
7884         through comment.
7885         * hsa-gen.c (get_address_from_value): Likewise.
7886         * ipa-icf.c (sem_function::hash_stmt): Likewise.
7887         * ira.c (ira_setup_alts): Add FALLTHRU.
7888         * lra-eliminations.c (lra_eliminate_regs_1): Adjust fall through
7889         comment.
7890         * lto-streamer-out.c (lto_output_tree_ref): Add FALLTHRU.
7891         * opts.c (common_handle_option): Likewise.
7892         * read-rtl.c (read_rtx_code): Likewise.
7893         * real.c (round_for_format): Likewise.
7894         * recog.c (asm_operand_ok): Likewise.
7895         * reginfo.c (reg_scan_mark_refs): Adjust fall through comment.
7896         * reload1.c (set_label_offsets): Likewise.
7897         (eliminate_regs_1): Likewise.
7898         (reload_reg_reaches_end_p): Likewise.
7899         * rtlanal.c (commutative_operand_precedence): Add FALLTHRU.
7900         (rtx_cost): Likewise.
7901         * sched-rgn.c (is_exception_free): Likewise.
7902         * simplify-rtx.c (simplify_rtx): Adjust fall through comment.
7903         * stor-layout.c (int_mode_for_mode): Likewise.
7904         * toplev.c (print_to_asm_out_file): Likewise.
7905         (print_to_stderr): Likewise.
7906         * tree-cfg.c (gimple_verify_flow_info): Likewise.
7907         * tree-chrec.c (chrec_fold_plus_1): Add FALLTHRU.
7908         (chrec_fold_multiply): Likewise.
7909         (evolution_function_is_invariant_rec_p): Likewise.
7910         (for_each_scev_op): Likewise.
7911         * tree-data-ref.c (siv_subscript_p): Likewise.
7912         (get_references_in_stmt): Likewise.
7913         * tree.c (find_placeholder_in_expr): Adjust fall through comment.
7914         (substitute_in_expr): Likewise.
7915         (type_cache_hasher::equal): Likewise.
7916         (walk_type_fields): Likewise.
7917         * var-tracking.c (adjust_mems): Add FALLTHRU.
7918         (set_dv_changed): Adjust fall through comment.
7919         * varasm.c (default_function_section): Add FALLTHRU.
7921 2016-08-12  Marek Polacek  <polacek@redhat.com>
7923         PR c/7652
7924         * tree-complex.c (expand_complex_division): Add missing break.
7926 2016-08-12  Richard Biener  <rguenther@suse.de>
7928         * passes.c (execute_todo): Do not push/pop TV_TODO.
7929         (execute_one_ipa_transform_pass): Move timevar push/pop TODO execution.
7930         (execute_one_pass): Likewise.
7931         * common.opt (ftime-report-details): New switch.
7932         * doc/invoke.texi (ftime-report-details): Document.
7933         * timevar.h (timer::print_row): Adjust signature.
7934         (timer::all_zero): New static helper.
7935         (timer::child_map_t): New typedef.
7936         (timer::time_var_def): Add children field.
7937         * timevar.c (timer::named_items::print): Adjust.
7938         (timer::~timer): Free timevar recorded children.
7939         (timer::pop_internal): When -ftime-report-details record
7940         time spent in sub-timevars.
7941         (timer::print_row): Adjust.
7942         (timer::print): Print sub-timevar stats, use all_zero.
7943         * timevar.def (TV_TODO): Remove.
7945 2016-08-12  Richard Biener  <rguenther@suse.de>
7947         PR tree-optimization/72851
7948         * tree-ssa-propagate.c: Include cfganal.h.  Rewrite block and stmt
7949         worklists to use bitmaps indexed in execution order.
7950         (executable_blocks, cfg_blocks_num, cfg_blocks_tail, cfg_blocks_head,
7951         bb_in_list, interesting_ssa_edges, varying_ssa_edges): Remove.
7952         (cfg_blocks): Make a bitmap.
7953         (bb_to_cfg_order, cfg_order_to_bb, ssa_edge_worklist, uid_to_stmt):
7954         New globals.
7955         (cfg_blocks_empty_p): Adjust.
7956         (cfg_blocks_add): Likewise.
7957         (cfg_blocks_get): Likewise.
7958         (add_ssa_edge): Likewise.
7959         (add_control_edge): Likewise.
7960         (simulate_stmt): Likewise.
7961         (process_ssa_edge_worklist): Likewise.
7962         (simulate_block): Likewise.
7963         (ssa_prop_init): Compute PRE order and stmt UIDs.
7964         (ssa_prop_fini): Adjust.
7965         (ssa_propagate): Adjust.
7967 2016-08-12  Richard Biener  <rguenther@suse.de>
7969         * tree-vrp.c (vrp_visit_phi_node): Allow a last iteration if
7970         the currently executable edges have fixed ranges.  Always
7971         go through update_value_range.
7973 2016-08-12  Alexandre Oliva  <aoliva@redhat.com>
7975         PR debug/63240
7976         * langhooks-def.h
7977         (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Const_tree-ify.
7978         (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Likewise.
7979         (LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Set default.
7980         (LANG_HOOKS_DECLS): Add it.
7981         * langhooks.h (struct lang_hooks_for_decls): Add
7982         function_decl_defaulted.  Const_tree-ify
7983         function_decl_explicit_p and function_decl_deleted_p.
7984         * dwarf2out.c (gen_subprogram_die): Add DW_AT_defaulted
7985         attribute.  Add DW_AT_deleted instead of DW_AT_GNU_deleted,
7986         also at strict DWARF v5.
7988         PR debug/55641
7989         * dwarf2out.c (decl_quals): Don't map TREE_READONLY to
7990         TYPE_QUAL_CONST in reference-typed decls.
7992         PR debug/49366
7993         * dwarf2out.c (loc_list_from_tree_1): Expand some CONSTRUCTORs
7994         in DW_OP_pieces, just enough to handle pointers to member
7995         functions.
7996         (gen_remaining_tmpl_value_param_die_attribute): Use a location
7997         expression on DWARFv5 if a constant value doesn't work.
7999 2016-08-11  David Malcolm  <dmalcolm@redhat.com>
8001         * selftest-run-tests.c (selftest::run_tests): Call selftest_c_tests.
8002         * selftest.c (selftest::test_assertions): New function.
8003         (selftest::selftest_c_tests): New function.
8004         * selftest.h (selftest::selftest_c_tests): New declaration.
8006 2016-08-11  Richard Biener  <rguenther@suse.de>
8007             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8009         PR rtl-optimization/72855
8010         * df-core.c (df_verify): Turn off DF_VERIFY_SCHEDULED at end.
8012 2016-08-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8014         PR target/72863
8015         * vsx.md (vsx_load_<mode>): For P8LE, emit swaps at expand time.
8016         (vsx_store_<mode>): Likewise.
8018 2015-08-11  H.J. Lu  <hongjiu.lu@intel.com>
8020         * config/i386/i386.c (timode_scalar_to_vector_candidate_p): Allow
8021         TImode CONST_WIDE_INT store.
8022         (timode_scalar_chain::convert_insn): Handle CONST_WIDE_INT store.
8024 2015-08-11  H.J. Lu  <hongjiu.lu@intel.com>
8026         * config/i386/i386.h (MOVE_MAX_PIECES): Use TImode in 64-bit
8027         mode if unaligned SSE load and store are optimal.
8029 2016-08-11  Bernd Edlinger  <bernd.edlinger@hotmail.de>
8031         PR tree-optimization/71083
8032         * tree-predcom.c (ref_at_iteration): Correctly align the
8033         reference type.
8035 2016-08-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8037         * config/s390/s390-builtin-types.def: Add INT128 types.
8038         * config/s390/s390-builtins.def: Add INT128 variants for the add
8039         sub low-level builtins dealing with TImode.
8040         * config/s390/s390.c (s390_expand_builtin): Allow mode conversions
8041         via subreg when expanding a builtin.
8042         * config/s390/s390.md: Remove UNSPEC_VEC_ADDC_U128,
8043         UNSPEC_VEC_SUB_U128, and UNSPEC_VEC_SUBC_U128 constants.
8044         Fix comment.
8045         * config/s390/vecintrin.h: Adjust builtin names accordingly.
8046         * config/s390/vx-builtins.md ("vec_add_u128"): Remove expander.
8047         ("vec_addc<mode>", "vec_addc_u128"): Merge to
8048         "vacc<bhfgq>_<mode>".
8049         ("vec_adde_u128"): Rename to "vacq". Change mode to TImode.
8050         ("vec_addec_u128"): Rename to "vacccq". Change mode to TImode.
8051         ("vec_subc<mode>", "vec_subc_u128"): Merge to
8052         "vscbi<bhfgq>_<mode>".
8053         ("vec_sube_u128"): Rename to "vsbiq". Change mode to TImode.
8054         ("vec_subec_u128"): Rename to "vsbcbiq". Change mode to TImode.
8056 2016-08-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8058         * config/s390/s390-builtins.def: Mark last operand of s390_vlvg*
8060 2016-08-11  Bin Cheng  <bin.cheng@arm.com>
8062         * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Delete
8063         unused declaration.
8064         (vcond<v_cmp_mixed><mode>): Ditto.
8065         (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
8067 2016-08-11  Bin Cheng  <bin.cheng@arm.com>
8069         * config/aarch64/aarch64-simd.md (vec_cmp<mode><v_cmp_result>): Init
8070         variable explicitly, also assert on it before use.
8072 2016-08-11  Richard Biener  <rguenther@suse.de>
8074         PR tree-optimization/72772
8075         * cfgloopmanip.c (create_preheader): Use split_edge if there
8076         is a single loop entry, avoiding degenerate PHIs.
8078 2016-08-11  Richard Biener  <rguenther@suse.de>
8080         * tree-ssa-threadbackward.c (pass_data_thread_jumps): Remove
8081         unconditional TODO_cleanup_cfg.
8082         (pass_thread_jumps::execute): Initialize loops, perform a CFG
8083         cleanup only if we threaded a jump.
8085 2016-08-11  Alan Modra  <amodra@gmail.com>
8087         PR target/71680
8088         * lra-constraints.c (simplify_operand_subreg): Allow subreg
8089         mode for mem when SLOW_UNALIGNED_ACCESS if inner mode is also
8090         slow.  Emit two reloads for slow mem case, first loading in
8091         fast innermode, then converting to required mode.
8093 2016-08-10  Kelvin Nilsen  <kelvin@gcc.gnu.org>
8095         * config/rs6000/altivec.h (vec_extract_exp): New macro.
8096         (vec_extract_sig): New macro.
8097         (vec_insert_exp): New macro.
8098         (vec_test_data_class): New macro.
8099         (scalar_extract_exp): New macro.
8100         (scalar_extract_sig): New macro.
8101         (scalar_insert_exp): New macro.
8102         (scalar_test_data_class): New macro.
8103         (scalar_test_neg): New macro.
8104         (scalar_cmp_exp_gt): New macro.
8105         (scalar_cmp_exp_lt): New macro.
8106         (scalar_cmp_exp_eq): New macro.
8107         (scalar_cmp_exp_unordered): New macro.
8108         * config/rs6000/predicates.md (u7bit_cint_operand): New predicate
8109         to enforce constraint that operand is a 7-bit unsigned literal.
8110         * config/rs6000/rs6000-builtin.def (BU_P9V_64BIT_VSX_1): New macro
8111         for power9 built-ins.
8112         (BU_P9V_VSX_2): Likewise.
8113         (BU_P9V_64BIT_VSX_2): Likewise.
8114         (VSEEDP): Add scalar extract exponent support.
8115         (VSEESP): Add scalar extract signature support.
8116         (VSTDCNDP): Add scalar test negative support.
8117         (VSTDCNSP): Likewise.
8118         (VSIEDP): Add scalar insert exponent support.
8119         (VSCEDPGT): Add scalar compare exponent greater than support.
8120         (VSCEDPLT): Add scalar compare exponent less than support.
8121         (VSCEDPEQ): Add scalar compare exponent test-for-equality support.
8122         (VSCEDPUO): Add scalar compare exponent test-for-unordered support.
8123         (VSTDCDP): Add scalar test data class support.
8124         (VSTDCSP): Likewise.
8125         (VSEEDP): Add overload support for scalar extract exponent
8126         operation.
8127         (VSESDP): Add overload support for scalar extract signature
8128         operation.
8129         (VSTDCN): Add overload support for scalar test negative
8130         operation.
8131         (VSTDCNDP): Add overload support for scalar test negative
8132         operation.
8133         (VSTDCNSP): Add overload support for scalar test negative
8134         operation.
8135         (VSIEDP): Add overload support for scalar insert exponent
8136         operation.
8137         (VSTDC): Add overload support for scalar test data class
8138         operation.
8139         (VSTDCDP): Add overload support for scalar test data class
8140         operation.
8141         (VSTDCSP): Add overload support for scalar test data class
8142         opreation.
8143         (VSCEDPGT): Add overload support for scalar compare exponent
8144         greater than operation.
8145         (VSCEDPLT): Add overload support for scalar compare exponent
8146         less than operation.
8147         (VSCEDPEQ): Add overload support for scalar compare exponent
8148         test-for-equality operation.
8149         (VSCEDPUO): Add overload support for scalar compare exponent
8150         test-for-unordered operation.
8151         (VEEDP): Add vector extract exponent support.
8152         (VEESP): Likewise.
8153         (VESDP): Add vector extract significand support.
8154         (VESSP): Likewise.
8155         (VIEDP): Add vector insert exponent support.
8156         (VIESP): Likewise.
8157         (VTDCDP): Add vector test data class support.
8158         (VTDCSP): Likewise.
8159         (VES): Add overload support for vector extract significand operation.
8160         (VESDP): Likewise.
8161         (VESSP): Likewise
8162         (VEE): Add overload support for vector extract exponent operation.
8163         (VEEDP): Likewise.
8164         (VEESP): Likewise.
8165         (VTDC): Add overload support for vector test data class operation.
8166         (VTDCDP): Likewise.
8167         (VTDCSP): Likewise.
8168         (VIE): Add overload support for vector insert exponent operation.
8169         (VIEDP): Likewise.
8170         (VIESP): Likewise.
8171         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
8172         overloaded binary floating point functions.
8173         (altivec_resolve_overloaded_builtin): Improve error messages to
8174         distinguish between functions not supported in the current
8175         compiler configuration and functions that were invoked with an
8176         invalid parameter combination, and include the built-in function
8177         name in both error messages.
8178         * config/rs6000/rs6000-protos.h (rs6000_overloaded_builtin_name):
8179         New prototype.
8180         * config/rs6000/rs6000.c (rs6000_overloaded_builtin_name): New
8181         function.
8182         (rs6000_expand_binop_builtin): Add check to enforce that argument
8183         2 of the test data class operations is a 7-bit unsigned literal.
8184         (rs6000_invalid_builtin): Add code to issue an error message if a
8185         built-in function that requires the power9_vector and -m32
8186         command-line options is compiled without these options.
8187         * config/rs6000/vsx.md (UNSPEC_VSX_SXEXPDP): New value.
8188         (UNSPEC_VSX_SXSIGDP): New value.
8189         (UNSPEC_VSX_SXSIGPDP): New value.
8190         (UNSPEC_VSX_SIEXPDP): New value.
8191         (UNSPEC_VSX_SCMPEXPDP): New value.
8192         (UNSPEC_VSX_STSTDC): New value.
8193         (UNSPEC_VSX_VXEXP): New value.
8194         (UNSPEC_VSX_VXSIG): New value.
8195         (UNSPEC_VSX_VIEXP): New value.
8196         (UNSPEC_VSX_VTSTDC): New value.
8197         (xsxexpdp): New insn for scalar extract exponent.
8198         (xsxsigdp): New insn for scalar extract significand.
8199         (xsiexpdp): New insn for scalar insert exponent.
8200         (xscmpexpdp_<code>): New expansion for scalar compare exponents.
8201         (*xscmpexpdp): New insn for scalar compare exponents.
8202         (xststdc<Fvsx): New expansion for both single- and
8203         double-precision scalar test data class operations.
8204         (xststdcneg<Fvsx>): New expansion for both single- and
8205         double-precision scalar test for negative value operations.
8206         (*xststdc<Fvsx>): New insn for scalar test data class
8207         operation.
8208         (xvxexp<VSs>): New insn for single- and double-precision
8209         vector extract exponent operation.
8210         (xvxsig<VSs>): New insn for single- and double-precision
8211         vector extract significand operation.
8212         (xviexp<VSs>): New insn for single- and double-precision
8213         vector insert exponent operation.
8214         (xvtstdc<VSs>): New insn for single- and double-precision
8215         vector test data class operation.
8216         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
8217         built-in functions to represent the Power9 binary floating-point
8218         support instructions.
8220 2016-08-10  bin cheng  <bin.cheng@arm.com>
8222         * doc/sourcebuild.texi (@item vect_cond_mixed): New item.
8224 2016-08-10  Alan Lawrence  <alan.lawrence@arm.com>
8225             Renlin Li  <renlin.li@arm.com>
8226             Bin Cheng  <bin.cheng@arm.com>
8228         * config/aarch64/iterators.md (V_cmp_mixed, v_cmp_mixed): New.
8229         * config/aarch64/aarch64-simd.md (<su><maxmin>v2di3): Call
8230         gen_vcondv2div2di instead of gen_aarch64_vcond_internalv2div2di.
8231         (aarch64_vcond_internal<mode><mode>): Delete pattern.
8232         (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): Ditto.
8233         (vcond<v_cmp_result><mode>): Ditto.
8234         (vcond<mode><mode>): Re-implement using vec_cmp and vcond_mask.
8235         (vcondu<mode><mode>): Ditto.
8236         (vcond<v_cmp_mixed><mode>): New pattern.
8237         (vcondu<mode><v_cmp_mixed>): New pattern.
8238         (aarch64_cmtst<mode>): Revise comment using aarch64_vcond instead
8239         of aarch64_vcond_internal.
8241 2016-08-10  Alan Lawrence  <alan.lawrence@arm.com>
8242             Renlin Li  <renlin.li@arm.com>
8243             Bin Cheng  <bin.cheng@arm.com>
8245         * config/aarch64/aarch64-simd.md (vec_cmp<mode><mode>): New pattern.
8246         (vec_cmp<mode><v_cmp_result>): New pattern.
8247         (vec_cmpu<mode><mode>): New pattern.
8248         (vcond_mask_<mode><v_cmp_result>): New pattern.
8250 2016-08-10  Yuri Rumyantsev  <ysrumyan@gmail.com>
8252         PR tree-optimization/71734
8253         * tree-ssa-loop-im.c (ref_indep_loop_p): Add new argument
8254         REF_LOOP, invoke ref_indep_loop_p_1.
8255         (outermost_indep_loop): Pass LOOP argumnet where REF was defined
8256         to ref_indep_loop_p.
8257         (ref_indep_loop_p_1): Fix commentary, add argument REF_LOOP,
8258         combine it with ref_indep_lopp_p_2, update SAFELEN if only REF
8259         is inside LOOP, do not cache dpendence value for loops with
8260         non-zero SAFELEN.
8261         (ref_indep_loop_p_2): Delete function.
8262         (can_sm_ref_p): Pass LOOP as additional argument to
8263         ref_indep_loop_p.
8265 2016-08-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
8267         PR target/72853
8268         * config/rs6000/rs6000.c (mem_operand_ds_form): Add check for op
8269         being an offsettable address.
8271 2016-08-10  Martin Liska  <mliska@suse.cz>
8273         PR gcov-profile/58306
8274         * tree-profile.c (gimple_init_edge_profiler): Create conditionally
8275         atomic variants of profile update functions.
8277 2016-08-10  Martin Liska  <mliska@suse.cz>
8279         Cherry picked (and modified) from google-4_7 branch
8280         2012-12-26  Rong Xu  <xur@google.com>
8281         * common.opt (fprofile-update): Add new flag.
8282         * coretypes.h: Define enum profile_update.
8283         * doc/invoke.texi: Document -fprofile-update.
8284         * gcov-io.h: Declare GCOV_TYPE_ATOMIC_FETCH_ADD and
8285         GCOV_TYPE_ATOMIC_FETCH_ADD_FN.
8286         * tree-profile.c (gimple_init_edge_profiler): Generate
8287         also atomic profiler update.
8288         (gimple_gen_edge_profiler): Likewise.
8290 2016-08-10  David Malcolm  <dmalcolm@redhat.com>
8292         * toplev.c (finalize): Set aux_info_file, asm_out_file, and
8293         stack_usage_file to NULL after fclose calls.
8295 2016-08-10  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
8297         PR target/71873
8298         * reload.c (push_reload): Compute subreg_in_class for
8299         subregs of constants and plus expressions. Remove special
8300         handling of SYMBOL_REFs.
8302 2016-08-10  Alan Modra  <amodra@gmail.com>
8304         PR target/71680
8305         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Return
8306         SImode for TARGET_E500_DOUBLE when given SImode.
8308 2016-08-09  David Wohlferd  <dw@LimeGreenSocks.com>
8310         * config/i3836/avx512fintrin.h (_mm512_cvtsepi64_epi32): Remove
8311         unused variable __O.
8313 2016-08-09  Martin Liska  <mliska@suse.cz>
8315         * doc/gcov.texi: Change _gcov_dump to __gcov_dump and
8316         _gcov_reset to __gcov_reset.
8317         * doc/gcov-tool.texi: Fix typo.
8319 2016-08-09  Martin Liska  <mliska@suse.cz>
8321         * value-prof.c (gimple_divmod_values_to_profile): Do not
8322         instrument MOD histogram if a value is not a SSA name.
8324 2016-08-09  Martin Liska  <mliska@suse.cz>
8326         * value-prof.c (dump_histogram_value): Swap pow2 and non-pow2
8327         values.
8329 2016-08-09  Renlin Li  <renlin.li@arm.com>
8331         PR middle-end/64971
8332         * calls.c (prepare_call_address): Convert funexp to Pmode when
8333         necessary.
8334         * config/aarch64/aarch64.md (sibcall): Remove fix for PR 64971.
8335         (sibcall_value): Likewise.
8337 2016-08-09  Marek Polacek  <polacek@redhat.com>
8339         PR c/7652
8340         * cselib.c (cselib_expand_value_rtx_1): Add return.
8341         * gengtype.c (dbgprint_count_type_at): Likewise.
8342         * hsa-gen.c (gen_hsa_insn_for_internal_fn_call): Likewise.
8343         * reg-stack.c (get_true_reg): Restructure to avoid fallthrough warning.
8345 2016-08-09  Martin Jambor  <mjambor@suse.cz>
8347         PR ipa/71981
8348         * ipa-polymorphic-call.c (get_dynamic_type): Bail out gracefully
8349         if instance is a MEM_REF.
8351 2016-08-09  Uros Bizjak  <ubizjak@gmail.com>
8353         PR target/72843
8354         * config/i386/i386.md (*movtf_internal): Use
8355         lra_in_progress || reload_completed instead of !can_create_pseudo_p
8356         in the insn constraint.
8357         (*movxf_internal): Ditto.
8358         (*movdf_internal): Ditto.
8359         (*movsf_internal): Ditto.
8361 2016-08-09  Bin Cheng  <bin.cheng@arm.com>
8363         PR tree-optimization/72772
8364         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
8365         for expanded base.
8367 2016-08-09  Bin Cheng  <bin.cheng@arm.com>
8369         PR tree-optimization/72772
8370         * tree-ssa-loop-niter.h (simplify_using_initial_conditions): Delete
8371         parameter STOP.
8372         * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Delete
8373         parameter STOP and update calls.  Move expand_simple_operations
8374         function call from here...
8375         (simplify_using_initial_conditions): ...to here.  Delete parameter
8376         STOP.
8377         (tree_simplify_using_condition): Delete parameter STOP.
8378         * tree-scalar-evolution.c (simple_iv_with_niters): Update call to
8379         simplify_using_initial_conditions.
8381 2016-08-09  Matthew Fortune  <matthew.fortune@imgtec.com>
8383         PR c/65345
8384         * config/mips/mips.c (mips_atomic_assign_expand_fenv):
8385         Use create_tmp_var_raw instead of create_tmp_var.
8387 2016-08-09  Richard Biener  <rguenther@suse.de>
8389         * tree-ssa-threadbackward.c (profitable_jump_thread_path):
8390         Treat same SSA names related.
8392 2016-08-09  Jakub Jelinek  <jakub@redhat.com>
8394         PR tree-optimization/72824
8395         * tree-loop-distribution.c (const_with_all_bytes_same): Verify
8396         real_zerop is not negative.
8398 2016-08-09  Richard Biener  <rguenther@suse.de>
8400         PR tree-optimization/71802
8401         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Make sure to catch
8402         all merge opportunities with the predecessor.
8404 2016-08-09  Richard Biener  <rguenther@suse.de>
8406         PR ipa/68273
8407         * ipa-prop.c (ipa_modify_formal_parameters): Build
8408         parameter types with natural alignment also for the
8409         over-aligned case.
8411 2016-08-08  Andi Kleen  <ak@linux.intel.com>
8413         * tree-vrp.c (get_single_symbol): Always initialize inv and neg.
8415 2016-08-08  David Malcolm  <dmalcolm@redhat.com>
8417         PR c/64955
8418         * langhooks-def.h (LANG_HOOKS_RUN_LANG_SELFTESTS): New default
8419         do-nothing langhook.
8420         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_RUN_LANG_SELFTESTS.
8421         * langhooks.h (struct lang_hooks): Add run_lang_selftests.
8422         * selftest-run-tests.c: Include "tree.h" and "langhooks.h".
8423         (selftest::run_tests): Call lang_hooks.run_lang_selftests.
8425 2016-08-08  David Malcolm  <dmalcolm@redhat.com>
8427         PR bootstrap/72844
8428         * input.c: Ensure that HAVE_ICONV is defined.
8430 2016-08-08  Jakub Jelinek  <jakub@redhat.com>
8432         PR middle-end/72781
8433         * omp-low.c (lower_lastprivate_clauses): Set TREE_NO_WARNING on the
8434         private vars for lastprivate and for linear iterator.
8436         PR middle-end/68762
8437         * omp-simd-clone.c: Include varasm.h.
8438         (simd_clone_create): Copy over DECL_COMDAT, DECL_WEAK, DECL_EXTERNAL,
8439         DECL_VISIBILITY, DECL_VISIBILITY_SPECIFIED, DECL_DLLIMPORT_P and for
8440         DECL_ONE_ONLY call make_decl_one_only.  Fix up spelling in comment and
8441         update function name.
8443 2016-07-29  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
8445         * config/avr/driver-avr.c (specfiles_doc_url): Remove.
8446         (avr_diagnose_devicespecs_error): Remove.
8447         (avr_devicespecs_file): Remove composing absolute path for specfile
8448         and its verbose info. Remove conditions to check specs-file,
8450 2016-08-08  Jakub Jelinek  <jakub@redhat.com>
8452         PR rtl-optimization/72821
8453         * lra-spills.c (regno_in_use_p): Don't use BLOCK_FOR_INSN on barriers,
8454         just return false for them.
8456 2016-08-08  Alan Modra  <amodra@gmail.com>
8458         PR target/72771
8459         * config/rs6000/rs6000.c (toc_relative_expr_p): Allow (lo_sum (high))
8460         toc refs created during reload.  Update function comment.
8462 2016-08-08  Alan Modra  <amodra@gmail.com>
8464         PR target/72802
8465         * config/rs6000/rs6000.md (mov<mode>_hardfloat): Sort
8466         alternatives.  Put loads first, then stores, and reg/reg moves
8467         within same class later.  Delete attr length.
8469 2016-08-08  Alan Modra  <amodra@gmail.com>
8471         PR target/72802
8472         * config/rs6000/rs6000.c (mem_operand_gpr): Remove vsx dform test.
8473         (mem_operand_ds_form): New predicate.
8474         * config/rs6000/rs6000-protos.h (mem_operand_ds_form): Declare.
8475         * config/rs6000/constraints.md (wY): Use mem_operand_df_form.
8476         * config/rs6000/predicates.md (offsettable_mem_14bit_operand): Delete.
8477         * config/rs6000/rs6000.md (f32_lm2, f32_sm2): Use wY for SF.
8478         (extendsfdf2_fpr): Replace o constraint with wY.
8480 2016-08-07  Jan Hubicka  <hubicka@ucw.cz>
8482         * tree-ssa-threadbackward.c: Include tree-inline.h
8483         (profitable_jump_thread_path): Use estimate_num_insns to estimate
8484         size of copied block; for cold paths reduce duplication.
8485         (find_jump_threads_backwards): Remove redundant tests.
8486         (pass_thread_jumps::gate): Enable for -Os.
8488 2016-08-07  Jakub Jelinek  <jakub@redhat.com>
8490         PR c/72816
8491         * stor-layout.c (layout_decl): Fix up formatting.
8492         (relayout_decl): Allow DECL to be FIELD_DECL.
8494 2016-08-07  Alan Modra  <amodra@gmail.com>
8496         * config/rs6000/rs6000.md (fix_trunc<mode>si2): Fix mode of reg.
8498 2016-08-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
8500         * data-streamer-in.c (streamer_read_wide_int): New.
8501         (streamer_read_widest_int): Renamed function.
8502         * data-streamer-out.c (streamer_write_wide_int): New
8503         (streamer_write_widest_int): Renamed function.
8504         * lto-streamer-in.c (streamer_read_wi): Renamed and moved to
8505         data-stream-in.c.
8506         (input_cfg): Call renamed function.
8507         * lto-streamer-out.c (streamer_write_wi): Renamed and moved to
8508         data-stream-out.c.
8509         (output_cfg): Call renamed function.
8510         * data-streamer.h: Add declarations.
8512 2016-08-08  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
8514         * tree-ssa-ccp.c (extend_mask): New param sgn.
8515         Remove ORing with wi::mask.
8516         (get_default_value): Adjust call to extend_mask to pass sign.
8517         (evaluate_stmt): Likewise.
8519 2016-08-06  Jakub Jelinek  <jakub@redhat.com>
8521         * gcov.c (handle_cycle): Use INTTYPE_MAXIMUM (int64_t) instead of
8522         INT64_MAX.
8524 2016-08-06  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
8526         * match.pd ((intptr_t) x eq/ne CST to x eq/ne (typeof x) cst): Disable
8527         transform if operand's type is pointer to function or method.
8529 2016-08-05  Patrick Palka  <ppalka@gcc.gnu.org>
8531         PR tree-optimization/18046
8532         * tree-ssa-threadedge.c: Include cfganal.h.
8533         (simplify_control_statement_condition): If simplifying a
8534         GIMPLE_SWITCH, replace the index operand of the GIMPLE_SWITCH
8535         with the dominating ASSERT_EXPR before handing it off to VRP.
8536         Mention that a CASE_LABEL_EXPR may be returned.
8537         (thread_around_empty_blocks): Adjust to handle
8538         simplify_control_statement_condition() returning a
8539         CASE_LABEL_EXPR.
8540         (thread_through_normal_block): Likewise.
8541         * tree-vrp.c (simplify_stmt_for_jump_threading): Simplify
8542         a switch statement by trying to determine which case label
8543         will be taken.
8545 2016-08-05  Vladimir Makarov  <vmakarov@redhat.com>
8547         PR rtl-optimization/69847
8548         * lra-constraints.c (process_invariant_for_inheritance): Save
8549         pattern instead of src.
8550         (remove_inheritance_pseudos): Use the pattern.  Add assert.
8552 2016-08-05  David Malcolm  <dmalcolm@redhat.com>
8554         * input.c (string_concat::string_concat): New constructor.
8555         (string_concat_db::string_concat_db): New constructor.
8556         (string_concat_db::record_string_concatenation): New method.
8557         (string_concat_db::get_string_concatenation): New method.
8558         (string_concat_db::get_key_loc): New method.
8559         (class auto_cpp_string_vec): New class.
8560         (get_substring_ranges_for_loc): New function.
8561         (get_source_range_for_substring): New function.
8562         (get_num_source_ranges_for_substring): New function.
8563         (class selftest::lexer_test_options): New class.
8564         (struct selftest::lexer_test): New struct.
8565         (class selftest::ebcdic_execution_charset): New class.
8566         (selftest::ebcdic_execution_charset::s_singleton): New variable.
8567         (selftest::lexer_test::lexer_test): New constructor.
8568         (selftest::lexer_test::~lexer_test): New destructor.
8569         (selftest::lexer_test::get_token): New method.
8570         (selftest::assert_char_at_range): New function.
8571         (ASSERT_CHAR_AT_RANGE): New macro.
8572         (selftest::assert_num_substring_ranges): New function.
8573         (ASSERT_NUM_SUBSTRING_RANGES): New macro.
8574         (selftest::assert_has_no_substring_ranges): New function.
8575         (ASSERT_HAS_NO_SUBSTRING_RANGES): New macro.
8576         (selftest::test_lexer_string_locations_simple): New function.
8577         (selftest::test_lexer_string_locations_ebcdic): New function.
8578         (selftest::test_lexer_string_locations_hex): New function.
8579         (selftest::test_lexer_string_locations_oct): New function.
8580         (selftest::test_lexer_string_locations_letter_escape_1): New function.
8581         (selftest::test_lexer_string_locations_letter_escape_2): New function.
8582         (selftest::test_lexer_string_locations_ucn4): New function.
8583         (selftest::test_lexer_string_locations_ucn8): New function.
8584         (selftest::uint32_from_big_endian): New function.
8585         (selftest::test_lexer_string_locations_wide_string): New function.
8586         (selftest::uint16_from_big_endian): New function.
8587         (selftest::test_lexer_string_locations_string16): New function.
8588         (selftest::test_lexer_string_locations_string32): New function.
8589         (selftest::test_lexer_string_locations_u8): New function.
8590         (selftest::test_lexer_string_locations_utf8_source): New function.
8591         (selftest::test_lexer_string_locations_concatenation_1): New
8592         function.
8593         (selftest::test_lexer_string_locations_concatenation_2): New
8594         function.
8595         (selftest::test_lexer_string_locations_concatenation_3): New
8596         function.
8597         (selftest::test_lexer_string_locations_macro): New function.
8598         (selftest::test_lexer_string_locations_stringified_macro_argument):
8599         New function.
8600         (selftest::test_lexer_string_locations_non_string): New function.
8601         (selftest::test_lexer_string_locations_long_line): New function.
8602         (selftest::test_lexer_char_constants): New function.
8603         (selftest::input_c_tests): Call the new test functions once per
8604         case within the line_table test matrix.
8605         * input.h (struct string_concat): New struct.
8606         (struct location_hash): New struct.
8607         (class string_concat_db): New class.
8608         * substring-locations.h: New header.
8610 2016-08-05  Patrick Palka  <ppalka@gcc.gnu.org>
8612         PR tree-optimization/72810
8613         * tree-vrp.c (simplify_switch_using_ranges): Avoid changing
8614         the type of the case labels when truncating.
8616 2016-08-05  James Greenhalgh  <james.greenhalgh@arm.com>
8618         PR Target/72819
8619         * config/aarch64/aarch64.h (aarch64_fp16_type_node): Declare.
8620         (aarch64_fp16_ptr_type_node): Likewise.
8621         * config/aarch64/aarch64-simd-builtins.c
8622         (aarch64_fp16_ptr_type_node): Define.
8623         (aarch64_init_fp16_types): New, refactored out of...
8624         (aarch64_init_builtins): ...here, update to call
8625         aarch64_init_fp16_types.
8626         * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Handle
8627         HFmode.
8628         (aapcs_vfp_sub_candidate): Likewise.
8630 2016-08-05  Martin Liska  <mliska@suse.cz>
8631             Joshua Cranmer  <Pidgeot18@gmail.com>
8633         * gcov.c (line_t::has_block): New function.
8634         (enum loop_type): New enum.
8635         (handle_cycle): New function.
8636         (unblock): Likewise.
8637         (circuit): Likewise.
8638         (get_cycles_count): Likewise.
8639         (accumulate_line_counts): Use new loop detection algorithm.
8641 2016-08-05  Martin Liska  <mliska@suse.cz>
8643         * gcov.c (output_intermediate_file): Rename
8644         function_info::line_next to next_file_fn.
8645         (process_file): Likewise.
8646         (read_graph_file): Likewise.
8647         (accumulate_line_counts): Likewise.
8648         (output_lines): Likewise.
8650 2016-08-05  Richard Biener  <rguenther@suse.de>
8652         * tree-ssa-threadupdate.c (thread_block_1): Remove unnecessary
8653         restriction on threading to a loop header.
8655 2016-08-05  Richard Biener  <rguenther@suse.de>
8657         * tree-cfgcleanup.c (tree_forwarder_block_p): Use bb_loop_header_p.
8658         * cfghooks.c (force_nonfallthru): If we ended up splitting a latch
8659         adjust loop info accordingly.
8661 2016-08-05  Kugan Vivekanandarajah  <kuganv@linaro.org>
8663         * tree-vrp.c (extract_range_basic): Check cfun->after_inlining
8664         before folding call to __builtin_constant_p with parameters to false.
8666 2016-08-05  Alan Modra  <amodra@gmail.com>
8668         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Delete
8669         code accidentally committed 2016-05-02 providing class when given
8670         NO_REGS.
8672 2016-08-04  Patrick Palka  <ppalka@gcc.gnu.org>
8674         * tree-vrp.c (simplify_switch_using_ranges): Try to truncate
8675         the case label ranges that partially overlap with OP's value
8676         range.
8678 2016-08-04  Uros Bizjak  <ubizjak@gmail.com>
8680         PR target/72805
8681         * config/i386/avx512fintrin.h (_mm512_cmp_epi32_mask) [!__OPTIMIZE__]:
8682         Cast builtin function result to __mmask16 instead of __mmask8.
8683         (_mm512_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
8684         (_mm512_mask_cmp_epi32_mask) [!__OPTIMIZE__]: Ditto.
8685         (_mm512_mask_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
8687 2016-08-04  David Malcolm  <dmalcolm@redhat.com>
8689         * selftest.h (ASSERT_TRUE): Reimplement in terms of...
8690         (ASSERT_TRUE_AT): New macro.
8691         (ASSERT_FALSE): Reimplement in terms of...
8692         (ASSERT_FALSE_AT): New macro.
8693         (ASSERT_STREQ_AT): Fix typo in comment.
8695 2016-08-04  Patrick Palka  <ppalka@gcc.gnu.org>
8697         * gimple.c (preprocess_case_label_vec_for_gimple): When the case
8698         labels are exhaustive, designate the label with the widest
8699         range to be the default label.
8701 2016-08-04  Andrew Pinski  <apinski@cavium.com>
8703         * config/aarch64/aarch64.c (thunderx_vector_cost): New variable.
8704         (thunderx_tunings): Use thunderx_vector_cost instead of
8705         generic_vector_cost.
8707 2016-08-04  Martin Liska  <mliska@suse.cz>
8709         * gcov.c (main): Fix GNU coding style.
8710         (output_intermediate_file): Likewise.
8711         (process_file): Likewise.
8712         (generate_results): Likewise.
8713         (release_structures): Likewise.
8714         (create_file_names): Likewise.
8715         (find_source): Likewise.
8716         (read_graph_file): Likewise.
8717         (find_exception_blocks): Likewise.
8718         (canonicalize_name): Likewise.
8719         (make_gcov_file_name): Likewise.
8720         (mangle_name): Likewise.
8721         (accumulate_line_counts): Likewise.
8722         (output_branch_count): Likewise.
8723         (read_line): Likewise.
8725 2016-08-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
8727         PR rtl-optimization/71779
8728         * emit-rtl.c (set_reg_attrs_from_value): Only propagate REG_POINTER,
8729         if the value was sign-extended according to POINTERS_EXTEND_UNSIGNED
8730         or if it was truncated.
8732         PR rtl-optimization/70903
8733         * cse.c (cse_insn): If DEST is a paradoxical SUBREG, don't record DEST.
8735 2016-08-04  Kugan Vivekanandarajah  <kuganv@linaro.org>
8737         * tree-inline.c (remap_ssa_name): Check for POINTER_TYPE_P before
8738         accessing SSA_NAME_PTR_INFO.
8740 2016-08-04  Georg-Johann Lay  <avr@gjlay.de>
8742         PR 70677
8743         * common/config/avr/avr-common.c (avr_option_optimization_table)
8744         [OPT_LEVELS_ALL]: Turn off -fcaller-saves.
8746 2016-08-04  Georg-Johann Lay  <avr@gjlay.de>
8748         PR 55181
8749         * config/avr/avr.md: New pattern to work around do_store_flag
8750         generating shift instructions for bit extractions.
8752 2016-08-04  Kugan Vivekanandarajah  <kuganv@linaro.org>
8754         * tree-vrp.c (set_value_range): Use vrp_equiv_obstack with
8755         BITMAP_ALLOC.
8756         (add_equivalence): Likewise.
8757         (get_value_range): Allocate value range with vrp_value_range_pool.
8758         (vrp_initialize): Initialize vrp_equiv_obstack for equiv allocation.
8759         (vrp_finalize): Relase vrp_equiv_obstack and vrp_value_range_pool.
8761 2016-08-03  Peter Bergner  <bergner@vnet.ibm.com>
8763         * config/rs6000/rs6000.c (rs6000_option_override_internal): Make LRA
8764         the default for the rs6000 port.
8766 2016-08-03  Bernd Edlinger  <bernd.edlinger@hotmail.de>
8768         PR middle-end/71876
8769         * calls.c (special_function_p): Remove special handling of
8770         "setjmp_syscall", "qsetjmp", "longjmp", "siglongjmp" and the
8771         prefix "__x".  Recognize "savectx", "vfork" and "getcontext" only
8772         without prefix.  Remove potentially unsafe ECF_LEAF and ECF_NORETURN.
8774 2016-08-03  Vladimir Makarov  <vmakarov@redhat.com>
8776         PR middle-end/72778
8777         * lra-spills.c (regno_in_use_p): Check bb and regno modification.
8778         Don't stop on regular insns.
8780 2016-08-03  Nathan Sidwell  <nathan@codesourcery.com>
8782         * config/nvptx/nvptx.c (nvptx_declare_function_name): Round frame
8783         size to DImode boundary.
8784         (nvptx_propagate): Likewise.
8786 2016-08-03  Alan Modra  <amodra@gmail.com>
8788         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Make scalar
8789         float access depend on TARGET_EFFICIENT_UNALIGNED_VSX.
8790         * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Renamed
8791         from -mefficient-unaligned-vector.  Note that this affects fp too.
8793 2016-08-03  Alan Modra  <amodra@gmail.com>
8795         * config/rs6000/rs6000.c (rs6000_rtx_costs): Make unaligned mem
8796         cost more.
8798 2016-08-03  Alan Modra  <amodra@gmail.com>
8800         * config/rs6000/rs6000.md (fix_trunc<mode>si2): Force source operand
8801         to a reg.  Localize vars.
8803 2016-08-03  Alan Modra  <amodra@gmail.com>
8805         * config/rs6000/rs6000.opt: Remove negatives from help strings
8806         and comments.
8808 2016-08-03  Alan Modra  <amodra@gmail.com>
8810         * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
8811         Delete duplicated code.
8813 2016-08-02  Vladimir Makarov  <vmakarov@redhat.com>
8815         PR middle-end/72778
8816         * lra-spills.c (regno_in_use_p): New.
8817         (lra_final_code_change): Use it.
8819 2016-08-02  Vladimir Makarov  <vmakarov@redhat.com>
8821         PR rtl-optimization/69847
8822         * lra-int.h (struct lra-reg): Use restore_rtx instead of
8823         restore_regno.
8824         (lra_rtx_hash): New.
8825         * lra.c (initialize_lra_reg_info_element): Use restore_rtx instead
8826         of restore_regno.
8827         (lra_rtx_hash): Rename and move lra-remat.c::rtx_hash.
8828         * lra-remat.c (rtx_hash): Rename and Move to lra.c.
8829         * lra-spills.c (lra_final_code_change): Don't delete insn when the
8830         next insn is USE with the same reg as the current insn source.
8831         * lra-constraints.c (curr_insn_transform): Use restore_rtx instead
8832         of restore_regno.
8833         (lra_constraints_init): Call initiate_invariants.
8834         (lra_constraints_finish): Call finish_invariants.
8835         (struct invariant, invariant_t, invariant_ptr_t): New.
8836         (const_invariant_ptr_t, invariants, invariants_pool): New.
8837         (invariant_table, invariant_hash, invariant_eq_p): New.
8838         (insert_invariant, initiate_invariants, finish_invariants): New.
8839         (clear_invariants, invalid_invariant_regs): New.
8840         (inherit_reload_reg, split_reg, fix_bb_live_info): Use restore_rtx
8841         instead of restore_regno.
8842         (invariant_p, process_invariant_for_inheritance): New.
8843         (inherit_in_ebb): Implement invariant inheritance.
8844         (lra_inheritance): Initialize and finalize invalid_invariant_regs.
8845         (remove_inheritance_pseudos): Implement undoing invariant
8846         inheritance.
8847         (undo_optional_reloads, lra_undo_inheritance): Use restore_rtx
8848         instead of restore_regno.
8849         * lra-assigns.c (regno_live_length): New.
8850         (reload_pseudo_compare_func): Use regno_live_length.
8851         (assign_by_spills): Use restore_rtx instead of restore_regno.
8852         (lra_assign): Ditto.  Initiate regno_live_length.
8854 2016-02-08  James Greenhalgh  <james.greenhalgh@arm.com>
8856         * config/aarch64/arm_neon.h (vminnm_f64): Add back missing 'f' from
8857         __builtin_aarch64_fmindf.
8859 2016-08-02  Bin Cheng  <bin.cheng@arm.com>
8861         PR tree-optimization/34114
8862         * tree-ssa-loop-niter.c (number_of_iterations_ne): Prove no-overflow
8863         information for more control IVs.
8865 2016-08-02  Bin Cheng  <bin.cheng@arm.com>
8867         PR tree-optimization/34114
8868         * fold-const.c (multiple_of_p): Improve MULT_EXPR, PLUS_EXPR,
8869         PLUS_EXPR case.  Handle SSA_NAME case.
8871 2016-08-02  Tamar Christina  <tamar.christina@arm.com>
8873         * config/aarch64/aarch64-simd-builtins.def
8874         (__builtin_aarch64_fmindf): Change BUILTIN_VDQF to BUILTIN_VDQF_DF.
8875         (__builtin_aarch64_fmaxdf): Likewise.
8876         (__builtin_aarch64_smin_nandf): Likewise.
8877         (__builtin_aarch64_smax_nandf): Likewise.
8878         * config/aarch64/aarch64-simd.md (<fmaxmin><mode>3): Remove.
8879         * config/aarch64/aarch64.md (<fmaxmin><mode>3): Rename to...
8880         (<fmaxmin><mode>3): ...this.
8881         * config/aarch64/arm_neon.h (vmaxnm_f64): New.
8882         (vminnm_f64): Likewise.
8883         (vmin_f64): Likewise.
8884         (vmax_f64): Likewise.
8885         * config/aarch64/iterators.md (FMAXMIN): Merge with...
8886         (FMAXMIN_UNS): ...this.
8887         (fmaxmin): Merged with
8888         (fmaxmin_op): ...this...
8889         (maxmin_uns_op): ...in to this.
8891 2016-08-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
8893         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
8894         Add support for vec_extract on vector float, vector int, vector
8895         short, and vector char vector types.
8896         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
8897         vector float, vector int, vector short, and vector char
8898         optimizations on 64-bit ISA 2.07 systems for both constant and
8899         variable element numbers.
8900         (rs6000_split_vec_extract_var): Likewise.
8901         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): Allow SFmode to be
8902         Altivec registers on ISA 2.07 and above.
8903         (vsx_extract_v4sf): Delete alternative that hard coded element 0,
8904         which never was matched due to the split occuring before register
8905         allocation (and the code would not have worked on little endian
8906         systems if it did match).  Allow extracts to go to the Altivec
8907         registers if ISA 2.07 (power8).  Change from using "" around the
8908         C++ code to using {}'s.
8909         (vsx_extract_v4sf_<mode>_load): New insn to optimize vector float
8910         vec_extracts when the vector is in memory.
8911         (vsx_extract_v4sf_var): New insn to optimize vector float
8912         vec_extracts when the element number is variable on 64-bit ISA
8913         2.07 systems.
8914         (vsx_extract_<mode>, VSX_EXTRACT_I iterator): Add optimizations
8915         for 64-bit ISA 2.07 as well as ISA 3.0.
8916         (vsx_extract_<mode>_p9, VSX_EXTRACT_I iterator): Likewise.
8917         (vsx_extract_<mode>_p8, VSX_EXTRACT_I iterator): Likewise.
8918         (vsx_extract_<mode>_load, VSX_EXTRACT_I iterator): New insn to
8919         optimize vector int, vector short, and vector char vec_extracts
8920         when the vector is in memory.
8921         (vsx_extract_<mode>_var, VSX_EXTRACT_I iterator): New insn to
8922         optimize vector int, vector short, and vector char vec_extracts
8923         when the element number is variable.
8925 2016-08-01  Georg-Johann Lay  <avr@gjlay.de>
8927         PR target/71948
8928         * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): Use a value that
8929         does not overlap with other symbol flags.
8931 2016-08-01  Wilco Dijkstra  <wdijkstr@arm.com>
8933         * config/aarch64/aarch64.h (aarch64_frame):
8934         Remove padding0 and hardfp_offset.  Add locals_offset,
8935         initial_adjust, callee_adjust, callee_offset and final_adjust.
8936         * config/aarch64/aarch64.c (aarch64_layout_frame):
8937         Remove unused padding0 and hardfp_offset initializations.
8938         Choose frame layout and set frame variables accordingly.
8939         Use INVALID_REGNUM instead of FIRST_PSEUDO_REGISTER.
8940         (aarch64_push_regs): Use INVALID_REGNUM, not FIRST_PSEUDO_REGISTER.
8941         (aarch64_pop_regs): Likewise.
8942         (aarch64_expand_prologue): Remove all decision code, just emit
8943         prolog according to frame variables.
8944         (aarch64_expand_epilogue): Remove all decision code, just emit
8945         epilog according to frame variables.
8946         (aarch64_initial_elimination_offset): Use offset to local/arg area.
8948 2015-08-01  H.J. Lu  <hongjiu.lu@intel.com>
8950         PR target/72748
8951         * config/i386/i386.c (timode_scalar_chain::convert_insn): Call
8952         fix_debug_reg_uses after changing source register mode to
8953         V1TImode if source register is undefined.
8955 2015-08-01  Alan Hayward  <alan.hayward@arm.com>
8957         PR tree-optimization/71818
8958         * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Don't advance IVs
8959         with non invariant evolutions
8961 2016-08-01  Georg-Johann Lay  <avr@gjlay.de>
8963         PR target/72767
8964         * config/avr/avr.md (length) [branch]: Correct insn length
8965         attribute for forward branches.
8967 2016-08-01  Georg-Johann Lay  <avr@gjlay.de>
8969         * doc/extend.texi (AVR Built-in Functions): Document
8970         __builtin_avr_nops.
8971         * config/avr/builtins.def (NOPS): New.
8972         * config/avr/avr.c (avr_expand_nops): New static function.
8973         (avr_expand_builtin): Use it to handle AVR_BUILTIN_NOPS.
8975 2016-08-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8977         * config/aarch64/aarch64.c (aarch64_classify_address): Use DImode when
8978         performing aarch64_offset_7bit_signed_scaled_p check for TImode LDP/STP
8979         addresses.
8981 2016-08-01  Virendra Pathak  <virendra.pathak@broadcom.com>
8983         * config/aarch64/aarch64.c (vulcan_tunings): Update
8984         vulcan L1 cache_line_size.
8986 2016-07-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
8988         * config/rs6000/rs6000-protos.h (rs6000_adjust_vec_address): New
8989         function that takes a vector memory address, a hard register, an
8990         element number and a temporary base register, and recreates an
8991         address that points to the appropriate element within the vector.
8992         * config/rs6000/rs6000.c (rs6000_adjust_vec_address): Likewise.
8993         (rs6000_split_vec_extract_var): Add support for the target of a
8994         vec_extract with variable element number being a scalar memory
8995         location.
8996         (rtx_is_swappable_p): VLSO insns (UNSPEC_VSX_VSLOW) are not
8997         swappable.
8998         * config/rs6000/vsx.md (vsx_extract_<mode>_load): Replace
8999         vsx_extract_<mode>_load insn with a new insn that optimizes
9000         storing either element to a memory location, using scratch
9001         registers to pick apart the vector and reconstruct the address.
9002         (vsx_extract_<P:mode>_<VSX_D:mode>_load): Likewise.
9003         (vsx_extract_<mode>_store): Rework alternatives to more correctly
9004         support Altivec registers.  Add support for ISA 3.0 Altivec d-form
9005         store instruction.
9006         (vsx_extract_<mode>_var): Add support for extracting a variable
9007         element number from memory.
9009 2016-07-29  Georg-Johann Lay  <avr@gjlay.de>
9011         * config/avr/avr.c (avr_out_compare): Use const0_rtx instead of 0
9012         when testing for compares against constants of the form 0xabab.
9014 2016-07-29  Bin Cheng  <bin.cheng@arm.com>
9016         PR tree-optimization/57558
9017         * tree-vect-loop-manip.c (vect_create_cond_for_niters_checks): New
9018         function.
9019         (vect_loop_versioning): Support versioning with niter assumptions.
9020         * tree-vect-loop.c (tree-ssa-loop.h): Include header file.
9021         (vect_get_loop_niters): New parameter.  Reimplement to support
9022         assumptions in loop niter info.
9023         (vect_analyze_loop_form_1, vect_analyze_loop_form): Ditto.
9024         (new_loop_vec_info): Init LOOP_VINFO_NITERS_ASSUMPTIONS.
9025         (vect_estimate_min_profitable_iters): Use LOOP_REQUIRES_VERSIONING.
9026         Support loop versioning for niters.
9027         * tree-vectorizer.c (tree-ssa-loop-niter.h): Include header file.
9028         (vect_free_loop_info_assumptions): New function.
9029         (vectorize_loops): Free loop niter info for loops with flag
9030         LOOP_F_ASSUMPTIONS set if vectorization failed.
9031         * tree-vectorizer.h (struct _loop_vec_info): New field
9032         num_iters_assumptions.
9033         (LOOP_VINFO_NITERS_ASSUMPTIONS): New macro.
9034         (LOOP_REQUIRES_VERSIONING_FOR_NITERS): New macro.
9035         (LOOP_REQUIRES_VERSIONING): New macro.
9036         (vect_free_loop_info_assumptions): New decl.
9038 2016-07-29  Bin Cheng  <bin.cheng@arm.com>
9040         * cfgloop.h (struct loop): New field constraints.
9041         (LOOP_C_INFINITE, LOOP_C_FINITE): New macros.
9042         (loop_constraint_set, loop_constraint_clr, loop_constraint_set_p): New
9043         functions.
9044         * cfgloop.c (alloc_loop): Initialize new field.
9045         * cfgloopmanip.c (copy_loop_info): Copy constraints.
9046         * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
9047         Adjust niter analysis wrto loop constraints.
9048         * doc/loop.texi (@node Number of iterations): Add description for loop
9049         constraints.
9051 2016-07-29  Marek Polacek  <polacek@redhat.com>
9053         PR c/7652
9054         * config/i386/i386.c (ix86_expand_args_builtin): Add break.
9055         (ix86_expand_round_builtin): Likewise.
9057 2016-07-29  Segher Boessenkool  <segher@kernel.crashing.org>
9058             Georg-Johann Lay  <avr@gjlay.de>
9060         PR rtl-optimization/71976
9061         * combine.c (get_last_value): Return 0 if the argument for which
9062         the function is called has a wider mode than the recorded value.
9064 2016-07-29  Marek Polacek  <polacek@redhat.com>
9066         PR c/7652
9067         * config/rs6000/rs6000.c (altivec_expand_ld_builtin): Add break.
9068         (altivec_expand_st_builtin): Likewise.
9070 2016-07-29  Georg-Johann Lay  <avr@gjlay.de>
9072         * config/avr/avr.md (addqi3) [cc]: Revert glitch in insn attribute
9073         introduced in r238381.
9075 2016-07-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
9077         PR middle-end/68217
9078         * tree-vrp.c (extract_range_from_binary_expr_1): In case of signed
9079         & sign-bit-CST, generate [-INF, 0] instead of [-INF, INF].
9081 2016-07-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
9083         * config/rs6000/rs6000-protos.h (rs6000_split_vec_extract_var):
9084         New declaration.
9085         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
9086         Add support for vec_extract of vector double or vector long having
9087         a variable element number on 64-bit ISA 2.07 systems or newer.
9088         * config/rs6000/rs6000.c (rs6000_expand_vector_extract):
9089         Likewise.
9090         (rs6000_split_vec_extract_var): New function to split a
9091         vec_extract built-in function with variable element number.
9092         (rtx_is_swappable_p): Variable vec_extracts and shifts are not
9093         swappable.
9094         * config/rs6000/vsx.md (UNSPEC_VSX_VSLO): New unspec.
9095         (UNSPEC_VSX_EXTRACT): Likewise.
9096         (vsx_extract_<mode>, VSX_D iterator): Fix constraints to allow
9097         direct move instructions to be generated on 64-bit ISA 2.07
9098         systems and newer, and to take advantage of the ISA 3.0 MFVSRLD
9099         instruction.
9100         (vsx_vslo_<mode>): New insn to do VSLO on V2DFmode and V2DImode
9101         arguments for vec_extract variable element.
9102         (vsx_extract_<mode>_var, VSX_D iterator): New insn to support
9103         vec_extract with variable element on V2DFmode and V2DImode
9104         vectors.
9105         * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): Remove
9106         -mupper-regs-df requirement, since it isn't needed.
9107         (TARGET_DIRECT_MOVE_64BIT): New macro to say whether we can
9108         do direct moves on 64-bit systems, which allows optimization of
9109         vec_extract on 64-bit ISA 2.07 systems and newer.
9111 2016-07-28  Kristina Martsenko  <kristina.martsenko@arm.com>
9112 2016-07-28  Wilco Dijkstra  <wdijkstr@arm.com>
9114          * config/aarch64/aarch64.md
9115         (zero_extend<SHORT:mode><GPI:mode>2_aarch64): Change output
9116         statement and type.
9117         (<optab>qihi2_aarch64): Likewise, and split into two.
9118         (extendqihi2_aarch64): New.
9119         (zero_extendqihi2_aarch64): New.
9120         * config/aarch64/iterators.md (ldrxt): Remove.
9121         * config/aarch64/aarch64.c (aarch64_rtx_costs): Change cost of
9122         uxtb/uxth.
9124 2016-07-28  Kristina Martsenko  <kristina.martsenko@arm.com>
9126         * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix cost of zero extend.
9128 2016-07-28  Wilco Dijkstra  <wdijkstr@arm.com>
9130         * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg): Rename.
9131         (aarch64_push_reg): New function to push 1 or 2 registers.
9132         (aarch64_pop_reg): New function to pop 1 or 2 registers.
9133         (aarch64_expand_prologue): Use aarch64_push_regs.
9134         (aarch64_expand_epilogue): Use aarch64_pop_regs.
9136 2016-07-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
9138         PR tree-optimization/71734
9139         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Pass value of safelen
9140         attribute instead of REF_LOOP and use it.
9141         (ref_indep_loop_p_2): Use SAFELEN argument instead of REF_LOOP and
9142         set it for Loops having non-zero safelen attribute.
9143         (ref_indep_loop_p): Pass zero as initial value for safelen.
9145 2016-07-28  Ilya Enkovich  <ilya.enkovich@intel.com>
9147         PR middle-end/72657
9148         PR target/72683
9149         * tree-chkp.c (chkp_retbnd_call_by_val): Check for instrumentation
9150         call using chkp_gimple_call_builtin_p.
9151         (chkp_copy_bounds_for_assign): Likewise.
9153 2016-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9155         * config/alpha/alpha.c (alpha_adjust_cost): Adjust.
9156         * config/arm/arm-protos.h (struct tune_params): Likewise.
9157         * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
9158         (cortex_a9_sched_adjust_cost): Likewise.
9159         (fa726te_sched_adjust_cost): Likewise.
9160         (arm_adjust_cost): Likewise.
9161         * config/bfin/bfin.c (bfin_adjust_cost): Likewise.
9162         * config/c6x/c6x.c (c6x_adjust_cost): Likewise.
9163         * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise.
9164         * config/i386/i386.c (ix86_adjust_cost): Likewise.
9165         * config/ia64/ia64.c: Likewise.
9166         * config/m68k/m68k.c: Likewise.
9167         * config/mep/mep.c (mep_adjust_cost): Likewise.
9168         * config/microblaze/microblaze.c (microblaze_adjust_cost):
9169         * Likewise.
9170         * config/mips/mips.c (mips_adjust_cost): Likewise.
9171         * config/mn10300/mn10300.c (mn10300_adjust_sched_cost):
9172         * Likewise.
9173         * config/pa/pa.c (pa_adjust_cost): Likewise.
9174         * config/rs6000/rs6000.c (rs6000_adjust_cost): Likewise.
9175         (rs6000_debug_adjust_cost): Likewise.
9176         * config/sh/sh.c (sh_adjust_cost): Likewise.
9177         * config/sparc/sparc.c (supersparc_adjust_cost): Likewise.
9178         (hypersparc_adjust_cost): Likewise.
9179         (sparc_adjust_cost): Likewise.
9180         * config/spu/spu.c (spu_sched_adjust_cost): Likewise.
9181         * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Likewise.
9182         * config/tilepro/tilepro.c (tilepro_sched_adjust_cost):
9183         * Likewise.
9184         * config/visium/visium.c (visium_adjust_cost): Likewise.
9185         * doc/tm.texi: Regenerate.
9186         * haifa-sched.c (dep_cost_1): Adjust.
9187         * target.def: Merge adjust_cost and adjust_cost_2.
9189 2016-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9191         * haifa-sched.c (add_to_speculative_block): Make twins a vector.
9193 2016-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9195         * store-motion.c (struct st_expr): Make pattern_regs a vector.
9196         (extract_mentioned_regs): Append to a vector instead of
9197         returning a rtx_expr_list.
9198         (st_expr_entry): Adjust.
9199         (free_st_expr_entry): Likewise.
9200         (store_ops_ok): Likewise.
9201         (store_killed_in_insn): Likewise.
9202         (find_moveable_store): Likewise.
9204 2016-07-28  Martin Liska  <mliska@suse.cz>
9206         PR gcov-profile/68025
9207         * tree-profile.c (tree_profiling): Respect
9208         no_profile_instrument_function attribute.
9209         * doc/extend.texi: Document no_profile_instrument_function
9210         attribute.
9212 2016-07-28  Martin Liska  <mliska@suse.cz>
9214         PR rtl-optimization/70944
9215         * combine.c (make_compound_operation):
9216         Do not allow make_compound_operation for vector mode
9218 2016-07-28  Kugan Vivekanandarajah  <kuganv@linaro.org>
9220         PR middle-end/71994
9221         * tree-ssa-reassoc.c (maybe_optimize_range_tests): Check tcc_comparison
9222          before calling get_ops.
9224 2016-07-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9226         * defaults.h (LOG2_BITS_PER_UNIT): Move from here...
9227         * tree.h (LOG2_BITS_PER_UNIT): ...to here.
9228         (BITS_PER_UNIT_LOG): Remove.
9229         (int_bit_position): Use LOG2_BITS_PER_UNIT instead of BITS_PER_UNIT_LOG.
9230         * expr.c (expand_assignment): Likewise.
9231         * stor-layout.c (initialize_sizetypes): Likewise.
9233 2016-07-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
9235         * config/rs6000/vector.md (vec_extract<mode>): Change the calling
9236         signature of rs6000_expand_vector_extract so that the element
9237         number is a RTX instead of a constant integer.
9238         * config/rs6000/rs6000-protos.h (rs6000_expand_vector_extract):
9239         Likewise.
9240         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Likewise.
9241         (altivec_expand_vec_ext_builtin): Likewise.
9242         * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Likewise.
9243         * config/rs6000/vsx.md (vsx_extract_<mode>): Fix spelling of the
9244         MFVSRLD instruction.
9246 2016-07-27  David Malcolm  <dmalcolm@redhat.com>
9248         * input.c (get_pure_location): Move here from tree.c.
9249         (make_location): Likewise.  Add header comment.
9250         (selftest::test_accessing_ordinary_linemaps): Verify
9251         pure_location_p, make_location, get_location_from_adhoc_loc and
9252         get_range_from_loc.
9253         * input.h (get_pure_location): Move declaration here from tree.h.
9254         (get_finish): Likewise for inline function.
9255         (make_location): Likewise for declaration.
9256         * tree.c (get_pure_location): Move to input.c.
9257         (make_location): Likewise.
9258         * tree.h (get_pure_location): Move declaration to tree.h.
9259         (get_finish): Likewise for inline function.
9260         (make_location): Likewise for declaration.
9262 2016-07-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
9264         PR middle-end/71078
9265         * match.pd (x / abs(x) -> copysign(1.0, x)): New pattern.
9267 2016-07-27  David Malcolm  <dmalcolm@redhat.com>
9269         * system.h (STATIC_ASSERT): Use static_assert if building
9270         with C++11 onwards.
9272 2016-07-27  Richard Biener  <rguenther@suse.de>
9274         PR tree-optimization/72517
9275         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
9276         Revert change to not compute read-read dependences.
9278 2016-07-27  Richard Biener  <rguenther@suse.de>
9280         * predict.c (set_even_probabilities): Make nedges unsigned.
9282 2016-07-27  Martin Liska  <mliska@suse.cz>
9284         * predict.c (set_even_probabilities): Handle unlikely edges.
9285         (combine_predictions_for_bb): Likewise.
9287 2016-07-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
9289         PR target/71869
9290         * config/rs6000/rs6000.c (rs6000_generate_compare): Rework
9291         __float128 support when we don't have hardware support, so that
9292         the IEEE built-in functions like isgreater, first call __unordkf3
9293         to make sure neither operand is a NaN, and if both operands are
9294         ordered, do the normal comparison.
9296 2016-07-26  Patrick Palka  <ppalka@gcc.gnu.org>
9298         * tree-vrp.c (dump_asserts_for): Print loc->expr instead of
9299         name.
9300         (extract_code_and_val_from_cond_with_ops): Verify that name is
9301         either cond_op0 or cond_op1.
9303 2016-07-26  Patrick Palka  <ppalka@gcc.gnu.org>
9305         PR tree-optimization/18046
9306         * genmodes.c (emit_mode_size_inline): Emit an assert that
9307         verifies that mode is a valid array index.
9308         (emit_mode_nuinits_inline): Likewise.
9309         (emit_mode_inner_inline): Likewise.
9310         (emit_mode_unit_size_inline): Likewise.
9311         (emit_mode_unit_precision_inline): Likewise.
9312         * tree-vrp.c: Include params.h.
9313         (find_switch_asserts): Register edge assertions for the default
9314         label which correspond to the anti-ranges of each case label.
9315         * params.def (PARAM_MAX_VRP_SWITCH_ASSERTIONS): New.
9316         * doc/invoke.texi: Document it.
9318 2016-07-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9320         * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove dead
9321         and unnecessary call to gimple_bb.
9323 2016-07-26  Richard Biener  <rguenther@suse.de>
9325         PR rtl-optimization/71984
9326         * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE and prepare
9327         for VOIDmode.
9329 2016-07-26  Richard Biener  <rguenther@suse.de>
9331         PR middle-end/72517
9332         * expmed.c (extract_bit_field_1): Constrain the vector mode
9333         with element size matching the extraction mode size when
9334         choosing a better vector mode to do the extraction from.
9336 2016-07-26  Richard Biener  <rguenther@suse.de>
9337             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
9339         PR middle-end/70920
9340         * match.pd ((intptr)x eq/ne CST to x eq/ne (typeof x) CST): New
9341         pattern.
9343 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9345         * tree-ssa-structalias.c (struct scc_info): Change types of
9346         members to auto_sbitmap and auto_vec.
9347         (scc_info::scc_info): New constructor.
9348         (scc_info::~scc_info): New destructor.
9349         (init_scc_info): Remove.
9350         (free_scc_info): Remove.
9351         (find_indirect_cycles): Adjust.
9352         (perform_var_substitution): Likewise.
9353         (free_var_substitution_info): Likewise.
9355 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9357         * tree-outof-ssa.c (struct elim_graph): Change type of members
9358         to auto_vec and auto_sbitmap.
9359         (elim_graph::elim_graph): New constructor.
9360         (delete_elim_graph): Remove.
9361         (expand_phi_nodes): Adjust.
9363 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9365         * tree-outof-ssa.c (struct elim_graph): Remove typedef.
9366         (new_elim_graph): Adjust.
9367         (clear_elim_graph): Likewise.
9368         (delete_elim_graph): Likewise.
9369         (elim_graph_size): Likewise.
9370         (elim_graph_add_node): Likewise.
9371         (elim_graph_add_edge): Likewise.
9372         (elim_graph_remove_succ_edge): Likewise.
9373         (eliminate_name): Likewise.
9374         (eliminate_build): Likewise.
9375         (elim_forward): Likewise.
9376         (elim_unvisited_predecessor): Likewise.
9377         (elim_backward): Likewise.
9378         (elim_create): Likewise.
9379         (eliminate_phi): Likewise.
9380         (expand_phi_nodes): Likewise.
9382 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9384         * bt-load.c (compute_out): Use auto_sbitmap class.
9385         (link_btr_uses): Likewise.
9386         * cfganal.c (mark_dfs_back_edges): Likewise.
9387         (post_order_compute): Likewise.
9388         (inverted_post_order_compute): Likewise.
9389         (pre_and_rev_post_order_compute_fn): Likewise.
9390         (single_pred_before_succ_order): Likewise.
9391         * cfgexpand.c (pass_expand::execute): Likewise.
9392         * cfgloop.c (verify_loop_structure): Likewise.
9393         * cfgloopmanip.c (fix_bb_placements): Likewise.
9394         (remove_path): Likewise.
9395         (update_dominators_in_loop): Likewise.
9396         * cfgrtl.c (break_superblocks): Likewise.
9397         * ddg.c (check_sccs): Likewise.
9398         (create_ddg_all_sccs): Likewise.
9399         * df-core.c (df_worklist_dataflow): Likewise.
9400         * dse.c (dse_step3): Likewise.
9401         * except.c (eh_region_outermost): Likewise.
9402         * function.c (thread_prologue_and_epilogue_insns): Likewise.
9403         * gcse.c (prune_expressions): Likewise.
9404         (prune_insertions_deletions): Likewise.
9405         * gimple-ssa-backprop.c (backprop::~backprop): Likewise.
9406         * graph.c (draw_cfg_nodes_no_loops): Likewise.
9407         * ira-lives.c (remove_some_program_points_and_update_live_ranges): Likewise.
9408         * lcm.c (compute_earliest): Likewise.
9409         (compute_farthest): Likewise.
9410         * loop-unroll.c (unroll_loop_constant_iterations): Likewise.
9411         (unroll_loop_runtime_iterations): Likewise.
9412         (unroll_loop_stupid): Likewise.
9413         * lower-subreg.c (decompose_multiword_subregs): Likewise.
9414         * lra-lives.c: Likewise.
9415         * lra.c (lra): Likewise.
9416         * modulo-sched.c (schedule_reg_moves): Likewise.
9417         (optimize_sc): Likewise.
9418         (get_sched_window): Likewise.
9419         (sms_schedule_by_order): Likewise.
9420         (check_nodes_order): Likewise.
9421         (order_nodes_of_sccs): Likewise.
9422         (order_nodes_in_scc): Likewise.
9423         * recog.c (split_all_insns): Likewise.
9424         * regcprop.c (pass_cprop_hardreg::execute): Likewise.
9425         * reload1.c (reload): Likewise.
9426         * sched-rgn.c (haifa_find_rgns): Likewise.
9427         (split_edges): Likewise.
9428         (compute_trg_info): Likewise.
9429         * sel-sched.c (init_seqno): Likewise.
9430         * store-motion.c (remove_reachable_equiv_notes): Likewise.
9431         * tree-into-ssa.c (update_ssa): Likewise.
9432         * tree-ssa-live.c (live_worklist): Likewise.
9433         * tree-ssa-loop-im.c (fill_always_executed_in): Likewise.
9434         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
9435         * Likewise.
9436         (try_peel_loop): Likewise.
9437         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
9438         * Likewise.
9439         * tree-ssa-pre.c (compute_antic): Likewise.
9440         * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
9441         * tree-stdarg.c (reachable_at_most_once): Likewise.
9442         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Likewise.
9443         * var-tracking.c (vt_find_locations): Likewise.
9445 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9447         * sbitmap.h (auto_sbitmap): New class.
9449 2016-07-26  Alan Modra  <amodra@gmail.com>
9451         PR target/72103
9452         * config/rs6000/rs6000.c (rs6000_secondary_reload): Initialize
9453         sri->t_icode.
9455 2016-07-25  David Malcolm  <dmalcolm@redhat.com>
9457         * input.c (selftest::temp_source_file::temp_source_file): Fix
9458         missing "%s" in fprintf.
9460 2016-07-25  John David Anglin  <danglin@gcc.gnu.org>
9462         PR middle-end/71732
9463         * cselib.c (cselib_process_insn): Invalidate argument slots for
9464         const/pure calls.
9466 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
9468         * config/aarch64/arm_neon.h (vfmah_lane_f16, vfmah_laneq_f16,
9469         vfmsh_lane_f16, vfmsh_laneq_f16, vmulh_lane_f16, vmulh_laneq_f16,
9470         vmulxh_lane_f16, vmulxh_laneq_f16): New.
9472 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
9474         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
9475         * config/aarch64/aarch64.md (fma, fnma): Support HF.
9476         * config/aarch64/arm_fp16.h (vfmah_f16, vfmsh_f16): New.
9478 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
9480         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
9481         * config/aarch64/aarch64.md (<FCVT_F2FIXED:fcvt_fixed_insn>hf<mode>3):
9482         New.
9483         (<FCVT_FIXED2F:fcvt_fixed_insn><mode>hf3): Likewise.
9484         (add<mode>3): Likewise.
9485         (sub<mode>3): Likewise.
9486         (mul<mode>3): Likewise.
9487         (div<mode>3): Likewise.
9488         (*div<mode>3): Likewise.
9489         (<fmaxmin><mode>3): Extend to HF.
9490         * config/aarch64/aarch64-simd.md (aarch64_rsqrts<mode>): Likewise.
9491         (fabd<mode>3): Likewise.
9492         (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_HSDF:mode>3): Likewise.
9493         (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_HSDI:mode>3): Likewise.
9494         (aarch64_fmulx<mode>): Likewise.
9495         (aarch64_fac<optab><mode>): Likewise.
9496         (aarch64_frecps<mode>): Likewise.
9497         (<FCVT_F2FIXED:fcvt_fixed_insn>hfhi3): New.
9498         (<FCVT_FIXED2F:fcvt_fixed_insn>hihf3): Likewise.
9499         * config/aarch64/iterators.md (VHSDF_SDF): Delete.
9500         (VSDQ_HSDI): Support HI.
9501         (fcvt_target, FCVT_TARGET): Likewise.
9502         * config/aarch64/arm_fp16.h (vaddh_f16, vsubh_f16, vabdh_f16,
9503         vcageh_f16, vcagth_f16, vcaleh_f16, vcalth_f16, vceqh_f16, vcgeh_f16,
9504         vcgth_f16, vcleh_f16, vclth_f16, vcvth_n_f16_s16, vcvth_n_f16_s32,
9505         vcvth_n_f16_s64, vcvth_n_f16_u16, vcvth_n_f16_u32, vcvth_n_f16_u64,
9506         vcvth_n_s16_f16, vcvth_n_s32_f16, vcvth_n_s64_f16, vcvth_n_u16_f16,
9507         vcvth_n_u32_f16, vcvth_n_u64_f16, vdivh_f16, vmaxh_f16, vmaxnmh_f16,
9508         vminh_f16, vminnmh_f16, vmulh_f16, vmulxh_f16, vrecpsh_f16,
9509         vrsqrtsh_f16): New.
9511 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
9513         * config.gcc (aarch64*-*-*): Install arm_fp16.h.
9514         * config/aarch64/aarch64-builtins.c (hi_UP): New.
9515         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
9516         * config/aarch64/aarch64-simd.md (aarch64_frsqrte<mode>): Extend to HF
9517         mode.
9518         (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
9519         (aarch64_cm<optab><mode>): Likewise.
9520         * config/aarch64/aarch64.md (<frint_pattern><mode>2): Likewise.
9521         (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Likewise.
9522         (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
9523         (sqrt<mode>2): Likewise.
9524         (*sqrt<mode>2): Likewise.
9525         (abs<mode>2): Likewise.
9526         (<optab><mode>hf2): New pattern for HF mode.
9527         (<optab>hihf2): Likewise.
9528         * config/aarch64/arm_neon.h: Include arm_fp16.h.
9529         * config/aarch64/iterators.md (GPF_F16, GPI_F16, VHSDF_HSDF): New.
9530         (w1, w2, v, s, q, Vmtype, V_cmp_result, fcvt_iesize, FCVT_IESIZE):
9531         Support HF mode.
9532         * config/aarch64/arm_fp16.h: New file.
9533         (vabsh_f16, vceqzh_f16, vcgezh_f16, vcgtzh_f16, vclezh_f16, vcltzh_f16,
9534         vcvth_f16_s16, vcvth_f16_s32, vcvth_f16_s64, vcvth_f16_u16,
9535         vcvth_f16_u32, vcvth_f16_u64, vcvth_s16_f16, vcvth_s32_f16,
9536         vcvth_s64_f16, vcvth_u16_f16, vcvth_u32_f16, vcvth_u64_f16,
9537         vcvtah_s16_f16, vcvtah_s32_f16, vcvtah_s64_f16, vcvtah_u16_f16,
9538         vcvtah_u32_f16, vcvtah_u64_f16, vcvtmh_s16_f16, vcvtmh_s32_f16,
9539         vcvtmh_s64_f16, vcvtmh_u16_f16, vcvtmh_u32_f16, vcvtmh_u64_f16,
9540         vcvtnh_s16_f16, vcvtnh_s32_f16, vcvtnh_s64_f16, vcvtnh_u16_f16,
9541         vcvtnh_u32_f16, vcvtnh_u64_f16, vcvtph_s16_f16, vcvtph_s32_f16,
9542         vcvtph_s64_f16, vcvtph_u16_f16, vcvtph_u32_f16, vcvtph_u64_f16,
9543         vnegh_f16, vrecpeh_f16, vrecpxh_f16, vrndh_f16, vrndah_f16, vrndih_f16,
9544         vrndmh_f16, vrndnh_f16, vrndph_f16, vrndxh_f16, vrsqrteh_f16,
9545         vsqrth_f16): New.
9547 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
9549         * config/aarch64/aarch64-simd-builtins.def (reduc_smax_scal_,
9550         reduc_smin_scal_): Use VDQIF_F16.
9551         (reduc_smax_nan_scal_, reduc_smin_nan_scal_): Use VHSDF.
9552         * config/aarch64/aarch64-simd.md (reduc_<maxmin_uns>_scal_<mode>):
9553         Use VHSDF.
9554         (aarch64_reduc_<maxmin_uns>_internal<mode>): Likewise.
9555         * config/aarch64/iterators.md (VDQIF_F16): New.
9556         (vp): Support HF modes.
9557         * config/aarch64/arm_neon.h (vmaxv_f16, vmaxvq_f16, vminv_f16,
9558         vminvq_f16, vmaxnmv_f16, vmaxnmvq_f16, vminnmv_f16, vminnmvq_f16): New.
9560 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
9562         * config/aarch64/aarch64-simd.md (*aarch64_mulx_elt_to_64v2df): Rename to
9563         "*aarch64_mulx_elt_from_dup<mode>".
9564         (*aarch64_mul3_elt<mode>): Update schedule type.
9565         (*aarch64_mul3_elt_from_dup<mode>): Likewise.
9566         (*aarch64_fma4_elt_from_dup<mode>): Likewise.
9567         (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
9568         * config/aarch64/iterators.md (VMUL): Supprt half precision float modes.
9569         (f, fp): Support HF modes.
9570         * config/aarch64/arm_neon.h (vfma_lane_f16, vfmaq_lane_f16,
9571         vfma_laneq_f16, vfmaq_laneq_f16, vfma_n_f16, vfmaq_n_f16, vfms_lane_f16,
9572         vfmsq_lane_f16, vfms_laneq_f16, vfmsq_laneq_f16, vfms_n_f16,
9573         vfmsq_n_f16, vmul_lane_f16, vmulq_lane_f16, vmul_laneq_f16,
9574         vmulq_laneq_f16, vmul_n_f16, vmulq_n_f16, vmulx_lane_f16,
9575         vmulxq_lane_f16, vmulx_laneq_f16, vmulxq_laneq_f16): New.
9577 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
9579         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
9580         * config/aarch64/aarch64-simd.md (fma<mode>4, fnma<mode>4): Extend to HF
9581         modes.
9582         * config/aarch64/arm_neon.h (vfma_f16, vfmaq_f16, vfms_f16,
9583         vfmsq_f16): New.
9585 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
9587         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
9588         * config/aarch64/aarch64-simd.md
9589         (aarch64_rsqrts<mode>): Extend to HF modes.
9590         (fabd<mode>3): Likewise.
9591         (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_SDF:mode>3): Likewise.
9592         (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_SDI:mode>3): Likewise.
9593         (aarch64_<maxmin_uns>p<mode>): Likewise.
9594         (<su><maxmin><mode>3): Likewise.
9595         (<maxmin_uns><mode>3): Likewise.
9596         (<fmaxmin><mode>3): Likewise.
9597         (aarch64_faddp<mode>): Likewise.
9598         (aarch64_fmulx<mode>): Likewise.
9599         (aarch64_frecps<mode>): Likewise.
9600         (*aarch64_fac<optab><mode>): Rename to aarch64_fac<optab><mode>.
9601         (add<mode>3): Extend to HF modes.
9602         (sub<mode>3): Likewise.
9603         (mul<mode>3): Likewise.
9604         (div<mode>3): Likewise.
9605         (*div<mode>3): Likewise.
9606         * config/aarch64/aarch64.c (aarch64_emit_approx_div): Return false for
9607         HF, V4HF and V8HF.
9608         * config/aarch64/iterators.md (VDQ_HSDI, VSDQ_HSDI): New mode iterator.
9609         * config/aarch64/arm_neon.h (vadd_f16, vaddq_f16, vabd_f16, vabdq_f16,
9610         vcage_f16, vcageq_f16, vcagt_f16, vcagtq_f16, vcale_f16, vcaleq_f16,
9611         vcalt_f16, vcaltq_f16, vceq_f16, vceqq_f16, vcge_f16, vcgeq_f16,
9612         vcgt_f16, vcgtq_f16, vcle_f16, vcleq_f16, vclt_f16, vcltq_f16,
9613         vcvt_n_f16_s16, vcvtq_n_f16_s16, vcvt_n_f16_u16, vcvtq_n_f16_u16,
9614         vcvt_n_s16_f16, vcvtq_n_s16_f16, vcvt_n_u16_f16, vcvtq_n_u16_f16,
9615         vdiv_f16, vdivq_f16, vdup_lane_f16, vdup_laneq_f16, vdupq_lane_f16,
9616         vdupq_laneq_f16, vdups_lane_f16, vdups_laneq_f16, vmax_f16, vmaxq_f16,
9617         vmaxnm_f16, vmaxnmq_f16, vmin_f16, vminq_f16, vminnm_f16, vminnmq_f16,
9618         vmul_f16, vmulq_f16, vmulx_f16, vmulxq_f16, vpadd_f16, vpaddq_f16,
9619         vpmax_f16, vpmaxq_f16, vpmaxnm_f16, vpmaxnmq_f16, vpmin_f16, vpminq_f16,
9620         vpminnm_f16, vpminnmq_f16, vrecps_f16, vrecpsq_f16, vrsqrts_f16,
9621         vrsqrtsq_f16, vsub_f16, vsubq_f16): New.
9623 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
9625         * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New.
9626         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
9627         * config/aarch64/aarch64-simd.md (aarch64_rsqrte<mode>): Extend to HF modes.
9628         (neg<mode>2): Likewise.
9629         (abs<mode>2): Likewise.
9630         (<frint_pattern><mode>2): Likewise.
9631         (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
9632         (<optab><VDQF:mode><fcvt_target>2): Likewise.
9633         (<fix_trunc_optab><VDQF:mode><fcvt_target>2): Likewise.
9634         (ftrunc<VDQF:mode>2): Likewise.
9635         (<optab><fcvt_target><VDQF:mode>2): Likewise.
9636         (sqrt<mode>2): Likewise.
9637         (*sqrt<mode>2): Likewise.
9638         (aarch64_frecpe<mode>): Likewise.
9639         (aarch64_cm<optab><mode>): Likewise.
9640         * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Return false for
9641         HF, V4HF and V8HF.
9642         * config/aarch64/iterators.md (VHSDF, VHSDF_DF, VHSDF_SDF): New.
9643         (VDQF_COND, fcvt_target, FCVT_TARGET, hcon): Extend mode attribute to HF modes.
9644         (stype): New.
9645         * config/aarch64/arm_neon.h (vdup_n_f16): New.
9646         (vdupq_n_f16): Likewise.
9647         (vld1_dup_f16): Use vdup_n_f16.
9648         (vld1q_dup_f16): Use vdupq_n_f16.
9649         (vabs_f16, vabsq_f16, vceqz_f16, vceqzq_f16, vcgez_f16, vcgezq_f16,
9650         vcgtz_f16, vcgtzq_f16, vclez_f16, vclezq_f16, vcltz_f16, vcltzq_f16,
9651         vcvt_f16_s16, vcvtq_f16_s16, vcvt_f16_u16, vcvtq_f16_u16, vcvt_s16_f16,
9652         vcvtq_s16_f16, vcvt_u16_f16, vcvtq_u16_f16, vcvta_s16_f16,
9653         vcvtaq_s16_f16, vcvta_u16_f16, vcvtaq_u16_f16, vcvtm_s16_f16,
9654         vcvtmq_s16_f16, vcvtm_u16_f16, vcvtmq_u16_f16, vcvtn_s16_f16,
9655         vcvtnq_s16_f16, vcvtn_u16_f16, vcvtnq_u16_f16, vcvtp_s16_f16,
9656         vcvtpq_s16_f16, vcvtp_u16_f16, vcvtpq_u16_f16, vneg_f16, vnegq_f16,
9657         vrecpe_f16, vrecpeq_f16, vrnd_f16, vrndq_f16, vrnda_f16, vrndaq_f16,
9658         vrndi_f16, vrndiq_f16, vrndm_f16, vrndmq_f16, vrndn_f16, vrndnq_f16,
9659         vrndp_f16, vrndpq_f16, vrndx_f16, vrndxq_f16, vrsqrte_f16, vrsqrteq_f16,
9660         vsqrt_f16, vsqrtq_f16): New.
9662 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
9664         * config/aarch64/aarch64-simd.md
9665         (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Use VALL_F16.
9666         (aarch64_ext<mode>): Likewise.
9667         (aarch64_rev<REVERSE:rev_op><mode>): Likewise.
9668         * config/aarch64/aarch64.c (aarch64_evpc_trn, aarch64_evpc_uzp,
9669         aarch64_evpc_zip, aarch64_evpc_ext, aarch64_evpc_rev): Support V4HFmode
9670         and V8HFmode.
9671         * config/aarch64/arm_neon.h (__INTERLEAVE_LIST): Support float16x4_t,
9672         float16x8_t.
9673         (__aarch64_vdup_lane_f16, __aarch64_vdup_laneq_f16,
9674         __aarch64_vdupq_lane_f16, __aarch64_vdupq_laneq_f16, vbsl_f16,
9675         vbslq_f16, vdup_n_f16, vdupq_n_f16, vdup_lane_f16, vdup_laneq_f16,
9676         vdupq_lane_f16, vdupq_laneq_f16, vduph_lane_f16, vduph_laneq_f16,
9677         vext_f16, vextq_f16, vmov_n_f16, vmovq_n_f16, vrev64_f16, vrev64q_f16,
9678         vtrn1_f16, vtrn1q_f16, vtrn2_f16, vtrn2q_f16, vtrn_f16, vtrnq_f16,
9679         vuzp1_f16, vuzp1q_f16, vuzp2_f16, vuzp2q_f16, vzip1_f16, vzip2q_f16):
9680         New.
9681         (vmov_n_f16): Reimplement using vdup_n_f16.
9682         (vmovq_n_f16): Reimplement using vdupq_n_f16..
9684 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
9686         * config/aarch64/aarch64.c (aarch64_add_constant): New parameter
9687         "frame_related_p".  Generate CFA annotation when it's necessary.
9688         (aarch64_expand_prologue): Use aarch64_add_constant.
9689         (aarch64_expand_epilogue): Likewise.
9690         (aarch64_output_mi_thunk): Pass "false" when calling
9691         aarch64_add_constant.
9693 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
9695         * config/aarch64/aarch64.c (aarch64_add_constant): Optimize instruction
9696         sequences.
9698 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
9700         * config/aarch64/aarch64.c (aarch64_add_constant): New parameter "mode".
9701         Use aarch64_internal_mov_immediate instead of aarch64_build_constant.
9702         (aarch64_output_mi_thunk): Pass Pmode when calling aarch64_add_constant.
9703         (aarch64_build_constant): Delete.
9705 2016-07-25  Alexander Monakov  <amonakov@ispras.ru>
9707         Revert
9708         2016-07-20  Alexander Monakov  <amonakov@ispras.ru>
9710         * config/nvptx/nvptx.c (nvptx_option_override): Do not set
9711         flag_toplevel_reorder.
9713 2016-07-25  Richard Biener  <rguenther@suse.de>
9715         * cgraph.c (cgraph_node::verify_node): Compare against builtin
9716         by using DECL_BUILT_IN_CLASS and DECL_FUNCTION_CODE.
9717         * tree-chkp.c (chkp_gimple_call_builtin_p): Likewise.
9718         * tree-streamer.h (streamer_handle_as_builtin_p): Remove.
9719         (streamer_get_builtin_tree): Likewise.
9720         (streamer_write_builtin): Likewise.
9721         * lto-streamer.h (LTO_builtin_decl): Remove.
9722         * lto-streamer-in.c (lto_read_tree_1): Remove assert.
9723         (lto_input_scc): Remove LTO_builtin_decl handling.
9724         (lto_input_tree_1): Liekwise.
9725         * lto-streamer-out.c (lto_output_tree_1): Remove special
9726         handling of builtins.
9727         (DFS::DFS): Likewise.
9728         * tree-streamer-in.c (streamer_get_builtin_tree): Remove.
9729         * tree-streamer-out.c (pack_ts_function_decl_value_fields): Remove
9730         assert.
9731         (streamer_write_builtin): Remove.
9733 2016-07-25  Martin Liska  <mliska@suse.cz>
9735         * lto-cgraph.c (input_symtab): Don't call get_working_sets
9736         if flag_auto_profile is set to true.
9738 2016-07-25  Martin Liska  <mliska@suse.cz>
9740         PR gcov-profile/71868
9741         * cfgloopanal.c (expected_loop_iterations_unbounded): When we
9742         have a function with multiple latches, count them all.
9744 2016-07-25  Martin Liska  <mliska@suse.cz>
9746         * tree-ssa-loop-niter.c (loop_only_exit_p): Release body array.
9748 2016-07-25  Martin Liska  <mliska@suse.cz>
9750         PR tree-optimization/71987
9751         * tree-ssa-reassoc.c (maybe_optimize_range_tests): Call get_ops
9752         just for SSA_NAMEs. Fix GNU coding style.
9754 2016-07-25  Martin Liska  <mliska@suse.cz>
9756         PR gcov-profile/64874
9757         * gcov-io.h: Update command about file format.
9758         * gcov-iov.c (main): Adapt the numbering scheme.
9760 2016-07-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
9762         PR middle-end/66726
9763         * tree-ssa-reassoc.c (optimize_vec_cond_expr): Handle tcc_compare stmt
9764         whose result is used in PHI.
9765         (final_range_test_p): Likewise.
9766         (maybe_optimize_range_tests): Likewise.
9768 2016-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
9770         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
9771         Reformat two multi-line strings.
9773 2016-07-22  Martin Sebor  <msebor@redhat.com>
9775         * doc/extend.texi (Compound Literals): Add '@' missed in last commit.
9777 2016-07-22  Martin Sebor  <msebor@redhat.com>
9779         PR c/71560
9780         * doc/extend.texi (Compound Literals): Correct and clarify.
9781         (Cast to Union): Same.
9783 2016-07-22  Kelvin Nilsen  <kelvin@gcc.gnu.org>
9785         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
9786         comments to explain why certain error messages make mention of
9787         undocumented options.
9788         (rs6000_invalid_builtin): Change error messages to replace mention
9789         of undocumented options with mention of the -mcpu=power9 option
9790         that enables those undocumented options.
9791         * config/rs6000/rs6000.h (MASK_FLOAT128): New macro.
9792         (RS6000_BTM_FLOAT128): Use the new MASK_FLOAT128 macro in the
9793         definition of this macro to correct an existing error.
9794         * config/rs6000/rs6000.opt: Add the Undocumented qualifier to the
9795         mpower9-fusion, mpower9-vector, mpower9-dform, and mmodulo entries.
9796         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Modify
9797         descriptions of built-in functions so that they depend on
9798         -mcpu=power9 instead of on the corresponding undocumented flags.
9799         * doc/invoke.texi (Option Summary):  Remove all mention of newly
9800         undocumented flags.
9801         (IBM RS/6000 and PowerPC Options): Likewise.
9802         * doc/md.texi (Constraints for Particuliar Machines): Remove all
9803         mention of newly undocumented flags.
9805 2016-07-22  Evgeny Stupachenko  <evstupac@gmail.com>
9807         * ipa-cp.c (determine_versionability): Do not create constprop clones,
9808         when target_clones attribute is set.
9810 2016-07-22  Bin Cheng  <bin.cheng@arm.com>
9812         * common.opt (funsafe-loop-optimizations): Mark ignore.
9813         * doc/invoke.texi (funsafe-loop-optimizations): Remove.
9814         * loop-iv.c (get_simple_loop_desc): Remove unsafe-loop-optimizations
9815         related code.
9816         * tree-ssa-loop-niter.c (finite_loop_p): Ditto.
9817         * config/bfin/bfin.c (bfin_can_use_doloop_p): Ditto.
9819 2016-07-22  Bin Cheng  <bin.cheng@arm.com>
9821         * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
9822         Parameter.
9823         * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
9824         Parameter.
9825         (number_of_iterations_exit): Warn missed loop optimization for
9826         possible infinite loops.
9828 2016-07-22  Segher Boessenkool  <segher@kernel.crashing.org>
9830         PR target/71216
9831         * config/rs6000/rs6000.c (rs6000_file_start): Fix condition for
9832         when to emit a ".machine" pseudo-op.
9834 2016-07-22  Martin Liska  <mliska@suse.cz>
9836         PR gcov-profile/69028
9837         PR gcov-profile/62047
9838         * coverage.c (coverage_compute_lineno_checksum): Do not
9839         calculate checksum for fns w/o xloc.file.
9840         (coverage_compute_profile_id): Likewise.
9842 2016-07-22  Georg-Johann Lay  <avr@gjlay.de>
9844         * config/avr/avr.c (TARGET_SECONDARY_RELOAD): Remove hook define...
9845         (avr_secondary_reload): ...and implementation.
9846         (avr_adjust_insn_length) [ADJUST_LEN_LPM]: Remove handling.
9847         * config/avr/avr.md (reload_in<mode>): Remove insns.
9848         (adjust_len) [lpm]: Remove insn attribute value.
9849         * config/avr/predicates.md (flash_operand): Remove insn predicate.
9851 2016-07-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9853         PR middle-end/71876
9854         * builtin-attrs.def (ATTR_RT_NOTHROW_LEAF_LIST): New return twice
9855         attribute.
9856         * builtins.def (BUILT_IN_SETJMP): Use ATTR_RT_NOTHROW_LEAF_LIST here.
9857         * calls.c (special_function_p): Remove the special handling of the
9858         "__builtin_" prefix.
9860 2016-07-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9862         PR middle-end/71876
9863         * calls.c (gimple_maybe_alloca_call_p): New function.  Return true
9864         if STMT may be an alloca call.
9865         (gimple_alloca_call_p, alloca_call_p): Return only true for the
9866         builtin alloca call.
9867         * calls.h (gimple_maybe_alloca_call_p): New function.
9868         * tree-inline.c (inline_forbidden_p_stmt): Use
9869         gimple_maybe_alloca_call_p here.
9871 2016-07-21  David Malcolm  <dmalcolm@redhat.com>
9873         * spellcheck-tree.c (best_macro_match::best_macro_match):
9874         Explictly specify the template arguments when invoking the base
9875         class constructor, to help older C++ compilers.
9877 2016-07-21  Jakub Jelinek  <jakub@redhat.com>
9879         PR sanitizer/71953
9880         * asan.c (asan_dynamic_init_call): Call asan_init_shadow_ptr_types
9881         before builtin_decl_implicit.
9883 2016-07-21  James Greenhalgh  <james.greenhalgh@arm.com>
9885         * optabs.c (emit_condiitonal_move): Short circuit for identical
9886         sources.
9888 2016-07-21  James Greenhalgh  <james.greenhalgh@arm.com>
9890         * ifcvt.c (noce_if_info): New fields: speed_p, original_cost,
9891         max_seq_cost.  Removed fields: then_cost, else_cost, branch_cost.
9892         (noce_conversion_profitable_p): New.
9893         (noce_try_store_flag_constants): Use it.
9894         (noce_try_addcc): Likewise.
9895         (noce_try_store_flag_mask): Likewise.
9896         (noce_try_cmove): Likewise.
9897         (noce_try_cmove_arith): Likewise.
9898         (bb_valid_for_noce_process_p): Add to the cost parameter rather than
9899         overwriting it.
9900         (noce_convert_multiple_sets): Move cost model to here, from...
9901         (bb_ok_for_noce_convert_multiple_sets) ...here.
9902         (noce_process_if_block): Update calls for above changes.
9903         (noce_find_if_block): Record new noce_if_info parameters.
9905 2016-07-21  James Greenhalgh  <james.greenhalgh@arm.com>
9907         * target.def (max_noce_ifcvt_seq_cost): New.
9908         * doc/tm.texi.in (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Document it.
9909         * doc/tm.texi: Regenerate.
9910         * targhooks.h (default_max_noce_ifcvt_seq_cost): New.
9911         * targhooks.c (default_max_noce_ifcvt_seq_cost): New.
9912         * params.def (PARAM_MAX_RTL_IF_CONVERSION_PREDICTABLE_COST): New.
9913         (PARAM_MAX_RTL_IF_CONVERSION_UNPREDICTABLE_COST): Likewise.
9914         * doc/invoke.texi: Document new params.
9916 2016-07-21  Richard Biener  <rguenther@suse.de>
9918         PR tree-optimization/71947
9919         * tree-vrp.c (extract_range_from_assert): Singleton symbolic
9920         ranges have useful limit_vr information.
9922 2016-07-21  Richard Biener  <rguenther@suse.de>
9924         * function-tests.c (build_trivial_generic_function): Set
9925         BLOCK_SUPERCONTEXT of DECL_INITIAL.
9926         * omp-low.c (create_omp_child_function): Likewise.
9927         (grid_expand_target_grid_body): Likewise.
9928         * cgraphunit.c (init_lowered_empty_function): Likewise.
9929         (cgraph_node::expand_thunk): Likewise.
9930         * tree-parloops.c (create_loop_fn): Likewise.
9931         * ipa.c (cgraph_build_static_cdtor_1): Likewise.
9933 2016-07-21  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
9935         * tree-ssa-strlen.c (strlen_dom_walker::before_dom_children): Fix typo
9936         in comment.
9938 2016-07-21  Georg-Johann Lay  <avr@gjlay.de>
9940         * config/avr/avr.md (any_extract, any_shiftrt): New code iterators.
9941         (*insv.extract, *insv.shiftrt, *insv.not-bit.0, *insv.not-bit.7)
9942         (*insv.xor-extract, *insv.xor1-bit.0): New insns.
9943         (adjust_len) [insv_notbit, insv_notbit_0, insv_notbit_7]: New
9944         values for insn attribute.
9945         * config/avr/avr.c (avr_out_insert_notbit): New function.
9946         (avr_adjust_insn_length): Handle ADJUST_LEN_INSV_NOTBIT,
9947         ADJUST_LEN_INSV_NOTBIT_0/_7.
9948         * config/avr/avr-protos.h (avr_out_insert_notbit): New proto.
9950 2016-07-21  Bin Cheng  <bin.cheng@arm.com>
9952         * tree-chrec.c (convert_affine_scev): New parameter.  Pass new arg.
9953         (chrec_convert_1, chrec_convert): Ditto.
9954         * tree-chrec.h (chrec_convert, convert_affine_scev): New parameter.
9955         * tree-scalar-evolution.c (interpret_rhs_expr): Pass new arg.
9956         * tree-vrp.c (adjust_range_with_scev): Ditto.
9957         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Ditto.
9958         (scev_var_range_cant_overflow): New function.
9959         (scev_probably_wraps_p): New parameter.  Call above function.
9960         * tree-ssa-loop-niter.h (scev_probably_wraps_p): New parameter.
9962 2016-07-21  Bin Cheng  <bin.cheng@arm.com>
9964         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Clean up
9965         by removing computation of may_be_zero.
9967 2016-07-21  Jakub Jelinek  <jakub@redhat.com>
9969         * tree-object-size.c (unknown): Use HOST_WIDE_INT_M1U instead of -1.
9971 2016-07-21  Andrew Sutton  <andrew.n.sutton@gmail.com>
9973         Improving concepts performance and diagnostics.
9974         * timevar.def (TV_CONSTRAINT_SAT, TV_CONSTRAINT_SUB): New time vars
9975         for constraint satisfaction and subsumption.
9976         * timevar.h (auto_timevar): New constructor that matches the push/pop
9977         pattern of usage in pt.c.
9979 2016-07-20  Uros Bizjak  <ubizjak@gmail.com>
9981         * hwint.h (HOST_WIDE_INT_0): New define.
9982         (HOST_WIDE_INT_0U): Ditto.
9983         * double-int.c: Use HOST_WIDE_INT_0 instead of (HOST_WIDE_INT) 0.
9984         * dse.c: Use HOST_WIDE_INT_0U instead of (unsigned HOST_WIDE_INT) 0.
9985         * simplify-rtx.c: Ditto.
9986         * tree-object-size.c: Ditto.
9988 2016-07-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9990         * config/s390/s390.c (s390_encode_section_info): Remove mode size
9991         check.
9993 2016-07-20  Uros Bizjak  <ubizjak@gmail.com>
9995         * cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0.
9996         * combine.c: Use HOST_WIDE_INT_M1U instead of
9997         ~(unsigned HOST_WIDE_INT) 0.
9998         * double-int.h: Ditto.
9999         * dse.c: Ditto.
10000         * dwarf2asm.c:Ditto.
10001         * expmed.c: Ditto.
10002         * genmodes.c: Ditto.
10003         * match.pd: Ditto.
10004         * read-rtl.c: Ditto.
10005         * tree-ssa-loop-ivopts.c: Ditto.
10006         * tree-ssa-loop-prefetch.c: Ditto.
10007         * tree-vect-generic.c: Ditto.
10008         * tree-vect-patterns.c: Ditto.
10009         * tree.c: Ditto.
10011 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
10013         * gcc/config/avr.c (avr_legitimize_address) [AVR_TINY]: Force
10014         constant addresses outside [0,0xc0] into a register.
10015         (avr_out_movhi_r_mr_reg_no_disp_tiny): Pass insn.  And handle
10016         cases where the base address register is unused after.
10017         (avr_out_movhi_r_mr_reg_disp_tiny): Same.
10018         (avr_out_movhi_mr_r_reg_disp_tiny): Same.
10019         (avr_out_store_psi_reg_disp_tiny): Same.
10021 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
10023         Implement attribute progmem on reduced Tiny cores by adding
10024         flash offset 0x4000 to respective symbols.
10026         PR target/71948
10027         * doc/extend.texi (AVR Variable Attributes) [progmem]: Add
10028         documentation how it works on reduced Tiny cores.
10029         (AVR Named Address Spaces): No support for reduced Tiny.
10030         * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): New macro.
10031         (avr_address_tiny_pm_p): New static function.
10032         (avr_print_operand_address) [AVR_TINY]: Add AVR_TINY_PM_OFFSET
10033         if the address is in progmem.
10034         (avr_assemble_integer): Same.
10035         (avr_encode_section_info) [AVR_TINY]: Set AVR_SYMBOL_FLAG_TINY_PM
10036         for symbol_ref in progmem.
10037         * config/avr/avr.h (AVR_TINY_PM_OFFSET): New macro.
10038         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it instead of
10039         magic 0x4000 when built-in def'ing __AVR_TINY_PM_BASE_ADDRESS__.
10041 2016-07-20  Patrick Palka  <ppalka@gcc.gnu.org>
10043         * configure.ac (thin_archive_support): New variable.  AC_SUBST it.
10044         * configure: Regenerate.
10045         * Makefile.in (THIN_ARCHIVE_SUPPORT): New variable.
10046         (USE_THIN_ARCHIVES): New variable.
10047         (libbackend.a): If USE_THIN_ARCHIVES then pass T to ar to build
10048         this archive as a thin archive.
10050 2016-07-20  David Malcolm  <dmalcolm@redhat.com>
10052         * diagnostic-show-locus.c (diagnostic_show_locus): If this is the
10053         same location as last time, don't skip if we have fix-it hints.
10054         Clarify the skipping logic by converting it from one "if" clause
10055         to repeated "if" clauses.
10056         * spellcheck-tree.c: Include "cpplib.h".
10057         (find_closest_macro_cpp_cb): Move here from c/c-decl.c.
10058         (best_macro_match::best_macro_match): New constructor.
10059         * spellcheck-tree.h (struct edit_distance_traits<cpp_hashnode *>):
10060         Move here from c/c-decl.c.
10061         (class best_macro_match): Move here from c/c-decl.c, converting
10062         from a typedef to a subclass, gaining a ctor.
10064 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
10066         * config/avr/avr-protos.h (avr_addr_space_supported_p): New prototype.
10067         * config/avr/avr.c (TARGET_ADDR_SPACE_DIAGNOSE_USAGE): New hook
10068         define...
10069         (avr_addr_space_diagnose_usage): ...and implementation.
10070         (avr_addr_space_supported_p): New function.
10071         (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Only
10072         report bad address space usage if that space is supported.
10073         (avr_insert_attributes): Same.  No more complain about unsupported
10074         address spaces.
10075         * config/avr/avr-c.c (tm_p.h): Include it.
10076         (avr_cpu_cpp_builtins): Only define addr-space related built-in
10077         macro if avr_addr_space_supported_p.
10079 2016-07-20  Alexander Monakov  <amonakov@ispras.ru>
10081         * config/nvptx/nvptx.c (nvptx_option_override): Do not set
10082         flag_toplevel_reorder.
10084 2016-07-20  David Malcolm  <dmalcolm@redhat.com>
10086         * gcc-rich-location.c
10087         (gcc_rich_location::add_fixit_misspelled_id): New overload, taking
10088         a const char *.
10089         * gcc-rich-location.h
10090         (gcc_rich_location::add_fixit_misspelled_id): Likewise.
10092 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
10094         * target.def (addr_space): Add new diagnose_usage to hook vector.
10095         * targhooks.c (default_addr_space_diagnose_usage): Add default
10096         implementation and...
10097         * targhooks.h (default_addr_space_diagnose_usage): ... its prototype.
10098         * c/c-parser.c (c_lex_one_token) [CPP_NAME]: If the token
10099         is some address space, call targetm.addr_space.diagnose_usage.
10100         * doc/tm.texi.in (Named Address Spaces): Add anchor for
10101         TARGET_ADDR_SPACE_DIAGNOSE_USAGE documentation.
10102         * doc/tm.texi: Regenerate.
10104 2016-07-20  Martin Liska  <mliska@suse.cz>
10106         PR middle-end/71898
10107         * graphite-isl-ast-to-gimple.c (later_of_the_two):
10108         Properly handly PHI stmts.
10110 2016-07-20  Bin Cheng  <bin.cheng@arm.com>
10112         PR tree-optimization/71503
10113         PR tree-optimization/71683
10114         * tree-if-conv.c (gen_phi_arg_condition): Record true predicate
10115         and break.
10117 2016-07-20  Martin Liska  <mliska@suse.cz>
10119         * doc/invoke.texi (-fipa-ra): Document when the option is
10120         disabled. Fix a typo.
10122 2016-07-20  Martin Liska  <mliska@suse.cz>
10124         * Makefile.in: Include fibonacci_heap.c
10125         * fibonacci_heap.c: New file.
10126         * fibonacci_heap.h (fibonacci_heap::insert): Use insert_node.
10127         (fibonacci_heap::union_with): Fix deletion of the second heap.
10128         * selftest-run-tests.c (selftest::run_tests): Incorporate
10129         fibonacci heap tests.
10130         * selftest.h: Declare fibonacci_heap_c_tests.
10132 2016-07-20  Martin Liska  <mliska@suse.cz>
10134         * selftest-run-tests.c (selftest::run_tests): New function.
10135         * selftest.h (sreal_c_tests): Declare.
10136         * sreal.c (sreal_verify_basics): New function.
10137         (verify_aritmetics): Likewise.
10138         (sreal_verify_arithmetics): Likewise.
10139         (verify_shifting): Likewise.
10140         (sreal_verify_shifting): Likewise.
10141         (void sreal_c_tests): Likewise.
10143 2016-07-19  Jakub Jelinek  <jakub@redhat.com>
10145         PR rtl-optimization/71916
10146         * cfgrtl.c (contains_no_active_insn_p): Return false also for
10147         bb which have a single succ fake edge.
10149 2016-07-19  Aldy Hernandez  <aldyh@redhat.com>
10151         PR debug/71855
10152         * dwarf2out.c (gen_subprogram_die): Only call
10153         gen_unspecified_parameters_die while dumping early dwarf.
10155 2016-07-19  Jakub Jelinek  <jakub@redhat.com>
10157         PR middle-end/71874
10158         * gimple-fold.c (fold_builtin_memory_op): Use
10159         get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
10161 2016-07-19  Uros Bizjak  <ubizjak@gmail.com>
10163         * builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1,
10164         HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1,
10165         HOST_WIDE_INT_M1 instead of (HOST_WIDE_INT) -1 and
10166         HOST_WIDE_INT_M1U instead of (unsigned HOST_WIDE_INT) -1.
10167         * combine.c: Ditto.
10168         * cse.c: Ditto.
10169         * dojump.c: Ditto.
10170         * double-int.c: Ditto.
10171         * dse.c: Ditto.
10172         * dwarf2out.c: Ditto.
10173         * expmed.c: Ditto.
10174         * expr.c: Ditto.
10175         * fold-const.c: Ditto.
10176         * function.c: Ditto.
10177         * fwprop.c: Ditto.
10178         * genmodes.c: Ditto.
10179         * hwint.c: Ditto.
10180         * hwint.h: Ditto.
10181         * ifcvt.c: Ditto.
10182         * loop-doloop.c: Ditto.
10183         * loop-invariant.c: Ditto.
10184         * loop-iv.c: Ditto.
10185         * match.pd: Ditto.
10186         * optabs.c: Ditto.
10187         * real.c: Ditto.
10188         * reload.c: Ditto.
10189         * rtlanal.c: Ditto.
10190         * simplify-rtx.c: Ditto.
10191         * stor-layout.c: Ditto.
10192         * toplev.c: Ditto.
10193         * tree-ssa-loop-ivopts.c: Ditto.
10194         * tree-vect-generic.c: Ditto.
10195         * tree-vect-patterns.c: Ditto.
10196         * tree.c: Ditto.
10197         * tree.h: Ditto.
10198         * ubsan.c: Ditto.
10199         * varasm.c: Ditto.
10200         * wide-int-print.cc: Ditto.
10201         * wide-int.cc: Ditto.
10202         * wide-int.h: Ditto.
10204 2016-07-19  David Malcolm  <dmalcolm@redhat.com>
10206         * selftest.c (selftest::assert_streq): Handle NULL values of
10207         val_actual and val_expected.
10209 2016-07-19  Martin Jambor  <mjambor@suse.cz>
10211         PR fortran/71688
10212         * trans-decl.c (gfc_generate_function_code): Use cgraph_get_create_node
10213         rather than cgraph_create_node to get a call graph node.
10215 2016-07-19  Richard Biener  <rguenther@suse.de>
10217         * gimple-fold.c (get_base_constructor): Add VIEW_CONVERT case,
10218         handle all tcc_constant bases and valueize SSA names.
10219         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Handle
10220         tcc_constant bases.
10222 2016-07-19  David Malcolm  <dmalcolm@redhat.com>
10224         * function-tests.c (selftest::verify_three_block_rtl_cfg): Verify
10225         the flags of the exit block and bb2, not just the entry block.
10227 2016-07-19  Richard Biener  <rguenther@suse.de>
10229         PR tree-optimization/71901
10230         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
10231         align member, group stuff with the bitfield.
10232         (vn_ref_op_align_unit): New inline.
10233         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): For ARRAY_REFs
10234         record element alignment and operand 3 unchanged.
10235         (ao_ref_init_from_vn_reference): Adjust.
10236         (valueize_refs_1): Likewise.
10237         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
10239 2016-07-19  Richard Biener  <rguenther@suse.de>
10241         PR tree-optimization/71908
10242         * tree-ssa-structalias.c (get_constraint_for_component_ref): Handle
10243         symbolic constants in a more reliable way.
10245 2016-07-19  Ilya Enkovich  <ilya.enkovich@intel.com>
10247         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Update
10248         comment.
10249         (vect_update_inits_of_drs): Likewise.
10250         (vect_create_cond_for_alias_checks): Likewise.
10251         * tree-vect-loop.c (vect_get_known_peeling_cost): Likewise.
10253 2016-07-19  Richard Biener  <rguenther@suse.de>
10255         PR lto/71907
10256         * lto-streamer-out.c (DFS::DFS_write_tree_body): For blocks
10257         with an abstract origin that is not an inlined function outer
10258         scope add a self-reference as abstract origin.
10259         * tree-streamer-out.c (write_ts_block_tree_pointers): Likewise.
10261 2016-07-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
10263         PR target/71493
10264         * config/rs6000/rs6000.c (rs6000_function_value): Fix
10265         unintentional System V.4 structure return breakage for structures
10266         with a single floating point element.
10268 2016-07-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
10270         PR tree-optimization/71734
10271         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Add REF_LOOP argument which
10272         contains REF, use it to check safelen, assume that safelen value
10273         must be greater 1, fix style.
10274         (ref_indep_loop_p_2): Add REF_LOOP argument.
10275         (ref_indep_loop_p): Pass LOOP as additional argument to
10276         ref_indep_loop_p_2.
10278 2016-07-18  Dominik Vogt  <vogt@linux.vnet.ibm.com>
10280         * cfgexpand.c (expand_stack_vars): Implement synamic stack space
10281         allocation in the prologue.
10282         * explow.c (get_dynamic_stack_base): New function to return an address
10283         expression for the dynamic stack base.
10284         (get_dynamic_stack_size): New function to do the required dynamic stack
10285         space size calculations.
10286         (allocate_dynamic_stack_space): Use new functions.
10287         (align_dynamic_address): Move some code from
10288         allocate_dynamic_stack_space to new function.
10289         * explow.h (get_dynamic_stack_base, get_dynamic_stack_size): Export.
10291 2016-07-18  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10293         * config/s390/s390.c (s390_encode_section_info): Always set
10294         notaligned marker if mode size is 0 or no MEM_ALIGN info could be
10295         found.
10297 2016-07-18  Richard Biener  <rguenther@suse.de>
10299         PR tree-optimization/71893
10300         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Compensate
10301         for sizetype cast added by array_ref_element_size.
10302         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
10304 2016-07-16  John David Anglin  <danglin@gcc.gnu.org>
10306         * config/pa/pa.c (hppa_profile_hook): Allocate stack space for
10307         register parameters.  Remove code to initialize argument pointer
10308         on TARGET_64BIT.  Optimize call to _mcount when it can be reached
10309         using a pc-relative branch.  Cleanup conditional code.
10310         * config/pa/pa.md (call_mcount): New expander.
10311         (call_mcount_nonpic): New insn.
10312         (call_mcount_pic): New insn and split.
10313         (call_mcount_pic_post_reload): New insn.
10314         (call_mcount_64bit): New insn and split.
10315         (call_mcount_64bit_post_reload): New insn.
10317 2016-07-15  Georg-Johann Lay  <avr@gjlay.de>
10319         * config/avr/predicates.md (const_m255_to_m1_operand): New.
10320         * config/avr/constraints.md (Cn8, Ca1, Co1, Yx2): New constraints.
10321         * config/avr/avr.md (add<mode>3) <ALL1>: Fix set_vzn for +/-2.
10322         (*cmphi.zero-extend.0, *cmphi.zero-extend.1)
10323         (*usum_widenqihi3, *udiff_widenqihi3)
10324         (*addhi3_zero_extend.const): New combiner insns.
10325         (andqi3, iorqi3): Provide "l" (NO_LD_REGS) alternative if
10326         just 1 bit is affected.
10327         * config/avr/avr.c (avr_out_bitop) <QImode>: Don't access xop[3].
10328         (avr_out_compare) [EQ,NE]: Tweak comparing d-regs against -1.
10330 2016-07-15  Cesar Philippidis  <cesar@codesourcery.com>
10332         * omp-low.c (lower_omp_target): Mark data clauses with
10333         GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having
10334         zero-length subarrays.
10336 2016-07-15  Richard Biener  <rguenther@suse.de>
10338         PR tree-optimization/71881
10339         * tree-loop-distribution.c (destroy_loop): Remove blocks in
10340         reverse DOM order to make debug temp generation happy.
10342 2016-07-15  Richard Biener  <rguenther@suse.de>
10344         PR tree-optimization/71887
10345         * tree-ssa-phiopt.c (absorbing_element_p): Add rhs arg and
10346         verify it is not zero for division / modulo handling.
10347         (value_replacement): Adjust.
10349 2016-07-15  Virendra Pathak  <virendra.pathak@broadcom.com>
10350             Julian Brown  <julian@codesourcery.com>
10352         * config/aarch64/aarch64-cores.def: Update vulcan COSTS.
10353         * config/aarch64/aarch64-cost-tables.h
10354         (vulcan_extra_costs): New variable.
10355         * config/aarch64/aarch64.c
10356         (vulcan_addrcost_table): Likewise.
10357         (vulcan_regmove_cost): Likewise.
10358         (vulcan_vector_cost): Likewise.
10359         (vulcan_branch_cost): Likewise.
10360         (vulcan_tunings): Likewise.
10362 2016-07-15  Alexander Monakov  <amonakov@ispras.ru>
10364         * cgraphunit.c (cgraph_order_sort_kind): New entry ORDER_VAR_UNDEF.
10365         (output_in_order): Loop over undefined variables too.  Output them
10366         via assemble_undefined_decl.  Skip variables that correspond to hard
10367         registers or have value-exprs.
10368         * varpool.c (symbol_table::output_variables): Handle undefined
10369         variables together with defined ones.
10371 2016-07-15  Richard Biener  <rguenther@suse.de>
10373         * tree-ssa-pre.c (get_representative_for): Make sure to return
10374         the value number of SSA names.
10375         (phi_translate_1): get_representative_for cannot return NULL.
10376         (do_pre_regular_insertion): Remove redundant call to
10377         fully_constant_expression.
10378         (do_pre_partial_partial_insertion): Likewise.
10380 2016-07-15  Bin Cheng  <bin.cheng@arm.com>
10382         * tree-scalar-evolution.c (simple_iv_with_niters): New funcion.
10383         (derive_simple_iv_with_niters): New function.
10384         (simple_iv): Rewrite using simple_iv_with_niters.
10385         * tree-scalar-evolution.h (simple_iv_with_niters): New decl.
10386         * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
10387         function.
10388         (number_of_iterations_exit): Rewrite using above function.
10389         * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
10390         Decl.
10392 2016-07-15  Richard Biener  <rguenther@suse.de>
10394         * config/i386/i386.c (ix86_builtin_vectorization_cost): Adjust
10395         vec_construct cost.
10397 2016-07-14  Jakub Jelinek  <jakub@redhat.com>
10399         PR tree-optimization/71872
10400         * tree-data-ref.c (get_references_in_stmt): Ignore references
10401         with is_gimple_constant get_base_address.
10403 2016-07-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
10405         * config/arm/arm.h (TARGET_HAVE_LDACQ): Enable for ARMv8-M Mainline.
10406         (TARGET_HAVE_LDACQD): New macro.
10407         * config/arm/sync.md (atomic_loaddi): Use TARGET_HAVE_LDACQD rather
10408         than TARGET_HAVE_LDACQ.
10409         (arm_load_acquire_exclusivedi): Likewise.
10410         (arm_store_release_exclusivedi): Likewise.
10412 2016-07-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
10414         PR rtl-optimization/71878
10415         * lra-constraints.c (match_reload): Pass information about other
10416         output operands.  Create new unique register value if matching input
10417         operand shares same register value as output operand being considered.
10418         (curr_insn_transform): Record output operands already processed.
10420 2016-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10422         PR target/65951
10423         PR tree-optimization/70923
10424         * tree-vect-patterns.c: Include mult-synthesis.h.
10425         (target_supports_mult_synth_alg): New function.
10426         (synth_lshift_by_additions): Likewise.
10427         (apply_binop_and_append_stmt): Likewise.
10428         (vect_synth_mult_by_constant): Likewise.
10429         (target_has_vecop_for_code): Likewise.
10430         (vect_recog_mult_pattern): Use above functions to synthesize vector
10431         multiplication by integer constants.
10433 2016-07-14  Alan Modra  <amodra@gmail.com>
10435         * gcc/config/rs6000/altivec.md (altivec_mov<mode>): Disparage
10436         gpr alternatives.  Correct '*' placement on Y,r alternative.
10437         Add '*' on operand 1 of r,r alternative.
10439 2016-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10441         * expmed.c (mult_variant, choose_mult_variant): Move declaration to...
10442         * expmed.h: ... Here.
10444 2016-07-14  Jan Hubicka  <hubicka@ucw.cz>
10446         * gimple.h (stmt_can_terminate_bb_p): New function.
10447         * tree-cfg.c (need_fake_edge_p): Rename to ...
10448         (stmt_can_terminate_bb_p): ... this; return true if stmt can
10449         throw external; handle const and pure calls.
10450         * tree-ssa-loop-niter.c (loop_only_exit_p): Use it.
10452 2016-07-14  Richard Biener  <rguenther@suse.de>
10454         PR tree-optimization/71866
10455         * tree-ssa-pre.c (get_constant_for_value_id): Remove.
10456         (do_hoist_insertion): Avoid endless recursion when we
10457         didn't insert anything because we managed to simplify
10458         things down to a constant or SSA name.
10459         (fully_constant_expression): Re-write in terms of ...
10460         * tree-ssa-sccvn.h (vn_nary_simplify): ... this.  Declare.
10461         * tree-ssa-sccvn.c (vn_nary_simplify): New wrapper around
10462         vn_nary_build_or_lookup_1.
10463         (vn_nary_build_or_lookup_1): Added flag and renamed from ...
10464         (vn_nary_build_or_lookup): ... this which now wraps it.
10466 2016-07-14  Alan Modra  <amodra@gmail.com>
10468         PR target/71733
10469         * config/rs6000/rs6000.c (rs6000_option_override_internal): Deal
10470         with p9_vector override before power9-dform override.
10472 2016-07-13  Andi Kleen  <ak@linux.intel.com>
10474         * value-prof.c (gimple_value_profile_transformations): Don't run
10475         when auto_profile is on.
10477 2016-07-13  Andi Kleen  <ak@linux.intel.com>
10479         * auto-profile.c (update_inlined_ind_target,
10480         afdo_indirect_call): Print information to dump file.
10482 2016-07-13  Andrew Burgess  <andrew.burgess@embecosm.com>
10484         * genrecog.c (special_predicate_operand_p): New function.
10485         (predicate_name): Move function.
10486         (validate_pattern): Don't warn about missing mode for all
10487         define_special_predicate predicates.
10489 2016-07-13  Bin Cheng  <bin.cheng@arm.com>
10491         * tree-vect-data-refs.c (vect_no_alias_p): New function.
10492         (vect_prune_runtime_alias_test_list): Call vect_no_alias_p to
10493         resolve alias checks which are known at compilation time.
10494         Truncate vector LOOP_VINFO_MAY_ALIAS_DDRS(loop_vinfo) if all
10495         alias checks are resolved.  Move dump info for too many runtime
10496         alias checks to here...
10497         * tree-vect-loop.c (vect_analyze_loop_2): ...From here.
10499 2016-07-13  Richard Biener  <rguenther@suse.de>
10501         PR tree-optimization/24574
10502         * tree-ssa-phiopt.c (absorbing_element_p): Pass in argument
10503         position and add shift, rotate, divison and modulo support
10504         for left zero.
10505         (value_replacement): Pass in argument position to absorbing_element_p.
10507 2016-07-13  Ilya Enkovich  <ilya.enkovich@intel.com>
10509         PR ipa/71633
10510         * ipa-inline-transform.c (inline_call): Support
10511         instrumented thunks.
10513 2016-07-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
10515         * config/arm/arm.h (TARGET_HAVE_CBZ): Define.
10516         (TARGET_IDIV): Set for all Thumb targets provided they have hardware
10517         divide feature.
10518         * config/arm/arm.md (divsi3): New unpredicable alternative for ARMv8-M
10519         Baseline.  Make initial alternative TARGET_32BIT only.
10520         (udivsi3): Likewise.
10521         * config/arm/thumb1.md (thumb1_cbz): New define_insn.
10522         * doc/sourcebuild.texi (arm_thumb1_cbz_ok): Document new effective
10523         target.
10525 2016-07-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
10527         * config/arm/arm.h (TARGET_HAVE_MOVT): Include ARMv8-M as having MOVT.
10528         * config/arm/arm.c (arm_arch_name): (const_ok_for_op): Check MOVT/MOVW
10529         availability with TARGET_HAVE_MOVT.
10530         (thumb_legitimate_constant_p): Strip the high part of a label_ref.
10531         (thumb1_rtx_costs): Also return 0 if setting a half word constant and
10532         MOVW is available and replace (unsigned HOST_WIDE_INT) INTVAL by
10533         UINTVAL.
10534         (thumb1_size_rtx_costs): Make set of half word constant also cost 1
10535         extra instruction if MOVW is available.  Use a cost variable
10536         incremented by COSTS_N_INSNS (1) when the condition match rather than
10537         returning an arithmetic expression based on COSTS_N_INSNS.  Make
10538         constant with bottom half word zero cost 2 instruction if MOVW is
10539         available.
10540         * config/arm/arm.md (define_attr "arch"): Add v8mb.
10541         (define_attr "arch_enabled"): Set to yes if arch value is v8mb and
10542         target is ARMv8-M Baseline.
10543         (arm_movt): New unpredicable alternative for ARMv8-M Baseline.
10544         (arm_movtas_ze): Likewise.
10545         * config/arm/thumb1.md (thumb1_movdi_insn): Add ARMv8-M Baseline only
10546         alternative for constants satisfying j constraint.
10547         (thumb1_movsi_insn): Likewise.
10548         (movsi splitter for K alternative): Tighten condition to not trigger
10549         if movt is available and j constraint is satisfied.
10550         (Pe immediate splitter): Likewise.
10551         (thumb1_movhi_insn): Add ARMv8-M Baseline only alternative for
10552         constant fitting in an halfword to use MOVW.
10553         * doc/sourcebuild.texi (arm_thumb1_movt_ok): Document new ARM
10554         effective target.
10556 2016-07-13  Richard Biener  <rguenther@suse.de>
10558         PR middle-end/71104
10559         * gimplify.c (gimplify_modify_expr): Gimplify the RHS before
10560         gimplifying the LHS.  Make sure to gimplify a returning twice
10561         call LHS without using SSA names.
10563 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10565         * tree-data-ref.c (find_data_references_in_stmt): Remove
10566         unnecessary call to vec::release.
10567         (graphite_find_data_references_in_stmt): Likewise.
10568         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Likewise.
10569         * tree-vect-stmts.c (vectorizable_condition): Likewise.
10571 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10573         * cfgexpand.c (expand_used_vars): Make the type of a local
10574         variable auto_vec.
10575         * genmatch.c (lower_for): Likewise.
10576         * haifa-sched.c (haifa_sched_init): Likewise.
10577         (add_to_speculative_block): Likewise.
10578         (create_check_block_twin): Likewise.
10579         * predict.c (handle_missing_profiles): Likewise.
10580         * tree-data-ref.c (loop_nest_has_data_refs): Likewise.
10581         * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Likewise.
10582         * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
10583         Likewise.
10584         (maybe_lower_iteration_bound): Likewise.
10585         * tree-ssa-sccvn.c (DFS): Likewise.
10586         * tree-stdarg.c (reachable_at_most_once): Likewise.
10587         * tree-vect-stmts.c (vectorizable_conversion): Likewise.
10588         (vectorizable_store): Likewise.
10590 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10592         * tree-ssa-sccvn.c (sccvn_dom_walker::~sccvn_dom_walker): remove.
10593         (sccvn_dom_walker): make cond_stack an auto_vec.
10595 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10597         * ree.c (struct ext_state): Make type of members auto_vec.
10598         (find_and_remove_re): Adjust.
10600 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10602         * cfgexpand.c (struct stack_vars_data): Make type of fields
10603         auto_vec.
10604         (expand_used_vars): Adjust.
10606 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10608         * ipa.c (record_cdtor_fn): Adjust.
10609         (build_cdtor_fns): Likewise.
10610         (ipa_cdtor_merge): Make static_ctors and static_dtors local
10611         variables.
10613 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10615         * genextract.c (struct accum_extract): Add constructor and make
10616         members auto_vec.
10617         (gen_insn): Adjust.
10619 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10621         * tree.c (struct free_lang_data_d): Add constructor and change
10622         types of members to ones that automatically manage resources.
10623         (fld_worklist_push): Adjust.
10624         (find_decls_types): Likewise.
10625         (find_decls_types_in_eh_region): Likewise.
10626         (free_lang_data_in_cgraph): Stop manually creating and
10627         destroying members of free_lang_data_d.
10629 2016-07-13  Uros Bizjak  <ubizjak@gmail.com>
10631         PR rtl-optimization/68961
10632         * config/i386/sse.md (movsd/movhpd to movupd peephole2s): Add new
10633         peephole variant.  Use sse_reg_operand predicates.
10635 2016-07-12  Uros Bizjak  <ubizjak@gmail.com>
10637         * config/i386/predicates.md (x86_64_immediate_operand)
10638         <case CONST_INT>: Remove unneeded truncation to DImode.
10639         <case CONST>: Ditto.
10640         (x86_64_zext_immediate_operand) <case CONST>: Ditto.
10642 2016-07-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
10644         PR target/71805
10645         * config/rs6000/altivec.md (altivec_vperm_<mode>_internal):
10646         The xxperm and xxpermr instructions require that the 2nd input
10647         operand overlap with the output operand, and not the 1st.
10648         (altivec_vperm_v8hiv16qi): Likewise.
10649         (altivec_vperm_<mode>_uns_internal): Likewise.
10650         (altivec_vpermr_<mode>_internal): Likewise.
10651         (vperm_v8hiv4si): Likewise.
10652         (vperm_v16qiv8hi): Likewise.
10654 2016-07-12  Nathan Sidwell  <nathan@acm.org>
10656         * config/arm/arm.c (arm_option_override): Set MASK_SINGLE_PIC_BASE
10657         when -mno-pic-data-is-text-relative is in effect, by default.
10658         * doc/invoke.texi (mpic-data-is-text-relative): Document new
10659         behavior and clarify.
10661 2016-07-12  Martin Liska  <mliska@suse.cz>
10663         * params.def: Add avg-loop niter.
10664         * tree-ssa-loop-ivopts.c (avg_loop_niter): Use the param.
10665         * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
10666         * doc/invoke.texi: Document the new parameter.
10668 2016-07-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10670         PR middle-end/71700
10671         * expr.c (store_constructor): Mask sign-extended bits when widening
10672         sub-word constructor element at the start of a word.
10674 2016-07-12  Martin Liska  <mliska@suse.cz>
10676         * Makefile.in: Append rule for params-options.h.
10677         * params-options.h: New file.
10679 2016-07-12  Martin Liska  <mliska@suse.cz>
10681         * ira-build.c (mark_loops_for_removal): Properly iterate
10682         loops.
10684 2016-07-12  Steven Bosscher  <steven@gcc.gnu.org>
10685             Richard Biener  <rguenther@suse.de>
10687         PR tree-optimization/23286
10688         PR tree-optimization/70159
10689         * doc/invoke.texi: Document -fcode-hoisting.
10690         * common.opt (fcode-hoisting): New flag.
10691         * opts.c (default_options_table): Enable -fcode-hoisting at -O2+.
10692         * tree-ssa-pre.c (pre_stats): Add hoist_insert.
10693         (do_regular_insertion): Rename to ...
10694         (do_pre_regular_insertion): ... this and amend general comments
10695         on insertion strathegy.
10696         (do_partial_partial_insertion): Rename to ...
10697         (do_pre_partial_partial_insertion): ... this.
10698         (do_hoist_insertion): New function.
10699         (insert_aux): Take flags on whether to do PRE and/or hoist insertion
10700         and call do_hoist_insertion properly.
10701         (insert): Adjust.
10702         (pass_pre::gate): Enable also if -fcode-hoisting is enabled.
10703         (pass_pre::execute): Register hoist_insert stats.
10705 2016-07-12  Jakub Jelinek  <jakub@redhat.com>
10707         PR middle-end/71716
10708         * gimple-fold.c (optimize_atomic_compare_exchange_p): Return false
10709         for SCALAR_FLOAT_TYPE_P type of expected var, or if TYPE_PRECISION
10710         is different from mode's bitsize.  Small cleanup.
10712 2016-07-12  Richard Biener  <rguenther@suse.de>
10714         PR rtl-optimization/68961
10715         * fwprop.c (propagate_rtx): Allow SUBREGs of VEC_CONCAT and CONCAT
10716         to simplify to a non-constant.
10718 2016-07-11  Jakub Jelinek  <jakub@redhat.com>
10720         PR middle-end/71758
10721         * omp-low.c (expand_omp_target): Gimplify device.
10723         PR tree-optimization/71823
10724         * tree-vect-stmts.c (vectorizable_operation): Use vect_get_vec_defs
10725         to get vec_oprnds2 from op2.
10727 2016-07-11  Uros Bizjak  <ubizjak@gmail.com>
10729         * config/i386/predicates.md (x86_64_immediate_operand) <case CONST>:
10730         Hoist common subexpressions.
10731         (x86_64_zext_immediate_operand) <case CONST>: Ditto.
10733 2016-07-11  Pat Haugen  <pthaugen@us.ibm.com>
10735         PR target/71800
10736         * config/rs6000/rs6000.md (stfiwx): Change constraint to 'wu' to
10737         prevent generation of 'stxsiwx' on pre Power8 hardware.
10739 2016-07-11  David Malcolm  <dmalcolm@redhat.com>
10741         * input.c: Include cpplib.h.
10742         (selftest::temp_source_file): New class.
10743         (selftest::temp_source_file::temp_source_file): New ctor.
10744         (selftest::temp_source_file::~temp_source_file): New dtor.
10745         (selftest::should_have_column_data_p): New function.
10746         (selftest::test_should_have_column_data_p): New function.
10747         (selftest::temp_line_table): New class.
10748         (selftest::temp_line_table::temp_line_table): New ctor.
10749         (selftest::temp_line_table::~temp_line_table): New dtor.
10750         (selftest::test_accessing_ordinary_linemaps): Add case_ param; use
10751         it to create a temp_line_table.
10752         (selftest::assert_loceq): Only verify LOCATION_COLUMN for
10753         locations that are known to have column data.
10754         (selftest::line_table_case): New struct.
10755         (selftest::test_reading_source_line): Move tempfile handling
10756         to class temp_source_file.
10757         (ASSERT_TOKEN_AS_TEXT_EQ): New macro.
10758         (selftest::assert_token_loc_eq): New function.
10759         (ASSERT_TOKEN_LOC_EQ): New macro.
10760         (selftest::test_lexer): New function.
10761         (selftest::boundary_locations): New array.
10762         (selftest::input_c_tests): Call test_should_have_column_data_p.
10763         Loop over a test matrix of interesting values of location and
10764         default_range_bits, calling test_lexer on each case in the matrix.
10765         Move call to test_accessing_ordinary_linemaps into the matrix.
10766         * selftest.h (ASSERT_EQ): Reimplement in terms of...
10767         (ASSERT_EQ_AT): New macro.
10769 2016-07-11  H.J. Lu  <hongjiu.lu@intel.com>
10771         PR target/71801
10772         * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
10773         Don't convert TImode in debug insn.
10775 2016-07-11  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10777         Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG.
10778         * tree-core.h (tree_base::nothrow_flag): Adjust comment.
10779         (tree_type_common::lang_flag_7): New.
10780         (tree_type_common::spare): Reduce size.
10781         * tree.h (TYPE_ALIGN_OK): Remove.
10782         (TYPE_LANG_FLAG_7): New.
10783         (get_inner_reference): Adjust header.
10784         * print-tree.c (print_node): Adjust.
10785         * expr.c (get_inner_reference): Remove parameter keep_aligning.
10786         (get_bit_range, expand_assignment, expand_expr_addr_expr_1): Adjust
10787         calls to get_inner_reference.
10788         (expand_expr_real_1): Adjust call to get_inner_reference.  Remove
10789         handling of TYPE_ALIGN_OK.
10790         * builtins.c (get_object_alignment_2): Adjust call to
10791         get_inner_reference.  Remove handling of VIEW_CONVERT_EXPR.
10792         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove handling of
10793         TYPE_ALIGN_OK.
10794         * asan.c (instrument_derefs): Adjust calls to get_inner_reference.
10795         * cfgexpand.c (expand_debug_expr): Likewise.
10796         * dbxout.c (dbxout_expand_expr): Likewise.
10797         * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref,
10798         loc_list_from_tree, fortran_common): Likewise.
10799         * fold-const.c (optimize_bit_field_compare,
10800         decode_field_reference, fold_unary_loc, fold_comparison,
10801         split_address_to_core_and_offset): Likewise.
10802         * gimple-laddress.c (execute): Likewise.
10803         * gimple-ssa-strength-reduction.c (slsr_process_ref): Likewise.
10804         * gimplify.c (gimplify_scan_omp_clauses): Likewise.
10805         * hsa-gen.c (gen_hsa_addr): Likewise.
10806         * simplifx-rtx.c (delegitimize_mem_from_attrs): Likewise.
10807         * tsan.c (instrument_expr): Likewise.
10808         * ubsan.c (instrument_bool_enum_load, instrument_object_size): Likewise.
10809         * tree.c (verify_type_variant): Remove handling of TYPE_ALIGN_OK.
10810         * tree-affine.c (tree_to_aff_combination,
10811         get_inner_reference_aff): Adjust calls to get_inner_reference.
10812         * tree-data-ref.c (split_constant_offset_1,
10813         dr_analyze_innermost): Likewise.
10814         * tree-scalar-evolution.c (interpret_rhs_expr): Likewise.
10815         * tree-sra.c (ipa_sra_check_caller): Likewise.
10816         * tree-ssa-loop-ivopts.c (split_address_cost): Likewise.
10817         * tree-ssa-math-opts.c (find_bswap_or_nop_load,
10818         bswap_replace): Likewise.
10819         * tree-vect-data-refs.c (vect_check_gather,
10820         vect_analyze_data_refs): Likewise.
10821         * config/mips/mips.c (r10k_safe_mem_expr_p): Likewise.
10822         * config/pa/pa.c (pa_emit_move_sequence): Remove handling of
10823         TYPE_ALIGN_OK.
10825 2016-07-11  David Malcolm  <dmalcolm@redhat.com>
10827         * Makefile.in (selftest-valgrind): New phony target.
10828         * function-tests.c (selftest::build_cfg): Delete pass instances
10829         created by the test.
10830         (selftest::convert_to_ssa): Likewise.
10831         (selftest::test_expansion_to_rtl): Likewise.
10832         * tree-cfg.c (selftest::test_linear_chain): Release dominator
10833         vectors.
10834         (selftest::test_diamond): Likewise.
10836 2016-07-11  Richard Biener  <rguenther@suse.de>
10838         PR tree-optimization/71816
10839         * tree-ssa-pre.c (compute_avail): Adjust alignment of ref rather
10840         than replacing all of its operands.
10842 2016-07-11  Alan Modra  <amodra@gmail.com>
10844         * config/rs6000/rs6000.md (UNSPEC_DOLOOP): New unspec.
10845         (ctr<mode>): Add unspec.
10846         (ctr<mode>_internal*): Likewise.
10848 2016-07-08  James Bowman  <james.bowman@ftdichip.com>
10850         * config/ft32/ft32.c (ft32_elf_encode_section_info): New function.
10851         * config/ft32/ft32.h (ASM_OUTPUT_SYMBOL_REF): New function.
10853 2016-07-08  Vladimir Makarov  <vmakarov@redhat.com>
10855         PR rtl-optimization/71621
10856         * lra-constraints.c (process_alt_operands): Check combination of
10857         reg class and mode.
10859 2016-07-08  Jason Merrill  <jason@redhat.com>
10860             Richard Biener  <rguenther@suse.de>
10862         P0145: Refining Expression Order for C++.
10863         * gimplify.c (initial_rhs_predicate_for): New.
10864         (gimplfy_modify_expr): Gimplify RHS before LHS.
10866 2016-07-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10868         PR target/71297
10869         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
10870         Allow standard error handling to take over when a wrong number
10871         of arguments is presented to __builtin_vec_ld () or
10872         __builtin_vec_st ().
10874 2016-07-08  Jiong Wang  <jiong.wang@arm.com>
10876         * config/aarch64/aarch64-simd-builtins.def (smax): Remove float
10877         variants.
10878         (smin): Likewise.
10879         (fmax): New entry.
10880         (fmin): Likewise.
10881         * config/aarch64/arm_neon.h (vmaxnm_f32): Use
10882         __builtin_aarch64_fmaxv2sf.
10883         (vmaxnmq_f32): Likewise.
10884         (vmaxnmq_f64): Likewise.
10885         (vminnm_f32): Likewise.
10886         (vminnmq_f32): Likewise.
10887         (vminnmq_f64): Likewise.
10889 2016-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
10891         PR target/71806
10892         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Do not
10893         enable -mfloat128-hardware by default.
10894         (ISA_3_0_MASKS_IEEE): New macro to give all of the VSX options
10895         that IEEE 128-bit hardware support needs.
10896         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
10897         -mcpu=power9 -mfloat128, enable -mfloat128-hardware by default.
10898         Use ISA_3_0_MASKS_IEEE as the set of options that IEEE 128-bit
10899         floating point requires.
10900         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
10901         -mfloat128 and -mfloat128-hardware changes.
10903 2016-07-08  Alan Hayward  <alan.hayward@arm.com>
10905         PR tree-optimization/71667
10906         * tree-vect-loop.c (vectorizable_live_operation): ignore DEBUG stmts
10908 2016-07-08  Martin Liska  <mliska@suse.cz>
10910         PR middle-end/71606
10911         * fold-const.c (fold_convertible_p): As COMPLEX_TYPE
10912         folding produces SAVE_EXPRs, thus return false for the type.
10914 2016-07-07  Martin Liska  <mliska@suse.cz>
10916         * file-find.c (remove_prefix): New function.
10917         * file-find.h (remove_prefix): Declare the function.
10918         * gcc-ar.c (main): Skip a folder of the wrapper if
10919         a wrapped binary would point to the same file.
10921 2016-07-07  Jan Hubicka  <jh@suse.cz>
10923         * tree-scalar-evolution.c (iv_can_overflow_p): export.
10924         * tree-scalar-evolution.h (iv_can_overflow_p): Declare.
10925         * tree-ssa-loop-ivopts.c (alloc_iv): Use it.
10927 2016-07-07  Ilya Enkovich  <ilya.enkovich@intel.com>
10929         PR ipa/71624
10930         * ipa-inline-analysis.c (compute_inline_parameters): Set
10931         local.can_change_signature to false for intrumentation
10932         thunk callees.
10934 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
10936         * config/arm/arm.h (TARGET_USE_MOVT): Check MOVT/MOVW availability
10937         with TARGET_HAVE_MOVT.
10938         (TARGET_HAVE_MOVT): Define.
10939         * config/arm/arm.c (const_ok_for_op): Check MOVT/MOVW
10940         availability with TARGET_HAVE_MOVT.
10941         * config/arm/arm.md (arm_movt): Use TARGET_HAVE_MOVT to check MOVT
10942         availability.
10943         (addsi splitter): Use TARGET_THUMB && TARGET_HAVE_MOVT rather than
10944         TARGET_THUMB2.
10945         (symbol_refs movsi splitter): Remove TARGET_32BIT check.
10946         (arm_movtas_ze): Use TARGET_HAVE_MOVT to check MOVT availability.
10947         * config/arm/constraints.md (define_constraint "j"): Use
10948         TARGET_HAVE_MOVT to check MOVT availability.
10950 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
10952         * config/arm/arm-protos.h: Reindent FL_FOR_* macro definitions.
10954 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
10956         * config/arm/arm-arches.def (armv8-m.base): Define new architecture.
10957         (armv8-m.main): Likewise.
10958         (armv8-m.main+dsp): Likewise.
10959         * config/arm/arm-protos.h (FL_FOR_ARCH8M_BASE): Define.
10960         (FL_FOR_ARCH8M_MAIN): Likewise.
10961         * config/arm/arm-tables.opt: Regenerate.
10962         * config/arm/bpabi.h: Add armv8-m.base, armv8-m.main and
10963         armv8-m.main+dsp to BE8_LINK_SPEC.
10964         * config/arm/arm.h (TARGET_HAVE_LDACQ): Exclude ARMv8-M.
10965         (enum base_architecture): Add BASE_ARCH_8M_BASE and BASE_ARCH_8M_MAIN.
10966         * config/arm/arm.c (arm_arch_name): Increase size to work with ARMv8-M
10967         Baseline and Mainline.
10968         (arm_option_override_internal): Also disable arm_restrict_it when
10969         !arm_arch_notm.  Update comment for -munaligned-access to also cover
10970         ARMv8-M Baseline.
10971         (arm_file_start): Increase buffer size for printing architecture name.
10972         * doc/invoke.texi: Document architectures armv8-m.base, armv8-m.main
10973         and armv8-m.main+dsp.
10974         (mno-unaligned-access): Clarify that this is disabled by default for
10975         ARMv8-M Baseline architectures as well.
10977 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
10979         * config/arm/elf.h: Use __ARM_ARCH_ISA_THUMB and __ARM_ARCH_ISA_ARM to
10980         decide whether to prevent some libgcc routines being included for some
10981         multilibs rather than __ARM_ARCH_6M__ and add comment to indicate the
10982         link between this condition and the one in
10983         libgcc/config/arm/lib1func.S.
10985 2016-07-07  Richard Biener  <rguenther@suse.de>
10987         * tree-ssa-pre.c: Include alias.h.
10988         (compute_avail): If we have multiple VN_REFERENCEs with the
10989         same hashtable entry adjust that to make it a valid replacement
10990         for all of them with respect to alignment and aliasing
10991         when doing insertion.
10992         * tree-ssa-sccvn.h (vn_reference_operands_for_lookup): Declare.
10993         * tree-ssa-sccvn.c (vn_reference_operands_for_lookup): New function.
10995 2016-07-06  Segher Boessenkool  <segher@kernel.crashing.org>
10997         PR target/70098
10998         PR target/71763
10999         * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
11000         *ctr<mode>_internal5, *ctr<mode>_internal6): Add *wi to the output
11001         constraint.
11003 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11005         * var-tracking.c (struct adjust_mem_data): Make side_effects a vector.
11006         (adjust_mems): Adjust.
11007         (adjust_insn): Likewise.
11008         (prepare_call_arguments): Likewise.
11010 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11012         * gcse.c (struct ls_expr): Make stores field a vector.
11013         (ldst_entry): Adjust.
11014         (free_ldst_entry): Likewise.
11015         (print_ldst_list): Likewise.
11016         (compute_ld_motion_mems): Likewise.
11017         (update_ld_motion_stores): Likewise.
11019 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11021         * gcse.c (struct ls_expr): Remove loads field.
11022         (ldst_entry): Adjust.
11023         (free_ldst_entry): Likewise.
11024         (print_ldst_list): Likewise.
11025         (compute_ld_motion_mems): Likewise.
11027 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11029         * store-motion.c (struct st_expr): Make antic_stores a vector.
11030         (st_expr_entry): Adjust.
11031         (free_st_expr_entry): Likewise.
11032         (print_store_motion_mems): Likewise.
11033         (find_moveable_store): Likewise.
11034         (compute_store_table): Likewise.
11035         (remove_reachable_equiv_notes): Likewise.
11036         (replace_store_insn): Likewise.
11037         (build_store_vectors): Likewise.
11039 2016-07-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11041         * config/arm/driver-arm.c (arm_cpu_table): Add entries for cortex-a32,
11042         cortex-a35, cortex-a53, cortex-a57, cortex-a72, cortex-a73.
11044 2016-07-06  Yuri Rumyantsev  <ysrumyan@gmail.com>
11046         PR tree-optimization/71518
11047         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust
11048         misalign also for outer loops with negative step.
11050 2016-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
11052         * config/arm/cortex-a53.md: Use final_presence_set for in-order.
11053         (cortex_a53_shift): Add mov_shift.
11054         (cortex_a53_shift_reg): Add new reservation for register shifts.
11055         (cortex_a53_alu): Remove bfm.
11056         (cortex_a53_alu_shift): Add bfm, remove mov_shift.
11057         (cortex_a53_alu_extr): Add new reservation for EXTR.
11058         (bypasses): Improve bypass modelling.
11060 2016-07-06  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
11062         PR target/50739
11063         * config/avr/avr.c (avr_asm_select_section): Strip off
11064         SECTION_DECLARED from flags when calling get_section.
11066 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
11068         * tree-vectorizer.h (vect_memory_access_type): Add
11069         VMAT_INVARIANT, VMAT_CONTIGUOUS_DOWN and VMAT_CONTIGUOUS_REVERSED.
11070         * tree-vect-stmts.c (compare_step_with_zero): New function.
11071         (perm_mask_for_reverse): Move further up file.
11072         (get_group_load_store_type): Stick to VMAT_ELEMENTWISE if the
11073         step is negative.
11074         (get_negative_load_store_type): New function.
11075         (get_load_store_type): Call it.  Add an ncopies argument.
11076         (vectorizable_mask_load_store): Update call accordingly and
11077         remove tests for negative steps.
11078         (vectorizable_store, vectorizable_load): Likewise.  Handle new
11079         memory_access_types.
11081 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
11083         * tree-vectorizer.h (vect_memory_access_type): New enum.
11084         (_stmt_vec_info): Add a memory_access_type field.
11085         (STMT_VINFO_MEMORY_ACCESS_TYPE): New macro.
11086         (vect_model_store_cost): Take an access type instead of a boolean.
11087         (vect_model_load_cost): Likewise.
11088         * tree-vect-slp.c (vect_analyze_slp_cost_1): Update calls to
11089         vect_model_store_cost and vect_model_load_cost.
11090         * tree-vect-stmts.c (vec_load_store_type): New enum.
11091         (vect_model_store_cost): Take an access type instead of a
11092         store_lanes_p boolean.  Simplify tests.
11093         (vect_model_load_cost): Likewise, but for load_lanes_p.
11094         (get_group_load_store_type, get_load_store_type): New functions.
11095         (vectorizable_store): Use get_load_store_type.  Record the access
11096         type in STMT_VINFO_MEMORY_ACCESS_TYPE.
11097         (vectorizable_load): Likewise.
11098         (vectorizable_mask_load_store): Likewise.  Replace is_store
11099         variable with vls_type.
11101 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
11103         * tree-vectorizer.h (vect_grouped_load_supported): Add a
11104         single_element_p parameter.
11105         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
11106         Check the PR65518 case here rather than in vectorizable_load.
11107         * tree-vect-loop.c (vect_analyze_loop_2): Update call accordignly.
11108         * tree-vect-stmts.c (vectorizable_load): Likewise.
11110 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
11112         * tree-vectorizer.h (gather_scatter_info): New structure.
11113         (vect_check_gather_scatter): Return a bool rather than a decl.
11114         Replace return-by-pointer arguments with a single
11115         gather_scatter_info *.
11116         * tree-vect-data-refs.c (vect_check_gather_scatter): Likewise.
11117         (vect_analyze_data_refs): Update call accordingly.
11118         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
11119         (vectorizable_mask_load_store): Likewise.  Also record the
11120         offset dt and vectype in the gather_scatter_info.
11121         (vectorizable_store): Likewise.
11122         (vectorizable_load): Likewise.
11124 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
11126         * tree-vect-stmts.c (vect_model_store_cost): For non-SLP
11127         strided groups, use the cost of N scalar accesses instead
11128         of ncopies vector accesses.
11129         (vect_model_load_cost): Likewise.
11131 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
11133         * tree-vect-stmts.c (vect_cost_group_size): Delete.
11134         (vect_model_store_cost): Avoid calling it.  Use first_stmt_p
11135         variable to indicate when once-per-group costs are being used.
11136         (vect_model_load_cost): Likewise.  Fix comment and misindented code.
11138 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
11140         * tree-vect-stmts.c (vectorizable_load): Remove unnecessary
11141         peeling-for-gaps condition.
11143 2016-07-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11145         * config/s390/s390.c (s390_expand_vec_init): Force initializer
11146         element to register if it doesn't match general_operand.
11148 2016-07-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
11149             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11151         * config/rs6000/rs6000-protos.h (rs6000_split_signbit): New
11152         prototype.
11153         * config/rs6000/rs6000.c (rs6000_split_signbit): New function.
11154         * config/rs6000/rs6000.md (UNSPEC_SIGNBIT): New constant.
11155         (SIGNBIT): New mode iterator.
11156         (Fsignbit): New mode attribute.
11157         (signbit<mode>2): Change operand1 to match FLOAT128 instead of
11158         IBM128; dispatch to gen_signbit{kf,tf}2_dm for __float128
11159         when direct moves are available.
11160         (signbit<mode>2_dm): New define_insn_and_split).
11161         (signbit<mode>2_dm2): New define_insn.
11163 2016-07-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11165         PR rtl-optimization/71594
11166         * ifcvt.c (noce_convert_multiple_sets): Wrap new_val or old_val
11167         into subregs of appropriate mode before trying to emit a conditional
11168         move.
11170 2016-07-05  Jan Hubicka  <jh@suse.cz>
11172         * tree-scalar-evolution.c (iv_can_overflow_p): New function.
11173         (simple_iv): Use it.
11175 2016-07-05  Jan Hubicka  <jh@suse.cz>
11177         * tree-ssa-loop-niter.c (nowrap_type_p): Use ANY_INTEGRAL_TYPE_P.
11179 2016-07-05  Jiong Wang  <jiong.wang@arm.com>
11181         * lra-constraints.c (process_alt_operands): Don't add spilling cost for
11182         "offmemok".
11184 2016-07-05  Jan Hubicka  <jh@suse.cz>
11186         * tree-scalar-evoluiton.c (simple_iv): Use nowrap_type to check if
11187         IV can overflow.
11189 2016-07-05  Richard Biener  <rguenther@suse.de>
11191         * gimple-ssa-split-paths.c (find_block_to_duplicate_for_splitting_pa):
11192         Handle empty else block.
11193         (is_feasible_trace): Likewise.
11194         (split_paths): Likewise.
11196 2016-07-05  Richard Biener  <rguenther@suse.de>
11198         * tree-loop-distribution.c (distribute_loop): Fix issue with
11199         the cost model loop.
11201 2016-07-05  Christophe Lyon  <christophe.lyon@linaro.org>
11203         * config/arm/neon-testgen.ml: Delete.
11204         * config/arm/neon.ml: Delete.
11206 2016-07-04  Jakub Jelinek  <jakub@redhat.com>
11208         PR c++/71739
11209         * tree.c (attribute_value_equal): Use get_attribute_name instead of
11210         directly using TREE_PURPOSE.
11212 2016-07-04  Jiong Wang  <jiong.wang@arm.com>
11214         * config/aarch64/aarch64.h: Rename "ARMv8.1" to "ARMv8.1-A".
11215         * config/aarch64/aarch64_neon.h: Likewise.
11216         * config/aarch64/arm_neon.h: Likewise.
11217         * config/aarch64/atomics.md: Likewise.
11218         * config/aarch64/aarch64-simd-builtins.def: Likewise.
11219         * doc/invoke.texi: Likewise.
11221 2016-07-04  Dominik Vogt  <vogt@linux.vnet.ibm.com>
11223         * config/s390/s390.md: Add "z13" cpu_facility.
11224         ("*mov<mode>cc"): Add support for z13 instructions lochi and locghi.
11225         * config/s390/predicates.md ("loc_operand"): New predicate for "load on
11226         condition" type instructions.
11228 2016-07-04  Dominik Vogt  <vogt@linux.vnet.ibm.com>
11229             Jeff Law  <law@redhat.com>
11231         * explow.c (allocate_dynamic_stack_space): Simplify knowing that
11232         MUST_ALIGN was always true and extra_align ist always BITS_PER_UNIT.
11234 2016-07-04  Yuri Rumyantsev  <ysrumyan@gmail.com>
11236         * config/i386/i386.c (ix86_expand_vec_perm): Add handle one-operand
11237         permutation for TARGET_AVX512F.
11238         (ix86_expand_vec_one_operand_perm_avx512): New function.
11239         (expand_vec_perm_1): Invoke introduced function.
11240         * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
11241         it may be not valid after vectorization.
11243 2016-07-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11245         PR target/63874
11246         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix
11247         typo in comment.  Only force to memory if it is a weak
11248         external reference.
11250 2016-07-04  Matthew Wahab  <matthew.wahab@arm.com>
11251             Jiong Wang  <jiong.wang@arm.com>
11253         * config/aarch64/aarch64-arches.def: Add "armv8.2-a".
11254         * config/aarch64/aarch64.h (AARCH64_FL_V8_2): New.
11255         (AARCH64_FL_F16): New.
11256         (AARCH64_FL_FOR_ARCH8_2): New.
11257         (AARCH64_ISA_8_2): New.
11258         (AARCH64_ISA_F16): New.
11259         (TARGET_FP_F16INST): New.
11260         (TARGET_SIMD_F16INST): New.
11261         * config/aarch64/aarch64-option-extensions.def ("fp16"): New entry.
11262         ("fp"): Disabling "fp" also disables "fp16".
11263         * config/aarch64/aarch64-c.c (arch64_update_cpp_builtins):
11264         Conditionally define __ARM_FEATURE_FP16_SCALAR_ARITHMETIC
11265         and __ARM_FEATURE_FP16_VECTOR_ARITHMETIC.
11266         * doc/invoke.texi (AArch64 Options): Document "armv8.2-a" and "fp16".
11268 2016-07-04  Jan Beulich  <jbeulich@suse.com>
11270         * gcc.c (default_compilers["@c-header"]): Conditionalize "-o".
11272 2016-07-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
11274         PR target/71720
11275         * config/rs6000/vsx.md (vsx_splat_v4sf_internal): When splitting
11276         the insns, use an insn form that does not adjust the offset on
11277         little endian systems.
11279 2016-07-01  Jan Beulich  <jbeulich@suse.com>
11281         * varasm.c (get_variable_section): Validate initializer in
11282         named .bss-like sections.
11284 2016-07-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
11286         * config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
11287         Exchange the order of the second and third operands in the vpermr
11288         instruction tmeplate.
11290 2016-07-01  Peter Bergner  <bergner@vnet.ibm.com>
11292         PR target/71698
11293         * config/rs6000/rs6000.c (rs6000_secondary_reload_simple_move):
11294         Disallow TDmode values.
11296 2016-07-01  Alan Modra  <amodra@gmail.com>
11298         PR rtl-optimization/71709
11299         * ira-lives.c (find_call_crossed_cheap_reg): Exit loop on arg reg
11300         being set, not referenced.
11302 2016-07-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
11304         PR tree-optimization/70729
11305         * tree-vectorizer.c (adjust_simduid_builtins): Nullify safelen field
11306         of loop since it can be not valid after transformation.
11308 2016-07-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11310         * config/arm/arm.c (thumb_reload_in_hi): Delete.
11311         * config/arm/arm-protos.h (thumb_reload_in_hi): Delete prototype.
11313 2016-07-01  Eric Botcazou  <ebotcazou@adacore.com>
11315         * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
11316         for NULL decl.
11318 2016-06-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
11320         PR target/71677
11321         * config/rs6000/constraints.md (wY constraint): New constraint to
11322         match the requirements for the LXSD and STXSD instructions.
11323         * config/rs6000/predicates.md (offsettable_mem_14bit_operand): New
11324         predicate to match the requirements for the LXSD and STXSD
11325         instructions.
11326         * config/rs6000/rs6000.md (mov<mode>_hardfloat32, FMOVE64 case):
11327         Use constaint wY for LXSD/STXSD instructions instead of 'o' or 'Y'
11328         to make sure that the bottom 2 bits of offset are 0, the address
11329         form is offsettable, and no updating is done in the address mode.
11330         (mov<mode>_hardfloat64, FMOVE64 case): Likewise.
11331         (movdi_internal32): Likewise
11332         (movdi_internal64): Likewise.
11334 2016-06-30  Jakub Jelinek  <jakub@redhat.com>
11336         PR tree-optimization/71707
11337         * tree-ssa-strlen.c (get_stridx_plus_constant): Handle already present
11338         strinfo even for ADDR_EXPR ptr.
11340 2016-06-30  Kelvin Nilsen  <kelvin@gcc.gnu.org>
11342         * config/rs6000/altivec.md (darn_32): Change the condition to
11343         TARGET_P9_MISC instead of TARGET_MODULO.
11344         (darn_raw): Replace TARGET_MODULO with TARGET_P9_MISC in the
11345         condition expression.
11346         (darn): Replace TARGET_MODULO with TARGET_P9_MISC in the
11347         condition expression.
11348         * config/rs6000/dfp.md (UNSPEC_DTSTSFI): New unspec constant.
11349         (DFP_TEST): New code iterator.
11350         (dfptstsfi_<code>_mode>): New define_expand.
11351         (*dfp_sgnfcnc_<mode>): New define_insn.
11352         * config/rs6000/rs6000-builtin.def (BU_P9_MISC_0): Move this macro
11353         definition next to BU_P9_MISC_1 definition and change the MASK
11354         value to RS6000_BTM_P9_MISC.
11355         (BU_P9_MISC_1): Change the MASK value to RS6000_BTM_P9_MISC.
11356         (BU_P9_64BIT_MISC_0): Likewise.
11357         (BU_P9_DFP_MISC_0): New macro definition.
11358         (BU_P9_DFP_MISC_1): New macro definition.
11359         (BU_P9_DFP_MISC_2): New macro definition.
11360         (BU_P9_DFP_OVERLOAD_1): New macro definition.
11361         (BU_P9_DFP_OVERLOAD_2): New macro definition.
11362         (BU_P9_DFP_OVERLOAD_3): New macro definition.
11363         (TSTSFI_LT_DD): New BU_P9_DFP_MISC_2.
11364         (TSTSFI_LT_TD): Likewise.
11365         (TSTSFI_EQ_DD): Likewise.
11366         (TSTSFI_EQ_TD): Likewise.
11367         (TSTSFI_GT_DD): Likewise.
11368         (TSTSFI_GT_TD): Likewise.
11369         (TSTSFI_OV_DD): Likewise.
11370         (TSTSFI_OV_TD): Likewise.
11371         (TSTSFI_LT): New BU_P9_DFP_OVERLOAD_2.
11372         (TSTSFI_LT_DD): Likewise.
11373         (TSTSFI_LT_TD): Likewise.
11374         (TSTSFI_EQ): Likewise.
11375         (TSTSFI_EQ_DD): Likewise.
11376         (TSTSFI_EQ_TD): Likewise.
11377         (TSTSFI_GT): Likewise.
11378         (TSTSFI_GT_DD): Likewise.
11379         (TSTSFI_GT_TD): Likewise.
11380         (TSTSFI_OV): Likewise.
11381         (TSTSFI_OV_DD): Likewise.
11382         (TSTSFI_OV_TD): Likewise.
11383         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11384         overloaded test significance functions.
11385         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
11386         OPTION_MASK_P9_MISC into the representation of this mask.
11387         (POWERPC_MASKS): Add OPTION_MASK_P9_MISC into the representation
11388         of this mask.
11389         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Set the
11390         RS6000_BTM_P9_MISC flag in the return value if TARGET_P9_MISC is
11391         non-zero.
11392         (rs6000_expand_binop_builtin): Enforce that argument 0 of the exp
11393         argument is a 6-bit unsigned literal value if the icode argument
11394         represents a DFP test significance built-in call.
11395         (rs6000_invalid_builtin): Add support for the RS6000_BTM_P9_MISC
11396         flag used independently and in combination with the
11397         RS6000_BTM_64BIT flag.
11398         (rs6000_opt_masks): Add entry for power9-misc command-line option.
11399         (rs6000_builtin_mask_names): Add entry for power9-misc
11400         command-line option.
11401         * config/rs6000/rs6000.h: Redefine TARGET_P9_MISC as 0 if
11402         HAVE_AS_POWER9 is not a defined macro.  Define MASK_P9_MISC and
11403         RS6000_BTM_P9_MISC macros.
11404         * config/rs6000/rs6000.opt: Add support for the -mpower9-misc
11405         option and change the description of the -mpower9-vector option to
11406         enable only vector instructions, removing its erroneously claimed
11407         support for scalar instructions.
11408         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
11409         the ISA 3.0 digital floating point test significance built-in
11410         functions.
11412 2016-06-30  Wilco Dijkstra  <wdijkstr@arm.com>
11414         * config/aarch64/aarch64.c (cortexa35_tunings):
11415         Enable AES fusion.  Use cortexa57_branch_cost.
11416         (cortexa53_tunings): Use cortexa57_branch_cost.
11417         (cortexa72_tunings): Use cortexa57_branch_cost.
11418         Use AUTOPREFETCHER_WEAK.
11419         (cortexa73_tunings): Use cortexa57_branch_cost.
11421 2016-06-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11422             James Greenhalgh  <james.greenhalgh@arm.com>
11424         * config/aarch64/arm_neon.h (vcopyq_lane_f32, vcopyq_lane_f64,
11425         vcopyq_lane_p8, vcopyq_lane_p16, vcopyq_lane_s8, vcopyq_lane_s16,
11426         vcopyq_lane_s32, vcopyq_lane_s64, vcopyq_lane_u8, vcopyq_lane_u16,
11427         vcopyq_lane_u32, vcopyq_lane_u64): Reimplement in C.
11428         (vcopy_lane_f32, vcopy_lane_f64, vcopy_lane_p8, vcopy_lane_p16,
11429         vcopy_lane_s8, vcopy_lane_s16, vcopy_lane_s32, vcopy_lane_s64,
11430         vcopy_lane_u8, vcopy_lane_u16, vcopy_lane_u32, vcopy_lane_u64,
11431         vcopy_laneq_f32, vcopy_laneq_f64, vcopy_laneq_p8, vcopy_laneq_p16,
11432         vcopy_laneq_s8, vcopy_laneq_s16, vcopy_laneq_s32, vcopy_laneq_s64,
11433         vcopy_laneq_u8, vcopy_laneq_u16, vcopy_laneq_u32, vcopy_laneq_u64,
11434         vcopyq_laneq_f32, vcopyq_laneq_f64, vcopyq_laneq_p8, vcopyq_laneq_p16,
11435         vcopyq_laneq_s8, vcopyq_laneq_s16, vcopyq_laneq_s32, vcopyq_laneq_s64,
11436         vcopyq_laneq_u8, vcopyq_laneq_u16, vcopyq_laneq_u32, vcopyq_laneq_u64):
11437         New intrinsics.
11439 2016-06-30  James Greenhalgh  <james.greenhalgh@arm.com>
11440             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11442         * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
11443         New define_insn.
11444         (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Likewise.
11446 2016-06-30  David Malcolm  <dmalcolm@redhat.com>
11448         PR driver/71651
11449         * gcc.c (driver::build_option_suggestions): Pass "option" to
11450         add_misspelling_candidates.
11451         * opts-common.c (add_misspelling_candidates): Add "option" param;
11452         use it to avoid adding negated forms for options marked with
11453         RejectNegative.
11454         * opts.h (add_misspelling_candidates): Add "option" param.
11456 2016-06-30  Jakub Jelinek  <jakub@redhat.com>
11458         PR middle-end/71693
11459         * fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
11460         TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
11461         first when permuting bitwise operation with rotate.  Cast
11462         TREE_OPERAND (arg0, 0) to type when cancelling two rotations.
11464 2016-06-29  David Malcolm  <dmalcolm@redhat.com>
11466         * opts.c (handle_param): Use find_param_fuzzy to offer suggestions
11467         for misspelled param names.
11468         * params.c: Include spellcheck.h.
11469         (find_param_fuzzy): New function.
11470         * params.h (find_param_fuzzy): New prototype.
11471         * spellcheck.c (struct edit_distance_traits<const char *>): Move to...
11472         * spellcheck.h (struct edit_distance_traits<const char *>):
11473         ...here.
11475 2016-06-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
11477         * config/rs6000/predicates.md (const_0_to_7_operand): New
11478         predicate, recognize 0..7.
11479         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
11480         support for doing extracts from V16QImode, V8HImode, V4SImode
11481         under ISA 3.0.
11482         * config/rs6000/vsx.md (VSX_EXTRACT_I): Mode iterator for ISA 3.0
11483         vector extract support.
11484         (VSX_EXTRACT_PREDICATE): Mode attribute to validate element number
11485         for ISA 3.0 vector extract.
11486         (VSX_EX): Constraints to use for ISA 3.0 vector extract.
11487         (vsx_extract_<mode>, VSX_EXTRACT_I): Add support for doing
11488         extracts of a constant element number from small integer vectors
11489         on 64-bit ISA 3.0 systems.
11490         (vsx_extract_<mode>_di): Likewise.
11491         * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): New target macro to
11492         say when we can do ISA 3.0 vector extracts.
11493         * config/rs6000/rs6000.md (stfiwx): Allow DImode in Altivec
11494         registers, using the stxsiwx instruction.
11496 2016-06-29  Jim Wilson  <jim.wilson@linaro.org>
11498         * config/aarch64/aarch64-cores.def (qdf24xx): Use qdf24xx tuning.
11499         * config/aarch64/aarch64.c (qdf24xx_addrcost_table,
11500         qdf24xx_regmove_cost, qdf24xx_tunings): New.
11501         * config/arm/aarch64-cost-tables.h (qdf24xx_extra_costs): New.
11502         * config/arm/arm-cores.def (qdf24xx): Use qdf24xx tuning.
11503         * config/arm/arm.c (arm_qdf24xx_tune): New.
11505 2016-06-29  Wilco Dijkstra  <wdijkstr@arm.com>
11507         * config/aarch64/aarch64.c (cortexa53_tunings):
11508         Increase loop alignment to 8.  Set function alignment to 16.
11509         (cortexa35_tunings): Likewise.
11510         (cortexa57_tunings): Increase loop alignment to 8.
11511         (cortexa72_tunings): Likewise.
11512         (cortexa73_tunings): Likewise.
11514 2016-06-29  Matthew Wahab  <matthew.wahab@arm.com>
11516         * doc/sourcebuild.texi (Effective-Target keywords): Add entries
11517         for arm_fp16_ok and arm_fp16_hw.
11518         (Add Options): Add entries for arm_fp16, arm_fp16_ieee and
11519         arm_fp16_alternative.
11521 2016-06-29  Ilya Enkovich  <ilya.enkovich@intel.com>
11523         PR tree-optimization/71655
11524         * tree-vect-stmts.c (vectorizable_comparison): Swap definition
11525         types when swapping operands.
11527 2016-06-29  Martin Liska  <mliska@suse.cz>
11529         PR middle-end/71585
11530         * common.opt (flag_stack_protect): Mark the flag as optimization flag.
11531         * ipa-inline-transform.c (inline_call): Remove unnecessary call
11532         of build_optimization_node.
11534 2016-06-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
11536         PR tree-optimization/70729
11537         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Consider memory reference as
11538         independent in loops having positive safelen value.
11539         * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
11540         it may be not valid after vectorization.
11542 2016-06-29  Jakub Jelinek  <jakub@redhat.com>
11544         PR tree-optimization/71625
11545         * tree-ssa-strlen.c (get_addr_stridx): Add PTR argument.  Assume list
11546         is sorted by ascending list->offset.  If PTR is non-NULL and there is
11547         previous strinfo, call get_stridx_plus_constant.
11548         (get_stridx): Pass exp as second argument to get_addr_stridx.
11549         (addr_stridxptr): Add missing list = list->next, so that there can be
11550         more than one entries in the list.  Bump limit from 16 to 32.  Ensure
11551         the list is sorted by ascending list->offset.
11552         (get_stridx_plus_constant): Adjust so that it can be also called with
11553         ADDR_EXPR instead of SSA_NAME as PTR.
11554         (handle_char_store): Pass NULL_TREE as second argument to
11555         get_addr_stridx.
11557 2016-06-29  Richard Biener  <rguenther@suse.de>
11559         PR rtl-optimization/68961
11560         * simplify-rtx.c (simplify_subreg): Handle VEC_CONCAT like CONCAT.
11562 2016-06-29  Richard Biener  <rguenther@suse.de>
11564         PR middle-end/71002
11565         * alias.c (component_uses_parent_alias_set_from): Handle
11566         type punning through union accesses by using the union alias set.
11567         * gimple.c (gimple_get_alias_set): Remove union type punning case.
11569 2016-07-29  Richard Biener  <rguenther@suse.de>
11571         * match.pd ((T)(T2)x -> (T)x): Remove restriction on final
11572         precision not matching mode precision.
11574 2016-06-28  John David Anglin  <danglin@gcc.gnu.org>
11576         * config/pa/pa.md (call_symref_64bit_post_reload): Don't call
11577         pa_output_arg_descriptor.
11578         (call_val_symref_64bit_post_reload): Likewise.
11579         (call_val_powf_64bit_post_reload): Likewise.
11580         (sibcall_internal_symref_64bit): Likewise.
11581         (sibcall_value_internal_symref_64bit): Likewise.
11583 2016-06-28  Jakub Jelinek  <jakub@redhat.com>
11585         PR middle-end/71626
11586         * config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
11587         a constant, force its SUBREG_REG into memory or register instead
11588         of whole op1.
11590 2016-06-28  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
11592         PR target/58655
11593         * config/avr/avr.opt (-mfract-convert-truncate): Update description.
11594         * doc/invoke.texi (AVR Options): Document it.
11596 2016-06-28  Walter Lee  <walt@tilera.com>
11598         * config/tilegx/linux.h: Do not include arch/icache.h
11599         (CLEAR_INSN_CACHE): Provide inlined definition directly.
11600         * config/tilepro/linux.h: Do not include arch/icache.h
11601         (CLEAR_INSN_CACHE): Provide inlined definition directly.
11603 2016-06-28  Wilco Dijkstra  <wdijkstr@arm.com>
11605         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adjust bitnumbering
11606         for big-endian BIT_FIELD_REF.
11608 2016-06-28  Pat Haugen  <pthaugen@us.ibm.com>
11610         * config/rs6000/rs6000.md ('type' attribute): Add htmsimple/dfp types.
11611         ('size' attribute): Add '128'.
11612         Include power9.md.
11613         (*mov<mode>_hardfloat32, *mov<mode>_hardfloat64, *movdi_internal32,
11614         *movdi_internal64, *movdf_update1): Set size attribute to '64'.
11615         (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3, sqrt<mode>2,
11616         copysign<mode>3, neg<mode>2_hw, abs<mode>2_hw, *nabs<mode>2_hw,
11617         *fma<mode>4_hw, *fms<mode>4_hw, *nfma<mode>4_hw, *nfms<mode>4_hw,
11618         extend<SFDF:mode><IEEE128:mode>2_hw, trunc<mode>df2_hw,
11619         *xscvqp<su>wz_<mode>, *xscvqp<su>dz_<mode>, *xscv<su>dqp_<mode>,
11620         *trunc<mode>df2_odd): Set size attribute to '128'.
11621         (*cmp<mode>_hw): Change type to veccmp and set size attribute to '128'.
11622         * config/rs6000/power6.md (power6-fp): Include dfp type.
11623         * config/rs6000/power7.md (power7-fp): Likewise.
11624         * config/rs6000/power8.md (power8-fp): Likewise.
11625         * config/rs6000/power9.md: New file.
11626         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power9.md.
11627         * config/rs6000/htm.md (*tabort, *tabort<wd>c, *tabort<wd>ci,
11628         *trechkpt, *treclaim, *tsr, *ttest): Change type attribute to
11629         htmsimple.
11630         * config/rs6000/dfp.md (extendsddd2, truncddsd2, extendddtd2,
11631         trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
11632         divtd3, *cmpdd_internal1, *cmptd_internal1, floatdidd2, floatditd2,
11633         ftruncdd2, fixdddi2, ftrunctd2, fixtddi2, dfp_ddedpd_<mode>,
11634         dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>, dfp_dscli_<mode>,
11635         dfp_dscri_<mode>): Change type attribute to dfp.
11636         * config/rs6000/crypto.md (crypto_vshasigma<CR_char>): Change type
11637         attribute to vecsimple.
11638         * config/rs6000/rs6000.c (power9_cost): Update costs, cache size
11639         and prefetch streams.
11640         (rs6000_option_override_internal): Remove temporary code setting
11641         tuning to power8.  Don't set rs6000_sched_groups for power9.
11642         (last_scheduled_insn): Change to rtx_insn *.
11643         (divide_cnt, vec_load_pendulum): New variables.
11644         (rs6000_adjust_cost): Add Power9 to test for store->load separation.
11645         (rs6000_issue_rate): Set issue rate for Power9.
11646         (is_power9_pairable_vec_type): New.
11647         (power9_sched_reorder2): New.
11648         (rs6000_sched_reorder2): Call new function for Power9 specific
11649         reordering.
11650         (insn_must_be_first_in_group): Remove Power9.
11651         (insn_must_be_last_in_group): Likewise.
11652         (force_new_group): Likewise.
11653         (rs6000_sched_init): Fix initialization of last_scheduled_insn.
11654         Initialize divide_cnt/vec_load_pendulum.
11655         (_rs6000_sched_context, rs6000_init_sched_context,
11656         rs6000_set_sched_context): Handle context save/restore of new
11657         variables.
11659 2016-06-28  Richard Biener  <rguenther@suse.de>
11661         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
11662         Properly handle DECL_BIT_FIELD_REPRESENTATIVE occuring as
11663         COMPONENT_REF operand.
11664         (nonoverlapping_component_refs_p): Likewise.
11665         * stor-layout.c (start_bitfield_representative): Mark
11666         DECL_BIT_FIELD_REPRESENTATIVE as DECL_NONADDRESSABLE_P.
11668 2016-06-28  Jakub Jelinek  <jakub@redhat.com>
11670         * Makefile.in: Don't cat ../stage_current if it does not exist.
11672         * doc/extend.texi (__builtin_add_overflow_p): Clarify behavior when
11673         last argument is a bit-field.
11675         PR rtl-optimization/71673
11676         * internal-fn.c (expand_arith_overflow_result_store): Use
11677         OPTAB_LIB_WIDEN instead of OPTAB_DIRECT as last argument to
11678         expand_simple_binop.
11680         PR middle-end/66867
11681         * builtins.c (expand_ifn_atomic_compare_exchange_into_call,
11682         expand_ifn_atomic_compare_exchange): New functions.
11683         * internal-fn.c (expand_ATOMIC_COMPARE_EXCHANGE): New function.
11684         * tree.h (build_call_expr_internal_loc): Rename to ...
11685         (build_call_expr_internal_loc_array): ... this.  Fix up type of
11686         last argument.
11687         * internal-fn.def (ATOMIC_COMPARE_EXCHANGE): New internal fn.
11688         * predict.c (expr_expected_value_1): Handle IMAGPART_EXPR of
11689         ATOMIC_COMPARE_EXCHANGE result.
11690         * builtins.h (expand_ifn_atomic_compare_exchange): New prototype.
11691         * gimple-fold.h (optimize_atomic_compare_exchange_p,
11692         fold_builtin_atomic_compare_exchange): New prototypes.
11693         * gimple-fold.c (optimize_atomic_compare_exchange_p,
11694         fold_builtin_atomic_compare_exchange): New functions..
11695         * tree-ssa.c (execute_update_addresses_taken): If
11696         optimize_atomic_compare_exchange_p, ignore &var in 2nd argument
11697         of call when finding addressable vars, and if such var becomes
11698         non-addressable, call fold_builtin_atomic_compare_exchange.
11700 2016-06-27  Segher Boessenkool  <segher@kernel.crashing.org>
11702         PR target/71670
11703         * config/rs6000/rs6000.md (ashdi3_extswsli_dot): Use
11704         gen_ashdi3_extswsli_dot2 instead of gen_ashdi3_extswsli_dot.
11706 2016-06-27  Pat Haugen  <pthaugen@us.ibm.com>
11708         * config/rs6000/rs6000.md ('type' attribute): Add
11709         veclogical,veccmpfx,vecexts,vecmove insn types.
11710         (*abs<mode>2_fpr, *nabs<mode>2_fpr, *neg<mode>2_fpr, *extendsfdf2_fpr,
11711         copysign<mode>3_fcpsgn, trunc<mode>df2_internal1, neg<mode>2_internal,
11712         p8_fmrgow_<mode>, pack<mode>): Change type to fpsimple.
11713         (*xxsel<mode>, copysign<mode>3_hard, neg<mode>2_hw, abs<mode>2_hw,
11714         *nabs<mode>2_hw): Change type to vecmove.
11715         (*and<mode>3_internal, *bool<mode>3_internal, *boolc<mode>3_internal,
11716         *boolcc<mode>3_internal, *eqv<mode>3_internal,
11717         *one_cmpl<mode>3_internal, *ieee_128bit_vsx_neg<mode>2_internal,
11718         *ieee_128bit_vsx_abs<mode>2_internal,
11719         *ieee_128bit_vsx_nabs<mode>2_internal, extendkftf2, trunctfkf2,
11720         *ieee128_mfvsrd_64bit, *ieee128_mfvsrd_32bit, *ieee128_mtvsrd_64bit,
11721         *ieee128_mtvsrd_32bit): Change type to veclogical.
11722         (mov<mode>_hardfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
11723         *movdi_internal32, *movdi_internal64): Update insn types.
11724         * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
11725         vsx_extract_<mode>): Change type to veclogical.
11726         (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns): Change type to vecmove.
11727         (vsx_sign_extend_qi_<mode>, *vsx_sign_extend_hi_<mode>,
11728         *vsx_sign_extend_si_v2di): Change type to vecexts.
11729         * config/rs6000/altivec.md (*altivec_mov<mode>, *altivec_movti): Change
11730         type to veclogical.
11731         (*altivec_eq<mode>, *altivec_gt<mode>, *altivec_gtu<mode>,
11732         *altivec_vcmpequ<VI_char>_p, *altivec_vcmpgts<VI_char>_p,
11733         *altivec_vcmpgtu<VI_char>_p): Change type to veccmpfx.
11734         (*altivec_vsel<mode>, *altivec_vsel<mode>_uns): Change type to vecmove.
11735         * config/rs6000/dfp.md (*negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
11736         negtd2, *abstd2_fpr, *nabstd2_fpr): Change type to fpsimple.
11737         * config/rs6000/40x.md (ppc405-float): Add fpsimple.
11738         * config/rs6000/440.md (ppc440-fp): Add fpsimple.
11739         * config/rs6000/476.md (ppc476-fp): Add fpsimple.
11740         * config/rs6000/601.md (ppc601-fp): Add fpsimple.
11741         * config/rs6000/603.md (ppc603-fp): Add fpsimple.
11742         * config/rs6000/6xx.md (ppc604-fp): Add fpsimple.
11743         * config/rs6000/7xx.md (ppc750-fp): Add fpsimple.
11744         (ppc7400-vecsimple): Add veclogical, vecmove, veccmpfx.
11745         * config/rs6000/7450.md (ppc7450-fp): Add fpsimple.
11746         (ppc7450-vecsimple): Add veclogical, vecmove.
11747         (ppc7450-veccmp): Add veccmpfx.
11748         * config/rs6000/8540.md (ppc8540_simple_vector): Add veclogical,
11749         vecmove.
11750         (ppc8540_vector_compare): Add veccmpfx.
11751         * config/rs6000/a2.md (ppca2-fp): Add fpsimple.
11752         * config/rs6000/cell.md (cell-fp): Add fpsimple.
11753         (cell-vecsimple): Add veclogical, vecmove.
11754         (cell-veccmp): Add veccmpfx.
11755         * config/rs6000/e300c2c3.md (ppce300c3_fp): Add fpsimple.
11756         * config/rs6000/e6500.md (e6500_vecsimple): Add veclogical, vecmove,
11757         veccmpfx.
11758         * config/rs6000/mpc.md (mpccore-fp): Add fpsimple.
11759         * config/rs6000/power4.md (power4-fp): Add fpsimple.
11760         (power4-vecsimple): Add veclogical, vecmove.
11761         (power4-veccmp): Add veccmpfx.
11762         * config/rs6000/power5.md (power5-fp): Add fpsimple.
11763         * config/rs6000/power6.md (power6-fp): Add fpsimple.
11764         (power6-vecsimple): Add veclogical, vecmove.
11765         (power6-veccmp): Add veccmpfx.
11766         * config/rs6000/power7.md (power7-fp): Add fpsimple.
11767         (power7-vecsimple): Add veclogical, vecmove, veccmpfx.
11768         * config/rs6000/power8.md (power8-fp): Add fpsimple.
11769         (power8-vecsimple): Add veclogical, vecmove, veccmpfx.
11770         * config/rs6000/rs64.md (rs64a-fp): Add fpsimple.
11771         * config/rs6000/titan.md (titan_fp): Add fpsimple.
11772         * config/rs6000/xfpu.md (fp-default, fp-addsub-s, fp-addsub-d): Add
11773         fpsimple.
11774         * config/rs6000/rs6000.c (rs6000_adjust_cost): Add TYPE_FPSIMPLE.
11776 2016-06-27  Peter Bergner  <bergner@vnet.ibm.com>
11778         PR target/71656
11779         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
11780         OPTION_MASK_P9_DFORM_VECTOR.
11781         * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
11782         disable -mpower9-dform-vector when using reload.
11783         (quad_address_p): Remove 'gpr_p' argument and all associated code.
11784         New 'strict' argument.  Update all callers.  Add strict addressing
11785         support.
11786         (rs6000_legitimate_offset_address_p): Remove call to
11787         virtual_stack_registers_memory_p.
11788         (rs6000_legitimize_reload_address): Add quad address support.
11789         (rs6000_legitimate_address_p): Move call to quad_address_p above
11790         call to virtual_stack_registers_memory_p.  Adjust quad_address_p args
11791         to account for new strict usage.
11792         (rs6000_output_move_128bit): Adjust quad_address_p args to account
11793         for new strict usage.
11794         * config/rs6000/predicates.md (quad_memory_operand): Likewise.
11796 2016-06-26  Uros Bizjak  <ubizjak@gmail.com>
11798         PR target/70902
11799         PR target/71453
11800         PR target/71555
11801         PR target/71596
11802         PR target/71657
11803         * config/i386/i386.c (ix86_spill_class): Disable condition to
11804         always return NO_REGS.
11806 2016-06-26  Jan Hubicka  <hubicka@ucw.cz>
11808         * predict.c: Include gimple-pretty-print.h
11809         (predicted_by_loop_heuristics_p): Check also
11810         PRED_LOOP_EXIT_WITH_RECURSION
11811         (predict_loops): Find self recursive calls and use special purpose
11812         predictors for them; dump log about decisions.
11813         (pass_profile::execute): Dump info about #of iterations.
11814         * predict.def (PRED_LOOP_EXIT_WITH_RECURSION,
11815         (PRED_LOOP_GUARD_WITH_RECURSION): New predictors.
11817 2016-06-26  John David Anglin  <danglin@gcc.gnu.org>
11819         * config/pa/pa.c (pa_output_indirect_call): Rework to combine
11820         output_asm_insn calls and shorten long lines.  Output .CALL
11821         argument descriptor using pa_output_arg_descriptor.  Add various
11822         inline $$dyncall and other optimizations.
11823         (pa_attr_length_indirect_call): Adjust ordering and lengths.
11825 2016-06-25  Jakub Jelinek  <jakub@redhat.com>
11827         PR tree-optimization/71643
11828         * tree-ssa-tail-merge.c (find_clusters_1): Ignore basic blocks with
11829         EH preds.
11831         * tree-ssa-tail-merge.c (deps_ok_for_redirect_from_bb_to_bb): Don't
11832         leak a bitmap if dep_bb is NULL.
11834         PR tree-optimization/71631
11835         * tree-ssa-reassoc.c (reassociate_bb): Pass true as last argument
11836         to rewrite_expr_tree even if negate_result, move new_lhs var
11837         declaration and initialization earlier, for powi_result set afterwards
11838         new_lhs to lhs.  For negate_result, use new_lhs instead of tmp
11839         if new_lhs != lhs, and don't shadow gsi var.
11841 2016-06-24  Jan Hubicka  <hubicka@ucw.cz>
11843         * predict.c (predict_paths_leading_to, predict_paths_leading_to_edge):
11844         Add in_loop parameter.
11845         (predict_loops): Add loop guard heuristics.
11846         * predict.def (PRED_LOOP_GUARD): New heuristics.
11848 2016-06-24  Jan Hubicka  <hubicka@ucw.cz>
11850         * predict.c: Include ipa-utils.h
11851         (tree_bb_level_prediction): Predict recursive calls.
11852         (tree_estimate_probability_bb): Skip inexpensive calls for call
11853         predictor.
11854         * predict.def (PRED_RECURSIVE_CALL): New.
11856 2016-06-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11858         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
11859         (BU_FLOAT128_1): Likewise.
11860         (FABSQ): Likewise.
11861         (COPYSIGNQ): Likewise.
11862         (RS6000_BUILTIN_NANQ): Likewise.
11863         (RS6000_BUILTIN_NANSQ): Likewise.
11864         (RS6000_BUILTIN_INFQ): Likewise.
11865         (RS6000_BUILTIN_HUGE_VALQ): Likewise.
11866         * config/rs6000/rs6000.c (rs6000_fold_builtin): New prototype.
11867         (TARGET_FOLD_BUILTIN): New #define.
11868         (rs6000_builtin_mask_calculate): Add TARGET_FLOAT128 entry.
11869         (rs6000_invalid_builtin): Add handling for RS6000_BTM_FLOAT128.
11870         (rs6000_fold_builtin): New target hook implementation, handling
11871         folding of 128-bit NaNs and infinities.
11872         (rs6000_init_builtins): Initialize const_str_type_node; ensure all
11873         entries are filled in to avoid problems during bootstrap
11874         self-test; define builtins for 128-bit NaNs and infinities.
11875         (rs6000_opt_mask): Add entry for float128.
11876         * config/rs6000/rs6000.h (RS6000_BTM_FLOAT128): New #define.
11877         (RS6000_BTM_COMMON): Include RS6000_BTM_FLOAT128.
11878         (rs6000_builtin_type_index): Add RS6000_BTI_const_str.
11879         (const_str_type_node): New #define.
11880         * config/rs6000/rs6000.md (copysign<mode>3 for IEEE128): Convert
11881         to a define_expand that dispatches to either copysign<mode>3_soft
11882         or copysign<mode>3_hard.
11883         (copysign<mode>3_hard): Rename from copysign<mode>3.
11884         (copysign<mode>3_soft): New define_insn.
11885         * doc/extend.texi: Document new builtins.
11887 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
11889         * cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using
11890         PRIu64 instead of lu.
11892 2016-06-24  Eric Botcazou  <ebotcazou@adacore.com>
11894         PR debug/71642
11895         * tree-inline.c (remap_decl): When fixing up DECL_ORIGINAL_TYPE, just
11896         copy the type name.
11898 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
11900         PR tree-optimization/71647
11901         * omp-low.c (lower_rec_input_clauses): Convert
11902         omp_clause_aligned_alignment (c) to size_type_node for the
11903         last argument of __builtin_assume_aligned.
11905 2016-06-24  H.J. Lu  <hongjiu.lu@intel.com>
11907         * configure.ac (calling ___tls_get_addr via GOT): New
11908         assembler/linker check.
11909         (HAVE_AS_IX86_TLS_GET_ADDR_GOT): New.  Defined to 1 if 32-bit
11910         assembler and linker supports calling ___tls_get_addr via GOT.
11911         Otherise, defined to 0.
11912         * config.in: Regenerated.
11913         * configure: Likewise.
11914         * config/i386/constraints.md (Yb): New constraint.
11915         * config/i386/i386.h (reg_class): Add TLS_GOTBASE_REGS.
11916         (REG_CLASS_NAMES): Likewise.
11917         (REG_CLASS_CONTENTS): Likewise.
11918         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Replace
11919         the b constraint with the Yb constraint.  Call ___tls_get_addr
11920         via GOT for GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT
11921         is 1.
11922         (*tls_local_dynamic_base_32_gnu): Likewise.
11923         (*tls_global_dynamic_64_<mode>): Call _tls_get_addr via GOT for
11924         GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT is 1.
11925         (*tls_local_dynamic_base_64_<mode>): Likewise.
11927 2016-06-24  Martin Liska  <mliska@suse.cz>
11929         * cfgloop.c (flow_loop_dump): Dump average number of loop iterations.
11930         * cfgloop.h: Change 'struct loop' to 'const struct loop' for a
11931         few functions.
11932         * cfgloopanal.c (expected_loop_iterations_unbounded): Set a new
11933         argument to true if the expected number of iterations is
11934         loop-based.
11936 2016-06-24  Uros Bizjak  <ubizjak@gmail.com>
11938         * configure.ac (HAVE_AS_GOTOF_IN_DATA): Use $as_ix86_gas_32_opt to
11939         assemble for 32bit target.
11940         (HAVE_AS_IX86_TLSGDPLT): Use $as_ix86_gas_32_opt to assemble
11941         and $ld_ix86_gld_32_opt to link for 32bit target.
11942         (HAVE_AS_IX86_TLSLDMPLT): Ditto.
11943         * configure: Regenerate.
11945 2016-06-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11947         * config/arm/arm.c (int_log2): Delete definition and prototype.
11948         (shift_op): Use exact_log2 instead of int_log2.
11949         (vfp3_const_double_for_fract_bits): Likewise.
11951 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
11953         * internal-fn.c (expand_arith_set_overflow): New function.
11954         (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
11955         Use it.
11956         (expand_arith_overflow_result_store): Likewise.  Handle precision
11957         smaller than mode precision.
11958         * tree-vrp.c (extract_range_basic): For imag part, handle
11959         properly signed 1-bit precision result.
11960         * doc/extend.texi (__builtin_add_overflow): Document that last
11961         argument can't be pointer to enumerated or boolean type.
11962         (__builtin_add_overflow_p): Document that last argument can't
11963         have enumerated or boolean type.
11965 2016-06-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
11966             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11968         * config/rs6000/predicates.md (splat_input_operand): Rework.
11969         Don't allow constants, since the insns that use this predicate
11970         don't support constants.  Constants are handled by other insns
11971         that are created via combine.  During and after register
11972         allocation, only allow indexed or indirect addresses, and not
11973         general addresses.  Only allow modes supported by the hardware.
11974         * config/rs6000/rs6000.c (xxsplitb_constant_p): Update usage
11975         comment.  Move check for using VSPLTIS<x> to a common location,
11976         instead of doing it in two different places.
11978 2016-06-23  Jocelyn Mayer  <l_indien@magic.fr>
11980         * config/i386/driver-i386.c (host_detect_local_cpu): Set
11981         PROCESSOR_PENTIUMPRO for signature_CENTAUR_ebx family >= 9.
11982         <case PROCESSOR_PENTIMUMPRO>: Pass c7 or nehemiah for
11983         signature_CENTAUR_ebx.
11985 2016-06-23  H.J. Lu  <hongjiu.lu@intel.com>
11987         PR target/66232
11988         PR target/67400
11989         * configure.ac (as_ix86_tls_ldm_opt): Renamed to ...
11990         (as_ix86_gas_32_opt): This.
11991         (ld_ix86_tls_ldm_opt): Renamed to ...
11992         (ld_ix86_gld_32_opt): This.
11993         (R_386_TLS_LDM reloc): Updated.
11994         (R_386_GOT32X reloc): New assembler/linker check.
11995         (HAVE_AS_IX86_GOT32X): New.  Defined to 1 if 32-bit assembler and
11996         linker support "jmp *_start@GOT" and "cmpl $0, bar@GOT".  Otherise,
11997         defined to 0.
11998         * config.in: Regenerated.
11999         * configure: Likewise.
12000         * config/i386/i386.c (ix86_force_load_from_GOT_p): Return
12001         true if HAVE_AS_IX86_GOT32X is 1 in 32-bit mode.
12002         (ix86_legitimate_address_p): Allow UNSPEC_GOT for -fno-plt
12003         if ix86_force_load_from_GOT_p returns true.
12004         (ix86_print_operand_address_as): Also support UNSPEC_GOT if
12005         ix86_force_load_from_GOT_p returns true.
12006         (ix86_expand_move): Generate UNSPEC_GOT in 32-bit mode to load
12007         the external function address via the GOT slot.
12008         (ix86_nopic_noplt_attribute_p): Check both TARGET_64BIT and
12009         HAVE_AS_IX86_GOT32X before returning false.
12010         (ix86_output_call_insn): Generate "%!jmp/call\t*%p0@GOT" in
12011         32-bit mode if ix86_nopic_noplt_attribute_p returns true.
12013 2016-06-23  Eric Botcazou  <ebotcazou@adacore.com>
12015         * tree-inline.c (remap_decl): Preserve DECL_ORIGINAL_TYPE invariant.
12017 2016-06-23  Andi Kleen  <ak@linux.intel.com>
12019         * Makefile.in: Regenerate.
12020         * doc/install.texi: Document autoprofiledbootstrap.
12022 2016-06-23  Andi Kleen  <ak@linux.intel.com>
12024         * config/i386/gcc-auto-profile: New file.
12026 2016-06-23  Martin Liska  <mliska@suse.cz>
12028         PR middle-end/71619
12029         * predict.c (predict_loops): Revert the hunk that was removed
12030         in r237103.
12032 2016-06-23  Jakub Sejdak  <jakub.sejdak@phoesys.com>
12034         * config.gcc: Add support for arm*-*-phoenix* targets.
12035         * config/arm/t-phoenix: New.
12036         * config/phoenix.h: New.
12038 2016-06-23  Uros Bizjak  <ubizjak@gmail.com>
12039             H.J. Lu  <hongjiu.lu@intel.com>
12041         PR target/67400
12042         * config/i386/i386-protos.h (ix86_force_load_from_GOT_p): New.
12043         * config/i386/i386.c (ix86_force_load_from_GOT_p): New function.
12044         (ix86_legitimate_constant_p): Do not allow UNSPEC_GOTPCREL if
12045         ix86_force_load_from_GOT_p returns true.
12046         (ix86_legitimate_address_p): Allow UNSPEC_GOTPCREL if
12047         ix86_force_load_from_GOT_p returns true.
12048         (ix86_print_operand_address_as): Support UNSPEC_GOTPCREL if
12049         ix86_force_load_from_GOT_p returns true.
12050         (ix86_expand_move): Load the external function address via the
12051         GOT slot if ix86_force_load_from_GOT_p returns true.
12052         * config/i386/predicates.md (x86_64_immediate_operand): Return
12053         false for SYMBOL_REFs where ix86_force_load_from_GOT_p returns true.
12054         (x86_64_zext_immediate_operand): Ditto.
12056 2016-06-22  Uros Bizjak  <ubizjak@gmail.com>
12058         * config/i386/i386.c (ix86_expand_move): Simplify SYMBOL_REF handling.
12060 2016-06-22  David Malcolm  <dmalcolm@redhat.com>
12062         PR c/70339
12063         * diagnostic-core.h (pedwarn_at_rich_loc): New prototype.
12064         * diagnostic.c (pedwarn_at_rich_loc): New function.
12065         * spellcheck.h (best_match::best_match): Add a
12066         "best_distance_so_far" optional parameter.
12067         (best_match::set_best_so_far): New method.
12068         (best_match::get_best_distance): New accessor.
12069         (best_match::get_best_candidate_length): New accessor.
12071 2016-06-22  Nick Clifton  <nickc@redhat.com>
12073         * dwarf2out.c (scompare_loc_descriptor): Use SCALAR_INT_MODE_P() in
12074         place of GET_MODE_CLASS() == MODE_INT, so that partial integer
12075         modes are accepted as well.
12076         (ucompare_loc_descriptor): Likewise.
12077         (minmax_loc_descriptor): Likewise.
12078         (clz_loc_descriptor): Likewise.
12079         (popcount_loc_descriptor): Likewise.
12080         (bswap_loc_descriptor): Likewise.
12081         (rotate_loc_descriptor): Likewise.
12082         (mem_loc_descriptor): Likewise.
12083         (loc_descriptor): Likewise.
12085 2016-06-22  David Malcolm  <dmalcolm@redhat.com>
12087         * common.opt (fdiagnostics-parseable-fixits): New option.
12088         * diagnostic.c: Include "selftest.h".
12089         (print_escaped_string): New function.
12090         (print_parseable_fixits): New function.
12091         (diagnostic_report_diagnostic): Call print_parseable_fixits.
12092         (selftest::assert_print_escaped_string): New function.
12093         (ASSERT_PRINT_ESCAPED_STRING_STREQ): New macro.
12094         (selftest::test_print_escaped_string): New function.
12095         (selftest::test_print_parseable_fixits_none): New function.
12096         (selftest::test_print_parseable_fixits_insert): New function.
12097         (selftest::test_print_parseable_fixits_remove): New function.
12098         (selftest::test_print_parseable_fixits_replace): New function.
12099         (selftest::diagnostic_c_tests): New function.
12100         * diagnostic.h (struct diagnostic_context): Add field
12101         "parseable_fixits_p".
12102         * doc/invoke.texi (Diagnostic Message Formatting Options): Add
12103         -fdiagnostics-parseable-fixits.
12104         (-fdiagnostics-parseable-fixits): New option.
12105         * opts.c (common_handle_option): Handle
12106         -fdiagnostics-parseable-fixits.
12107         * selftest-run-tests.c (selftest::run_tests): Call
12108         selftest::diagnostic_c_tests.
12109         * selftest.h (selftest::diagnostic_c_tests): New prototype.
12111 2016-06-22  Ilya Enkovich  <ilya.enkovich@intel.com>
12113         PR tree-optimization/71488
12114         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Support
12115         comparison of boolean vectors.
12116         * tree-vect-stmts.c (vectorizable_comparison): Vectorize comparison
12117         of boolean vectors using bitwise operations.
12119 2016-06-22  Andreas Schwab  <schwab@suse.de>
12121         * config/aarch64/aarch64-protos.h (aarch64_elf_asm_named_section):
12122         Remove declaration.
12124 2016-06-22  Eric Botcazou  <ebotcazou@adacore.com>
12126         * function.c (assign_parm_setup_reg): Prevent sharing in another case.
12128 2016-06-22  Bernd Edlinger  <bernd.edlinger@hotmail.de>
12130         * config/i386/i386.c (print_reg): Emit an error message on attempt to
12131         print FLAGS_REG.
12133 2016-06-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12135         * config/arm/arm.c (arm_cortex_a73_tune): New struct.
12136         * config/arm/arm-cores.def (cortex-a73): New entry.
12137         (cortex-a73.cortex-a35): Likewise.
12138         (cortex-a73.cortex-a53): Likewise.
12139         * config/arm/arm-tables.opt: Regenerate.
12140         * config/arm/arm-tune.md: Likewise.
12141         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle mcpu=cortex-a73,
12142         mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
12143         * config/arm/t-aprofile: Handle mcpu=cortex-a73,
12144         mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
12145         * doc/invoke.texi (ARM Options): Document cortex-a73,
12146         cortex-a73.cortex-a35 and cortex-a73.cortex-a53.
12148 2016-06-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12150         * config/aarch64/aarch64.c (cortexa73_tunings): New struct.
12151         * config/aarch64/aarch64-cores.def (cortex-a73): New entry.
12152         (cortex-a73.cortex-a35): Likewise.
12153         (cortex-a73.cortex-a53): Likewise.
12154         * config/aarch64/aarch64-tune.md: Regenerate.
12155         * doc/invoke.texi (AArch64 Options): Document cortex-a73,
12156         cortex-a73.cortex-a35 and cortex-a73.cortex-a53 arguments to
12157         -mcpu and -mtune.
12159 2016-06-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12161         * configure.ac (gcc_cv_as_compress_debug): Remove
12162         --compress-debug-sections as extra as switch.
12163         Handle gas --compress-debug-sections=type.
12164         (gcc_cv_ld_compess_debug): Remove bogus ld_date check.
12165         Handle gld --compress-debug-sections=type.
12166         * configure: Regenerate.
12168 2016-06-21  Andrew Burgess  <andrew.burgess@embecosm.com>
12170         * bb-reorder.c (pass_partition_blocks::gate): Update comment.
12172 2016-06-21  John David Anglin  <danglin@gcc.gnu.org>
12174         * gcov-tool.c (profile_rewrite): Use int64_t instead of long long.
12175         (do_rewrite): likewise.
12177 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12179         * common/config/mep/mep-common.c: Remove.
12180         * config.gcc: Remove mep-* support.
12181         * config/mep/constraints.md: Remove.
12182         * config/mep/default.h: Remove.
12183         * config/mep/intrinsics.h: Remove.
12184         * config/mep/intrinsics.md: Remove.
12185         * config/mep/ivc2-template.h: Remove.
12186         * config/mep/mep-c5.cpu: Remove.
12187         * config/mep/mep-core.cpu: Remove.
12188         * config/mep/mep-default.cpu: Remove.
12189         * config/mep/mep-ext-cop.cpu: Remove.
12190         * config/mep/mep-intrin.h: Remove.
12191         * config/mep/mep-ivc2.cpu: Remove.
12192         * config/mep/mep-pragma.c: Remove.
12193         * config/mep/mep-protos.h: Remove.
12194         * config/mep/mep.c: Remove.
12195         * config/mep/mep.cpu: Remove.
12196         * config/mep/mep.h: Remove.
12197         * config/mep/mep.md: Remove.
12198         * config/mep/mep.opt: Remove.
12199         * config/mep/predicates.md: Remove.
12200         * config/mep/t-mep: Remove.
12201         * doc/install.texi: Remove mep-* documentation.
12202         * doc/md.texi: Likewise.
12204 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12206         * config.gcc: Remove support for avr-rtems.
12207         * config/avr/gen-avr-mmcu-specs.c: Likewise.
12208         * config/avr/rtems.h: Remove.
12209         * config/avr/t-rtems: Remove.
12211 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12213         * config.gcc: Remove m32r-rtems support.
12214         * config/m32r/rtems.h: Remove.
12216 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12218         * config.gcc: Remove h8300-rtems support.
12219         * config/h8300/rtems.h: Remove.
12220         * config/h8300/t-rtems: Remove.
12222 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12224         * config.gcc: Remove support for knetbsd.
12225         * configure.ac: Likewise.
12226         * config/i386/knetbsd-gnu.h: Remove.  * config/i386/knetbsd-gnu64.h: Remove.
12227         * config/knetbsd-gnu.h: Remove.
12228         * configure: Regenerate.
12230 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12232         * config.gcc: Remove support for openbsd 2 and 3.
12233         * config/openbsd-oldgas.h: Remove.
12235 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12237         * config.gcc: Remove interix support.
12238         * config/i386/i386-interix.h: Remove.
12239         * config/i386/interix.opt: Remove.
12240         * config/i386/t-interix: Remove.
12241         * configure: Regenerate.
12242         * configure.ac: Remove interix support.
12243         * doc/install.texi: Remove interix documentation.
12245 2016-06-21  Kelvin Nilsen  <kelvin@gcc.gnu.org>
12247         * config/rs6000/rs6000.h: Add conditional preprocessing directives
12248         to disable Power9-specific compiler features if HAVE_AS_POWER9 is
12249         not defined.
12251 2016-06-21  Eric Botcazou  <ebotcazou@adacore.com>
12253         * tree.c (verify_type_variant): Skip TYPE_SIZE and TYPE_SIZE_UNIT if
12254         they are both PLACEHOLDER_EXPRs.
12256 2016-06-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
12258         * stor-layout.c (layout_type): Move setting complex MODE to
12259         layout_type, instead of setting it ahead of time by the caller.
12260         * tree.c (build_complex_type): Likewise.
12262 2016-06-21  Martin Liska  <mliska@suse.cz>
12264         * predict.c (force_edge_cold): Replace imposisble with
12265         impossible.
12267 2016-06-21  Ilya Verbin  <ilya.verbin@intel.com>
12269         * config/i386/i386.c (ix86_emit_swsqrtsf): Emit vrsqrt28ps.
12270         * config/i386/sse.md (define_expand "rsqrtv16sf2"): New.
12272 2016-06-21  Ilya Verbin  <ilya.verbin@intel.com>
12274         * config/i386/i386.c (ix86_emit_swdivsf): Emit vrcp28ps.
12276 2016-06-21  H.J. Lu  <hongjiu.lu@intel.com>
12277             Ilya Enkovich  <ilya.enkovich@intel.com>
12279         PR target/71549
12280         * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
12281         New member function to convert V1TImode register to SUBREG
12282         TImode in debug insn.
12283         (timode_scalar_chain::convert_insn): Call fix_debug_reg_uses
12284         after changing register mode to V1TImode.
12286 2016-06-21  Virendra Pathak  <virendra.pathak@broadcom.com>
12288         * config/aarch64/aarch64-cores.def (vulcan): New core.
12289         * config/aarch64/aarch64-tune.md: Regenerate.
12290         * doc/invoke.texi: Document vulcan as an available option.
12292 2016-06-21  Eric Botcazou  <ebotcazou@adacore.com>
12294         * cse.c (canon_asm_operands): New function extracted from...
12295         (canonicalize_insn): ...here.  Call it to canonicalize an ASM_OPERANDS
12296         either standalone or member of a PARALLEL.
12298 2016-06-21  Georg-Johann Lay  <avr@gjlay.de>
12300         PR target/30417
12301         * config/avr/gen-avr-mmcu-specs.c (print_mcu):
12302         [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
12303         [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
12305 2016-06-21  Georg-Johann Lay  <avr@gjlay.de>
12307         PR target/71103
12308         * config/avr/avr.md (movqi): Only handle loading subreg:qi of
12309         constant addresses if can_create_pseudo_p.
12311 2016-06-21  Jakub Jelinek  <jakub@redhat.com>
12313         PR tree-optimization/71588
12314         * tree-ssa-strlen.c (valid_builtin_call): New function.
12315         (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
12316         it.
12318 2016-06-20  Jakub Jelinek  <jakub@redhat.com>
12320         PR middle-end/71581
12321         * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
12322         see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
12323         for conversion of scalar user var to complex type and use the
12324         underlying SSA_NAME_VAR in that case.  If EXPR is still NULL,
12325         punt.
12327         PR rtl-optimization/71591
12328         * toplev.c (toplev::run_self_tests): If no_backend, complain and
12329         don't run any tests.
12331 2016-06-20  Hans-Peter Nilsson  <hp@axis.com>
12333         PR target/71571
12334         * config/cris/cris.c (cris_asm_output_mi_thunk): Add missing "ba"
12335         delay-slot "nop" for PIC with CRIS v32.  Also add missing leading
12336         space for PIC with non-v32 and the common non-PIC "jump".
12338 2016-06-20  Jakub Jelinek  <jakub@redhat.com>
12340         PR target/71559
12341         * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
12342         returned values and add UN*/LTGT/*ORDERED cases with values matching
12343         D operand modifier on vcmp for AVX.
12345 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
12347         * config/aarch64/aarch64.opt
12348         (mpc-relative-literal-loads): Rename internal option name.
12349         * config/aarch64/aarch64.c
12350         (aarch64_nopcrelative_literal_loads): Rename to
12351         aarch64_pcrelative_literal_loads.
12352         (aarch64_expand_mov_immediate): Likewise.
12353         (aarch64_secondary_reload): Likewise.
12354         (aarch64_can_use_per_function_literal_pools_p): Likewise.
12355         (aarch64_override_options_after_change_1): Rename and simplify logic.
12356         (aarch64_classify_symbol): Merge large model checks into switch,
12357         remove pc-relative load check.
12359 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
12361         * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): Make FP
12362         costs relative to the cost of a register move.
12364 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
12366         * config/aarch64/arm_neon.h (vcvt_n_f64_s64): New.
12367         (vcvt_n_f64_u64): Likewise.
12368         (vcvt_n_s64_f64): Likewise.
12369         (vcvt_n_u64_f64): Likewise.
12370         (vcvt_f64_s64): Likewise.
12371         (vrecpe_f64): Likewise.
12372         (vcvt_f64_u64): Likewise.
12373         (vrecps_f64): Likewise.
12375 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
12377         * config/aarch64/aarch64.md
12378         (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3): Add attributes to
12379         iterators.
12380         (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>3): Likewise.  Correct
12381         attributes.
12382         * config/aarch64/aarch64-builtins.c
12383         (aarch64_types_binop_uss_qualifiers): Delete.
12384         (TYPES_BINOP_USS): Likewise.
12385         (aarch64_types_binop_sus_qualifiers): Likewise.
12386         (TYPES_BINOP_SUS): Likewise.
12387         (aarch64_types_fcvt_from_unsigned_qualifiers): New.
12388         (TYPES_FCVTIMM_SUS): Likewise.
12389         * config/aarch64/aarch64-simd-builtins.def (scvtf): Use SHIFTIMM
12390         rather than BINOP.
12391         (ucvtf): Use FCVTIMM_SUS rather than BINOP_SUS.
12392         (fcvtzs): Use SHIFTIMM rather than BINOP.
12393         (fcvtzu): Use SHIFTIMM_USS rather than BINOP_USS.
12395 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
12397         * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Make FP
12398         costs relative to the cost of a register move.
12400 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
12402         * config/aarch64/aarch64.c (aarch64_modes_tieable_p):
12403         Allow scalar/single vector modes to be tieable.
12405 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
12407         * config/arm/cortex-a57.md (cortex_a57_fp_cpys): Add fcsel.
12409 2016-06-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12411         * params.def (PARAM_ALIGN_LOOP_ITERATIONS): Use "alignment" instead of
12412         "alignement".
12413         * tree.h (TYPE_ALIGN): Likewise.
12415 2016-06-20  Georg-Johann Lay  <avr@gjlay.de>
12417         PR target/71103
12418         * config/avr/avr.md (movqi): Handle loading subreg:qi (const).
12420 2016-06-20  Georg-Johann Lay  <avr@gjlay.de>
12422         * config/avr/avr.c (avr_print_operand): Fix "format not a string
12423         literal" build warnings.
12424         (avr_print_operand_address): Dito.
12426 2016-06-19  David Edelsohn  <dje.gcc@gmail.com>
12428         PR target/71375
12429         * config/rs6000/aix51.h (TARGET_EXTRA_BUILTINS): Define as 0.
12430         * config/rs6000/aix43.h (TARGET_EXTRA_BUILTINS): Same.
12432 2016-06-18  John David Anglin  <danglin@gcc.gnu.org>
12434         * config/pa/pa.h (TARGET_LONG_PIC_PCREL_CALL): Remove.
12436 2016-06-18  Eric Botcazou  <ebotcazou@adacore.com>
12438         PR bootstrap/71435
12439         * reload1.c (reload): Pass 0 to finish_spills when called because
12440         update_eliminables_and_spill returns true and remove did_spill.
12441         (finish_spills): Adjust comment and document GLOBAL parameter.
12443 2016-06-17  DJ Delorie  <dj@redhat.com>
12445         PR target/71338
12446         * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
12447         * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
12448         (umulqihi3_virt): Likewise.
12449         * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
12450         (umulqihi3_real): Likewise.
12452 2016-06-17  Martin Liska  <mliska@suse.cz>
12454         * tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
12456 2016-06-17  Martin Liska  <mliska@suse.cz>
12458         * predict.def: PRED_LOOP_EXIT from 92 to 85.
12460 2016-06-17  James Greenhalgh  <james.greenhalgh@arm.com>
12462         * config/arm/arm_neon.h (vadd_f32): replace __FAST_MATH with
12463         __FAST_MATH__.
12464         (vaddq_f32): Likewise.
12465         (vmul_f32): Likewise.
12466         (vmulq_f32): Likewise.
12467         (vsub_f32): Likewise.
12468         (vsubq_f32): Likewise.
12470 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
12472         PR tree-optimization/71347
12473         * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compute
12474         cost for all uses in group.
12476 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
12478         * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
12479         insert gimple seq if it's not empty.
12481 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
12483         * tree-vectorizer.h (struct dr_with_seg_len): Remove class
12484         member OFFSET.
12485         * tree-vect-data-refs.c (operator ==): Handle DR_OFFSET directly,
12486         rather than OFFSET.
12487         (comp_dr_with_seg_len_pair): Ditto.
12488         (vect_prune_runtime_alias_test_list): Ditto.  Also Canonicalize
12489         struct dr_with_seg_len_pair against DR_OFFSET.
12490         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Handle
12491         DR_OFFSET directly.
12493 2016-06-17  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12495         * config/aarch64/geniterators.sh: Handle parenthesised conditions.
12497 2016-06-16  John David Anglin  <danglin@gcc.gnu.org>
12499         * config/pa/pa.c (pa_output_pic_pcrel_sequence): New.
12500         (pa_output_lbranch): Use pa_output_pic_pcrel_sequence.
12501         (pa_output_millicode_call): Likewise.
12502         (pa_output_call): Likewise.
12503         (pa_output_indirect_call): Likewise.
12504         (pa_asm_output_mi_thunk): Likewise.
12506 2016-06-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
12508         * doc/invoke.texi (x86 Options): Fix -mno-fp-ret-in-387 typo.
12510 2016-06-16  Martin Liska  <mliska@suse.cz>
12512         * predict.c (combine_predictions_for_insn): When we find a first
12513         match predictor, we should consider just predictors with
12514         PRED_FLAG_FIRST_MATCH.  Print either first match (if any) or
12515         DS theory predictor.
12516         (combine_predictions_for_bb): Likewise.
12518 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
12520         * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
12521         with base of reference to struct.
12523 2016-06-16  Uros Bizjak  <ubizjak@gmail.com>
12525         * doc/invoke.texi (x86 Options): Document -m80387 and -mhard-float.
12527 2016-06-16  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
12529         PR target/71151
12530         * config/avr/avr.c (avr_asm_init_sections): Remove setup of
12531         progmem_swtable_section.
12532         (progmem_swtable_section): Remove.
12533         (avr_asm_function_rodata_section): Remove.
12534         (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
12535         * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION: Define to 1.
12537 2016-06-16  Jocelyn Mayer  <l_indien@magic.fr>
12539         * config/i386/driver-i386.c (host_detect_local_cpu): Set
12540         PROCESSOR_K8 for signature_CENTAUR_ebx with has_longmode.
12541         <case PROCESSOR_K8>: Pass nano-3000, nano, eden-x2 or k8 for
12542         signature_CENTAUR_ebx.
12543         * config/i386/i386.c (ix86_option_override_internal): Add
12544         definitions for VIA c7, samuel-2, nehemiah, esther, eden-x2, eden-x4,
12545         nano, nano-1000, nano-2000, nano-3000, nano-x2 and nano-x4.
12546         * doc/invoke.texi (x86 Options): Document new VIA -march entries.
12548 2016-06-16  Martin Liska  <mliska@suse.cz>
12550         * predict.def: Add fortran loop preheader predictor.
12551         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Properly
12552         fold IFN_BUILTIN_EXPECT with a known constant argument.
12554 2016-06-16  Martin Liska  <mliska@suse.cz>
12556         * predict.def: Add 'Fortran' to display text of all
12557         PRED_FORTRAN_* predictors.
12559 2016-06-16  Uros Bizjak  <ubizjak@gmail.com>
12561         PR target/71242
12562         * config/ia64/ia64.c (enum ia64_builtins) [IA64_BUILTIN_NANQ]: New.
12563         [IA64_BUILTIN_NANSQ]: Ditto.
12564         (ia64_fold_builtin): New function.
12565         (TARGET_FOLD_BUILTIN): New define.
12566         (ia64_init_builtins) Declare const_string_type node.
12567         Add __builtin_nanq and __builtin_nansq builtin functions.
12568         (ia64_expand_builtin): Handle IA64_BUILTIN_NANQ and IA64_BUILTIN_NANSQ.
12570 2016-06-16  Nick Clifton  <nickc@redhat.com>
12572         * config/msp430/msp430-opts.h (msp430_hwmult_types): Add
12573         MSP430_HWMULT_ prefix to enum values.
12574         (msp430_regions): Add MSP430_REGION_ prefix to enum values.
12575         * config/msp430/msp430.c: Update use of enum values.
12576         * config/msp430/msp430.md: Likewise.
12577         * config/msp430/msp430.opt: Likewise.
12579 2016-06-16  Jan Hubicka  <hubicka@ucw.cz>
12581         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Fix estimation
12582         of comparsions in the last iteration.
12584 2016-06-16  Claudiu Zissulescu  <claziss@synopsys.com>
12585             Joern Rennecke  <joern.rennecke@embecosm.com>
12587         * config/arc/arc.c (arc_print_operand_address): Handle pc-relative
12588         addresses.
12589         (arc_needs_pcl_p): Add GOTOFFPC.
12590         (arc_legitimate_pic_addr_p): Likewise.
12591         (arc_output_pic_addr_const): Likewise.
12592         (arc_legitimize_pic_address): Generate a pc-relative address using
12593         GOTOFFPC.
12594         (arc_output_libcall): Use @pcl syntax.
12595         (arc_delegitimize_address_0): Delegitimize ARC_UNSPEC_GOTOFFPC.
12596         * config/arc/arc.md ("unspec"): Add ARC_UNSPEC_GOTOFFPC.
12597         (*movsi_insn): Use @pcl syntax.
12598         (doloop_begin_i): Likewise.
12600 2016-06-16  Martin Liska  <mliska@suse.cz>
12602         * predict.def: Define a new predictor.
12604 2016-06-16  Claudiu Zissulescu  <claziss@synopsys.com>
12606         * config/arc/arc.opt (mtp-regno): Update text.
12608 2016-06-16  Renlin Li  <renlin.li@arm.com>
12610         * config/aarch64/aarch64.c (aarch64_legitimize_address): Fix a typo.
12612 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
12614         PR target/71554
12615         * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
12616         (setcc + and peephole2): Likewise.
12618         PR rtl-optimization/71532
12619         * cse.c (cse_insn): For const/pure calls, invalidate argument passing
12620         memory slots.
12622 2016-06-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
12624         * config/rs6000/vsx.md (VSINT_84): Add DImode to enable loading
12625         DImode constants with XXSPLTIB in vector registers.
12626         (vsx_extract_<mode>, V2DImode/V2DFmode): Combine both
12627         vsx_extract_<mode>_internal{1,2} into a single insn that handles
12628         direct move (both ISA 2.07 and ISA 3.0 versions), and optimizes
12629         extraction of the element at the top of the register as a scalar
12630         value.
12631         (vsx_extract_<mode>_internal1): Likewise.
12632         (vsx_extract_<mode>_internal2): Likewise.
12633         * config/rs6000/constraints.md (wi constraint): Remove a comment
12634         about DImode not being allowed in Altivec registers.
12635         (wB constraint): New constraint for constants that can be
12636         generated in Altivec registers with VSPLTISW/VUPKHSW.
12637         * config/rs6000/predicates.md (xxspltib_constant_split): Update
12638         comments.
12639         (xxspltib_constant_nosplit): Likewise.
12640         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Add
12641         support for -mupper-regs-di to enable DImode to go into Altivec
12642         registers.
12643         (POWERPC_MASKS): Likewise.
12644         (power7 cpu): Likewise.
12645         * config/rs6000/rs6000.opt (-mupper-regs-di): Likewise.
12646         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
12647         for DImode being allowed in Altivec registers.  Update wi/wj
12648         constraints.  Set scalar_in_vmx_p flag.
12649         (rs6000_option_override_internal): Add checks for -mupper-regs-di.
12650         (xxspltib_constant_p): Allow CONST_INT's with VOIDmode.  Don't
12651         return true if we could use VSPLTISW/VUPKHSW instead of XXSPLTIB.
12652         (rs6000_opt_masks): Add -mupper-regs-di.
12653         * config/rs6000/rs6000.md (lfiwax): Update clobbers that don't use
12654         direct move to use wi and not wj.
12655         (lfiwzx): Likewise.
12656         (floatsi<mode>2_lfiwax_mem): Combine alternatives into a single
12657         alternative.
12658         (floatunssi<mode>2_lfiwzx_mem): Likewise.
12659         (fix_trunc<mode>di2_fctidz): Change second alternative to allow
12660         any VSX register, instead of just Altivec registers, to allow
12661         either operand to be an Altivec register or both.
12662         (fixuns_trunc<mode>di2_fctiduz): Likewise.
12663         (movdi_internal32): Add support for -mupper-regs-di.  Add support
12664         to load constants via XXSPLTIB or VSPLTISW.  Add spacing to allow
12665         the alternatives and attributes to be lined up to be easier to
12666         read.
12667         (movdi_internal64): Likewise.
12668         (64-bit DImode splitters): Change predicates to only split loading
12669         up GPR registers.  Add splits for using XXSPLTIB or VSPLTISW to
12670         load constants in ISA 3.0 or ISA 2.07 respectively.
12671         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
12672         -mupper-regs-di.  Update -mupper-regs-df and -mupper-regs-sf to
12673         mention -mcpu=power9 sets these options.
12674         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
12675         wB constraint.
12677 2016-06-15  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
12679         PR target/67353
12680         * config/avr/avr.c (avr_set_current_function): Warn misspelled
12681         interrupt/ signal handler if -Wmisspelled-isr flag is enabled.
12682         * config/avr/avr.opt (Wmisspelled-isr): New warning flag. Enabled
12683         by default to warn misspelled interrupt/ signal handler.
12684         * doc/invoke.texi (AVR Options): Document it. Update description
12685         for -nodevicelib option.
12687 2016-06-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12689         * config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
12690         up parentheses.  Use GET_MODE_UNIT_BITSIZE.
12691         (aarch64_<sur>shll2_n<mode>): Likewise.
12693 2016-06-15  Ilya Enkovich  <ilya.enkovich@intel.com>
12695         PR middle-end/71529
12696         * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
12697         DECL_CONTEXT for copied arguments.
12699 2016-06-15  Alan Hayward  <alan.hayward@arm.com>
12701         PR tree-optimization/71483
12702         * tree-vect-loop.c (vectorizable_live_operation): Pick correct index
12703         for slp
12705 2016-06-15  Martin Liska  <mliska@suse.cz>
12707         * predict.c (tree_predict_by_opcode): Call predict_edge_def
12708         instead of predict_edge w/o a probability.
12710 2016-06-15  Alan Hayward  <alan.hayward@arm.com>
12712         PR tree-optimization/71439
12713         * tree-vect-loop.c (vect_analyze_loop_operations): Additional check for
12714         live PHIs.
12716 2016-06-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12718         * ifcvt.c (bb_ok_for_noce_multiple_sets): Allow simple lowpart
12719         register subregs in SET_SRC.
12721 2016-06-15  Richard Biener  <rguenther@suse.de>
12723         * tree-vect-stmts.c (vectorizable_store): Remove strided grouped
12724         store restrictions.
12726 2016-06-15  Richard Biener  <rguenther@suse.de>
12728         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Do
12729         not consider dependences between accesses that belong to the
12730         same group.
12731         (vect_analyze_data_ref_dependences): Do not analyze read-read
12732         or self-dependences.
12734 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
12736         * spellcheck-tree.c: Include spellcheck-tree.h rather than
12737         spellcheck.h.
12738         (find_closest_identifier): Reimplement in terms of
12739         best_match<tree,tree>.
12740         * spellcheck-tree.h: New file.
12741         * spellcheck.c (struct edit_distance_traits<const char *>): New
12742         struct.
12743         (find_closest_string): Reimplement in terms of
12744         best_match<const char *, const char *>.
12745         * spellcheck.h (levenshtein_distance): Move prototype of tree-based
12746         overload to spellcheck-tree.h.
12747         (find_closest_identifier): Likewise.
12748         (struct edit_distance_traits<T>): New template.
12749         (class best_match): New class.
12751 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
12753         * selftest-run-tests.c (selftest::run_tests): Call
12754         selftest::spellcheck_tree_c_tests.
12755         * selftest.h (selftest::spellcheck_tree_c_tests): New decl.
12756         * spellcheck-tree.c: Include selftest.h and stringpool.h.
12757         (selftest::test_find_closest_identifier): New function.
12758         (selftest::spellcheck_tree_c_tests): New function.
12759         * spellcheck.c (selftest::test_find_closest_string): Verify that
12760         the order of the vec does not affect the results for this case.
12761         (selftest::test_data): New array.
12762         (selftest::test_metric_conditions): New function.
12763         (selftest::spellcheck_c_tests): Add a test of case-comparison.
12764         Call selftest::test_metric_conditions.
12766 2016-06-14  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12768         * config/rs6000/rs6000-builtin.def (commentary): Typo.
12769         (BU_P9_MISC_1): Likewise.
12770         (BU_P9_64BIT_MISC_0): Likewise.
12771         (BU_P9_MISC_0): Likewise.
12773 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
12775         * gcc-rich-location.c
12776         (gcc_rich_location::add_fixit_misspelled_id): New method.
12777         * gcc-rich-location.h
12778         (gcc_rich_location::add_fixit_misspelled_id): Add decl.
12780 2016-06-14  Andreas Tobler  <andreast@gcc.gnu.org>
12782         * config/arm/freebsd.h: Only enable unaligned access for armv6 on
12783         FreeBSD 11 and above.
12785 2016-06-14  Uros Bizjak  <ubizjak@gmail.com>
12787         * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
12789 2016-06-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12791         * expmed.h: Close parenthesis in "at your option" in copyright
12792         boilerplate.
12793         * lower-subreg.h: Likewise.
12795 2016-06-14  Richard Biener  <rguenther@suse.de>
12797         PR middle-end/71526
12798         * genmatch.c (expr::gen_transform): Use in_type for comparisons
12799         if available.
12801 2015-06-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12803         * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
12804         New function.
12805         (aarch64_rtx_costs): Use it.  Rewrite CONST_INT_P (op1) case to handle
12806         mask+shift version.
12807         * config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
12808         New prototype.
12809         * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
12810         matching condition with aarch64_mask_and_shift_for_ubfiz_p.
12812 2016-06-14  Richard Biener  <rguenther@suse.de>
12814         PR tree-optimization/71522
12815         * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
12816         copying into float copying.
12818 2016-06-14  Jakub Jelinek  <jakub@redhat.com>
12820         PR tree-optimization/71520
12821         * tree-ssa-tail-merge.c (find_duplicate): Handle labels.
12822         (replace_block_by): Move user labels from bb1 to bb2.
12824 2016-06-14  Richard Biener  <rguenther@suse.de>
12826         PR middle-end/71310
12827         PR bootstrap/71510
12828         * expr.h (get_bit_range): Declare.
12829         * expr.c (get_bit_range): Export.
12830         * fold-const.c (optimize_bit_field_compare): Use get_bit_range and
12831         word_mode again to constrain the bitfield access.
12833 2016-06-14  Richard Biener  <rguenther@suse.de>
12835         PR tree-optimization/71521
12836         * tree-vrp.c (extract_range_from_binary_expr_1): Guard
12837         division int_const_binop against zero divisor.
12839 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
12841         * config/i386/i386.md (signbittf2): New expander.
12842         * config/i386/sse.md (ptesttf2): New insn pattern.
12844 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
12846         PR bootstrap/71481
12847         * input.c (selftest::test_reading_source_line): Avoid reading from
12848         __FILE__ by creating a tempfile with known content and reading
12849         from that instead.
12851 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
12853         * pretty-print.c (assert_pp_format_colored): Skip the test if
12854         GCC_COLORS is set.
12855         (test_pp_format): Remove comment about GCC_COLORS.
12857 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
12859         * input.c (test_reading_source_line): Use SELFTEST_LOCATION.
12860         * pretty-print.c (assert_pp_format_va): Add location param and use
12861         it with ASSERT_STREQ_AT.
12862         (assert_pp_format): Add location param and pass it to
12863         assert_pp_format_va.
12864         (assert_pp_format_colored): Likewise.
12865         (ASSERT_PP_FORMAT_1): New.
12866         (ASSERT_PP_FORMAT_2): New.
12867         (ASSERT_PP_FORMAT_3): New.
12868         (test_pp_format): Provide SELFTEST_LOCATION throughout, either
12869         explicitly, or implicitly via the above macros.
12870         * selftest.c (selftest::pass): Use a selftest::location rather
12871         than file and line.
12872         (selftest::fail): Likewise.  Print the function name.
12873         (selftest::fail_formatted): Likewise.
12874         (selftest::assert_streq): Use a selftest::location rather than
12875         file and line.
12876         * selftest.h (selftest::location): New struct.
12877         (SELFTEST_LOCATION): New macro.
12878         (selftest::pass): Accept a const location & rather than file
12879         and line.
12880         (selftest::fail): Likewise.
12881         (selftest::fail_formatted): Likewise.
12882         (selftest::assert_streq): Likewise.
12883         (ASSERT_TRUE): Update for above changes, using SELFTEST_LOCATION.
12884         (ASSERT_FALSE): Likewise.
12885         (ASSERT_EQ): Likewise.
12886         (ASSERT_NE): Likewise.
12887         (ASSERT_STREQ): Likewise.
12888         (ASSERT_PRED1): Likewise.
12889         (ASSERT_STREQ_AT): New macro.
12891 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
12893         * selftest.c (selftest::fail_formatted): New function.
12894         (selftest::assert_streq): New function.
12895         * selftest.h (selftests::fail_formatted): New decl.
12896         (selftest::assert_streq): New decl.
12897         (ASSERT_STREQ): Reimplement in terms of selftest::assert_streq.
12899 2016-06-13  Jeff Law  <law@redhat.com>
12901         PR tree-optimization/71403
12902         * tree-ssa-threadbackward.c
12903         (convert_and_register_jump_thread_path): No longer accept reference
12904         to path.  Do not pop items off the path anymore.
12905         (fsm_find_control_statement_thread_paths): Do not allow threading
12906         to a deeper loop nest.  Pop the last item off the path here rather
12907         than in convert_and_register_jump_thread_path.
12909 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
12910             Wilco Dijkstra  <Wilco.Dijkstra@arm.com>
12912         [AArch64] Emit division using the Newton series
12914         * config/aarch64/aarch64-protos.h
12915         (cpu_approx_modes): Add new member "division".
12916         (aarch64_emit_approx_div): Declare new function.
12917         * config/aarch64/aarch64.c
12918         (generic_approx_modes): New member "division".
12919         (exynosm1_approx_modes): Likewise.
12920         (xgene1_approx_modes): Likewise.
12921         (aarch64_emit_approx_div): Define new function.
12922         * config/aarch64/aarch64.md ("div<mode>3"): New expansion.
12923         * config/aarch64/aarch64-simd.md ("div<mode>3"): Likewise.
12924         * config/aarch64/aarch64.opt (-mlow-precision-div): Add new option.
12925         * doc/invoke.texi (-mlow-precision-div): Describe new option.
12927 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
12928             Wilco Dijkstra  <wilco.dijkstra@arm.com>
12930         [AArch64] Emit square root using the Newton series
12932         * config/aarch64/aarch64-protos.h
12933         (aarch64_emit_approx_rsqrt): Replace with new function
12934         "aarch64_emit_approx_sqrt".
12935         (cpu_approx_modes): New member "sqrt".
12936         * config/aarch64/aarch64.c
12937         (generic_approx_modes): New member "sqrt".
12938         (exynosm1_approx_modes): Likewise.
12939         (xgene1_approx_modes): Likewise.
12940         (aarch64_emit_approx_rsqrt): Replace with new function
12941         "aarch64_emit_approx_sqrt".
12942         (aarch64_override_options_after_change_1): Handle new option.
12943         * config/aarch64/aarch64-simd.md
12944         (rsqrt<mode>2): Use new function instead.
12945         (sqrt<mode>2): New expansion and insn definitions.
12946         * config/aarch64/aarch64.md: Likewise.
12947         * config/aarch64/aarch64.opt
12948         (mlow-precision-sqrt): Add new option description.
12949         * doc/invoke.texi (mlow-precision-sqrt): Likewise.
12951 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
12953         [AArch64] Add more choices for the reciprocal square root approximation
12955         Allow a target to prefer such operation depending on the operation mode.
12957         * config/aarch64/aarch64-protos.h
12958         (AARCH64_APPROX_MODE): New macro.
12959         (AARCH64_APPROX_{NONE,ALL}): Likewise.
12960         (cpu_approx_modes): New structure.
12961         (tune_params): New member "approx_modes".
12962         * config/aarch64/aarch64-tuning-flags.def
12963         (AARCH64_EXTRA_TUNE_APPROX_RSQRT): Remove macro.
12964         * config/aarch64/aarch64.c
12965         (generic_approx_modes): New core "cpu_approx_modes" structure.
12966         (exynosm1_approx_modes): Likewise.
12967         (xgene1_approx_modes): Likewise.
12968         (generic_tunings): New member "approx_modes".
12969         (cortexa35_tunings): Likewise.
12970         (cortexa53_tunings): Likewise.
12971         (cortexa57_tunings): Likewise.
12972         (cortexa72_tunings): Likewise.
12973         (exynosm1_tunings): Likewise.
12974         (thunderx_tunings): Likewise.
12975         (xgene1_tunings): Likewise.
12976         (use_rsqrt_p): New argument for the mode and use new member from
12977         "tune_params".
12978         (aarch64_builtin_reciprocal): Devise mode from builtin.
12979         (aarch64_optab_supported_p): New argument for the mode.
12980         * doc/invoke.texi (-mlow-precision-recip-sqrt): Reword description.
12982 2016-06-13  Kelvin Nilsen  <kelvin@gcc.gnu.org>
12984         * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
12985         RS6000_BTM_MODULO flag into the set of flags that are considered
12986         to be part of the common configuration.
12988 2016-06-13  Kelvin Nilsen  <kelvin@gcc.gnu.org>
12990         * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
12991         difference unsigned.
12992         (vec_absdb): New macro for vector absolute difference unsigned
12993         byte.
12994         (vec_absdh): New macro for vector absolute difference unsigned
12995         half-word.
12996         (vec_absdw): New macro for vector absolute difference unsigned word.
12997         * config/rs6000/altivec.md (UNSPEC_VADU): New value.
12998         (vadu<mode>3): New insn.
12999         (*p9_vadu<mode>3): New insn.
13000         * config/rs6000/rs6000-builtin.def (vadub): New built-in
13001         definition.
13002         (vaduh): New built-in definition.
13003         (vaduw): New built-in definition.
13004         (vadu): New overloaded built-in definition.
13005         (vadub): New overloaded built-in definition.
13006         (vaduh): New overloaded built-in definition.
13007         (vaduw): New overloaded built-in definition.
13008         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
13009         overloaded vector absolute difference unsigned functions.
13010         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
13011         the ISA 3.0 vector absolute difference unsigned built-in functions.
13013 2016-06-13  Eric Botcazou  <ebotcazou@adacore.com>
13015         * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
13016         update shared_lookup_references only once after changing operands.
13018 2016-06-13  Thomas Schwinge  <thomas@codesourcery.com>
13020         PR middle-end/71373
13021         * tree-nested.c (convert_nonlocal_omp_clauses)
13022         (convert_local_omp_clauses): Document missing OMP_CLAUSE_*.
13024         * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
13025         * tree.def (CASE_LABEL_EXPR): Likewise.
13027 2016-06-13  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13029         PR bootstrap/71481
13030         * input.c (test_builtins): Fix an assertion.
13032 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
13034         * config/i386/i386.md (paritydi2): Use ix86_expand_setcc.
13035         (paritysi2): Ditto.
13036         (isinfxf2): Ditto.
13037         (isinf<mode>2): Ditto.
13039 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
13041         * ggc-tests.c (test_finalization): Only test need_finalization_p
13042         for GCC_VERSION >= 4003.
13044 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13046         * config/s390/vecintrin.h: Fix file description in comment.
13048 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13050         * config/s390/s390-builtin-types.def: Change builtin type naming
13051         scheme to match builtin-types.def.
13053 2016-06-13  Marc Glisse  <marc.glisse@inria.fr>
13055         * fold-const.c (optimize_minmax_comparison): Remove.
13056         (fold_comparison): Remove call to the above.
13057         * match.pd (MIN (X, Y) == X, MIN (X, 5) == 0, MIN (X, C1) < C2):
13058         New transformations.
13060 2016-06-13  Alan Hayward  <alan.hayward@arm.com>
13062         PR tree-optimization/71416
13063         * tree-vect-loop.c (vectorizable_live_operation): Let worklist have
13064         multiple entries
13066 2016-06-13  Martin Liska  <mliska@suse.cz>
13068         * predict.c (enum predictor_reason): Prefix enum with REASON_.
13069         (combine_predictions_for_insn): Likewise.
13070         (prune_predictions_for_bb): Likewise.
13071         (combine_predictions_for_bb): Likewise.
13073 2016-06-13  Richard Biener  <rguenther@suse.de>
13075         PR tree-optimization/71505
13076         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
13077         assert match comment.
13079 2016-06-13  Marek Polacek  <polacek@redhat.com>
13081         PR middle-end/71476
13082         * gimplify.c (maybe_warn_switch_unreachable): Factored out of
13083         gimplify_switch_expr.
13084         (warn_switch_unreachable_r): New function.
13086 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13088         PR target/71379
13089         * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
13090         one.
13092 2016-06-13  Richard Biener  <rguenther@suse.de>
13094         PR middle-end/64516
13095         * fold-const.c (fold_unary_loc): Preserve alignment when
13096         folding a VIEW_CONVERT_EXPR into a MEM_REF.
13098 2016-06-13  Martin Liska  <mliska@suse.cz>
13100         PR sanitizer/71458
13101         * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
13102         w/ -fsanitize=bounds.
13104 2016-06-12  Uros Bizjak  <ubizjak@gmail.com>
13106         * config/i386/i386.c (ix86_init_builtins): Calculate
13107         FLOAT128_FTYPE_CONST_STRING function type only once.
13108         * doc/extend.texi (x86 Built-in Functions): Update text, __float128
13109         built-in functions are available for x86-32 and x86-64 targets.
13111 2016-06-12  Uros Bizjak  <ubizjak@gmail.com>
13113         PR target/71241
13114         * config/i386/i386.i386-builtin-types.def (CONST_STRING):
13115         New primitive type.
13116         (FLOAT128_FTYPE_CONST_STRING): New function type.
13117         * config/i386/i386.c (enum ix86_builtins) [IX86_BUILTIN_NANQ]: New.
13118         [IX86_BUILTIN_NANSQ]: Ditto.
13119         (ix86_fold_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
13120         (ix86_init_builtin_types): Declare const_string_type_node.
13121         (ix86_init_builtins): Add __builtin_nanq and __builtin_nansq
13122         builtin functions.
13123         (ix86_expand_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
13124         * doc/extend.texi (x86 Built-in Functions): Document
13125         __builtin_nanq and __builtin_nansq.
13127 2016-06-11  Jiong Wang  <jiong.wang@arm.com>
13129         PR target/71061
13130         * config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
13131         * config/arm/arm.c (arm_attr_length_pop_multi): New function to return
13132         length for pop patterns.
13133         (arm_attr_length_push_multi): Update comments.
13134         * config/arm/arm.md (*load_multiple_with_writeback): Set "length"
13135         attribute.
13136         (*pop_multiple_with_writeback_and_return): Likewise.
13137         (*pop_multiple_with_return): Likewise.
13139 2016-06-11  Segher Boessenkool  <segher@kernel.crashing.org>
13141         PR middle-end/71310
13142         * fold-const.c (optimize_bit_field_compare): Don't try to use
13143         word_mode unconditionally for reading the bit field, look at
13144         DECL_BIT_FIELD_REPRESENTATIVE instead.
13146 2016-06-11  Kugan Vivekanandarajah  <kuganv@linaro.org>
13148         PR middle-end/71478
13149         * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
13150         vector integer type.
13152 2016-06-10  Jakub Jelinek  <jakub@redhat.com>
13154         PR middle-end/71494
13155         * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
13156         without LABEL_DECL, set *handled_ops_p to false instead of true.
13158 2016-06-10  Martin Sebor  <msebor@redhat.com>
13160         PR c/71392
13161         * builtin-attrs.def (ATTR_NOTHROW_NONNULL_LEAF_LIST): New macro.
13162         (ATTR_NOTHROW_NONNULL_TYPEGENERIC_LEAF): Same.
13163         * builtins.def (BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW): Use
13164         them.
13165         (BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW): Same.
13166         (BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW): Same.
13167         (BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW): Same.
13168         (BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADD_OVERFLOW): Same.
13169         (BUILT_IN_UADDL_OVERFLOW, BUILT_IN_UADDLL_OVERFLOW): Same.
13170         (BUILT_IN_USUB_OVERFLOW, BUILT_IN_USUBL_OVERFLOW): Same.
13171         (BUILT_IN_USUBLL_OVERFLOW, BUILT_IN_UMUL_OVERFLOW): Same.
13172         (BUILT_IN_UMULL_OVERFLOW, BUILT_IN_UMULLL_OVERFLOW): Same.
13174 2016-06-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13176         * config/arm/arm.h (pool_vector_label,
13177         return_used_this_function): Remove.
13179 2016-06-10  Jeff Law  <law@redhat.com>
13181         PR tree-optimization/71335
13182         * tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
13183         zero length paths here.
13184         (convert_and_register_jump_thread_path): Remove hacks related to
13185         duplicated blocks in the jump thread path.
13186         (fsm_find_control_statement_thread_paths): Avoid putting the same
13187         block on the thread path twice, but ensure the thread path is
13188         unchanged from the caller's point of view.
13190 2016-06-10  Jan Hubicka  <hubicka@ucw.cz>
13192         * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
13193         * predict.def (PRED_LOOP_BRANCH): Remove.
13195 2016-06-10  David Malcolm  <dmalcolm@redhat.com>
13197         * Makefile.in (OBJS): Add ggc-tests.o.
13198         (GTFILES): Add ggc-tests.c.
13199         * ggc-tests.c: New file.
13200         * selftest-run-tests.c (selftest::run_tests): Call
13201         selftest::ggc_tests_c_tests.
13202         * selftest.h (selftest::ggc_tests_c_tests): New prototype.
13204 2016-06-10  Alexander Monakov  <amonakov@ispras.ru>
13206         * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
13208 2016-06-10  Maxim Ostapenko  <m.ostapenko@samsung.com>
13210         PR sanitizer/71480
13211         * varasm.c (place_block_symbol): Adjust alignment for asan protected
13212         STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
13214 2016-06-10  Jan Hubicka  <hubicka@ucw.cz>
13216         * profile.c: Include cfgloop.h.
13217         (branch_prob): Compute estimated number of iterations.
13218         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
13219         recompute estimate number of iterations from profile.
13221 2016-06-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13223         PR inline-asm/68843
13224         * reg-stack.c (check_asm_stack_operands): Explicit input arguments
13225         must be grouped on top of stack.  Don't force early clobber
13226         on ordinary reg outputs.
13228 2016-06-10  Richard Biener  <rguenther@suse.de>
13230         * targhooks.c (default_builtin_vectorization_cost): Adjust
13231         vec_construct cost.
13233 2016-06-10  Richard Biener  <rguenther@suse.de>
13235         * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
13236         to fold the RHS to a constant if possible.
13238 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
13240         PR middle-end/71373
13241         * tree-nested.c (convert_nonlocal_omp_clauses)
13242         (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
13243         OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
13244         OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
13246         * gimplify.c (gimplify_adjust_omp_clauses): Discard
13247         OMP_CLAUSE_TILE.
13248         * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
13250         * omp-low.c (scan_sharing_clauses): Don't expect
13251         OMP_CLAUSE__CACHE_.
13253 2016-06-10  Alan Hayward  <alan.hayward@arm.com>
13255         PR tree-optimization/71407
13256         PR tree-optimization/71416
13257         * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
13258         BIT_FIELD_REF type.
13260 2016-06-10  Richard Biener  <rguenther@suse.de>
13262         PR middle-end/71477
13263         * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
13265 2016-06-09  Eric Botcazou  <ebotcazou@adacore.com>
13267         * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
13269 2016-06-09  Vladimir Makarov  <vmakarov@redhat.com>
13270             Jiong Wang  <jiong.wang@arm.com>
13272         PR rtl-optimization/70751
13273         * lra-constraints.c (process_alt_operands): Recognize Non-pseudo
13274         spilled into memory.
13276 2016-06-09  Jonathan Yong  <10walls@gmail.com>
13278         Revert:
13279         2015-09-21  Jonathan Yong  <10walls@gmail.com>
13281         * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
13282         sysroot/usr/lib/32api for additional win32 libraries,
13283         fixes failing Cygwin bootstrapping.
13285 2016-06-09  Marcin Baczyński  <marbacz@gmail.com>
13287         * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
13288         Delete.
13290 2016-06-09  David Malcolm  <dmalcolm@redhat.com>
13292         PR bootstrap/71471
13293         * pretty-print.c (pp_indent): Specify that %p is printed in a
13294         host-dependent manner.
13295         (test_pp_format): Remove the test for %p.
13297 2016-06-09  Maciej W. Rozycki  <macro@imgtec.com>
13299         * config/mips/mips.c (mips_output_jump): Fix formatting.
13301 2016-06-09  Richard Biener  <rguenther@suse.de>
13303         PR tree-optimization/71462
13304         * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
13305         removed blocks.
13307 2016-06-09  Martin Liska  <mliska@suse.cz>
13309         * predict.c (dump_prediction): Add new argument.
13310         (enum predictor_reason): New enum.
13311         (struct predictor_hash): New struct.
13312         (predictor_hash::hash): New function.
13313         (predictor_hash::equal): Likewise.
13314         (not_removed_prediction_p): New function.
13315         (prune_predictions_for_bb): Likewise.
13316         (combine_predictions_for_bb): Prune predictions.
13318 2016-06-09  Martin Liska  <mliska@suse.cz>
13320         * predict.c (filter_predictions): New function.
13321         (remove_predictions_associated_with_edge): Use the filter
13322         function.
13323         (equal_edge_p): New function.
13325 2016-06-09  Stefan Bruens  <stefan.bruens@rwth-aachen.de>
13327         * doc/invoke.texi (ARM Options): Use lexicographical ordering.
13328         Correct usage of @samp vs @option, add @samp where appropriate.
13329         Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
13330         Add armv6s-m and document it, as it is no official ARM name.
13332 2016-06-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13334         * ifcvt.c (struct noce_if_info): Add transform_name field.
13335         (noce_try_move): Set if_info->transform_name to the function name.
13336         (noce_try_ifelse_collapse): Likewise.
13337         (noce_try_store_flag): Likewise.
13338         (noce_try_inverse_constants): Likewise.
13339         (noce_try_store_flag_constants): Likewise.
13340         (noce_try_addcc): Likewise.
13341         (noce_try_store_flag_mask): Likewise.
13342         (noce_try_cmove): Likewise.
13343         (noce_try_cmove_arith): Likewise.
13344         (noce_try_minmax): Likewise.
13345         (noce_try_abs): Likewise.
13346         (noce_try_sign_mask): Likewise.
13347         (noce_try_bitop): Likewise.
13348         (noce_convert_multiple_sets): Likewise.
13349         (noce_process_if_block): Print if_info->transform_name to
13350         dump_file if transformation succeeded.
13352 2016-06-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13354         * config/arm/cortex-a57.md (cortex_a57_alu):
13355         Handle csel type.
13357 2016-06-08  Martin Sebor  <msebor@redhat.com>
13358             Jakub Jelinek  <jakub@redhat.com>
13360         PR c++/70507
13361         PR c/68120
13362         * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
13363         BUILT_IN_MUL_OVERFLOW_P): New builtins.
13364         * builtins.c: Include gimple-fold.h.
13365         (fold_builtin_arith_overflow): Handle
13366         BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
13367         (fold_builtin_3): Likewise.
13368         * doc/extend.texi (Integer Overflow Builtins): Document
13369         __builtin_{add,sub,mul}_overflow_p.
13371 2016-06-08  Jose E. Marchesi  <jose.marchesi@oracle.com>
13373         * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
13374         SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
13376 2016-06-08  Alan Lawrence  <alan.lawrence@arm.com>
13378         * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
13379         Rewrite, looking one level down for records and arrays.
13381 2016-06-08  David Malcolm  <dmalcolm@redhat.com>
13383         * pretty-print.c: Include "selftest.h".
13384         (pp_format): Fix comment.
13385         (identifier_to_locale): Likewise.
13386         (selftest::test_basic_printing): New function.
13387         (selftest::assert_pp_format): New function.
13388         (selftest::test_pp_format): New function.
13389         (selftest::pretty_print_c_tests): New function.
13390         * selftest-run-tests.c (selftest::run_tests): Call
13391         selftest::pretty_print_c_tests.
13392         * selftest.h (pretty_print_c_tests): New declaration.
13394 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
13396         * invoke.texi (max-loop-headers-insns): Document.
13397         * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
13398         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
13399         (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
13401 2016-06-08  Richard Biener  <rguenther@suse.de>
13403         * tree-vect-stmts.c (vectorizable_load): Remove restrictions
13404         on strided SLP loads and fall back to scalar loads in case
13405         we can't chunk them.
13407 2016-06-08  Richard Biener  <rguenther@suse.de>
13409         PR tree-optimization/71452
13410         * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
13411         type used for the SSA rewrite has enough precision to cover
13412         the dynamic type of the location.
13414 2016-06-08  Jakub Jelinek  <jakub@redhat.com>
13415             Richard Biener  <rguenther@suse.de>
13417         PR c++/71448
13418         * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
13419         the same as DECL_P (base0) for indirect_base0.  Use equality_code
13420         in one further place.
13422 2016-06-08  Richard Sandiford  <richard.sandiford@arm.com>
13424         * expmed.c (store_bit_field_1): Do not restrict a multiword op0
13425         to one word if the field is known to overlap other words.
13426         (extract_bit_field_1): Likewise.
13427         (store_split_bit_field): Remove compensating code.
13428         (extract_split_bit_field): Likewise.
13430 2016-06-08  Bernd Schmidt  <bschmidt@redhat.com>
13432         PR debug/71432
13433         PR ada/71413
13434         * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
13436 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
13438         * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
13439         VDQF.
13440         * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
13441         (arch64_addpv4sf): Delete.
13442         (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
13443         "gen_aarch64_addpv4sf".
13444         * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly.  Use
13445         builtin.
13446         (vpadds_f32): Likewise.
13447         (vpaddq_f32): Likewise.
13448         (vpaddq_f64): Likewise.
13450 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
13452         * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
13453         VALLF.
13454         * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
13455         to VALLF.  Rename to "fabd<mode>3".
13456         "*fabd_scalar<mode>3): Delete.
13457         * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
13458         Use builtin.
13459         (vabdd_f64): Likewise.
13460         (vabd_f32): Likewise.
13461         (vabd_f64): Likewise.
13462         (vabdq_f32): Likewise.
13463         (vabdq_f64): Likewise.
13465 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
13467         * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
13468         VALLF.
13469         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
13470         "aarch64_rsqrts<mode>".
13471         * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
13472         * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly.  Use
13473         builtin.
13474         (vrsqrtsd_f64): Likewise.
13475         (vrsqrts_f32): Likewise.
13476         (vrsqrts_f64): Likewise.
13477         (vrsqrtsq_f32): Likewise.
13478         (vrsqrtsq_f64): Likewise.
13480 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
13482         * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
13483         VALLF.
13484         * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
13485         "aarch64_rsqrte<mode>".
13486         * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
13487         * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly.  Use
13488         builtin.
13489         (vrsqrted_f64): Likewise.
13490         (vrsqrte_f32): Likewise.
13491         (vrsqrte_f64): Likewise.
13492         (vrsqrteq_f32): Likewise.
13493         (vrsqrteq_f64): Likewise.
13495 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
13497         * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
13498         (ucvtf): Likewise.
13499         (fcvtzs): Likewise.
13500         (fcvtzu): Likewise.
13501         * config/aarch64/aarch64-simd.md
13502         (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
13503         (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
13504         * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
13505         Use builtin.
13506         (vcvt_n_f32_u32): Likewise.
13507         (vcvt_n_s32_f32): Likewise.
13508         (vcvt_n_u32_f32): Likewise.
13509         (vcvtq_n_f32_s32): Likewise.
13510         (vcvtq_n_f32_u32): Likewise.
13511         (vcvtq_n_f64_s64): Likewise.
13512         (vcvtq_n_f64_u64): Likewise.
13513         (vcvtq_n_s32_f32): Likewise.
13514         (vcvtq_n_s64_f64): Likewise.
13515         (vcvtq_n_u32_f32): Likewise.
13516         (vcvtq_n_u64_f64): Likewise.
13517         * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
13518         (VSDQ_SDI): Likewise.
13519         (fcvt_target): Support V4DI, V4SI and V2SI.
13520         (FCVT_TARGET): Likewise.
13522 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
13524         * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
13525         (TYPES_BINOP_SUS): Likewise.
13526         (aarch64_simd_builtin_data): Update include file name.
13527         (aarch64_builtins): Likewise.
13528         * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
13529         for conversion between scalar float-point and fixed-point.
13530         (ucvtf): Likewise.
13531         (fcvtzs): Likewise.
13532         (fcvtzu): Likewise.
13533         * config/aarch64/aarch64.md
13534         (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
13535         pattern for conversion between scalar float to fixed-pointer.
13536         (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
13537         (UNSPEC_FCVTZS): New UNSPEC enumeration.
13538         (UNSPEC_FCVTZU): Likewise.
13539         (UNSPEC_SCVTF): Likewise.
13540         (UNSPEC_UCVTF): Likewise.
13541         * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
13542         Use builtin.
13543         (vcvtd_n_f64_u64): Likewise.
13544         (vcvtd_n_s64_f64): Likewise.
13545         (vcvtd_n_u64_f64): Likewise.
13546         (vcvtd_n_f32_s32): Likewise.
13547         (vcvts_n_f32_u32): Likewise.
13548         (vcvtd_n_s32_f32): Likewise.
13549         (vcvts_n_u32_f32): Likewise.
13550         * config/aarch64/iterators.md (fcvt_target): Support integer to float
13551         mapping.
13552         (FCVT_TARGET): Likewise.
13553         (FCVT_FIXED2F): New iterator.
13554         (FCVT_F2FIXED): Likewise.
13555         (fcvt_fixed_insn): New define_int_attr.
13557 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
13559         * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
13560         some statements was removed.
13562 2016-06-08  Alan Hayward  <alan.hayward@arm.com>
13564         * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
13565         * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
13566         (vect_can_advance_ivs_p): likewise.
13567         (vect_update_ivs_after_vectorizer): likewise.
13568         * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
13569         (vect_analyze_scalar_cycles_1): likewise.
13570         (vect_analyze_loop_operations): likewise.
13571         (report_vect_op): likewise.
13572         (vect_is_slp_reduction): likewise.
13573         (vect_is_simple_reduction): likewise.
13574         (get_initial_def_for_induction): likewise.
13575         (vect_transform_loop): likewise.
13576         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
13577         (vect_recog_sad_pattern): likewise.
13578         (vect_recog_widen_sum_pattern): likewise.
13579         (vect_recog_widening_pattern): likewise.
13580         (vect_recog_divmod_pattern): likewise.
13581         * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
13582         (vect_analyze_slp_instance): likewise.
13583         (vect_transform_slp_perm_load): likewise.
13584         (vect_schedule_slp_instance): likewise.
13586 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
13588         * predict.c (predict_iv_comparison): Mention that heuristics is broken.
13589         (return_prediction): PRED_CONST_RETURN predict return as not taken.
13590         * predict.def (PRED_CONTINUE): Change hitrate 50->67
13591         (PRED_LOOP_BRANCH): Document predictor as broken.
13592         (PRED_LOOP_EXIT): Change hitrate 91->92.
13593         (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
13594         (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
13595         (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
13596         (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
13597         (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
13598         (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
13599         (PRED_CALL): Chane hitrate 71->67.
13600         (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
13601         (PRED_GOTO): Document as unused right now.
13602         (PRED_CONST_RETURN): Change hitrate 67->69
13603         (PRED_NEGATIVE_RETURN): Change hitrate 96->98
13604         (PRED_NULL_RETURN): Change hitrate 91->90.
13605         (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
13606         (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
13607         (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
13609 2016-06-07  Bill Seurer  <seurer@linux.vnet.ibm.com>
13611         * config/rs6000/altivec.h: Add __builtin_vec_mul.
13612         * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
13613         special case Altivec builtin.
13614         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
13615         VSX_BUILTIN_VEC_MUL (replaced with special case code).
13616         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
13617         code for ALTIVEC_BUILTIN_VEC_MUL.
13618         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
13619         for __builtin_vec_mul.
13621 2016-06-07  Peter Bergner  <bergner@vnet.ibm.com>
13623         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
13624         -mno-htm.
13626 2016-06-07  David Malcolm  <dmalcolm@redhat.com>
13628         * spellcheck.c (selftest::test_find_closest_string): New function.
13629         (spellcheck_c_tests): Call the above.
13631 2016-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13633         * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable.
13635 2016-06-07  Jakub Jelinek  <jakub@redhat.com>
13637         * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
13638         Yv=Yv,C alternatives.
13640 2016-06-07  Richard Biener  <rguenther@suse.de>
13642         PR c/61564
13643         * common.opt (ffast-math): Make Optimization.
13645 2016-06-07  Simon Dardis  <simon.dardis@imgtec.com>
13646             Prachi Godbole  <prachi.godbole@imgtec.com>
13648         * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
13649         `fabs' and `fneg' type attributes.
13650         (p5600_fpu_fabs): Add `fmove' to the comment.
13652 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
13654         * gimple.c: Include builtins.h
13655         (gimple_inexpensive_call_p): New function.
13656         * gimple.h (gimple_inexpensive_call_p): Declare.
13657         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
13658         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
13659         fix formatting.
13661 2016-06-07  Paolo Carlini  <paolo.carlini@oracle.com>
13663         * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
13664         (inform, inform_at_rich_loc, inform_n, warning, warning_at,
13665         warning_at_rich_loc, warning_n, pedwarn, permerror,
13666         permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
13667         sorry, fatal_error, internal_error, internal_error_no_backtrace):
13668         Use the above.
13670 2016-06-07  Richard Biener  <rguenther@suse.de>
13672         PR tree-optimization/71428
13673         * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
13674         BIT_FIELD_REF op vs. load.
13676 2016-06-07  Richard Biener  <rguenther@suse.de>
13678         PR middle-end/71423
13679         * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
13680         for signed ops.
13682 2016-06-06  John David Anglin  <danglin@gcc.gnu.org>
13684         * config/pa/pa.md (call): Generate indirect long calls to non-local
13685         functions on TARGET_64BIT.
13686         (call_value): Likewise.
13688 2016-06-06  John David Anglin  <danglin@gcc.gnu.org>
13690         * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
13691         pattern and subsequent splitters.
13692         (call_val_reg_64bit_post_reload): Likewise.
13694 2016-06-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
13696         PR middle-end/71408
13697         * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
13698         propagate_op_to_single_use.
13700 2016-06-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
13702         PR middle-end/71281
13703         * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
13705 2016-06-07  Uros Bizjak  <ubizjak@gmail.com>
13707         * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
13708         (enum x86_dirflag_state): New enum.
13709         (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
13710         (machine_function): Remove needs_cld.
13711         (ix86_current_function_needs_cld): Remove.
13712         * config/i386/i386.c (ix86_set_func_type): Set
13713         ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
13714         (ix86_expand_prologue): Do not emit CLD here.
13715         (ix86_dirflag_mode_needed): New function.
13716         (ix86_dirflag_mode_entry): Ditto.
13717         (ix86_mode_needed): Handle X86_DIRFLAG entity.
13718         (ix86_mode_after): Ditto.
13719         (ix86_mode_entry): Ditto.
13720         (ix86_mode_exit): Ditto.
13721         (ix86_emit_mode_set): Ditto.
13722         * config/i386/i386.md (strmov_singleop): Set
13723         ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
13724         Do not set ix86_current_function_needs_cld.
13725         (rep_mov): Ditto.
13726         (strset_singleop): Ditto.
13727         (rep_stos): Ditto.
13728         (cmpstrnqi_nz_1): Ditto.
13729         (cmpstrnqi_1): Ditto.
13730         (strlenqi_1): Ditto.
13732 2016-06-06  Jakub Jelinek  <jakub@redhat.com>
13734         PR tree-optimization/71259
13735         * tree-vect-slp.c (vect_get_constant_vectors): For
13736         VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
13737         one for constant op, and use COND_EXPR for non-constant.
13739 2016-06-06  David Malcolm  <dmalcolm@redhat.com>
13741         * Makefile.in (OBJS): Add function-tests.o,
13742         hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
13743         selftest-run-tests.o.
13744         (OBJS-libcommon): Add selftest.o.
13745         (OBJS-libcommon-target): Add selftest.o.
13746         (all.internal): Add "selftest".
13747         (all.cross): Likewise.
13748         (selftest): New phony target.
13749         (s-selftest): New target.
13750         (selftest-gdb): New phony target.
13751         (COLLECT2_OBJS): Add selftest.o.
13752         * bitmap.c: Include "selftest.h".
13753         (selftest::test_gc_alloc): New function.
13754         (selftest::test_set_range): New function.
13755         (selftest::test_clear_bit_in_middle): New function.
13756         (selftest::test_copying): New function.
13757         (selftest::test_bitmap_single_bit_set_p): New function.
13758         (selftest::bitmap_c_tests): New function.
13759         * common.opt (fself-test): New.
13760         * diagnostic-show-locus.c: Include "selftest.h".
13761         (make_range): New function.
13762         (test_range_contains_point_for_single_point): New function.
13763         (test_range_contains_point_for_single_line): New function.
13764         (test_range_contains_point_for_multiple_lines): New function.
13765         (assert_eq): New function.
13766         (test_get_line_width_without_trailing_whitespace): New function.
13767         (selftest::diagnostic_show_locus_c_tests): New function.
13768         * et-forest.c: Include "selftest.h".
13769         (selftest::test_single_node): New function.
13770         (selftest::test_simple_tree): New function.
13771         (selftest::test_disconnected_nodes): New function.
13772         (selftest::et_forest_c_tests): New function.
13773         * fold-const.c: Include "selftest.h".
13774         (selftest::assert_binop_folds_to_const): New function.
13775         (selftest::assert_binop_folds_to_nonlvalue): New function.
13776         (selftest::test_arithmetic_folding): New function.
13777         (selftest::fold_const_c_tests): New function.
13778         * function-tests.c: New file.
13779         * gimple.c: Include "selftest.h".
13780         Include "gimple-pretty-print.h".
13781         (selftest::verify_gimple_pp): New function.
13782         (selftest::test_assign_single): New function.
13783         (selftest::test_assign_binop): New function.
13784         (selftest::test_nop_stmt): New function.
13785         (selftest::test_return_stmt): New function.
13786         (selftest::test_return_without_value): New function.
13787         (selftest::gimple_c_tests): New function.
13788         * hash-map-tests.c: New file.
13789         * hash-set-tests.c: New file.
13790         * input.c: Include "selftest.h".
13791         (selftest::assert_loceq): New function.
13792         (selftest::test_accessing_ordinary_linemaps): New function.
13793         (selftest::test_unknown_location): New function.
13794         (selftest::test_builtins): New function.
13795         (selftest::test_reading_source_line): New function.
13796         (selftest::input_c_tests): New function.
13797         * rtl-tests.c: New file.
13798         * selftest-run-tests.c: New file.
13799         * selftest.c: New file.
13800         * selftest.h: New file.
13801         * spellcheck.c: Include "selftest.h".
13802         (selftest::levenshtein_distance_unit_test_oneway): New function,
13803         adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
13804         (selftest::levenshtein_distance_unit_test): Likewise.
13805         (selftest::spellcheck_c_tests): Likewise.
13806         * toplev.c: Include selftest.h.
13807         (toplev::run_self_tests): New.
13808         (toplev::main): Handle -fself-test.
13809         * toplev.h (toplev::run_self_tests): New.
13810         * tree.c: Include "selftest.h".
13811         (selftest::test_integer_constants): New function.
13812         (selftest::test_identifiers): New function.
13813         (selftest::test_labels): New function.
13814         (selftest::tree_c_tests): New function.
13815         * tree-cfg.c: Include "selftest.h".
13816         (selftest::push_fndecl): New function.
13817         (selftest::test_linear_chain): New function.
13818         (selftest::test_diamond): New function.
13819         (selftest::test_fully_connected): New function.
13820         (selftest::tree_cfg_c_tests): New function.
13821         * vec.c: Include "selftest.h".
13822         (selftest::safe_push_range): New function.
13823         (selftest::test_quick_push): New function.
13824         (selftest::test_safe_push): New function.
13825         (selftest::test_truncate): New function.
13826         (selftest::test_safe_grow_cleared): New function.
13827         (selftest::test_pop): New function.
13828         (selftest::test_safe_insert): New function.
13829         (selftest::test_ordered_remove): New function.
13830         (selftest::test_unordered_remove): New function.
13831         (selftest::test_block_remove): New function.
13832         (selftest::reverse_cmp): New function.
13833         (selftest::test_qsort): New function.
13834         (selftest::vec_c_tests): New function.c.
13835         * wide-int.cc: Include selftest.h and wide-int-print.h.
13836         (selftest::from_int <wide_int>): New function.
13837         (selftest::from_int <offset_int>): New function.
13838         (selftest::from_int <widest_int>): New function.
13839         (selftest::assert_deceq): New function.
13840         (selftest::assert_hexeq): New function.
13841         (selftest::test_printing <VALUE_TYPE>): New function template.
13842         (selftest::test_ops <VALUE_TYPE>): New function template.
13843         (selftest::test_comparisons <VALUE_TYPE>): New function template.
13844         (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
13845         template.
13846         (selftest::wide_int_cc_tests): New function.
13848 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13850         PR middle-end/37780
13851         * ifcvt.c (noce_try_ifelse_collapse): New function.
13852         Declare prototype.
13853         (noce_process_if_block): Call noce_try_ifelse_collapse.
13854         * simplify-rtx.c (simplify_cond_clz_ctz): New function.
13855         (simplify_ternary_operation): Use the above to simplify
13856         conditional CLZ/CTZ expressions.
13858 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13860         PR middle-end/37780
13861         * config/aarch64/aarch64.md (ctz<mode>2): Convert to
13862         define_insn_and_split.
13864 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13866         PR middle-end/37780
13867         * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
13869 2016-06-06  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13871         PR c/24414
13872         * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
13873         Implicitly clobber memory for basic asm with non-empty assembler
13874         string.  Use targetm.md_asm_adjust also here.
13875         * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
13876         * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
13877         * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
13878         non-empty assembler string.
13879         * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
13880         * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
13881         (decode_asm_operands): Handle basic asm in PARALLEL block.
13882         (extract_insn): Handle basic asm in PARALLEL block.
13883         * doc/extend.texi: Mention new behavior of basic asm.
13884         * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
13885         * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
13886         branch_needs_nop_p): Use asm_noperands.
13888 2016-06-06  Jose E. Marchesi  <jose.marchesi@oracle.com>
13890         * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
13891         Include the M7 SPARC DFA scheduler.
13892         New attribute v3pipe.
13893         Annotate insns with v3pipe where appropriate.
13894         Define cpu_feature vis4.
13895         Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
13896         Add (V8QI "8") to vbits.
13897         Add insns {add,sub}v8qi3
13898         Add insns ss{add,sub}v8qi3
13899         Add insns us{add,sub}{v8qi,v4hi}3
13900         Add insns {min,max}{v8qi,v4hi,v2si}3
13901         Add insns {minu,maxu}{v8qi,v4hi,v2si}3
13902         Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
13903         * config/sparc/niagara4.md: Add a comment explaining the
13904         discrepancy between the documented latenty numbers and the
13905         implemented ones.
13906         * config/sparc/niagara7.md: New file.
13907         * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
13908         supports SPARC5 and VIS 4.0 instructions.
13909         * configure: Regenerate.
13910         * config.in: Likewise.
13911         * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
13912         * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
13913         TARGET_CPU_niagara7.
13914         (ASM_CPU64_DEFAULT_SPEC): Likewise.
13915         (CPP_CPU_SPEC): Handle niagara7.
13916         (ASM_CPU_SPEC): Likewise.
13917         * config/sparc/sparc-opts.h (processor_type): Add
13918         PROCESSOR_NIAGARA7.
13919         (mvis4): New option.
13920         * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
13921         (AS_NIAGARA7_FLAG): Define.
13922         (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
13923         (CPP_CPU64_DEFAULT_SPEC): Likewise.
13924         (CPP_CPU_SPEC): Handle niagara7.
13925         (ASM_CPU_SPEC): Likewise.
13926         * config/sparc/sparc.c (niagara7_costs): Define.
13927         (sparc_option_override): Handle niagara7 and adjust cache-related
13928         parameters with better values for niagara cpus.  Also support VIS4.
13929         (sparc32_initialize_trampoline): Likewise.
13930         (sparc_use_sched_lookahead): Likewise.
13931         (sparc_issue_rate): Likewise.
13932         (sparc_register_move_cost): Likewise.
13933         (dump_target_flag_bits): Support VIS4.
13934         (sparc_vis_init_builtins): Likewise.
13935         (sparc_builtins): Likewise.
13936         * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
13937         VIS4 4.0.
13938         * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
13939         UltraSparc M7.
13940         * config/sparc/sparc.opt (sparc_processor_type): New value
13941         niagara7.
13942         * config/sparc/visintrin.h (__attribute__): Prototypes for the
13943         VIS4 builtins.
13944         * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
13945         -mvis4.
13946         * doc/extend.texi (SPARC VIS Built-in Functions): Document the
13947         VIS4 builtins.
13949 2016-06-06  Jonathan Wakely  <jwakely@redhat.com>
13951         * doc/sourcebuild.texi (Directives): Remove extra closing braces.
13953 2016-06-06  Richard Biener  <rguenther@suse.de>
13955         PR tree-optimization/71398
13956         * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
13957         remove edges.
13959 2016-06-05  James Bowman  <james.bowman@ftdichip.com>
13961         * config/ft32/ft32.c (ft32_setup_incoming_varargs,
13962         ft32_expand_prolog, ft32_expand_epilogue):
13963         Handle pretend_args.
13964         * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
13965         * config/ft32/ft32.md: Add pretend_returner.
13967 2016-06-06  Uros Bizjak  <ubizjak@gmail.com>
13969         PR target/71389
13970         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
13971         Copy op1 RTX to avoid invalid sharing.
13972         (ix86_expand_vector_move_misalign): Ditto.
13974 2016-06-05  John David Anglin  <danglin@gcc.gnu.org>
13976         * expr.c (move_by_pieces_d::generate): Mark mode parameter with
13977         ATTRIBUTE_UNUSED.
13979 2016-06-05  Jan Hubicka  <hubicka@ucw.cz>
13981         * predict.c (predicted_by_loop_heuristics_p): New function.
13982         (predict_iv_comparison): Use it.
13983         (predict_loops): Walk from innermost loops; do not predict edges
13984         leaving multiple loops multiple times; implement
13985         PRED_LOOP_ITERATIONS_MAX heuristics.
13986         * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
13988 2016-06-05  Jan Hubicka  <hubicka@ucw.cz>
13990         * cfg.c (check_bb_profile): Do not report mismatched profiles when
13991         only edges out of BB are EH edges.
13993 2016-06-04  Martin Sebor  <msebor@redhat.com>
13994             Marcin Baczyński  <marbacz@gmail.com>
13996         PR c/48116
13997         * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
13998         a void expression in a void function.
14000 2016-06-03  Jan Hubicka  <hubicka@ucw.cz>
14002         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
14003         aux; dump reasons of decisions.
14004         (should_duplicate_loop_header_p): Likewise.
14005         (do_while_loop_p): Likewise.
14006         (ch_base::copy_headers): Dump asi num insns duplicated.
14008 2016-06-04  Jakub Jelinek  <jakub@redhat.com>
14010         PR tree-optimization/71405
14011         * tree-ssa.c (execute_update_addresses_taken): For clobber with
14012         incompatible type, build a new clobber with the right type instead
14013         of building a VIEW_CONVERT_EXPR around it.
14015 2016-06-04  Oleg Endo  <olegendo@gcc.gnu.org>
14017         PR tree-optimization/52171
14018         * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
14019         by_pieces_ninsns instead of move_by_pieces_ninsns.
14021 2016-06-04  Oleg Endo  <olegendo@gcc.gnu.org>
14023         * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
14024         for reg+reg addressing mode.
14026 2016-06-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14028         * rs6000-c.c (c/c-tree.h): Add #include.
14029         (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
14030         in C++ when found in the base position of vec_ld or vec_st.
14032 2016-06-03  Jan Hubicka  <hubicka@ucw.cz>
14034         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
14035         use of profile unless profile status is PROFILE_READ.
14036         * profile.c (compute_branch_probabilities): Set profile status
14037         only after reporting predictor hitrates.
14039 2016-06-03  Joseph Myers  <joseph@codesourcery.com>
14041         PR target/71276
14042         PR target/71277
14043         * common.opt (ffp-int-builtin-inexact): New option.
14044         * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
14045         * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
14046         (ceil@var{m}2): Document dependence on this option.
14047         * ipa-inline-transform.c (inline_call): Handle
14048         flag_fp_int_builtin_inexact.
14049         * ipa-inline.c (can_inline_edge_p): Likewise.
14050         * config/i386/i386.md (rintxf2): Do not test
14051         flag_unsafe_math_optimizations.
14052         (rint<mode>2_frndint): New define_insn.
14053         (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
14054         or !flag_trapping_math for SSE.  Just use gen_rint<mode>2_frndint
14055         for 387 instead of extending and truncating.
14056         (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
14057         !flag_trapping_math instead of flag_unsafe_math_optimizations.
14058         Change to frndint<mode>2_<rounding>.
14059         (frndintxf2_<rounding>_i387): Likewise.  Change to
14060         frndint<mode>2_<rounding>_i387.
14061         (<rounding_insn>xf2): Likewise.
14062         (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
14063         !flag_trapping_math instead of flag_unsafe_math_optimizations for
14064         x87.  Test TARGET_ROUND || !flag_trapping_math ||
14065         flag_fp_int_builtin_inexact instead of !flag_trapping_math for
14066         SSE.  Use ROUND_NO_EXC in constant operand of
14067         gen_sse4_1_round<mode>2.  Just use gen_frndint<mode>2_<rounding>
14068         for 387 instead of extending and truncating.
14070 2016-06-03  H.J. Lu  <hongjiu.lu@intel.com>
14071             Julia Koval  <julia.koval@intel.com>
14073         PR target/66960
14074         PR target/67630
14075         PR target/67634
14076         PR target/67841
14077         PR target/68037
14078         PR target/68618
14079         PR target/68661
14080         PR target/69575
14081         PR target/69596
14082         PR target/69734
14083         * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
14084         * config/i386/i386.c (ix86_conditional_register_usage): Preserve
14085         all registers, except for function return registers if there are
14086         no caller-saved registers.
14087         (ix86_set_func_type): New function.
14088         (ix86_set_current_function): Call ix86_set_func_type to set
14089         no_caller_saved_registers and func_type.  Call reinit_regs if
14090         caller-saved registers are changed.  Don't allow MPX, SSE, MMX
14091         nor x87 instructions in interrupt handler nor function with
14092         no_caller_saved_registers attribute.
14093         (ix86_function_ok_for_sibcall): Return false if there are no
14094         caller-saved registers.
14095         (type_natural_mode): Don't warn ABI change for MMX in interrupt
14096         handler.
14097         (ix86_function_arg_advance): Skip for callee in interrupt handler.
14098         (ix86_function_arg): Return special arguments in interrupt handler.
14099         (ix86_promote_function_mode): Promote pointer to word_mode only
14100         for normal functions.
14101         (ix86_can_use_return_insn_p): Don't use `ret' instruction in
14102         interrupt handler.
14103         (ix86_epilogue_uses): New function.
14104         (ix86_hard_regno_scratch_ok): Likewise.
14105         (ix86_save_reg): Preserve all registers in interrupt handler
14106         after reload.  Preserve all registers, except for function return
14107         registers, if there are no caller-saved registers after reload.
14108         (find_drap_reg): Always use callee-saved register if there are
14109         no caller-saved registers.
14110         (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
14111         for interrupt handler.
14112         (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
14113         Emit cld instruction if stringops are used in interrupt handler
14114         or interrupt handler isn't a leaf function.
14115         (ix86_expand_epilogue): Generate interrupt return for interrupt
14116         handler and pop the 'ERROR_CODE' off the stack before interrupt
14117         return in exception handler.
14118         (ix86_expand_call): Disallow calling interrupt handler directly.
14119         If there are no caller-saved registers, mark all registers that
14120         are clobbered by the call which returns as clobbered.
14121         (ix86_handle_no_caller_saved_registers_attribute): New function.
14122         (ix86_handle_interrupt_attribute): Likewise.
14123         (ix86_attribute_table): Add interrupt and no_caller_saved_registers
14124         attributes.
14125         (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
14126         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
14127         accumulation in interrupt function if stack may be realigned to
14128         avoid DRAP.
14129         (EPILOGUE_USES): New.
14130         (function_type): New enum.
14131         (machine_function): Add func_type and no_caller_saved_registers.
14132         * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
14133         (interrupt_return): New pattern.
14134         * doc/extend.texi: Document x86 interrupt and
14135         no_caller_saved_registers attributes.
14137 2016-06-03  Bernd Schmidt  <bschmidt@redhat.com>
14139         PR tree-optimization/52171
14140         * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
14141         (expand_builtin_memcmp): New arg RESULT_EQ.  All callers changed.
14142         Look for constant strings.  Move some code to emit_block_cmp_hints
14143         and use it.
14144         * builtins.def (BUILT_IN_MEMCMP_EQ): New.
14145         * defaults.h (COMPARE_MAX_PIECES): New macro.
14146         * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
14147         (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
14148         (clear_by_pieces_1): Don't declare.  Move definition before use.
14149         (can_do_by_pieces): New static function.
14150         (can_move_by_pieces): Use it.  Return bool.
14151         (by_pieces_ninsns): Renamed from move_by_pieces_ninsns.  New arg
14152         OP.  All callers changed.  Handle COMPARE_BY_PIECES.
14153         (class pieces_addr); New.
14154         (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
14155         pieces_addr::adjust, pieces_addr::increment_address,
14156         pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
14157         functions for it.
14158         (class op_by_pieces_d): New.
14159         (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
14160         functions for it.
14161         (class move_by_pieces_d, class compare_by_pieces_d,
14162         class store_by_pieces_d): New subclasses of op_by_pieces_d.
14163         (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
14164         move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
14165         store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
14166         compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
14167         compare_by_pieces_d::finish_mode): New member functions.
14168         (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
14169         functions.
14170         (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
14171         (emit_block_cmp_hints): New function.
14172         (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
14173         use the newly defined classes.
14174         * expr.h (by_pieces_constfn): New typedef.
14175         (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
14176         (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
14177         (move_by_pieces_ninsns): Don't declare.
14178         (can_move_by_pieces): Change return value to bool.
14179         * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
14180         (compare_by_pieces_branch_ratio): New hook.
14181         * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
14182         (by_pieces_ninsns): Declare.
14183         * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
14184         COMPARE_BY_PIECES.
14185         (default_compare_by_pieces_branch_ratio): New function.
14186         * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
14187         * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
14188         * doc/tm.texi: Regenerate.
14189         * tree-ssa-strlen.c: Include "builtins.h".
14190         (handle_builtin_memcmp): New static function.
14191         (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
14192         * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
14194 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
14196         * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
14197         relevant stmts which are simple and invariant.
14198         * tree-vect-loop.c (vectorizable_live_operation): Check relevance
14199         instead of simple and invariant
14201 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
14203         * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
14204         (vectorizable_reduction): Check for new relevant state.
14205         (vectorizable_live_operation): vectorize live stmts using
14206         BIT_FIELD_REF.  Remove special case for gimple assigns stmts.
14207         * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
14208         (vect_stmt_relevant_p): Check for stmts which are only used live.
14209         (process_use): Use of a stmt does not inherit it's live value.
14210         (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
14211         (vect_analyze_stmt): Check for new relevant state.
14212         * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
14213         outside the loop, but not inside it.
14215 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
14217         * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
14218         * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
14219         (vect_get_vec_def_for_operand): Split out code.
14221 2016-06-03  Segher Boessenkool  <segher@kernel.crashing.org>
14223         * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
14225 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
14227         * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
14229 2016-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14231         * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
14233 2016-06-03  Jakub Jelinek  <jakub@redhat.com>
14235         PR middle-end/71387
14236         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
14237         to noreturn e->callee->decl that has void return type and void
14238         arguments, adjust gimple_call_fntype and remove lhs even if it had
14239         previously addressable type.
14241 2016-06-02  Jeff Law  <law@redhat.com>
14243         PR tree-optimization/71328
14244         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
14245         error when checking for a jump back onto the copied path.
14247 2016-06-02  David Malcolm  <dmalcolm@redhat.com>
14249         * config/microblaze/microblaze.c (get_branch_target): Add return
14250         NULL_RTX for the non-CALL_P case.
14251         (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
14252         (insert_wic): Remove unused local "j".
14254 2016-06-02  Martin Liska  <mliska@suse.cz>
14256         * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
14258 2016-06-02  H.J. Lu  <hongjiu.lu@intel.com>
14259             Julia Koval  <julia.koval@intel.com>
14261         * function.c (assign_parm_setup_stack): Force source into a
14262         register if needed.
14263         * target.def (function_incoming_arg): Update documentation to
14264         allow arbitrary address computation based on hard register.
14265         * doc/tm.texi: Regenerated.
14267 2016-06-02  Martin Liska  <mliska@suse.cz>
14269         * predict.c (combine_predictions_for_bb): Fix first match in
14270         cases where a first predictor contains more than one occurence
14271         in list of predictors.  Take the best value in such case.
14273 2016-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14275         PR rtl-optimization/71295
14276         * rtlanal.c (subreg_get_info): If taking a subreg at the requested
14277         offset would go over the size of the inner mode reject it.
14279 2016-06-02  Jakub Jelinek  <jakub@redhat.com>
14281         * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
14282         x=x,x and v=v,m instead of x=x,m.
14284         * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
14285         alternative.  Change x=x,x alternative to v=Yv,Yv and x=rm,C
14286         alternative to v=rm,C.
14288         * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
14289         alternative.  Change x=xm,C alternative to v=vm,C, x=x,x alternative
14290         to v=Yv,Yv and x=x,m to v=v,m.  Use maybe_evex prefix attribute
14291         instead of vex for the last two above mentioned alternatives.
14293 2016-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14295         PR target/70830
14296         * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
14298 2016-06-02  Segher Boessenkool  <segher@kernel.crashing.org>
14300         * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
14302 2016-06-01  David Malcolm  <dmalcolm@redhat.com>
14304         * config/rl78/rl78.c (rl78_expand_prologue): Convert local
14305         from int to unsigned.
14307 2016-05-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
14309         * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
14310         alternatives, eliminating preferred register class.  Add support
14311         for the MTVSRDD instruction in ISA 3.0.
14312         (vsx_splat_v4si_internal): Use splat_input_operand instead of
14313         reg_or_indexed_operand.
14314         (vsx_splat_v4sf_internal): Likewise.
14316 2016-05-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
14318         PR target/71186
14319         * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
14320         for loading up all 0's or all 1's.
14322 2016-06-01  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14324         * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
14326 2016-06-01  Eduard Sanou  <dhole@openmailbox.org>
14328         * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
14329         extension.
14330         * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
14331         * gcc.c (set_source_date_epoch_envvar): New function, sets
14332         the SOURCE_DATE_EPOCH environment variable to the current time.
14334 2016-06-01  Eric Botcazou  <ebotcazou@adacore.com>
14336         * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
14337         the factor for live Phi nodes.
14339 2016-06-01  Jan Hubicka  <hubicka@ucw.cz>
14341         * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
14342         * tree-parloops.c (parallelize_loops): likewise.
14343         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
14344         tree_unswitch_outer_loop): likewise.
14346 2016-06-01  Jakub Jelinek  <jakub@redhat.com>
14348         PR middle-end/71371
14349         * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
14350         around creation of the temporary.
14352 2016-06-01  Richard Biener  <rguenther@suse.de>
14354         PR tree-optimization/71366
14355         * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
14356         (unloop_loops): Move removing edges here ...
14357         (try_unroll_loop_completely): ... from here.
14358         (try_peel_loop): ... and here.
14359         (tree_unroll_loops_completely_1): Track parent loops via
14360         bitmap of header BBs.
14361         (tree_unroll_loops_completely): Adjust for that.
14363 2016-06-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
14365         * config/rs6000/altivec.h (vec_slv): New macro.
14366         (vec_srv): New macro.
14367         * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
14368         (UNSPEC_VSRV): New value.
14369         (vslv): New insn.
14370         (vsrv): New insn.
14371         * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
14372         (vsrv): New builtin definition.
14373         * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
14374         define argument types for new builtin.
14375         (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
14376         new builtin.
14377         * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
14378         functions.
14380 2016-06-01  Uros Bizjak  <ubizjak@gmail.com>
14381             Jocelyn Mayer  <l_indien@magic.fr>
14383         PR target/67310
14384         * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
14385         detect processor family for signature_CENTAUR_ebx.
14386         <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
14387         signature_CENTAUR_ebx.
14388         <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
14389         <default>: Pass x86-64 for has_longmode.
14391 2016-06-01  Nathan Sidwell  <nathan@acm.org>
14393         * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
14394         undefined weak.
14396 2016-06-01  Richard Biener  <rguenther@suse.de>
14398         PR tree-optimization/71261
14399         * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
14400         of stmts successfully put in the bool pattern.  Remove
14401         single-use restriction.
14402         (adjust_bool_pattern_cast): Add cast at the use site via the
14403         pattern def sequence.
14404         (adjust_bool_pattern): Remove recursion, maintain a hash-map
14405         of patterned defs.  Use the pattern def seqence instead of
14406         multiple independent patterns.
14407         (sort_after_uid): New qsort compare function.
14408         (adjust_bool_stmts): New function to process stmts in the bool
14409         pattern in IL order.
14410         (vect_recog_bool_pattern): Adjust.
14411         * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
14412         (ifcvt_walk_pattern_tree): Likewise.
14413         (stmt_is_root_of_bool_pattern): Likewise.
14414         (ifcvt_repair_bool_pattern): Likewise.
14415         (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
14417 2016-06-01  Jan Hubicka  <hubicka@ucw.cz>
14419         * loop-unroll.c (decide_unroll_constant_iterations,
14420         decide_unroll_runtime_iterations, decide_unroll_stupid): Use
14421         likely upper bounds.
14422         * loop-iv.c (find_simple_exit): Dump likely upper bounds.
14424 2016-06-01  Thomas Schwinge  <thomas@codesourcery.com>
14426         * tree-core.h (enum omp_clause_code): Remove
14427         OMP_CLAUSE_DEVICE_RESIDENT.  Adjust all users.
14429 2016-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14431         * config/arm/sync.md (arm_store_exclusive<mode>):
14432         Use 'H' output modifier on operands[2] rather than creating a new
14433         entry in out-of-bounds memory of the operands array.
14434         (arm_store_release_exclusivedi): Likewise.
14436 2016-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14438         * config/arm/arm.c (arm_fusion_enabled_p): New function.
14439         * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
14440         * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
14441         Add "=w,0" alternative.  Enable it when AES/AESMC fusion is enabled.
14443 2016-06-01  Eric Botcazou  <ebotcazou@adacore.com>
14445         * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
14446         into account live statements for mask producers.
14448 2016-06-01  Richard Biener  <rguenther@suse.de>
14450         PR tree-optimization/71311
14451         * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
14452         restrict to non-INTEGER_CST @0.
14454 2016-06-01  Richard Biener  <rguenther@suse.de>
14456         * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
14457         (relational patterns): Use :c to avoid pattern duplications.
14459 2016-06-01  Richard Biener  <rguenther@suse.de>
14461         * genmatch.c (comparison_code_p): New predicate.
14462         (swap_tree_comparison): New function.
14463         (commutate): Add for_vec parameter to append new for entries.
14464         Support commutating relational operators by swapping it alongside
14465         operands.
14466         (lower_commutative): Adjust.
14467         (dt_simplify::gen): Do not pass artificial operators to gen
14468         functions.
14469         (decision_tree::gen): Do not add artificial operators as parameters.
14470         (parser::parse_expr): Verify operator commutativity when :c is
14471         applied.  Allow :C to override this.
14472         * match.pd: Adjust patterns to use :C instead of :c where required.
14474 2016-06-01  Patrick Palka  <ppalka@gcc.gnu.org>
14476         PR tree-optimization/71077
14477         * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
14478         the combining step, use boolean_false_node and boolean_true_node
14479         as the designated false/true return values.
14481 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
14483         * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
14484         * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
14485         (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
14486         PRED_LOOP_EXIT.
14488 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
14490         * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
14491         of flags impliying the register renaming.
14492         * toplev.c (process_options): Do not imply flag_rename_registers with
14493         loop peeling.
14495 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
14497         * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
14498         default implementation.
14500 2016-05-31  Nathan Sidwell  <nathan@acm.org>
14502         * dwarf2out.c (cur_line_info_table): Add GTY marker.
14504 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
14506         * config/sh/constraints.md (b): Remove constraint.
14507         * config/sh/predicates.md (arith_reg_operand): Remove
14508         TARGET_REGISTER_P.
14509         * config/sh/sh-modes.def (PDI): Remove.
14510         * config/sh/sh.c (sh_target_reg_class,
14511         sh_optimize_target_register_callee_saved): Remove functions.
14512         (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
14513         (sh_expand_epilogue): Update comment.
14514         (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
14515         sh_secondary_reload): Remove TARGET_REGS related code.
14516         * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
14517         TARGET_REGISTER_P): Remove macros.
14518         (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
14519         * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
14520         TR1_REG, TR2_REG): Remove constants.
14521         * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
14523 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
14525         * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
14526         define_expand patterns.
14527         (adddi3_compact): Rename to adddi3.
14528         (subdi3_compact): Rename to subdi3.
14529         (*negdi2): Rename to negdi2.
14530         (*abs<mode>2): Rename to abs<mode>2.
14532 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
14534         * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
14535         (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
14536         (atomic_sub_fetchsi): ... this new pattern.
14537         (mvtc): Add CC_REG clobber.
14539 2016-05-31  Marek Polacek  <polacek@redhat.com>
14541         * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
14543 2016-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14545         * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
14546         aarch64_fusion_enabled_p to check for fusion capabilities.
14548 2016-05-31  Richard Biener  <rguenther@suse.de>
14550         PR tree-optimization/71352
14551         * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
14552         minus one and a negate.
14554 2016-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14556         * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
14557         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
14558         Delete prototype.
14559         * config/aarch64/iterators.md (insn_count): Add descriptive comment.
14560         * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
14561         Remove use of aarch64_simd_attr_length_move, set length attribute
14562         directly.
14563         (*aarch64_be_movoi): Likewise.
14564         (*aarch64_be_movci): Likewise.
14565         (*aarch64_be_movxi): Likewise.
14567 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
14569         * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
14570         It no longer does that.
14571         * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
14573 2016-05-31  Wladimir J. van der Laan  <laanwj@gmail.com>
14575         * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
14576         attribute __unused__.
14578 2016-05-31  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14580         * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
14581         * config/arm/arm.c (arm_arch_thumb1): Define.
14582         (arm_option_override): Initialize arm_arch_thumb1.
14583         * config/arm/arm.h (arm_arch_thumb1): Declare.
14584         (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
14585         support Thumb-1 ISA.
14587 2016-05-31  Kirill Yukhin  <kirill.yukhin@intel.com>
14589         PR target/71346
14590         * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
14591         `Yv' for scalar operand.
14593 2016-05-31  Tom de Vries  <tom@codesourcery.com>
14595         PR tree-optimization/69068
14596         * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
14597         phis with more than two args.
14599 2016-05-30  Andreas Tobler  <andreast@gcc.gnu.org>
14601         * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
14602         armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
14603         target.
14605 2016-05-30  Jose E. Marchesi  <jose.marchesi@oracle.com>
14607         * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
14608         tune_64.
14609         * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
14610         support on SPARC.
14611         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
14612         cpu_32, cpu_64, tune_32 and tune_64.
14613         * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
14615 2016-05-30  Uros Bizjak  <ubizjak@gmail.com>
14617         * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
14619 2016-05-30  Andi Kleen  <ak@linux.intel.com>
14621         * auto-profile.c (read_profile): Replace asserts with errors
14622         when file does not exist.
14623         * gcov-io.c (gcov_read_words): Dito.
14625 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
14627         * tree-cfg.c (print_loop): Print likely upper bounds.
14629 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
14631         * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
14632         * opts.c (default_options): Enable peel loops at -O3.
14633         * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
14634         (try_peel_loop): Do not re-peel already peeled loops;
14635         use likely upper bounds; fix profile updating.
14636         (pass_complete_unroll::execute): Initialize peeled_loops.
14638 2016-05-30  Martin Liska  <mliska@suse.cz>
14640         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
14641         computed costs by frequency of BB they belong to.
14642         (get_scaled_computation_cost_at): New function.
14644 2016-05-30  Alexander Monakov  <amonakov@ispras.ru>
14645             Marc Glisse  <marc.glisse@inria.fr>
14647         PR tree-optimization/71289
14648         * match.pd (-1 / B < A, A > -1 / B): New transformations.
14650 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
14652         * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
14654 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
14656         * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
14657         for peeled copies; avoid underflow when updating estimates; correctly
14658         scale loop profile.
14660 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
14662         * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
14663         r236875. Corrected oe3 to oe2 as obvious.
14665 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
14667         PR middle-end/71269
14668         PR middle-end/71252
14669         * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
14670         that inserted stmt will not dominate stmts that defines its operand.
14671         (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
14672         (rewrite_expr_tree_parallel): Likewise.
14674 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
14676         PR middle-end/71252
14677         * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
14678         all fields including stmt_to_insert are swapped.
14680 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
14682         * predict.h (force_edge_cold): Declare.
14683         * predict.c (force_edge_cold): New function.
14684         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
14685         updating.
14686         (canonicalize_loop_induction_variables): Fix formating.
14688 2016-05-30  Eric Botcazou  <ebotcazou@adacore.com>
14690         * config/visium/visium.c (visium_split_double_add): Minor tweaks.
14691         (visium_expand_copysign): Use gen_int_mode directly.
14692         (visium_compute_frame_size): Minor tweaks.
14694 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
14696         * tree-vect-loop.c (vect_analyze_loop_2): Use
14697         likely_max_stmt_executions_int.
14699 2016-05-30  Tom de Vries  <tom@codesourcery.com>
14701         PR tree-optimization/69067
14702         * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
14704 2016-05-29  Uros Bizjak  <ubizjak@gmail.com>
14706         PR target/71245
14707         * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
14708         New peepholes to remove unneeded fild/fistp pairs.
14709         (define_peephole2 atomic_loaddi_fpu): Ditto.
14711 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
14713         * predict.c (maybe_hot_frequency_p): Avoid division.
14715 2016-05-28  Gerald Pfeifer  <gerald@pfeifer.com>
14717         * doc/install.texi: Use https for shop.fsf.org.
14719 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
14721         * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
14722         likely_max_stmt_executions_int.
14724 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
14726         * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
14727         likely_max_stmt_executions_int.
14729 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
14731         * profile.c (compute_branch_probabilities): Do not report hitrates
14732         here.
14733         (branch_prob): Report hitrates here.
14734         * predict.c (gimple_predict_edge): Do not assert profile status;
14735         fix formatting issues.
14737 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
14739         * predict.c (edge_predicted_by_p): New function.
14740         (predict_paths_for_bb): Do not put multiple predictions of the same type
14741         on one edge.
14743 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
14745         * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
14746         commit.
14748 2016-05-28  Alan Modra  <amodra@gmail.com>
14750         * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
14752 2016-05-28  Alan Modra  <amodra@gmail.com>
14754         PR rtl-optimization/71275
14755         * ira.c (ira): Free dominance info.
14757 2016-05-27  Gerald Pfeifer  <gerald@pfeifer.com>
14759         * doc/sourcebuild.texi: New address for upstream Go repository.
14761 2016-05-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14763         * config/arm/arm.h (TARGET_ARM_V6M): Remove.
14764         (TARGET_ARM_V7M): Likewise.
14766 2016-05-26  Jeff Law  <law@redhat.com>
14768         * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
14769         (thread_across_edge): Remove calls to find_jump_threads_backwards.
14770         * passes.def: Add jump threading passes before DOM/VRP.
14771         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
14772         argument to a basic block from an edge.  Remove tests which are
14773         handled elsewhere.
14774         (pass_data_thread_jumps, class pass_thread_jumps): New.
14775         (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
14776         (make_pass_thread_jumps): Likewise.
14777         * tree-pass.h (make_pass_thread_jumps): Declare.
14779 2016-05-27  Eric Botcazou  <ebotcazou@adacore.com>
14781         * config/visium/visium-protos.h (split_double_move): Rename into...
14782         (visium_split_double_move): ...this.
14783         (visium_split_double_add): Declare.
14784         * config/visium/visium.c (split_double_move): Rename into...
14785         (visium_split_double_move): ...this.
14786         (visium_split_double_add): New function.
14787         (visium_expand_copysign): Renumber operands for consistency.
14788         * config/visium/visium.md (DImode move splitter): Adjust to renaming.
14789         (DFmode move splitter): Likewise.
14790         (*addi3_insn): Split by means of visium_split_double_add.
14791         (*adddi3_insn_flags): Delete.
14792         (*plus_plus_sltu<subst_arith>): New insn.
14793         (*subdi3_insn): Split by means of visium_split_double_add.
14794         (subdi3_insn_flags): Delete.
14795         (*minus_minus_sltu<subst_arith>): New insn.
14796         (*negdi2_insn): Split by means of visium_split_double_add.
14797         (*negdi2_insn_flags): Delete.
14799 2016-05-27  Ulrich Weigand  <uweigand@de.ibm.com>
14801         * configure.ac: Treat a --with-headers option without argument
14802         the same as the default (i.e. consult sys-include directory).
14803         * configure: Regenerate.
14805 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14807         * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
14808         * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
14809         prototype.
14810         * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
14811         Add "=w,0" alternative.  Enable it when AES/AESMC fusion is enabled.
14813 2016-05-27  Jiong Wang  <jiong.wang@arm.com>
14815         PR target/63596
14816         * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
14817         tree-stdarg analysis results.
14818         (aarch64_setup_incoming_varargs): Likewise.
14820 2016-05-27  Jiong Wang  <jiong.wang@arm.com>
14822         * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
14823         va_list_gpr_counter_field and va_list_fpr_counter_field.
14825 2016-05-27  Wilco Dijkstra  <wdijkstr@arm.com>
14827         PR67609
14828         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
14829         * config/aarch64/aarch64.c
14830         (aarch64_cannot_change_mode_class): Remove function.
14831         * config/aarch64/aarch64-protos.h
14832         (aarch64_cannot_change_mode_class): Remove.
14834 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
14836         * cfgloop.c (record_niter_bound): Record likely upper bounds.
14837         (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
14838         get_likely_max_loop_iterations_int): New.
14839         * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
14840         any_likely_upper_bound.
14841         (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
14842         Declare.
14843         * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
14844         * loop-unroll.c (unroll_loop_constant_iterations): Update likely
14845         upper bound.
14846         (unroll_loop_constant_iterations): Likewise.
14847         (unroll_loop_runtime_iterations): Likewise.
14848         * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
14849         * lto-streamer-out.c (output_cfg): Likewise.
14850         * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
14851         bounds.
14852         (canonicalize_loop_induction_variables): Dump likely upper bounds.
14853         * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
14854         (likely_max_loop_iterations): New.
14855         (likely_max_loop_iterations_int): New.
14856         (likely_max_stmt_executions): New.
14857         * tree-ssa-loop-niter.h (likely_max_loop_iterations,
14858         likely_max_loop_iterations_int, likely_max_stmt_executions_int,
14859         likely_max_stmt_executions): Declare.
14861 2016-05-27  Marek Polacek  <polacek@redhat.com>
14863         PR middle-end/71308
14864         * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
14866 2016-05-27  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14868         * config/s390/s390.md (2x risbg splitters): Use
14869         reg_overlap_mentioned_p instead of rtx_equal_p.
14871 2016-05-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
14873         * combine.c (make_compound_operation): Take known zero bits into
14874         account when checking for possible zero_extend.
14876 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14878         * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
14879         Use const_int_operand for operand 2 predicate.  Simplify expand code
14880         as a result.
14882 2016-05-27  Ilya Enkovich  <ilya.enkovich@intel.com>
14884         PR middle-end/71279
14885         * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
14886         into comparison.
14888 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14890         * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
14891         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
14892         that returns CC_SESWPmode and CC_ZESWPmode.
14893         (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
14894         and CC_SESWPmode.
14895         (aarch64_rtx_costs): Likewise.
14897 2016-05-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
14899         * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
14900         for ISA 3.0 min/max support.
14901         (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
14902         conditional move support.
14903         (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
14904         rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
14905         available.
14906         * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
14907         conditional moves where the comparison type is different from move
14908         type.
14909         (fp_minmax): New code iterator for smin/smax.
14910         (minmax): New code attributes for min/max.
14911         (SMINMAX): Likewise.
14912         (smax<mode>3): Combine min, max insns into one insn using the
14913         fp_minmax code iterator.  Add support for ISA 3.0 min/max
14914         instructions that don't need -ffast-math.
14915         (s<minmax><mode>3): Likewise.
14916         (smax<mode>3_vsx): Likewise.
14917         (smin<mode>3): Likewise.
14918         (s<minmax><mode>3_vsx): Likewise.
14919         (smin<mode>3_vsx): Likewise.
14920         (pre-VSX min/max splitters): Likewise.
14921         (s<minmax><mode>3_fpr): Likewise.
14922         (movsfcc): Rewrite floating point conditional moves to combine
14923         SFmode/DFmode into a single insn.
14924         (mov<mode>cc): Likewise.
14925         (movdfcc): Likewise.
14926         (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
14927         SFDF2 iterators to handle all combinations.
14928         (fseldfsf4): Likewise.
14929         (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
14930         (fseldfdf4): Likewise.
14931         (fselsfdf4): Likewise.
14932         (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
14933         comparison instructions that set a 0/-1 mask, and use it for
14934         floating point conditional move via XXSEL.
14935         (fpmask<mode>): Likewise.
14936         (xxsel<mode>): Likewise.
14937         * config/rs6000/predicates.md (min_max_operator): Delete, no
14938         longer used.
14939         (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
14940         instructions that generate a 0/-1 mask for use with XXSEL.
14941         * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
14942         say whether floating point min/max is available, either through
14943         FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
14944         (TARGET_MINMAX_DF): Likewise.
14946 2016-05-27  Alan Modra  <amodra@gmail.com>
14948         PR rtl-optimization/71275
14949         * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
14950         for update_equiv_regs and combine_and_move_insns.
14952 2016-05-26  Uros Bizjak  <ubizjak@gmail.com>
14954         * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
14955         if_then_else or cond RTXes to calculate attribute value.
14956         * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
14957         <attr "length_immediate>: Ditto.
14958         (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
14959         * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
14960         (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
14961         <attr "type">: Ditto.
14962         <attr "prefix_data16">: Ditto.
14963         <attr "prefix_extra">: Ditto.
14964         <attr "length_immediate">: Ditto.
14965         <attr "prefix">: Ditto.
14966         (vec_set<mode>_0) <attr "isa">: Ditto.
14967         <attr "prefix_extra">: Ditto.
14968         <attr "length_immediate">: Ditto.
14969         <attr "prefix">: Ditto.
14970         (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
14971         (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
14972         (sse2_storelpd) <attr "prefix_data16">: Ditto.
14973         (sse2_loadhpd) <attr "prefix_data16">: Ditto.
14974         (sse2_loadlpd) <attr "prefix_data16">: Ditto.
14975         <attr "length_immediate">: Ditto.
14976         <attr "prefix">: Ditto.
14977         (sse2_movsd) <attr "length_immediate">: Ditto.
14978         <attr "prefix">: Ditto.
14979         (vec_concatv2df)  <attr "isa">: Ditto.
14980         <attr "prefix">: Ditto.
14981         (*vec_extractv4si) <attr "prefix_extra">: Ditto.
14982         (*vec_extractv2di_1) <attr "isa">: Ditto.
14983         <attr "type">: Ditto.
14984         <attr "length_immediate">: Ditto.
14985         <attr "prefix_rex">: Ditto.
14986         <attr "prefix_extra">: Ditto.
14987         (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
14988         <attr "prefix_extra">: Ditto.
14989         <attr "length_immediate">: Ditto.
14990         (vec_concatv2di) <attr "isa">: Ditto.
14991         <attr "prefix_extra">: Ditto.
14992         <attr "length_immediate">: Ditto.
14993         <attr "prefix">: Ditto.
14995 2016-05-26  Martin Liska  <mliska@suse.cz>
14997         * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
14998         function.
14999         (operator+): Likewise.
15000         (operator-): Likewise.
15001         (comp_cost::operator+=): Likewise.
15002         (comp_cost::operator-=): Likewise.
15003         (comp_cost::operator/=): Likewise.
15004         (comp_cost::operator*=): Likewise.
15005         (operator<): Likewise.
15006         (operator==): Likewise.
15007         (operator<=): Likewise.
15008         (new_cost): Remove.
15009         (infinite_cost_p): Likewise.
15010         (add_costs): Likewise.
15011         (sub_costs): Likewise.
15012         (compare_costs): Likewise.
15013         (set_group_iv_cost): Use the newly introduced functions.
15014         (get_address_cost): Likewise.
15015         (get_shiftadd_cost): Likewise.
15016         (force_expr_to_var_cost): Likewise.
15017         (split_address_cost): Likewise.
15018         (ptr_difference_cost): Likewise.
15019         (difference_cost): Likewise.
15020         (get_computation_cost_at): Likewise.
15021         (determine_group_iv_cost_generic): Likewise.
15022         (determine_group_iv_cost_address): Likewise.
15023         (determine_group_iv_cost_cond): Likewise.
15024         (autoinc_possible_for_pair): Likewise.
15025         (determine_group_iv_costs): Likewise.
15026         (cheaper_cost_pair): Likewise.
15027         (iv_ca_recount_cost): Likewise.
15028         (iv_ca_set_no_cp): Likewise.
15029         (iv_ca_set_cp): Likewise.
15030         (iv_ca_cost): Likewise.
15031         (iv_ca_new): Likewise.
15032         (iv_ca_dump): Likewise.
15033         (iv_ca_narrow): Likewise.
15034         (iv_ca_prune): Likewise.
15035         (iv_ca_replace): Likewise.
15036         (try_add_cand_for): Likewise.
15037         (try_improve_iv_set): Likewise.
15038         (find_optimal_iv_set): Likewise.
15040 2016-05-26  Richard Sandiford  <richard.sandiford@arm.com>
15042         * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
15043         that internal functions will clobber all caller-saved registers.
15045 2016-05-26  Wilco Dijkstra  <wdijkstr@arm.com>
15047         * config/aarch64/aarch64.c (aarch64_case_values_threshold):
15048         Return a better case_values_threshold when optimizing.
15050 2016-05-26  Wilco Dijkstra  <wdijkstr@arm.com>
15052         * config/aarch64/aarch64-simd.md (aarch64_combinez):
15053         Add ? to integer variant.
15054         (aarch64_combinez_be): Likewise.
15056 2016-05-26  Jakub Jelinek  <jakub@redhat.com>
15058         * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
15059         instead of x constraint.
15060         (vcvtps2ph256<mask_name>): Likewise.
15062         * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
15063         alternative.  Formatting fix.
15065         * config/i386/sse.md
15066         (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
15067         to ...
15068         (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
15069         (*avx_vperm_broadcast_v4sf): Use v constraint instead of x.  Use
15070         maybe_evex prefix instead of vex.
15071         (*avx_vperm_broadcast_<mode>): Use v constraint instead of x.  Handle
15072         EXT_REX_SSE_REG_P (op0) case in the splitter.
15074 2016-05-25  Jeff Law  <law@redhat.com>
15076         PR tree-optimization/71272
15077         * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
15078         Update comments.  Add test for empty path.
15080 2016-05-25  Bill Seurer  <seurer@linux.vnet.ibm.com>
15082         * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
15083         * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
15084         special case builtin.
15085         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
15086         code for ALTIVEC_BUILTIN_VEC_CMPNE.
15087         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
15088         for __builtin_vec_cmpne.
15090 2016-05-25  Eric Botcazou  <ebotcazou@adacore.com>
15092         * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
15093         redundant test and bail out if the type of the new operand is not
15094         a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
15096 2016-05-25  Uros Bizjak  <ubizjak@gmail.com>
15098         * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
15099         (x_ix86_target_flags_explicit): Remove.
15100         * config/i386/i386.c (ix86_function_specific_save): Do not copy
15101         x_ix86_target_flags_explicit.
15102         (ix86_function_specific_restore): Ditto.
15104 2016-05-25  Uros Bizjak  <ubizjak@gmail.com>
15105             H.J. Lu  <hongjiu.lu@intel.com>
15107         PR target/70738
15108         * common/config/i386/i386-common.c
15109         (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
15110         (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
15111         MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
15112         * config/i386/i386.opt (ix86_target_flags): Add new Variable.
15113         (-mgeneral-regs-only): Add new option.
15114         * config/i386/i386.c (ix86_option_override_internal): Don't enable
15115         x87 instructions if only general registers are allowed.
15116         (ix86_target_string): Add ix86_flags argument. Handle additional
15117         flags options through ix86_flags argument.  Update all callers.
15118         * doc/invoke.texi (x86 Options): Document -mgeneral-regs-only.
15120 2016-05-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15122         PR rtl-optimization/66940
15123         * ifcvt.c (noce_get_alt_condition): Check that incrementing or
15124         decrementing desired_val will not overflow before performing these
15125         operations.
15127 2016-05-25  Ilya Verbin  <ilya.verbin@intel.com>
15129         * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
15130         V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
15131         * config/i386/i386.c (enum ix86_builtins): Add
15132         IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
15133         IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
15134         IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
15135         IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
15136         IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
15137         IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
15138         (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
15139         __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
15140         __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
15141         __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
15142         __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
15143         __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
15144         Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
15145         __builtin_ia32_cvtps2dq512_mask.
15146         (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
15147         V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
15148         (ix86_builtin_vectorized_function): Handle builtins mentioned above.
15149         * config/i386/sse.md
15150         (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
15151         Rename to ...
15152         (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
15153         (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
15154         to ...
15155         (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
15156         (avx512f_vec_pack_sfix_v8df): New define_expand.
15157         (avx512f_roundpd512): Rename to ...
15158         (avx512f_round<castmode>512): ... this.  Change iterator.
15159         (avx512f_roundps512_sfix): New define_expand.
15160         (round<mode>2_sfix): Change iterator.
15162 2016-05-25  Nick Clifton  <nickc@redhat.com>
15164         * config/msp430/msp430.c (msp430_attr): Produce an error if a
15165         static interrupt handler is detected.
15166         * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
15167         default linker script.
15168         * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
15169         the low part of a symbolic pointer.
15171 2016-05-25  Richard Biener  <rguenther@suse.de>
15173         PR tree-optimization/71261
15174         * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
15175         interesting stmt instead of immediate uses when looking
15176         for the use operand to replace.
15178 2016-05-25  Martin Liska  <mliska@suse.cz>
15180         * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
15182 2016-05-25  Richard Biener  <rguenther@suse.de>
15184         PR tree-optimization/71264
15185         * tree-vect-stmts.c (vect_init_vector): Properly deal with
15186         vector type val.
15188 2016-05-25  Martin Liska  <mliska@suse.cz>
15190         PR tree-optimization/71239
15191         * tree.c (array_at_struct_end_p): Do not call operand_equal_p
15192         if DECL_SIZE is NULL.
15194 2016-05-25  Richard Biener  <rguenther@suse.de>
15196         * timevar.def (TV_TREE_LOOP_IFCVT): Add.
15197         * tree-if-conv.c (pass_data_if_conversion): Use it.
15199 2016-05-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
15201         * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
15202         * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
15203         * varpool.c (varpool_node::get_availability): Likewise.
15205 2016-05-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
15207         * config/rs6000/altivec.md (VNEG iterator): New iterator for
15208         VNEGW/VNEGD instructions.
15209         (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
15210         (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
15211         support for ISA 3.0 VNEGW/VNEGD instructions.
15213 2016-05-24  Cesar Philippidis  <cesar@codesourcery.com>
15215         * gimplify.c (omp_notice_variable): Use zero-length arrays for data
15216         pointers inside OACC_DATA regions.
15217         (gimplify_scan_omp_clauses): Prune firstprivate clause associated
15218         with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
15219         (gimplify_adjust_omp_clauses): Fix typo in comment.
15221 2016-05-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
15223         * config/rs6000/altivec.md (VParity): New mode iterator for vector
15224         parity built-in functions.
15225         (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
15226         zeros.
15227         (p9v_parity<mode>2): Likewise.
15228         * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
15229         parity.
15230         (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
15231         (parity<mode>2): ISA 3.0 expander for vector parity.
15232         * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
15233         power9 built-ins.
15234         (BU_P9_64BIT_MISC_0): Likewise.
15235         (BU_P9_MISC_0): Likewise.
15236         (BU_P9V_AV_1): Likewise.
15237         (BU_P9V_AV_2): Likewise.
15238         (BU_P9V_AV_3): Likewise.
15239         (BU_P9V_AV_P): Likewise.
15240         (BU_P9V_VSX_1): Likewise.
15241         (BU_P9V_OVERLOAD_1): Likewise.
15242         (BU_P9V_OVERLOAD_2): Likewise.
15243         (BU_P9V_OVERLOAD_3): Likewise.
15244         (VCTZB): Add vector count trailing zeros support.
15245         (VCTZH): Likewise.
15246         (VCTZW): Likewise.
15247         (VCTZD): Likewise.
15248         (VPRTYBD): Add vector parity support.
15249         (VPRTYBQ): Likewise.
15250         (VPRTYBW): Likewise.
15251         (VCTZ): Add overloaded vector count trailing zeros support.
15252         (VPRTYB): Add overloaded vector parity support.
15253         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
15254         overloaded vector count trailing zeros and parity instructions.
15255         * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
15256         vector parity support.
15257         * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
15258         trailing zeros support.
15259         (vec_cntlz): Likewise.
15260         (vec_vctzb): Likewise.
15261         (vec_vctzd): Likewise.
15262         (vec_vctzh): Likewise.
15263         (vec_vctzw): Likewise.
15264         (vec_vprtyb): Add ISA 3.0 vector parity support.
15265         (vec_vprtybd): Likewise.
15266         (vec_vprtybw): Likewise.
15267         (vec_vprtybq): Likewise.
15268         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
15269         the ISA 3.0 vector count trailing zeros and vector parity built-in
15270         functions.
15272 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
15274         * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
15275         when there is stmt_to_insert.
15277 2016-05-24  Martin Sebor  <msebor@redhat.com>
15279         PR c++/71147
15280         * tree.h (complete_or_array_type_p): New inline function.
15282 2016-05-24  Jakub Jelinek  <jakub@redhat.com>
15284         * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
15285         * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
15286         rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
15288         * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
15289         Limit 1st alternative to noavx isa, split 2nd alternative into one
15290         noavx and one avx alternative, use *x and Bm in the former and
15291         x and m in the latter.
15293         * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
15294         of sse4 for the first alternative, drop %v from the template
15295         and d operand modifier.  Split second alternative into one sse4_noavx
15296         and one avx alternative, use *x instead of *v in the former and v
15297         instead of *v in the latter.
15298         (*sse4_1_extractps): Use noavx isa instead of * for the first
15299         alternative, drop %v from the template.  Split second alternative into
15300         one noavx and one avx alternative, use *x instead of *v in the
15301         former and v instead of *v in the latter.
15302         (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
15303         with noavx and the last one with avx.
15304         (sse4_1_phminposuw): Guard first alternative with noavx isa,
15305         split the second one into one noavx and one avx alternative,
15306         use *x and Bm in the former and x and m in the latter one.
15307         (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
15308         alternatives.
15310         * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
15311         first two alternatives to noavx, use *x instead of *v in the second
15312         one, add avx alternative without *.
15313         (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
15314         sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
15315         sse4_1_<code>v2siv2di2<mask_name>): Likewise.
15317 2016-05-24  Jeff Law  <law@redhat.com>
15319         * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
15320         New function, extracted from...
15321         (fsm_find_control_statement_thread_paths): Here.  Use the new function.
15322         Allow simple copies and constant initializations in the SSA chain.
15324 2016-05-24  Marek Polacek  <polacek@redhat.com>
15326         PR c/71249
15327         * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
15328         scope.
15330 2016-05-24  Jakub Jelinek  <jakub@redhat.com>
15332         PR c++/71257
15333         * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
15334         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
15335         SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.  Add
15336         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
15337         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
15339 2016-05-24  Richard Biener  <rguenther@suse.de>
15341         PR tree-optimization/71240
15342         * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
15343         has integral type.
15345 2016-05-24  Richard Biener  <rguenther@suse.de>
15347         PR tree-optimization/71230
15348         * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
15350 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
15352         * tree-vectorizer.h (vectorizable_comparison): Delete.
15353         * tree-vect-loop.c (vectorizable_reduction): Remove redundant
15354         PURE_SLP_STMT check.
15355         * tree-vect-stmts.c (vectorizable_call): Likewise.
15356         (vectorizable_simd_clone_call): Likewise.
15357         (vectorizable_conversion): Likewise.
15358         (vectorizable_assignment): Likewise.
15359         (vectorizable_shift): Likewise.
15360         (vectorizable_operation): Likewise.
15361         (vectorizable_load): Likewise.
15362         (vectorizable_condition): Likewise.
15363         (vectorizable_store): Likewise.  Assert that we don't have
15364         hybrid SLP.
15365         (vectorizable_comparison): Make static.  Remove redundant
15366         PURE_SLP_STMT check.
15367         (vect_transform_stmt): Assert that we always have an slp_node
15368         if PURE_SLP_STMT.
15370 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15372         * config/arm/neon.md (ashldi3_neon):  Replace comparison of INTVAL of
15373         operands[2] against 1 with comparison against CONST1_RTX.
15374         (<shift>di3_neon): Likewise.
15375         * config/arm/predicates.md (const0_operand): Replace with comparison
15376         against CONST0_RTX.
15378 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15380         * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
15381         operands[2] against 1 with comparison against CONST1_RTX.
15382         (ashrdi3): Likewise.
15383         (lshrdi3): Likewise.
15384         (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
15385         UINTVAL.
15386         (ashrsi3): Likewise.
15387         (lshrsi3): Likewise.
15388         (rotrsi3): Likewise.
15389         (define_split above *compareqi_eq0): Likewise.
15390         (define_split above "prologue"): Likewise.
15391         * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
15392         * config/arm/predicates.md (shift_operator): Likewise.
15393         (shift_nomul_operator): Likewise.
15394         (sat_shift_operator): Likewise.
15395         (thumb1_cmp_operand): Likewise.
15396         (const_neon_scalar_shift_amount_operand): Replace manual range
15397         check with IN_RANGE.
15398         * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
15399         Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
15401 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15403         * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
15404         with HOST_WIDE_INT_1.
15405         (insv): Likewise.
15406         * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
15407         1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
15408         (arm_canonicalize_comparison): Likewise.
15409         (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
15410         HOST_WIDE_INT_1.
15411         (thumb1_size_rtx_costs): Likewise.
15412         (vfp_const_double_index): Replace cast of 1 to unsigned
15413         HOST_WIDE_INT with HOST_WIDE_INT_1U.
15414         (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
15415         HOST_WIDE_INT_1.
15416         (arm_asan_shadow_offset): Replace cast of 1 to unsigned
15417         HOST_WIDE_INT with HOST_WIDE_INT_1U.
15418         * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
15419         HOST_WIDE_INT with HOST_WIDE_INT_1.
15421 2016-05-24  Marek Polacek  <polacek@redhat.com>
15423         * tree-cfg.h (should_remove_lhs_p): New predicate.
15424         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
15425         * gimplify.c (gimplify_modify_expr): Likewise.
15426         * tree-cfg.c (verify_gimple_call): Likewise.
15427         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
15428         * gimple-fold.c: Include "tree-cfg.h".
15429         (gimple_fold_call): Use should_remove_lhs_p.
15431 2016-05-24  Richard Biener  <rguenther@suse.de>
15433         PR tree-optimization/71253
15434         * cfganal.h (control_dependences): Make robust against edge
15435         and BB removal.
15436         (control_dependences::control_dependences): Remove edge_list argument.
15437         (control_dependences::get_edge): Remove.
15438         (control_dependences::get_edge_src): Add.
15439         (control_dependences::get_edge_dest): Likewise.
15440         (control_dependences::m_el): Make a vector of edge src/dest index.
15441         * cfganal.c (control_dependences::find_control_dependence): Adjust.
15442         (control_dependences::control_dependences): Likewise.
15443         (control_dependences::~control_dependence): Likewise.
15444         (control_dependences::get_edge): Remove.
15445         (control_dependences::get_edge_src): Add.
15446         (control_dependences::get_edge_dest): Likewise.
15447         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
15448         get_edge_src.
15449         (perform_tree_ssa_dce): Adjust.
15450         * tree-loop-distribution.c (create_edge_for_control_dependence): Use
15451         get_edge_src.
15452         (pass_loop_distribution::execute): Adjust.  Do loop destroying
15453         conditional on changed.
15455 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15457         PR target/69857
15458         * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
15459         return.  Reindent transformation comment and mention the ARM state
15460         behavior.
15462 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
15464         PR middle-end/71252
15465         * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
15466         after build_and_add_sum creates new use stmt.
15468 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
15470         * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
15471         load_lanes/grouped_load classification comes first.  Don't check
15472         whether the vectorization factor is a multiple of the group size
15473         for load_lanes.
15475 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
15477         * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
15478         GROUP_GAP for single-element interleaving.
15479         * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
15480         variable.
15482 2016-05-24  Richard Biener  <rguenther@suse.de>
15484         PR middle-end/70434
15485         PR c/69504
15486         * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
15487         bases which are accessed with non-invariant indices.
15488         * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
15489         constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
15491 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
15493         PR middle-end/71170
15494         * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
15495         (add_to_ops_vec): Add stmt_to_insert.
15496         (add_repeat_to_ops_vec): Init stmt_to_insert.
15497         (insert_stmt_before_use): New.
15498         (transform_add_to_multiply): Remove mult_stmt insertion and add it
15499         to ops vector.
15500         (get_ops): Init stmt_to_insert.
15501         (maybe_optimize_range_tests): Likewise.
15502         (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
15503         (rewrite_expr_tree_parallel): Likewise.
15504         (reassociate_bb): Likewise.
15506 2016-05-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
15508         PR target/71201
15509         * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
15510         ISA 3.0 xxperm fusion alternative.
15511         (altivec_vperm_v8hiv16qi): Likewise.
15512         (altivec_vperm_<mode>_uns_internal): Likewise.
15513         (vperm_v8hiv4si): Likewise.
15514         (vperm_v16qiv8hi): Likewise.
15516 2016-05-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
15517             Kelvin Nilsen  <kelvin@gcc.gnu.org>
15519         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
15520         vpermr/xxpermr on ISA 3.0.
15521         (altivec_expand_vec_perm_le): Likewise.
15522         * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
15523         (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
15524         ISA 3.0.
15526 2016-05-23  Uros Bizjak  <ubizjak@gmail.com>
15528         * config/i386/i386.h (IS_STACK_MODE): Enable for
15529         TARGET_MIX_SSE_I387.  Rewrite using X87_FLOAT_MODE_P and
15530         SSE_FLOAT_MODE_P macros.
15531         * config/i386/i386.c (ix86_preferred_reload_class): Use
15532         IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
15533         Cleanup regclass processing for CONST_DOUBLE_P.
15534         (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
15535         (ix86_rtx_costs): Remove redundant TARGET_80387 check
15536         with IS_STACK_MODE macro.
15537         * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
15538         with TARGET_SSE2.
15539         (*movdf_internal): Use IS_STACK_MODE macro.
15540         (*movsf_internal): Ditto.
15542 2016-05-23  Marc Glisse  <marc.glisse@inria.fr>
15544         * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
15545         ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
15547 2016-05-23  Jeff Law  <law@redhat.com>
15549         * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
15550         extracted from ...
15551         (fsm_find_control_statement_thread_paths): Call it.
15553 2016-05-23  Martin Jambor  <mjambor@suse.cz>
15555         PR ipa/71234
15556         * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
15557         from_global_constant if t is not NULL.
15559 2016-05-23  Marek Polacek  <polacek@redhat.com>
15561         PR c/49859
15562         * common.opt (Wswitch-unreachable): New option.
15563         * doc/invoke.texi: Document -Wswitch-unreachable.
15564         * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
15565         warning.
15567 2016-05-23  Bin Cheng  <bin.cheng@arm.com>
15569         * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
15570         TMR_INDEX is non-NULL.
15572 2016-05-23  Richard Biener  <rguenther@suse.de>
15574         PR tree-optimization/71230
15575         * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
15576         (try_special_add_to_ops): ... here.  Always test for single-use.
15578 2016-05-23  Martin Jambor  <mjambor@suse.cz>
15580         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
15581         default block if a PHI node in the original one would be resized.
15583 2016-05-23  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
15585         PR tree-optimization/58135
15586         * tree-vect-slp.c: When group size is not multiple
15587         of vector size, allow splitting of store group at
15588         vector boundary.
15590 2016-05-23  Christophe Lyon  <christophe.lyon@linaro.org>
15592         * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
15594 2016-05-22  Jakub Jelinek  <jakub@redhat.com>
15596         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
15597         vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
15598         condition.  For !TARGET_AVX512DQ, emit 32x4 instruction instead
15599         of 64x2.
15601         * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
15602         vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
15603         v constraint instead of x and vinserti32x4 insn.
15605         * config/i386/sse.md (i128vldq): New mode iterator.
15606         (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
15607         avx512dq and avx512vl alternatives.
15609         * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
15610         constraint, use maybe_evex prefix instead of vex.
15611         (vec_dupv4sf): Use v constraint instead of x for output
15612         operand except for noavx alternative, use Yv constraint
15613         instead of x for input.  Use maybe_evex prefix instead of vex.
15614         (*vec_dupv4si): Likewise.
15615         (*vec_dupv2di): Likewise.
15617 2016-05-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
15619         PR middle-end/40921
15620         * tree-ssa-reassoc.c (try_special_add_to_ops): New.
15621         (linearize_expr_tree): Call try_special_add_to_ops.
15622         (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
15624 2016-05-21  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
15626         * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
15627         to computed stack_usage.
15629 2016-05-21  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
15631         PR target/71103
15632         * config/avr/avr.md (define_expand "mov<mode>"): If the source
15633         operand is subreg (symbol_ref) then move the symbol ref to register.
15635 2016-05-21  Jan Hubicka  <hubicka@ucw.cz>
15637         * tree.c (array_at_struct_end_p): Look through MEM_REF.
15639 2016-05-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
15641         PR middle-end/71179
15642         * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
15643         VECTOR type.
15645 2016-05-20  Eric Botcazou  <ebotcazou@adacore.com>
15647         * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
15648         ranges by calling get_single_symbol and tidy up.  Look more closely
15649         into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
15651 2016-05-20  Jeff Law  <law@redhat.com>
15653         * bitmap.c (bitmap_find_bit): Remove useless test.
15655 2016-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
15657         * function.c (thread_prologue_and_epilogue_insns): Commit the
15658         insertion of the epilogue.
15660 2016-05-20  Martin Jambor  <mjambor@suse.cz>
15662         PR tree-optimization/70884
15663         * tree-sra.c (initialize_constant_pool_replacements): Do not check
15664         should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
15665         (sort_and_splice_var_accesses): Do not consider multiple scalar reads
15666         of constant pool data as a reason for scalarization.
15668 2016-05-20  Eric Botcazou  <ebotcazou@adacore.com>
15670         * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
15671         for naked functions.
15672         (thumb1_expand_prologue): Likewise.
15674 2016-05-20  Nathan Sidwell  <nathan@acm.org>
15676         * config/nvptx/nptx.c (nvptx_option_override): Only set
15677         flag_toplevel_reorder, if not explicitly specified.  Set
15678         flag_no_common, unless explicitly specified.
15680 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
15682         * calls.c (can_implement_as_sibling_call_p): Mark param
15683         reg_parm_stack_space with ATTRIBUTE_UNUSED.
15685 2016-05-20  Uros Bizjak  <ubizjak@gmail.com>
15687         * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
15688         Use IS_STACK_MODE when calculating cost of standard 80387 constants.
15689         Fallthru to CONST_VECTOR case to calculate cost of standard SSE
15690         constants.
15691         <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
15692         (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
15693         and CASE_CONST_ANY.
15695 2016-05-20  Cesar Philippidis  <cesar@codesourcery.com>
15697         * config/nvptx/nvptx.md (sincossf3): New pattern.
15699 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
15701         * calls.c (maybe_complain_about_tail_call): New function.
15702         (initialize_argument_information): Call
15703         maybe_complain_about_tail_call when clearing *may_tailcall.
15704         (can_implement_as_sibling_call_p): Call
15705         maybe_complain_about_tail_call when returning false.
15706         (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
15707         ensure try_tail_call is set.  Call maybe_complain_about_tail_call
15708         if tail-call optimization fails.
15709         * cfgexpand.c (expand_call_stmt): Initialize
15710         CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
15711         * gimple-pretty-print.c (dump_gimple_call): Dump
15712         gimple_call_must_tail_p.
15713         * gimple.c (gimple_build_call_from_tree): Call
15714         gimple_call_set_must_tail with the value of
15715         CALL_EXPR_MUST_TAIL_CALL.
15716         * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
15717         (gimple_call_set_must_tail): New function.
15718         (gimple_call_must_tail_p): New function.
15719         * print-tree.c (print_node): Update printing of TREE_STATIC
15720         to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
15721         * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
15722         trailing comment listing applicable flags.
15723         * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
15725 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
15727         * calls.c (expand_call): Move "Rest of purposes for tail call
15728         optimizations to fail" to...
15729         (can_implement_as_sibling_call_p): ...this new function, and
15730         split into multiple "if" statements.
15732 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
15734         * cfgloop.h (expected_loop_iterations_unbounded,
15735         expected_loop_iterations): Unconstify.
15736         * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
15737         profile with known upper bound; return 3 when profile is absent.
15738         (expected_loop_iterations): Update.
15740 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
15742         * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
15743         and get_max_loop_iterations_int.
15745 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
15747         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
15748         realistic upper bounds here.
15750 2016-05-20  Jakub Jelinek  <jakub@redhat.com>
15752         PR c++/71210
15753         * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
15754         calls if the LHS is variable length or has addressable type.
15755         If targets[0]->decl is a noreturn call with void return type and
15756         zero arguments, adjust fntype and remove lhs in that case.
15758 2016-05-20  Marc Glisse  <marc.glisse@inria.fr>
15760         PR tree-optimization/71079
15761         PR tree-optimization/71206
15762         * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
15764 2016-05-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
15766         * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
15767         (get_vec_alignment_for_array_decl): Likewise.
15768         (get_vec_alignment_for_record_decl): Likewise.
15769         (increase_alignment::execute): Move code to find alignment to
15770         get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
15771         (type_align_map): New hash_map.
15773 2016-05-20  Richard Guenther  <rguenther@suse.de>
15775         PR tree-optimization/29756
15776         * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
15777         * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
15778         * fold-const.c (operand_equal_p): Likewise.
15779         (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
15780         * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
15781         * tree-inline.c (estimate_operator_cost): Likewise.
15782         * tree-pretty-print.c (dump_generic_node): Likewise.
15783         * tree-ssa-operands.c (get_expr_operands): Likewise.
15784         * cfgexpand.c (expand_debug_expr): Likewise.
15785         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
15786         * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
15787         * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
15788         * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
15789         vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
15790         (execute_update_addresses_taken): Do it.
15792 2016-05-20  Richard Biener  <rguenther@suse.de>
15794         PR tree-optimization/71185
15795         * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
15796         register operations.
15798 2016-05-20  Richard Biener  <rguenther@suse.de>
15800         * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
15801         gimple_seq_add_seq_without_update.
15802         (release_bb_predicate): Assert we have no operands to free.
15803         (if_convertible_loop_p_1): Calculate post dominators later.
15804         Do not free BB predicates here.
15805         (combine_blocks): Do not recompute BB predicates.
15806         (version_loop_for_if_conversion): Save BB predicates around
15807         loop versioning.
15809 2016-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
15811         * function.c (make_epilogue_seq): Remove epilogue_end parameter.
15812         (thread_prologue_and_epilogue_insns): Remove bb_flags.  Restructure
15813         code.  Ignore sibcalls on EDGE_IGNORE edges.
15814         * shrink-wrap.c (handle_simple_exit): New function.  Set EDGE_IGNORE
15815         on edges for sibcalls that run without prologue.  The rest of the
15816         function is combined from...
15817         (fix_fake_fallthrough_edge): ... this, and ...
15818         (try_shrink_wrapping): ... a part of this.  Remove the bb_with
15819         function argument, make it a local variable.
15821 2016-05-19  Sandra Loosemore  <sandra@codesourcery.com>
15823         * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
15824         --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
15825         for 32-bit mode and SEH for 64-bit.
15826         * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
15827         TARGET_64BIT_DEFAULT.
15829 2016-05-19  Ryan Burn  <contact@rnburn.com>
15831         * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
15832         * gengtype.c (open_base_files): Add cilk.h to ifiles.
15834 2016-05-19  Uros Bizjak  <ubizjak@gmail.com>
15836         * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
15837         force pending loads from memory.
15839 2016-05-19  Kelvin Nilsen  <kelvin@gcc.gnu.org>
15841         * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
15842         (UNSPEC_DARN_32): New unspec constant.
15843         (UNSPEC_DARN_RAW): New unspec constant.
15844         (darn_32): New instruction.
15845         (darn_raw): New instruction.
15846         (darn): New instruction.
15847         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
15848         support and documentation for this macro.
15849         (BU_P9_MISC_1): New macro definition.
15850         (BU_P9_64BIT_MISC_0): New macro definition.
15851         (BU_P9_MISC_0): New macro definition.
15852         (darn_32): New builtin definition.
15853         (darn_raw): New builtin definition.
15854         (darn): New builtin definition.
15855         * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
15856         RS6000_BUILTIN_0 directives to surround each occurrence of
15857         #include "rs6000-builtin.def".
15858         (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
15859         RS6000_BTM_64BIT flags to the returned mask, depending on
15860         configuration.
15861         (def_builtin): Correct an error in the assignments made to the
15862         debugging variable attr_string.
15863         (rs6000_expand_builtin): Add support for no-operand built-in
15864         functions.
15865         (builtin_function_type): Remove fatal_error assertion that is no
15866         longer valid.
15867         (rs6000_common_init_builtins): Add support for no-operand built-in
15868         functions.
15869         * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
15870         definition.
15871         (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
15872         definition.
15873         (RS6000_BTM_64BIT): New macro definition.
15874         * doc/extend.texi: Document __builtin_darn (void),
15875         __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
15876         functions.
15878 2016-05-19  Jan Hubicka  <hubicka@ucw.cz>
15880         * tree-vect-loop.c (vect_analyze_loop_2): Use also
15881         max_loop_iterations_int.
15883 2016-05-19  Marek Polacek  <polacek@redhat.com>
15885         PR tree-optimization/71031
15886         * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
15887         condition and adjust the code a bit.
15889 2016-05-19  Martin Liska  <mliska@suse.cz>
15891         * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
15892         auto_vec instead of vec.
15894 2016-05-19  Martin Liska  <mliska@suse.cz>
15896         * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
15898 2016-05-19  Martin Liska  <mliska@suse.cz>
15900         * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
15902 2016-05-19  Martin Liska  <mliska@suse.cz>
15904         * ipa-pure-const.c (set_function_state): Remove an existing
15905         funct_state.
15906         (remove_node_data): Do not free it as it's released
15907         in set_function_state.
15909 2016-05-19  Martin Liska  <mliska@suse.cz>
15911         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
15912         bitmap.
15914 2016-05-19  Martin Liska  <mliska@suse.cz>
15916         * omp-simd-clone.c (simd_clone_adjust): Release vector.
15918 2016-05-19  Martin Liska  <mliska@suse.cz>
15920         * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
15921         an auto_vec instead of re-creating it.
15923 2016-05-19  Martin Liska  <mliska@suse.cz>
15925         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
15926         auto_vec instead of vec.
15928 2016-05-19  Martin Liska  <mliska@suse.cz>
15930         * lto-section-in.c (lto_get_section_data): Call
15931         lto_check_version with additional argument.
15932         * lto-streamer.c (lto_check_version): Add new argument.
15933         * lto-streamer.h (lto_check_version): Likewise.
15935 2016-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15937         * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
15938         Don't add cost of inner memory when handling sign-extended loads.
15940 2016-05-19  Ilya Enkovich  <ilya.enkovich@intel.com>
15942         PR rtl-optimization/71148
15943         * cse.c (cse_main): Free dominance info.
15944         (rest_of_handle_cse): Don't free dominance info.
15945         (rest_of_handle_cse2): Likewise.
15946         (rest_of_handle_cse_after_global_opts): Likewise.
15948 2016-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15950         PR target/71056
15951         * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
15952         NULL_TREE early if NEON is not available.  Remove now redundant check
15953         in ARM_CHECK_BUILTIN_MODE.
15955 2016-05-19  Maxim Ostapenko  <m.ostapenko@samsung.com>
15957         PR sanitizer/64354
15958         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
15959         builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
15960         * doc/cpp.texi: Document new macros.
15962 2016-05-19  Bin Cheng  <bin.cheng@arm.com>
15964         PR tree-optimization/69848
15965         * tree-vect-loop.c (vectorizable_reduction): Don't factor
15966         comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
15968 2016-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
15970         * function.c (thread_prologue_and_epilogue_insn): Move the
15971         "goto epilogue_done" one block later.
15973 2016-05-19  Richard Biener  <rguenther@suse.de>
15975         PR tree-optimization/70729
15976         * passes.def: Move LIM pass before PRE.  Remove no longer
15977         required copyprop and move first DCE out of the loop pipeline.
15979 2016-05-18  David Malcolm  <dmalcolm@redhat.com>
15981         PR driver/69265
15982         * Makefile.in (GCC_OBJS): Move spellcheck.o to...
15983         (OBJS-libcommon-target): ...here.
15984         * opts-common.c: Include spellcheck.h.
15985         (cmdline_handle_error): Build a vec of valid options and use it
15986         to suggest provide hints for misspelled arguments.
15988 2016-05-18  Jakub Jelinek  <jakub@redhat.com>
15990         PR c++/71100
15991         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
15992         lhs if it has TREE_ADDRESSABLE type.
15994 2016-05-18  Uros Bizjak  <ubizjak@gmail.com>
15996         PR target/71145
15997         * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
15998         (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
16000 2016-05-18  Martin Jambor  <mjambor@suse.cz>
16002         PR ipa/69708
16003         * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
16004         input for NOP_EXPR pass-through functions.
16005         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
16006         aggregate global constant VAR_DECLs in constant jump functions.
16008 2016-05-18  Martin Jambor  <mjambor@suse.cz>
16010         PR ipa/69708
16011         * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
16012         from TREE_READONLY parameters.
16014 2016-05-18  Martin Jambor  <mjambor@suse.cz>
16016         PR ipa/69708
16017         * cgraph.h (cgraph_indirect_call_info): New field
16018         guaranteed_unmodified.
16019         * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
16020         to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
16021         appropriate.
16022         * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
16023         pass the parameter value to ipa_find_agg_cst_for_param.
16024         * ipa-prop.c (ipa_load_from_parm_agg): New parameter
16025         guaranteed_unmodified, store AA results there instead of bailing out
16026         if present.
16027         (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
16028         (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
16029         (find_constructor_constant_at_offset): New function.
16030         (ipa_find_agg_cst_from_init): Likewise.
16031         (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
16032         static initializers of contants, report back through a new paameter
16033         from_global_constant if that was the case.
16034         (try_make_edge_direct_simple_call): Also pass parameter value to
16035         ipa_find_agg_cst_for_param, check guaranteed_unmodified when
16036         appropriate.
16037         (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
16038         (ipa_read_indirect_edge_info): Likewise.
16039         * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
16040         (ipa_load_from_parm_agg): Likewise.
16042 2016-05-18  Jiong Wang  <jiong.wang@arm.com>
16044         PR rtl-optimization/71150
16045         * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
16046         check.
16048 2016-05-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
16050         PR target/70915
16051         * config/rs6000/constraints.md (wE constraint): New constraint
16052         for a vector constant that can be loaded with XXSPLTIB.
16053         (wM constraint): New constraint for a vector constant of a 1's.
16054         (wS constraint): New constraint for a vector constant that can be
16055         loaded with XXSPLTIB and a vector sign extend instruction.
16056         * config/rs6000/predicates.md (xxspltib_constant_split): New
16057         predicates for wE/wS constraints.
16058         (xxspltib_constant_nosplit): Likewise.
16059         (easy_vector_constant): Add support for constants that can be
16060         loaded via XXSPLTIB.
16061         (all_ones_constant): New predicate for vector constant with all
16062         1's set.
16063         (splat_input_operand): Add support for ISA 3.0 word splat operations.
16064         * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
16065         return if a constant can be loaded with the ISA 3.0 XXSPLTIB
16066         instruction and possibly with a sign extension.
16067         (output_vec_const_move): Add support for XXSPLTIB. If we are
16068         loading up 0/-1 into Altivec registers, prefer using VSPLTISW
16069         instead of XXLXOR/XXLORC.
16070         (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
16071         operations.
16072         (rs6000_legitimize_reload_address): Likewise.
16073         (rs6000_output_move_128bit): Use output_vec_const_move to emit
16074         constants.
16075         * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
16076         combine VSX_M and VSX_M2 into one iterator.
16077         (VSX_M2): Likewise.
16078         (VSINT_84): New iterators for loading constants with XXSPLTIB.
16079         (VSINT_842): Likewise.
16080         (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
16081         (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
16082         XXSPLTIB instruction.
16083         (xxspltib_<mode>_nosplit): Likewise.
16084         (xxspltib_<mode>_split): New insn to load up constants with
16085         XXSPLTIB and a sign extend instruction.
16086         (vsx_mov<mode>): Replace single move that handled all vector types
16087         with separate 32-bit and 64-bit moves.  Combine the movti_<bit>
16088         moves (when -mvsx-timode is in effect) into the main vector
16089         moves.  Eliminate separate moves for <VSr> <VSa>, where the
16090         preferred register class (<VSr>) is listed first, and the
16091         secondary register class (<VSa>) is listed second with a '?' to
16092         discourage use.  Prefer loading 0/-1 in any VSX register for ISA
16093         3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
16094         that if the register was involved in a slow operation, the
16095         clear/set operation does not wait for the slow operation to
16096         finish.  Adjust the length attributes for 32-bit mode.  Use
16097         rs6000_output_move_128bit and drop the use of the string
16098         instructions for 32-bit movti when -mvsx-timode is in effect.  Use
16099         spacing so that the alternatives and attributes don't generate
16100         long lines, and put things in columns, so that it is easier to
16101         match up the operands and attributes with the insn alternatives.
16102         (vsx_mov<mode>_64bit): Likewise.
16103         (vsx_mov<mode>_32bit): Likewise.
16104         (vsx_movti_64bit): Fold movti into normal vector moves.
16105         (vsx_movti_32bit): Likewise.
16106         (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
16107         splat instructions.
16108         (vsx_splat_v4si_internal): Likewise.
16109         (vsx_splat_v4sf_internal): Likewise.
16110         (vector fusion peepholes): Use VSX_M instead of VSX_M2.
16111         (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
16112         extend vector elements.
16113         (vsx_sign_extend_hi_<mode>): Likewise.
16114         (vsx_sign_extend_si_v2di): Likewise.
16115         * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
16116         declaration.
16117         * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
16118         constraints.  Add trailing period to wL documentation.
16120 2016-05-18  Richard Sandiford  <richard.sandiford@arm.com>
16122         PR middle-end/71020
16123         * tree-dfa.h (replace_abnormal_ssa_names): Declare.
16124         * tree-dfa.c (replace_abnormal_ssa_names): New function.
16125         * tree-call-cdce.c: Include tree-dfa.h.
16126         (can_guard_call_p): New function, extracted from...
16127         (can_use_internal_fn): ...here.
16128         (shrink_wrap_one_built_in_call_with_conds): Remove failure path
16129         and return void.
16130         (shrink_wrap_one_built_in_call): Likewise.
16131         (use_internal_fn): Likewise.
16132         (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
16133         and return void.  Call replace_abnormal_ssa_names.
16134         (pass_call_cdce::execute): Check can_guard_call_p during the
16135         initial walk.  Assume shrink_wrap_conditional_dead_built_in_calls
16136         will always change something.
16138 2016-05-18  Martin Jambor  <mjambor@suse.cz>
16140         PR ipa/70646
16141         * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
16142         if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
16144 2016-05-18  Martin Jambor  <mjambor@suse.cz>
16146         PR ipa/70646
16147         * ipa-inline.h (condition): New field size.
16148         * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
16149         for comaprison and store it into the new condition.
16150         (evaluate_conditions_for_known_args): Use condition size to check
16151         access sizes for all but CHANGED conditions.
16152         (unmodified_parm_1): New parameter size_p, store access size into it.
16153         (unmodified_parm): Likewise.
16154         (unmodified_parm_or_parm_agg_item): Likewise.
16155         (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
16156         (set_cond_stmt_execution_predicate): Extract access sizes and store
16157         them to conditions.
16158         (set_switch_stmt_execution_predicate): Likewise.
16159         (will_be_nonconstant_expr_predicate): Likewise.
16160         (will_be_nonconstant_predicate): Likewise.
16161         (inline_read_section): Stream condition size.
16162         (inline_write_summary): Likewise.
16164 2016-05-18  Richard Biener  <rguenther@suse.de>
16166         * tree-ssa-loop-im.c (determine_max_movement): Properly add
16167         condition cost to PHI cost instead of total_cost.
16169 2016-05-18  Martin Liska  <mliska@suse.cz>
16171         PR fortran/70856
16172         * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
16173         merged variables.
16175 2016-05-18  Richard Biener  <rguenther@suse.de>
16177         * lto-streamer.h (LTO_major_version): Bump to 6.
16179 2016-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
16181         * function.c (make_split_prologue_seq, make_prologue_seq,
16182         make_epilogue_seq): New functions, factored out from...
16183         (thread_prologue_and_epilogue_insns): Here.
16185 2016-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
16187         * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
16188         cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
16189         of before.  Add a comment.
16191 2016-05-18  Bin Cheng  <bin.cheng@arm.com>
16193         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
16194         expression pointer, not pointer to the pointer.
16196 2016-05-18  Jakub Jelinek  <jakub@redhat.com>
16198         * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
16199         (avx2_pbroadcast<mode>): Add another alternative with v instead
16200         of x constraints in it, using <pbroadcast_evex_isa> isa.
16201         (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
16203         * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
16204         constraint x instead of v in second alternative, add avx512bw
16205         alternative.
16207         * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
16208         constraint x instead of v in second alternative, add avx512bw
16209         alternative.
16211         * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
16212         constraint x instead of v in second alternative, add avx512bw
16213         alternative.
16215         * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
16216         avx512bw alternative.
16218 2016-05-18  Kirill Yukhin  <kirill.yukhin@intel.com>
16220         * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
16221         array to 128 chars.
16222         (define_insn "*andnottf3"): Ditto.
16223         (define_insn "*<code><mode>3"/any_logic): Ditto.
16224         (define_insn "*<code>tf3"/any_logic): Ditto.
16225         (define_insn "sse2_storehpd"): Use Yv constraint for scalar
16226         operand to block AVX-512VL insn variant emit when it is not enabled.
16228 2016-05-18  Kirill Yukhin  <kirill.yukhin@intel.com>
16230         * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
16231         constraint fot SF mode.
16233 2016-05-18  Petr Murzin  <petr.murzin@intel.com>
16234             Kirill Yukhin  <kirill.yukhin@intel.com>
16236         * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
16237         modifiers.
16238         (define_insn "rsqrt14<mode>"): Ditto.
16239         (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
16240         (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
16241         (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
16242         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
16243         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
16244         Ditto.
16245         (define_insn "*avx512f_gatherdi<mode>"): Ditto.
16246         (define_insn "*avx512f_scatterdi<mode>"): Ditto.
16247         * config/i386/i386.c (ix86_print_operand): Expand check for size
16248         override codes for Intel syntax.
16250 2016-05-18  Richard Biener  <rguenther@suse.de>
16252         PR tree-optimization/71168
16253         * tree-loop-distribution.c (distribute_loop): Move *destroy_p
16254         initialization earlier.
16256 2016-05-18  James Greenhalgh  <james.greenhalgh@arm.com>
16258         * config/aarch64/aarch64-simd.md
16259         (aarch64_reduc_plus_internal<mode>): Rename to...
16260         (reduc_plus_scal): ...This, and remove previous implementation.
16262 2016-05-18  Richard Biener  <rguenther@suse.de>
16264         * passes.def: Put late dse and cd_dce in canonical order.
16266 2016-05-17  Jan Hubicka  <hubicka@ucw.cz>
16268         * ipa-inline-transform.c (preserve_function_body_p): Look for
16269         first non-thunk clone.
16270         (save_function_body): Save into first non-thunk.
16271         * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
16272         up call stmt id.
16273         (lto_output_node): Inline thunks don't need body in every
16274         partition.
16275         * lto-streamer-in.c: Do not fixup thunk clones.
16276         * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
16277         thunks.
16278         * tree-inline.c (copy_bb): Be prepared for target node to be new after
16279         folding suceeds.
16281 2016-05-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
16283         PR middle-end/63586
16284         * tree-ssa-reassoc.c (transform_add_to_multiply): New.
16285         (reassociate_bb): Call transform_add_to_multiply.
16287 2016-05-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
16289         * config/aarch64/aarch64.c (all_extensions): Removed unused
16290         static variable.
16292 2016-05-17  Nathan Sidwell  <nathan@acm.org>
16294         * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
16295         (TARGET_FUNCTION_ARG_BOUNDARY): Override.
16297 2016-05-17  Mikhail Maltsev  <maltsevm@gmail.com>
16299         PR tree-optimization/54579
16300         PR middle-end/55299
16301         * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
16303 2016-05-17  Marek Polacek  <polacek@redhat.com>
16305         PR ipa/71146
16306         * tree-inline.c (expand_call_inline): Call
16307         maybe_remove_unused_call_args.
16309 2016-05-17  Jim Wilson  <jim.wilson@linaro.org>
16311         * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
16312         * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
16313         * doc/md.texi (fmin@var{m}3): Likewise.
16315 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
16317         * match.pd (X & C): New transformation.
16319 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
16321         * match.pd (~X & Y): New transformation.
16323 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
16325         * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
16326         information for new SSA_NAME.
16327         (simplify_conversion_using_ranges): Get range through get_range_info
16328         instead of get_value_range.
16330 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
16332         * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
16333         Remove inline assembly.
16334         (vmvn_s16): Likewise.
16335         (vmvn_s32): Likewise.
16336         (vmvn_u8): Likewise.
16337         (vmvn_u16): Likewise.
16338         (vmvn_u32): Likewise.
16339         (vmvnq_s8): Likewise.
16340         (vmvnq_s16): Likewise.
16341         (vmvnq_s32): Likewise.
16342         (vmvnq_u8): Likewise.
16343         (vmvnq_u16): Likewise.
16344         (vmvnq_u32): Likewise.
16345         (vmvn_p8): Likewise.
16346         (vmvnq_p16): Likewise.
16348 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
16350         * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
16351         Use builtin.
16352         (vmul_n_s16): Likewise.
16353         (vmul_n_s32): Likewise.
16354         (vmul_n_u16): Likewise.
16355         (vmul_n_u32): Likewise.
16356         (vmulq_n_f32): Likewise.
16357         (vmulq_n_f64): Likewise.
16358         (vmulq_n_s16): Likewise.
16359         (vmulq_n_s32): Likewise.
16360         (vmulq_n_u16): Likewise.
16361         (vmulq_n_u32): Likewise.
16363 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
16365         * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
16366         to all supported modes.  Rename to "*aarch64_mul3_elt_from_dup".
16368 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
16370         * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
16371         to *aarch64_fma4_elt_from_dup<mode>.
16372         (*aarch64_fnma4_elt_to_128df): Rename to
16373         *aarch64_fnma4_elt_from_dup<mode>.
16374         * config/aarch64/arm_neon.h (vfma_n_f64): New.
16375         (vfms_n_f32): Likewise.
16376         (vfms_n_f64): Likewise.
16377         (vfmsq_n_f32): Likewise.
16378         (vfmsq_n_f64): Likewise.
16380 2016-05-17  Gerald Pfeifer  <gerald@pfeifer.com>
16382         * wide-int.h: Change fixed_wide_int_storage from class to struct.
16384 2016-05-17  Richard Biener  <rguenther@suse.de>
16386         PR tree-optimization/71132
16387         * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
16388         Only add control dependences for blocks in the loop.
16389         (build_rdg): Adjust.
16390         (generate_code_for_partition): Return whether loop should
16391         be destroyed and delay that.
16392         (distribute_loop): Likewise.
16393         (pass_loop_distribution::execute): Record loops to be destroyed
16394         and perform delayed destroying of loops.
16396 2016-05-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16398         PR target/70809
16399         * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
16401 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
16403         * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
16405 2016-05-17  Ilya Enkovich  <ilya.enkovich@intel.com>
16407         PR target/71114
16408         * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
16409         insertion point for instructions generated by validize_mem.
16411 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
16413         * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
16414         in brackets.
16416 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
16418         * config/aarch64/aarch64.c
16419         (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
16420         rather than a macro.
16422 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
16424         * doc/invoke.texi (AArch64 Options): Various updates.
16426 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
16428         * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
16429         into instrumentation thunks.
16430         * cif-code.def (CIF_CHKP): New.
16432 2016-05-16  Uros Bizjak  <ubizjak@gmail.com>
16434         * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
16436 2016-05-16  Martin Jambor  <mjambor@suse.cz>
16438         * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
16439         (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
16441 2016-05-16  Marek Polacek  <polacek@redhat.com>
16443         * gimple.c (maybe_remove_unused_call_args): Fix typos in the
16444         commentary.
16446 2016-05-16  Martin Jambor  <mjambor@suse.cz>
16448         PR hsa/70857
16449         * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
16450         the outlined kernel function.
16452 2016-05-16  Robert Suchanek  <robert.suchanek@imgtec.com>
16454         * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
16455         (ISA_HAS_DLSA): Ditto.
16457 2016-05-16  Matthew Fortune  <matthew.fortune@imgtec.com>
16459         * config/mips/m5100.md (m51_int_load): Update the latency to 2.
16461 2016-05-16  Nathan Sidwell  <nathan@acm.org>
16463         * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
16464         (nvptx_name_replacement): Restore.  Add comment.
16465         (write_fn_proto, write_fn_proto_from_insn,
16466         nvptx_output_call_insn): Restore
16467         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
16469 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
16471         * config/aarch64/aarch64.md
16472         (add<mode>3_compareC_cconly_imm): Remove use of %w.
16473         (add<mode>3_compareC_imm): Likewise.
16474         (<optab>si3_uxtw): Split into register and immediate variants.
16475         (andsi3_compare0_uxtw): Likewise.
16476         (and<mode>3_compare0): Likewise.
16477         (and<mode>3nr_compare0): Likewise.
16478         (stack_protect_test_<mode>): Don't use %x for memory operands.
16480 2016-05-16  Matthew Fortune  <matthew.fortune@imgtec.com>
16482         * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
16484 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
16486         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
16487         Split integer shifts into shift_reg and bfm.
16488         (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
16489         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
16490         (ror<mode>3_insn): Likewise.
16491         (<optab>si3_insn_uxtw): Likewise.
16492         (<optab><mode>3_insn): Change to rotate_imm.
16493         (extr<mode>5_insn_alt): Likewise.
16494         (extrsi5_insn_uxtw): Likewise.
16495         (extrsi5_insn_uxtw_alt): Likewise.
16497 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
16499         * doc/tm.texi: Regenerate.
16500         * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
16501         (TARGET_INVALID_RETURN_TYPE): Remove.
16502         * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
16503         TARGET_INVALID_RETURN_TYPE.
16504         * target.def (invalid_parameter_type): Remove.
16505         (invalid_return_type): Remove.
16507 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
16509         * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
16510         on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
16511         calls from thunk.
16512         * ipa-inline-transform.c (inline_call): When inlining into thunk produce
16513         gimple body.
16514         (preserve_function_body_p): No need to preserve function body
16515         * cif-codes.def (CIF_THUNK): Remove.
16516         * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
16518 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
16520         * tree-inline.c (expand_call_inline): recurse after inlining thunk.
16522 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
16524         * tree.c (free_lang_data_in_decl): Also set target/optimization flags
16525         for thunks.
16527 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
16529         * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
16530         (inline_small_functions): Do not look for function symbol when
16531         resetting caches.
16533 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
16535         * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
16536         of inline thunks
16538 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
16539             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16540             Jiong Wang  <jiong.wang@arm.com>
16542         * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
16543         for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
16544         Define __ARM_FP16_ARGS when appropriate.
16545         * config/arm/arm.c (arm_invalid_parameter_type): Remove
16546         declaration.
16547         (arm_invalid_return_type): Likewise.
16548         (TARGET_INVALID_PARAMETER_TYPE): Remove.
16549         (TARGET_INVALID_RETURN_TYPE): Remove.
16550         (aapcs_vfp_sub_candidate): Allow HFmode.
16551         (aapcs_vfp_allocate): Add comment.  Support HFmode.
16552         (aapcs_vfp_allocate_return_reg): Likewise.
16553         (struct aapcs_cp_arg_layout): Slightly reword comments for
16554         is_return_candidate and allocate_return_reg.
16555         (output_mov_vfp): Update assert.
16556         (arm_hard_regno_mode_ok): Remove comment, update HF-mode
16557         condition.
16558         (arm_invalid_parameter_type): Remove.
16559         (amr_invalid_return_type): Remove.
16560         * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
16561         * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
16562         * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
16564 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
16566         * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
16567         * config/aarch64/arch64-protos.h
16568         (aarch64_legitimize_reload_address): Remove.
16569         * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
16570         Remove.
16572 2016-05-16  Eric Botcazou  <ebotcazou@adacore.com>
16574         * configure.ac: Add ACX_NONCANONICAL_HOST.
16575         * configure: Regenerate.
16576         * Makefile.in: Set host_noncanonical.
16578 2016-05-14  Uros Bizjak  <ubizjak@gmail.com>
16580         PR target/71097
16581         * config/i386/i386.md (*movtf_internal): Before register allocation,
16582         do not allow FP constants for CM_MEDIUM memory model, allow only
16583         standard FP constants for CM_LARGE and CM_LARGE_PIC models.
16584         (*movxf_internal): Ditto.
16585         (*movdf_internal): Ditto.
16586         (*movsf_internal): Ditto.
16588 2016-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
16590         PR rtl-optimization/67483
16591         * combine.c (make_compound_operation): Don't call extract_left_shift
16592         with negative shift amounts.
16594 2016-05-13  Jakub Jelinek  <jakub@redhat.com>
16596         PR bootstrap/71071
16597         * fold-const.c (fold_checksum_tree): Allow modification
16598         of TYPE_ALIAS_SET during folding.
16600         * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
16601         ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
16602         (ix86_split_to_parts): Likewise.  Fix up formatting.
16604 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
16606         * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
16607         unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
16608         printf format.
16610 2016-05-13  Nathan Sidwell  <nathan@acm.org>
16612         * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
16613         (nvptx_name_replacement): Delete.
16614         (write_fn_proto, write_fn_proto_from_insn,
16615         nvptx_output_call_insn): Remove nvptx_name_replacement call.
16616         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
16617         * langhooks.c (add_builtin_funcction_common): Call
16618         targetm.mangle_decl_assembler_name.
16620         * config/nvptx/nvptx.c (write_fn_proto): Handle
16621         BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
16623 2016-05-13  Martin Liska  <mliska@suse.cz>
16625         * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
16626         and PRIu64 in printf format.
16628 2016-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16630         * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
16631         comment.
16633 2016-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16635         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
16636         Change --param max-completely-peeled-times to
16637         --param max-completely-peel-times in dump file printing.
16639 2016-05-13  Richard Biener  <rguenther@suse.de>
16641         PR tree-optimization/42587
16642         * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
16643         (find_bswap_or_nop_1): Likewise.
16644         (bswap_replace): Likewise.
16646 2016-05-13  Martin Liska  <mliska@suse.cz>
16648         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
16649         Initialize a variable with default value.
16651 2016-05-13  Martin Liska  <mliska@suse.cz>
16653         * doc/invoke.texi: Enhance explanation of error recovery
16654         of sanitizers.
16656 2016-05-13  Martin Liska  <mliska@suse.cz>
16658         * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
16659         (struct cost_pair): Change inv_expr_id (int) to inv_expr
16660         (iv_inv_expr_ent *).
16661         (struct iv_inv_expr_ent): Comment struct fields.
16662         (sort_iv_inv_expr_ent): New function.
16663         (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
16664         (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
16665         a hash_map between iv_inv_expr_ent and number of usages.
16666         (niter_for_exit): Fix coding style.
16667         (tree_ssa_iv_optimize_init): Use renamed variable.
16668         (determine_base_object): Fix coding style.
16669         (alloc_iv): Likewise.
16670         (find_interesting_uses_outside): Likewise.
16671         (add_candidate_1): Likewise.
16672         (add_standard_iv_candidates): Likewise.
16673         (set_group_iv_cost): Replace inv_expr_id with inv_expr.
16674         (prepare_decl_rtl): Fix coding style.
16675         (get_address_cost): Likewise.
16676         (get_shiftadd_cost): Likewise.
16677         (force_expr_to_var_cost): Likewise.
16678         (compare_aff_trees): Likewise.
16679         (get_expr_id): Restructure the function.
16680         (get_loop_invariant_expr_id): Renamed to
16681         get_loop_invariant_expr.
16682         (get_computation_cost_at): Replace usage of inv_expr_id with
16683         inv_expr.
16684         (get_computation_cost): Likewise.
16685         (determine_group_iv_cost_generic): Likewise.
16686         (determine_group_iv_cost_address): Likewise.
16687         (iv_period): Fix coding style.
16688         (iv_elimination_compare_lt): Likewise.
16689         (may_eliminate_iv): Likewise.
16690         (determine_group_iv_cost_cond):  Replace usage of inv_expr_id with
16691         inv_expr.
16692         (determine_group_iv_costs): Dump invariant expressions.
16693         (iv_ca_recount_cost): Use the newly added hash_map.
16694         (iv_ca_set_remove_invariants): Fix coding style.
16695         (iv_ca_set_add_invariants): Fix coding style.
16696         (iv_ca_set_no_cp): Utilize the newly added hash_map for used
16697         invariants.
16698         (iv_ca_set_cp): Likewise.
16699         (iv_ca_new): Initialize the newly added hash_map and remove
16700         initialization of fields.
16701         (iv_ca_free): Delete the hash_map.
16702         (iv_ca_dump): Dump invariant expressions.
16703         (iv_ca_extend): Fix coding style.
16704         (try_add_cand_for): Likewise.
16705         (create_new_ivs): Dump information about # of avg iterations and
16706         # of used invariant expressions.
16707         (rewrite_use_compare): Fix coding style.
16708         (free_loop_data): Set default value for max_inv_expr_id.
16710 2016-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
16712         * cse.c (rest_of_handle_cse): Use cleanup_cfg
16713         returned value cse_cfg_altered computation.
16714         (rest_of_handle_cse2): Likewise.
16715         (rest_of_handle_cse_after_global_opts): Likewise.
16717 2016-05-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16719         PR target/53440
16720         * config/arm/arm.c (arm32_output_mi_thunk): New.
16721         (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
16722         to split Thumb1 vs TARGET_32BIT functionality.
16723         (arm_thumb1_mi_thunk): New.
16725 2016-05-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16727         * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
16728         to true.
16730 2016-05-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16732         PR target/71080
16733         * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
16735 2016-05-13  Eric Botcazou  <ebotcazou@adacore.com>
16737         * builtins.c (expand_builtin_memcmp): Do not emit the call here.
16738         (expand_builtin_trap): Emit a regular call.
16739         (set_builtin_user_assembler_name): Remove obsolete cases.
16740         * dse.c (scan_insn): Adjust.
16741         * except.c: Include calls.h.
16742         (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
16743         emit a regular call to setjmp.
16744         * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
16745         (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
16746         (emit_block_move_via_libcall): Delete.
16747         (block_move_fn): Delete.
16748         (init_block_move_fn): Likewise.
16749         (emit_block_move_libcall_fn): Likewise.
16750         (emit_block_op_via_libcall): New function.
16751         (set_storage_via_libcall): Tidy up and use memset builtin.
16752         (block_clear_fn): Delete.
16753         (init_block_clear_fn): Likewise.
16754         (clear_storage_libcall_fn): Likewise.
16755         (expand_assignment): Call emit_block_move_via_libcall.
16756         Do not include gt-expr.h.
16757         * expr.h (emit_block_op_via_libcall): Declare.
16758         (emit_block_copy_via_libcall): New inline function.
16759         (emit_block_move_via_libcall): Likewise.
16760         (emit_block_comp_via_libcall): Likewise.
16761         (block_clear_fn): Delete.
16762         (init_block_move_fn): Likewise.
16763         (init_block_clear_fn): Likewise.
16764         (emit_block_move_via_libcall): Likewise.
16765         (set_storage_via_libcall): Add default parameter value.
16766         * libfuncs.h (enum libfunc_index): Remove obsolete values.
16767         (abort_libfunc): Delete.
16768         (memcpy_libfunc): Likewise.
16769         (memmove_libfunc): Likewise.
16770         (memcmp_libfunc): Likewise.
16771         (memset_libfunc): Likewise.
16772         (setbits_libfunc): Likewise.
16773         (setjmp_libfunc): Likewise.
16774         (longjmp_libfunc): Likewise.
16775         (profile_function_entry_libfunc): Likewise.
16776         (profile_function_exit_libfunc): Likewise.
16777         (gcov_flush_libfunc): Likewise.
16778         * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
16779         and DECL_VISIBILITY on the declaration.
16780         (init_optabs): Do not initialize obsolete libfuncs.
16781         * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
16782         * tree-core.h (ECF_RET1): Define.
16783         (ECF_TM_PURE): Adjust.
16784         (ECF_TM_BUILTIN): Likewise.
16785         * tree.c (set_call_expr_flags): Deal with ECF_RET1.
16786         (build_common_builtin_nodes): Initialize abort builtin.
16787         Add ECF_RET1 on memcpy, memmove and memset builtins.
16788         Pass final flags for alloca and alloca_with_align builtins.
16789         * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
16790         obsolete builtins.
16791         * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
16792         * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
16793         set_storage_via_libcall and call emit_block_copy_via_libcall.
16795 2016-05-12  Uros Bizjak  <ubizjak@gmail.com>
16797         * config/i386/i386.md (*call_got_x32): Change operand 0 to
16798         DImode before it is passed to ix86_output_call_operand.
16799         (*call_value_got_x32): Ditto for operand 1.
16801 2016-05-12  Jiong Wang  <jiong.wang@arm.com>
16803         PR rtl-optimization/70904
16804         * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
16805         reload for wide mode.
16807 2016-05-12  Marek Polacek  <polacek@redhat.com>
16809         PR c/70756
16810         * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
16811         * langhooks.c (lhd_incomplete_type_error): Add location parameter.
16812         * langhooks.h (incomplete_type_error): Likewise.
16813         * tree.c (size_in_bytes_loc): Renamed from size_in_bytes.  Add location
16814         parameter, pass it down to incomplete_type_error.
16815         * tree.h (size_in_bytes): New inline overload.
16816         (size_in_bytes_loc): Renamed from size_in_bytes.
16818 2016-05-12  Richard Biener  <rguenther@suse.de>
16820         PR tree-optimization/71059
16821         * tree-ssa-pre.c (phi_translate_1): Fully fold translated
16822         nary before looking up or entering the expression into the VN
16823         hashes.
16824         * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
16825         Make sure to re-use NARYs without result as inserted by
16826         phi-translation.
16828 2016-05-12  Richard Biener  <rguenther@suse.de>
16830         PR tree-optimization/71062
16831         * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
16832         field.
16833         * tree-ssa-structalias.c (set_uids_in_ptset): Set
16834         vars_contains_restrict if the var is a restrict tag.
16835         * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
16836         do not disambiguate pointers against it.
16837         (dump_points_to_solution): Re-structure and adjust for new
16838         vars_contains_restrict flag.
16839         * gimple-pretty-print.c (pp_points_to_solution): Likewise.
16841 2016-05-12  Martin Liska  <mliska@suse.cz>
16843         * doc/invoke.texi: Explain connection between
16844         -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
16846 2016-05-12  Ilya Enkovich  <ilya.enkovich@intel.com>
16848         PR tree-optimization/71006
16849         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
16850         consider COND_EXPR as a mask producer.
16852 2016-05-12  Marek Polacek  <polacek@redhat.com>
16854         PR driver/71063
16855         * opts.c (common_handle_option): Detect missing argument for --help^.
16857 2016-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16859         PR target/70830
16860         * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
16861         when popping the PC and within an interrupt handler routine.
16862         Add missing tab to output of "ldmfd".
16863         (output_return_instruction): Output LDMFD with SP update rather
16864         than POP when returning from interrupt handler.
16866 2016-05-12  Jakub Jelinek  <jakub@redhat.com>
16868         * config/i386/i386.md (isa): Add x64_avx512dq, enable if
16869         TARGET_64BIT && TARGET_AVX512DQ.
16870         * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
16871         (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
16872         (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
16873         *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
16874         (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
16875         (*vec_extractv4si_zext): Add avx512dq alternative.
16876         (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
16877         use v instead of x constraint in other alternatives where possible.
16879         * config/i386/sse.md (sse2_loadld): Use v instead of x
16880         constraint in alternatives 0,1,4.
16882         * config/i386/sse.md (pinsr_evex_isa): New mode attr.
16883         (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
16884         v constraints instead of x and <pinsr_evex_isa> isa attribute.
16886         PR target/71019
16887         * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
16888         <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
16889         is not emitted unless TARGET_AVX512BW.
16890         (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
16891         Likewise.  For TARGET_AVX512BW, use "=v" constraint instead of "=x"
16892         for the result operand.
16894         * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
16895         constraint instead of x in avx alternatives.  Use maybe_evex instead
16896         of vex prefix.
16898         * config/i386/constraints.md (Yv): New constraint.
16899         * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
16900         TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
16901         * config/i386/i386.md (avx512fvecmode): New mode attr.
16902         (*pushtf): Use v constraint instead of x.
16903         (*movtf_internal): Likewise.  For TARGET_AVX512VL and
16904         xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
16905         (*absneg<mode>2): Use Yv constraint instead of x constraint.
16906         (*absnegtf2_sse): Likewise.
16907         (copysign<mode>3_const, copysign<mode>3_var): Likewise.
16908         * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
16909         avx512f alternatives.
16910         (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
16912 2016-05-12  Richard Biener  <rguenther@suse.de>
16914         PR tree-optimization/71060
16915         * tree-data-ref.c (initialize_data_dependence_relation): Do not
16916         require exact match of DR_BASE_OBJECT but only matching address and
16917         type.
16919 2016-05-12  Richard Biener  <rguenther@suse.de>
16921         PR tree-optimization/70986
16922         * cfganal.c: Include cfgloop.h.
16923         (dfs_find_deadend): Prefer to take edges exiting loops.
16925 2016-05-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16927         * gcc.target/powerpc/pr70963.c: Require at least power8 at both
16928         compile and run time.
16930 2016-05-11  Mikhail Maltsev  <maltsevm@gmail.com>
16932         PR c/43651
16933         * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
16935 2016-05-11  Uros Bizjak  <ubizjak@gmail.com>
16937         * config/i386/i386.c (legitimize_pic_address): Use
16938         copy_to_suggested_reg instead of gen_movsi.
16940 2016-05-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
16942         * config/rs6000/predicates.md (quad_memory_operand): Move most of
16943         the code into quad_address_p and call it to share code with
16944         vsx_quad_dform_memory_operand.
16945         (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
16946         d-form support.
16947         * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
16948         bit instead of being a separate word.  Split -mpower9-dform into
16949         two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
16950         * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
16951         for the register class supporting 128-bit quad word memory offsets.
16952         (mode_supports_vsx_dform_quad): Helper function to return if the
16953         register class uses quad word memory offsets.
16954         (rs6000_debug_addr_mask): Add support for quad word memory offsets.
16955         (rs6000_debug_reg_global): Always print if we are using LRA or not.
16956         (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
16957         instructions are enabled, set up the appropriate addr_masks for
16958         128-bit types.
16959         (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
16960         -mpower9-dform-scalar, instead of -mpower9-dform.
16961         (rs6000_option_override_internal): Split -mpower9-dform into two
16962         switches, -mpower9-dform-scalar and -mpower9-dform-vector.  The
16963         -mpower9-dform switch sets or clears both.  If we are not using
16964         the LRA register allocator, do not enable -mpower9-dform-vector by
16965         default.  If we are using LRA, enable -mpower9-dform-vector and
16966         -mvsx-timode if it is appropriate.  Issue a warning if either
16967         -mpower9-dform-vector or -mvsx-timode are explicitly used without
16968         enabling LRA.
16969         (quad_address_offset_p): New helper function to return if the
16970         offset is legal for quad word memory instructions.
16971         (quad_address_p): New function to determin if GPR or vector
16972         register quad word memory addresses are legal.
16973         (mem_operand_gpr): Validate quad word address offsets.
16974         (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
16975         d-form (register + offset) instructions.
16976         (offsettable_ok_by_alignment): Likewise.
16977         (rs6000_legitimate_offset_address_p): Likewise.
16978         (legitimate_lo_sum_address_p): Likewise.
16979         (rs6000_legitimize_address): Likewise.
16980         (rs6000_legitimize_reload_address): Add more debug statements for
16981         -mdebug=addr.
16982         (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
16983         d-form instructions.
16984         (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
16985         d-form instructions.  Distinguish different cases in debug
16986         output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
16987         d-form instructions.
16988         (rs6000_preferred_reload_class): Likewise.
16989         (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
16990         instructions.  If ISA 3.0 is available, generate lxvx/stxvx instead
16991         of the ISA 2.06 indexed memory instructions.
16992         (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
16993         use them to save/restore the saved vector registers instead of
16994         using Altivec instructions.
16995         (rs6000_emit_epilogue): Likewise.
16996         (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
16997         (rs6000_opt_masks): Split -mpower9-dform into
16998         -mpower9-dform-scalar and -mpower9-dform-vector.
16999         (rs6000_print_options_internal): Print -mno-<switch> if <switch>
17000         was not selected.
17001         * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
17002         ISA 3.0 vector indexed memory instructions, and fold the code into
17003         the normal mov<mode> patterns.
17004         (p9_vecstore_<mode>): Likewise.
17005         (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
17006         instructions.
17007         (vsx_movti_64bit): Likewise.
17008         (vsx_movti_32bit): Likewise.
17009         * config/rs6000/constraints.md (wO constraint): New constraint for
17010         ISA 3.0 vector d-form support.
17011         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
17012         -mpower9-dform-scalar instead of -mpower9-dform.  Add note not to
17013         include -mpower9-dform-vector until we switch over to LRA.
17014         (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
17015         switches, -mpower9-dform-scalar and -mpower9-dform-vector.
17016         * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
17017         * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
17018         for -mpower9-dform and -mlra.
17019         * doc/md.texi (wO constraint): Document wO constraint.
17021 2016-05-11  Alexander Monakov  <amonakov@ispras.ru>
17023         * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
17024         'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
17025         * genautomata.c (output_internal_insn_code_evaluation): Simplify.
17026         Move handling of non-insn arguments inline into the sole user:
17027         (output_trans_func): ...here.
17028         (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
17029         in emitted function prototype.
17030         (output_internal_insn_latency_func): Ditto.  Simplify.
17031         (output_internal_maximal_insn_latency_func): Ditto.  Delete
17032         always-unused argument.
17033         (output_insn_latency_func): Ditto.
17034         (output_maximal_insn_latency_func): Ditto.
17036 2016-05-11  Richard Biener  <rguenther@suse.de>
17038         PR tree-optimization/71055
17039         * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
17040         sth with precision not equal to access size verify we don't chop
17041         off bits.
17043 2016-05-11  Richard Biener  <rguenther@suse.de>
17045         PR debug/71057
17046         * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
17047         (dwarf2out_finish): Move retry_incomplete_types call ...
17048         (dwarf2out_early_finish): ... here.
17050 2016-05-11  Richard Biener  <rguenther@suse.de>
17052         PR middle-end/71002
17053         * alias.c (reference_alias_ptr_type): Preserve alias-set zero
17054         if the langhook insists on it.
17055         * fold-const.c (make_bit_field_ref): Add arg for the original
17056         reference and preserve its alias-set.
17057         (decode_field_reference): Take exp by reference and adjust it
17058         to the original memory reference.
17059         (optimize_bit_field_compare): Adjust callers.
17060         (fold_truth_andor_1): Likewise.
17061         * gimplify.c (gimplify_expr): Adjust in-SSA form test.
17063 2016-05-11  Ilya Enkovich  <ilya.enkovich@intel.com>
17065         PR middle-end/70807
17066         * cfgrtl.h (delete_insn_and_edges): Now return bool.
17067         * cfgrtl.c (delete_insn_and_edges): Likewise.
17068         * config/i386/i386.c (convert_scalars_to_vector): Remove
17069         redundant code.
17070         * cse.c (cse_insn): Compute cse_cfg_altered.
17071         (delete_trivially_dead_insns): Likewise.
17072         (cse_cc_succs): Likewise.
17073         (rest_of_handle_cse): Free dominance info if required.
17074         (rest_of_handle_cse2): Likewise.
17075         (rest_of_handle_cse_after_global_opts): Likewise.
17077 2016-05-11  Alan Modra  <amodra@gmail.com>
17079         * config/rs6000/rs6000.c (is_complex_IBM_long_double,
17080         abi_v4_pass_in_fpr): New functions.
17081         (rs6000_function_arg_boundary): Exclude complex IBM long double
17082         from 64-bit alignment when ABI_V4.
17083         (rs6000_function_arg, rs6000_function_arg_advance_1,
17084         rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
17086 2016-05-10  Segher Boessenkool  <segher@kernel.crashing.org>
17088         PR rtl-optimization/71028
17089         * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
17090         jump with just a return in the fallthrough block if the branch
17091         block contains just a return as well.
17093 2016-05-10  Marc Glisse  <marc.glisse@inria.fr>
17095         * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
17096         * match.pd ((X & Y) ^ Y): ... this.
17097         ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
17098         | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
17100 2016-05-10  David Malcolm  <dmalcolm@redhat.com>
17102         * read-md.c (require_char_ws): New function.
17103         (read_string): Simplify using require_char_ws.
17104         (handle_constants): Likewise.
17105         (handle_enum): Likewise.
17106         (handle_file): Likewise.
17107         * read-md.h (require_char_ws): New declaration.
17108         * read-rtl.c (read_conditions): Simplify using require_char_ws.
17109         (read_mapping): Likewise.
17110         (read_rtx_code): Likewise.
17111         (read_nested_rtx): Likewise.
17113 2016-05-10  James Norris  <jnorris@codesourcery.com>
17115         * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
17116         if offloading is enabled and -fopenacc or -fopenmp is specified.
17117         (CRTOFFLOADEND): Likewise.
17118         (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
17119         (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
17121 2016-05-10  Uros Bizjak  <ubizjak@gmail.com>
17123         * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
17124         gotoff_operand code paths.  Use copy_to_suggested_regs and
17125         expand_simple_binop where appropriate.  Cleanup.
17127 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
17129         PR target/70799
17130         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
17131         integer constants.
17132         (dimode_scalar_chain::vector_const_cost): New.
17133         (dimode_scalar_chain::compute_convert_gain): Handle constants.
17134         (dimode_scalar_chain::convert_op): Likewise.
17135         (dimode_scalar_chain::convert_insn): Likewise.
17137 2016-05-10  Pierre-Marie de Rodat  <derodat@adacore.com>
17139         * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
17140         unary operation, not a binary one.
17142 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
17144         PR middle-end/70877
17145         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
17146         calls with type casted fndecl.
17148 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
17150         PR tree-optimization/70786
17151         * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
17152         * calls.c (initialize_argument_information): Bind bounds
17153         with corresponding args passed by reference.
17155 2016-05-10  Jakub Jelinek  <jakub@redhat.com>
17157         PR target/70927
17158         * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
17159         *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
17160         use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
17161         accordingly.
17163 2016-05-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17165         PR target/70963
17166         * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
17167         code for a zero scale factor.
17168         (vsx_xvcvdpuxds_scale): Likewise.
17170 2016-05-10  David Malcolm  <dmalcolm@redhat.com>
17172         * diagnostic-show-locus.c (layout::layout): Call show_ruler
17173         if show_ruler_p was set on the context.
17174         (layout::show_ruler): New method.
17175         * diagnostic.h (struct diagnostic_context): Add field
17176         "show_ruler_p".
17178 2016-05-10  Richard Biener  <rguenther@suse.de>
17180         PR tree-optimization/71039
17181         * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
17182         (chk_uses): New function.
17183         (propagate_with_phi): Verify we can safely replicate the lhs of an
17184         aggregate assignment on all incoming edges.
17186 2016-05-10  Oleg Endo  <olegendo@gcc.gnu.org>
17188         * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
17189         Forward declare.
17190         (rx_atomic_sequence): New class.
17191         * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
17192         (is_interrupt_func, is_fast_interrupt_func): Make non-static and
17193         non-inline.
17194         (rx_atomic_sequence::rx_atomic_sequence,
17195         rx_atomic_sequence::~rx_atomic_sequence): New functions.
17196         * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
17197         CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
17198         CTRLREG_INTB): New constants.
17199         (FETCHOP): New code iterator.
17200         (fethcop_name, fetchop_name2): New iterator code attributes.
17201         (QIHI): New mode iterator.
17202         (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
17203         atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
17204         atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
17206 2016-05-10  Martin Liska  <mliska@suse.cz>
17208         * tree-inline.c (remap_dependence_clique): Do not remap
17209         debugging statements.
17211 2016-05-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17213         * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
17214         ("*fixuns_truncdfdi2_z13")
17215         ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
17216         ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
17217         ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
17219 2016-05-10  Richard Biener  <rguenther@suse.de>
17221         PR tree-optimization/70497
17222         PR tree-optimization/28367
17223         * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
17224         split out from ...
17225         (visit_reference_op_load): ... here.
17226         (vn_reference_lookup_3): Use it to handle subreg-like accesses
17227         with simplified BIT_FIELD_REFs.
17228         * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
17229         * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
17230         correctly.
17232 2016-05-10  Pierre-Marie de Rodat  <derodat@adacore.com>
17234         * dwarf2out.c (add_abstract_origin_attribute): Adjust
17235         documentation comment.  For BLOCK nodes, add a
17236         DW_AT_abstract_origin attribute that points to the DIE generated
17237         for the origin BLOCK.
17238         (gen_lexical_block_die): Call add_abstract_origin_attribute for
17239         blocks from inlined functions.
17241 2016-05-10  Alan Modra  <amodra@gmail.com>
17243         PR target/70947
17244         * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
17245         regrename modifying insns saving lr before __morestack call.
17246         * config/rs6000/rs6000.md (split_stack_return): Similarly for
17247         insns restoring lr after __morestack call.
17249 2016-05-09  Jakub Jelinek  <jakub@redhat.com>
17251         * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
17252         lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
17253         expanders.
17254         * config/i386/sse.md (vec_interleave_high<mode>,
17255         vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
17256         <avx512>_vpermt2var<mode>3_maskz): Likewise.
17258 2016-05-04  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
17260         * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
17261         function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
17262         parallel reassociation for power8 and forward.
17264 2016-05-09  Uros Bizjak  <ubizjak@gmail.com>
17266         * config/i386/i386.md (absneg splitters with general regs): Use
17267         general_reg_operand predicate.
17268         (btsq peephole2): Use x86_64_immediate_operand to check if new
17269         value is suitable for immediate operand.  Generate emitted insn
17270         using RTL expressions.
17271         (btcq peephole2): Ditto.
17272         (btrq peephole2): Ditto.  Generate correct immediate operand
17273         for AND masking.
17275 2016-05-09  Richard Sandiford  <richard.sandiford@arm.com>
17277         * cfgexpand.c (expand_debug_expr): Fix address offset for negative
17278         bitpos.
17280 2016-05-09  Richard Sandiford  <richard.sandiford@arm.com>
17282         * tree-affine.c (wide_int_constant_multiple_p): Add missing
17283         pointer dereference.
17285 2016-05-09  Richard Biener  <rguenther@suse.de>
17287         PR tree-optimization/70985
17288         * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
17289         op0 isn't a gimple register.
17291 2016-05-09  Prachi Godbole  <prachi.godbole@imgtec.com>
17293         * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
17294         (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
17295         (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
17296         (i6400_fpu_mult): New cpu units.
17297         (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
17298         (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
17299         (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
17300         (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
17301         (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
17302         (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
17303         (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
17304         (i6400_msa_long_float4, i6400_msa_long_float5)
17305         (i6400_msa_long_float8, i6400_msa_fdiv_df)
17306         (i6400_msa_fdiv_sf): New reservations.
17307         * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
17308         (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
17309         (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
17310         (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
17311         (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
17312         (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
17313         (msa_short_cmp, msa_short_float2, msa_short_logic3)
17314         (msa_short_store4, msa_long_load, msa_short_store)
17315         (msa_long_logic, msa_long_float2, msa_long_float4)
17316         (msa_long_float5, msa_long_float8, msa_long_mult)
17317         (msa_long_fdiv, msa_long_div): New reservations.
17319 2016-05-09  Robert Suchanek  <robert.suchanek@imgtec.com>
17320             Sameera Deshpande  <sameera.deshpande@imgtec.com>
17321             Matthew Fortune  <matthew.fortune@imgtec.com>
17322             Graham Stott  <graham.stott@imgtec.com>
17323             Chao-ying Fu  <chao-ying.fu@imgtec.com>
17325         * config.gcc: Add MSA header file for mips*-*-* target.
17326         * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
17327         (Ubv8i, Urv8):  New constraints.
17328         * config/mips/mips-ftypes.def: Add function types for MSA
17329         builtins.
17330         * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
17331         (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
17332         * config/mips/mips-msa.md: New file.
17333         * config/mips/mips-protos.h
17334         (mips_split_128bit_const_insns): New prototype.
17335         (mips_msa_idiv_insns): Likewise.
17336         (mips_split_128bit_move): Likewise.
17337         (mips_split_128bit_move_p): Likewise.
17338         (mips_split_msa_copy_d): Likewise.
17339         (mips_split_msa_insert_d): Likewise.
17340         (mips_split_msa_fill_d): Likewise.
17341         (mips_expand_msa_branch): Likewise.
17342         (mips_const_vector_same_val_p): Likewise.
17343         (mips_const_vector_same_bytes_p): Likewise.
17344         (mips_const_vector_same_int_p): Likewise.
17345         (mips_const_vector_shuffle_set_p): Likewise.
17346         (mips_const_vector_bitimm_set_p): Likewise.
17347         (mips_const_vector_bitimm_clr_p): Likewise.
17348         (mips_msa_vec_parallel_const_half): Likewise.
17349         (mips_msa_output_division): Likewise.
17350         (mips_ldst_scaled_shift): Likewise.
17351         (mips_expand_vec_cond_expr): Likewise.
17352         * config/mips/mips.c (enum mips_builtin_type): Add
17353         MIPS_BUILTIN_MSA_TEST_BRANCH.
17354         (mips_gen_const_int_vector_shuffle): New prototype.
17355         (mips_const_vector_bitimm_set_p): New function.
17356         (mips_const_vector_bitimm_clr_p): Likewise.
17357         (mips_const_vector_same_val_p): Likewise.
17358         (mips_const_vector_same_bytes_p): Likewise.
17359         (mips_const_vector_same_int_p): Likewise.
17360         (mips_const_vector_shuffle_set_p): Likewise.
17361         (mips_symbol_insns): Forbid loading symbols via immediate for
17362         MSA.
17363         (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
17364         stores.
17365         (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
17366         MSA.
17367         (mips_lx_address_p): Add support load indexed address for MSA.
17368         (mips_address_insns): Add calculation of instructions needed for
17369         stores and loads for MSA.
17370         (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR.  Handle
17371         CONST_VECTOR for MSA and let it fall through.
17372         (mips_ldst_scaled_shift): New function.
17373         (mips_subword_at_byte): Likewise.
17374         (mips_msa_idiv_insns): Likewise.
17375         (mips_legitimize_move): Validate MSA moves.
17376         (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases.  Add
17377         calculation of costs for MSA division.
17378         (mips_split_move_p): Check if MSA moves need splitting.
17379         (mips_split_move): Split MSA moves if necessary.
17380         (mips_split_128bit_move_p): New function.
17381         (mips_split_128bit_move): Likewise.
17382         (mips_split_msa_copy_d): Likewise.
17383         (mips_split_msa_insert_d): Likewise.
17384         (mips_split_msa_fill_d): Likewise.
17385         (mips_output_move): Handle MSA moves.
17386         (mips_expand_msa_branch): New function.
17387         (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
17388         Reinstate 'y' modifier.
17389         (mips_file_start): Add MSA .gnu_attribute.
17390         (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
17391         FPRs.
17392         (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
17393         (mips_class_max_nregs): Add register size for MSA supported mode.
17394         (mips_cannot_change_mode_class): Allow conversion between MSA
17395         vector modes and TImode.
17396         (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
17397         instruction.
17398         (mips_secondary_reload_class): Force MSA loads/stores via memory.
17399         (mips_preferred_simd_mode): Add preffered modes for MSA.
17400         (mips_vector_mode_supported_p): Add MSA supported modes.
17401         (mips_autovectorize_vector_sizes): New function.
17402         (mips_msa_output_division): Likewise.
17403         (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
17404         (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
17405         (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
17406         (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
17407         (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
17408         (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
17409         (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
17410         (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
17411         (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
17412         (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
17413         (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
17414         (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
17415         (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
17416         (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
17417         (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
17418         (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
17419         (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
17420         (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
17421         (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
17422         (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
17423         (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
17424         (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
17425         (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
17426         (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
17427         (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
17428         (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
17429         (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
17430         (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
17431         (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
17432         (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
17433         (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
17434         (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
17435         (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
17436         (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
17437         (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
17438         (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
17439         (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
17440         (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
17441         (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
17442         (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
17443         (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
17444         (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
17445         (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
17446         (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
17447         (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
17448         (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
17449         (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
17450         (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
17451         (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
17452         (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
17453         (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
17454         (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
17455         (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
17456         (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
17457         (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
17458         (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
17459         (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
17460         (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
17461         (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
17462         (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
17463         (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
17464         (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
17465         (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
17466         (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
17467         (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
17468         (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
17469         (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
17470         (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
17471         (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
17472         (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
17473         (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
17474         (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
17475         (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
17476         (CODE_FOR_msa_ldi_d): New code_aliasing macros.
17477         (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
17478         slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
17479         srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
17480         srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
17481         srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
17482         srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
17483         bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
17484         bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
17485         bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
17486         binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
17487         binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
17488         binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
17489         addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
17490         subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
17491         max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
17492         max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
17493         maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
17494         mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
17495         mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
17496         min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
17497         ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
17498         clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
17499         clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
17500         clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
17501         clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
17502         clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
17503         st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
17504         sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
17505         adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
17506         adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
17507         ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
17508         aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
17509         aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
17510         subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
17511         subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
17512         subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
17513         asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
17514         maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
17515         msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
17516         div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
17517         hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
17518         hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
17519         mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
17520         dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
17521         dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
17522         dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
17523         sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
17524         splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
17525         pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
17526         ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
17527         ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
17528         ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
17529         ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
17530         bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
17531         fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
17532         pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
17533         nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
17534         copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
17535         insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
17536         bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
17537         fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
17538         fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
17539         fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
17540         fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
17541         fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
17542         fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
17543         fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
17544         fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
17545         fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
17546         fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
17547         mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
17548         msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
17549         fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
17550         flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
17551         ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
17552         ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
17553         ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
17554         move_v builtins.
17555         (mips_get_builtin_decl_index): New array.
17556         (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
17557         (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
17558         (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
17559         (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
17560         (mips_init_builtins): Initialize mips_get_builtin_decl_index
17561         array.
17562         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
17563         hook.
17564         (mips_expand_builtin_insn): Prepare operands for
17565         CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
17566         CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
17567         CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
17568         CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
17569         CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
17570         CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
17571         CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
17572         CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
17573         CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
17574         CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
17575         CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
17576         CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
17577         CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
17578         CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
17579         CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
17580         CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
17581         CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
17582         CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
17583         CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
17584         CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
17585         CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
17586         CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
17587         CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
17588         CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
17589         CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
17590         CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
17591         CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
17592         CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
17593         CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
17594         CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
17595         CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
17596         CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
17597         CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
17598         CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
17599         CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
17600         CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
17601         CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
17602         CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
17603         CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
17604         CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
17605         CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
17606         (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
17607         (mips_set_compression_mode): Disallow MSA with MIPS16 code.
17608         (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
17609         These are set implicitly and an error is reported if overridden.
17610         (mips_expand_builtin_msa_test_branch): New function.
17611         (mips_expand_msa_shuffle): Likewise.
17612         (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
17613         (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
17614         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
17615         (mips_expand_vec_unpack): Add support for MSA.
17616         (mips_expand_vector_init): Likewise.
17617         (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
17618         instead of const0_rtx.
17619         (mips_msa_vec_parallel_const_half): New function.
17620         (mips_gen_const_int_vector): Likewise.
17621         (mips_gen_const_int_vector_shuffle): Likewise.
17622         (mips_expand_msa_cmp): Likewise.
17623         (mips_expand_vec_cond_expr): Likewise.
17624         * config/mips/mips.h
17625         (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
17626         (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
17627         specified.
17628         (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
17629         (ISA_HAS_MSA): New macro.
17630         (UNITS_PER_MSA_REG): Likewise.
17631         (BITS_PER_MSA_REG): Likewise.
17632         (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
17633         (MSA_REG_FIRST): New macro.
17634         (MSA_REG_LAST): Likewise.
17635         (MSA_REG_NUM): Likewise.
17636         (MSA_REG_P): Likewise.
17637         (MSA_REG_RTX_P): Likewise.
17638         (MSA_SUPPORTED_MODE_P): Likewise.
17639         (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
17640         (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
17641         * config/mips/mips.md: Include mips-msa.md.
17642         (alu_type): Add simd_add.
17643         (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
17644         (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
17645         simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
17646         simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
17647         simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
17648         simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
17649         simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
17650         simd_move, simd_load, simd_store.  Choose "multi" for moves
17651         for "qword_mode".
17652         (qword_mode): New attribute.
17653         (insn_count): Add instruction count for quad moves.
17654         Increase the count for MIPS SIMD division.
17655         (UNITMODE): Add UNITMODEs for vector types.
17656         (addsub): New code iterator.
17657         * config/mips/mips.opt (mmsa): New option.
17658         * config/mips/msa.h: New file.
17659         * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
17660         specified.
17661         * config/mips/mti-linux.h: Likewise.
17662         * config/mips/predicates.md
17663         (const_msa_branch_operand): New constraint.
17664         (const_uimm3_operand): Likewise.
17665         (const_uimm4_operand): Likewise.
17666         (const_uimm5_operand): Likewise.
17667         (const_uimm8_operand): Likewise.
17668         (const_imm5_operand): Likewise.
17669         (aq10b_operand): Likewise.
17670         (aq10h_operand): Likewise.
17671         (aq10w_operand): Likewise.
17672         (aq10d_operand): Likewise.
17673         (const_m1_operand): Likewise.
17674         (reg_or_m1_operand): Likewise.
17675         (const_exp_2_operand): Likewise.
17676         (const_exp_4_operand): Likewise.
17677         (const_exp_8_operand): Likewise.
17678         (const_exp_16_operand): Likewise.
17679         (const_vector_same_val_operand): Likewise.
17680         (const_vector_same_simm5_operand): Likewise.
17681         (const_vector_same_uimm5_operand): Likewise.
17682         (const_vector_same_uimm6_operand): Likewise.
17683         (const_vector_same_uimm8_operand): Likewise.
17684         (par_const_vector_shf_set_operand): Likewise.
17685         (reg_or_vector_same_val_operand): Likewise.
17686         (reg_or_vector_same_simm5_operand): Likewise.
17687         (reg_or_vector_same_uimm6_operand): Likewise.
17688         * doc/extend.texi (MIPS SIMD Architecture Functions): New
17689         section.
17690         * doc/invoke.texi (-mmsa): Document new option.
17692 2016-05-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17694         * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
17695         * configure: Regenerate.
17696         * config.in: Regenerate.
17697         * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
17698         on -fvtable-verify.
17699         * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
17700         (ENDFILE_VTV_SPEC): Define.
17702 2016-05-09  Kaushik Phatak  <kaushik.phatak@kpit.com>
17704         * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
17705         registers in all interrupt handlers if necessary.
17706         (rl78_option_override): Add warning.
17707         (MUST_SAVE_MDUC_REGISTERS): New macro.
17708         (rl78_expand_epilogue): Restore the MDUC registers if necessary.
17709         * config/rl78/rl78.c (check_mduc_usage): New function.
17710         (mduc_regs): New structure to hold MDUC register data.
17711         * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
17712         (mulsi3_g13): Add is_g13_muldiv_insn attribute.
17713         (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
17714         (mulhi3_g13): Add is_g13_muldiv_insn attribute.
17715         * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
17716         * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
17718 2016-05-09  Bin Cheng  <bin.cheng@arm.com>
17720         * tree-if-conv.c (tree-ssa-loop.h): Include header file.
17721         (tree-ssa-loop-niter.h): Ditto.
17722         (idx_within_array_bound, ref_within_array_bound): New functions.
17723         (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
17724         Factor out check on writable base object to ...
17725         (base_object_writable): ... here.
17727 2016-05-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17729         * config/arm/arm.md (probe_stack): Add modes to set source
17730         and destination.
17732 2016-05-09  Bernd Schmidt  <bschmidt@redhat.com>
17734         * regrename.c (base_reg_class_for_rename): New static function.
17735         (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
17737 2016-05-08  Jan Hubicka  <hubicka@ucw.cz>
17739         * cgraph.c (thunk_adjust): Export.
17740         * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
17741         * cgraphunit.c (thunk_adjust): Export.
17742         (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
17743         thunks.
17744         * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
17745         inlinable.
17746         * tree-inline.c (expand_call_inline): Expand thunks inline.
17748 2016-05-08  Uros Bizjak  <ubizjak@gmail.com>
17750         PR target/70998
17751         * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
17752         (*sse2_vd_cvtss2sd): Ditto.
17753         * config/i386/i386.md
17754         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
17755         Generate *sse2_vd_cvtsd2ss pattern.
17756         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
17757         Generate *sse2_vd_cvtss2sd pattern.
17759 2016-05-08  Oleg Endo  <olegendo@gcc.gnu.org>
17761         * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
17762         * config/sh/sh.c (get_sh_arg_class): ... this new function.  Update its
17763         users.
17765 2016-05-08  Oleg Endo  <olegendo@gcc.gnu.org>
17767         * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
17768         * config/sh/sh.c: Define and declare variables on first use throughout
17769         the file.
17770         (current_function_interrupt): Change to bool type.
17771         (frame_insn): Rename to emit_frame_insn and update users.
17772         (push_regs): Use bool for 'interrupt_handler' argument.
17773         (save_schedule_s): Remove.
17774         (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
17775         (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
17776         targetm.asm_out.unaligned_op.di.
17777         (gen_far_branch): Remove redundant forward declaration.
17778         (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
17779         MAX_TEMPS, save_schedule_ssave_schedule): Remove.
17780         (sh_set_return_address, sh_function_ok_for_sibcall,
17781         scavenge_reg): Update comments.
17782         (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
17783         (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
17784         (sh_attr_renesas_p): Remove unnecessary parentheses.
17785         (branch_dest): Simplify.
17786         * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
17787         Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
17788         (CUMULATIVE_ARGS): Change macro to typedef.
17789         (current_function_interrupt): Change to bool type.
17790         (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
17791         Surround with __cplusplus ifdef.
17792         (sh_compare_op0, sh_compare_op1): Remove.
17793         (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
17795 2016-05-07  Jim Wilson  <jim.wilson@linaro.org>
17797         * config/arm/arm.md: (arch): Add neon.
17798         (arch_enabled): Return yes for arch neon when TARGET_NEON.
17799         * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3.  Add
17800         neon_move as type for alt 3.  Add arch attr enabling alt 3 for neon.
17801         Emit vmov.i64 for alt 3.  Renumber alternatives 3 to 8.  Adjust
17802         attributes for alt renumbering.  Mark alt 3 as non-predicable.
17803         (thumb2_movdf_vfp): Likewise.
17805 2016-05-07  Uros Bizjak  <ubizjak@gmail.com>
17807         * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
17808         to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
17809         (*andqi_1): Add preferred_for_speed attribute to disparage
17810         alternative 2 for TARGET_PARTIAL_REG_STALL targets.
17811         (*<code>qi_1): Ditto.
17812         (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
17813         alternative 1 for TARGET_PARTIAL_REG_STALL targets.
17814         (*ashlqi3_1): Ditto.
17815         (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
17816         Add preferred_for_size attribute to disparage alternative 0 and
17817         preferred_for_speed attribute to disparage alternative 1 for
17818         TARGET_PARTIAL_REG_STALL targets.
17820 2016-05-07  Tom de Vries  <tom@codesourcery.com>
17822         PR tree-optimization/70956
17823         * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
17824         def.
17826 2016-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
17828         * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
17829         * config/sh/sh.c (sh_cbranch_distance): Implement it.
17830         * config/sh/sh.md (branch_zero): Remove define_attr.
17831         (define_delay): Disable delay slot if branch distance is one insn.
17833 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
17835         * config/i386/i386.md (LEAMODE): New mode attribute.
17836         (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
17837         (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
17838         and LEAMODE mode attribute.  Use VOIDmode const_0_to_3_operand as
17839         operand 2 predicate.
17840         (*lea<mode>_general_2): Use VOIDmode for const248_operand.
17841         (*lea<mode>_general_3): Ditto.
17842         (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
17844 2016-05-06  Jakub Jelinek  <jakub@redhat.com>
17846         * genmddump.c (main): Convert argv from char ** to const char **.
17848 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
17850         * coretypes.h (OVERRIDE): New macro.
17851         (FINAL): New macro.
17853 2016-05-06  Eric Botcazou  <ebotcazou@adacore.com>
17855         * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
17856         allow coalescing if the types are compatible.
17858 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
17860         * pass_manager.h (pass_manager::register_pass_name): New method.
17861         (pass_manager::get_pass_by_name): New method.
17862         (pass_manager::create_pass_tab): New method.
17863         (pass_manager::m_name_to_pass_map): New field.
17864         * passes.c (name_to_pass_map): Delete global in favor of field
17865         "m_name_to_pass_map" of pass_manager.
17866         (register_pass_name): Rename from a function to...
17867         (pass_manager::register_pass_name): ...this method, updating
17868         for renaming of global "name_to_pass_map" to field
17869         "m_name_to_pass_map".
17870         (create_pass_tab): Rename from a function to...
17871         (pass_manager::create_pass_tab): ...this method, updating
17872         for renaming of global "name_to_pass_map" to field.
17873         (get_pass_by_name): Rename from a function to...
17874         (pass_manager::get_pass_by_name): ...this method.
17875         (enable_disable_pass): Convert use of get_pass_by_name to
17876         a method call, locating the pass_manager singleton.
17878 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
17880         * genattr-common.c (main): Convert argv from char ** to const char **.
17881         * genattr.c (main): Likewise.
17882         * genattrtab.c (main): Likewise.
17883         * genautomata.c (initiate_automaton_gen): Likewise.
17884         (main): Likewise.
17885         * gencodes.c (main): Likewise.
17886         * genconditions.c (main): Likewise.
17887         * genconfig.c (main): Likewise.
17888         * genconstants.c (main): Likewise.
17889         * genemit.c (main): Likewise.
17890         * genenums.c (main): Likewise.
17891         * genextract.c (main): Likewise.
17892         * genflags.c (main): Likewise.
17893         * genmddeps.c (main): Likewise.
17894         * genopinit.c (main): Likewise.
17895         * genoutput.c (main): Likewise.
17896         * genpeep.c (main): Likewise.
17897         * genpreds.c (main): Likewise.
17898         * genrecog.c (main): Likewise.
17899         * gensupport.c (init_rtx_reader_args_cb): Likewise.
17900         (init_rtx_reader_args): Likewise.
17901         * gensupport.h (init_rtx_reader_args_cb): Likewise.
17902         (init_rtx_reader_args): Likewise.
17903         * gentarget-def.c (main): Likewise.
17904         * read-md.c (read_md_files): Likewise.
17905         * read-md.h (read_md_files): Likewise.
17907 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
17909         * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
17910         instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
17911         * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
17912         Remove unused predicate.
17913         (register_and_not_fp_reg_operand): Ditto.
17915 2016-05-06  Martin Liska  <mliska@suse.cz>
17917         * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
17918         instead of vec as the vector is local to the function.
17920 2016-05-06  Jakub Jelinek  <jakub@redhat.com>
17922         * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
17923         avx512bw alternative.
17925         * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
17926         before the ashr<mode>3 pattern.
17928         * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
17929         v instead of x in vex or maybe_vex alternatives, use
17930         maybe_evex instead of vex in prefix.
17932         * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
17933         *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
17934         vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
17935         in vex or maybe_vex alternatives, use maybe_evex instead of vex
17936         in prefix.
17938         * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
17939         v instead of x in vex or maybe_vex alternatives, use
17940         maybe_evex instead of vex in prefix.
17942         * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
17943         sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
17944         sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
17945         sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
17946         alternatives, use maybe_evex instead of vex in prefix.
17948         * config/i386/sse.md (vec_interleave_lowv4sf,
17949         *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
17950         v instead of x in vex or maybe_vex alternatives, use
17951         maybe_evex instead of vex in prefix.
17953         * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
17954         v instead of x in vex or maybe_vex alternatives, use
17955         maybe_evex instead of vex in prefix.
17957         * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
17958         v constraint instead of x.
17960 2016-05-06  Nathan Sidwell  <nathan@codesourcery.com>
17962         * gimple.c (gimple_call_same_target_p): Unique functions are eq.
17963         * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
17964         equality first.
17966 2016-05-06  Richard Biener  <rguenther@suse.de>
17968         PR tree-optimization/70948
17969         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
17970         Properly clobber all fields of va_list for __builtin_va_start.
17972 2016-05-06  Yuri Rumyantsev  <ysrumyan@gmail.com>
17974         PR debug/70935
17975         * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
17976         loop latch destination.
17978 2016-05-06  Martin Liska  <mliska@suse.cz>
17980         * tree-ssa-uninit.c: Apply manual changes
17981         to the GNU coding style.
17982         (prune_uninit_phi_opnds): Rename from
17983         prune_uninit_phi_opnds_in_unrealizable_paths.
17985 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
17987         * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
17988         mspace): Remove deprecated options.
17989         * doc/invoke.texi (SH options): Remove -mspace.
17991 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
17993         * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
17995 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
17997         * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
17998         corresponding combine split pattern.
18000 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
18002         PR target/58219
18003         * config/sh/predicates.md (long_displacement_mem_operand): New.
18004         * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
18005         Add movi20, movi20s alternatives.  Adjust length attribute for
18006         alternatives.
18007         (movsi_ie): Allow for any FPU.  Adjust length attribute for
18008         alternatives.
18009         (movsi_i_lowpart): Add movi20, movi20s alternatives.  Adjust length
18010         attribute for alternatives.
18011         (*mov<mode>): Use long_displacement_mem_operand for length attribute.
18012         (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
18013         length attribute for alternatives.
18015 2016-05-06  Richard Biener  <rguenther@suse.de>
18017         PR tree-optimization/70960
18018         * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
18020 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
18022         PR target/52933
18023         * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
18024         * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
18026 2016-05-06  Marek Polacek  <polacek@redhat.com>
18028         PR sanitizer/70875
18029         * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
18031 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
18033         PR target/54089
18034         * config/sh/sh.md (*rotcr): Add another variant.
18036 2016-05-06  Richard Biener  <rguenther@suse.de>
18038         PR middle-end/70931
18039         * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
18041 2016-05-06  Richard Biener  <rguenther@suse.de>
18043         PR middle-end/70941
18044         * fold-const.c (split_tree): Always convert to the original type
18045         before negating.
18047 2016-05-06  Richard Biener  <rguenther@suse.de>
18049         * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
18050         (fwprop_addr): Likewise.
18052 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
18054         PR target/70873
18055         * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
18056         New prototype.
18057         * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
18058         * config/i386/i386.md (push mem splitter): Use find_constant_src in
18059         the splitter condition.
18060         (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
18061         the splitter condition.
18062         (FP float_extend load splitter): Ditto.
18064 2016-05-05  Uros Bizjak  <ubizjak@gmail.com>
18066         * config/i386/i386.md (peehole2 patterns): Change true_regnum
18067         to REGNO in all peephole2 patterns.
18068         (post-reload splitters): Change true_regnum to REGNO in
18069         post-reload splitters.
18070         (zero_extend splitters): Use general_reg_operand and
18071         nonimmediate_gr_operand predicates.
18073 2016-05-05  Jakub Jelinek  <jakub@redhat.com>
18075         * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
18076         v constraint instead of x.
18078 2016-05-05  Alan Modra  <amodra@gmail.com>
18080         PR target/68662
18081         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
18082         set OPTION_MASK_RELOCATABLE when flag_pic == 2.  Set
18083         TARGET_NO_FP_IN_TOC for -mrelocatable.
18084         (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
18085         TARGET_RELOCATABLE test.
18086         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
18087         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
18088         * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
18089         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
18090         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
18091         * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
18092         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
18093         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
18094         * config/rs6000/predicates.md (easy_fp_constant): Likewise.
18095         * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
18096         Likewise.
18097         (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
18098         (rs6000_stack_info): Likewise.
18099         (rs6000_elf_asm_out_constructor): Likewise.
18100         (rs6000_elf_asm_out_destructor): Likewise.
18101         (rs6000_elf_declare_function_name): Likewise.
18102         * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
18103         * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
18104         Don't define.
18106 2016-05-05  Alan Modra  <amodra@gmail.com>
18108         * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
18110 2016-05-05  Alan Modra  <amodra@gmail.com>
18112         * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
18113         out-of-line gpr restore for one or two regs if that would add
18114         a save of lr.
18116 2016-05-04  Uros Bizjak  <ubizjak@gmail.com>
18118         PR target/70873
18119         * config/i386/i386.md
18120         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
18121         Change to post-epilogue_completed late splitter.  Use sse_reg_operand
18122         as operand 0 predicate.
18123         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
18124         Ditto.
18125         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
18126         Ditto.  Emit the pattern using RTX.
18128         (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
18129         Use sse_reg_opreand as operand 0 predicate.  Do not use true_regnum in
18130         the post-reload splitter.  Use lowpart_subreg instead of gen_rtx_REG.
18131         (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
18132         Ditto.
18133         (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
18134         sse_reg_operand as operand 0 predicate.
18136         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
18137         Use sse_reg_opreand as operand 0 predicate.  Use lowpart_subreg
18138         instead of gen_rtx_REG.
18139         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
18140         Ditto.
18142 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
18144         * function.c (emit_use_return_register_into_block): Delete.
18145         (gen_return_pattern): Delete.
18146         (emit_return_into_block): Delete.
18147         (active_insn_between): Delete.
18148         (convert_jumps_to_returns): Delete.
18149         (emit_return_for_exit): Delete.
18150         (thread_prologue_and_epilogue_insns): Delete all code dealing with
18151         simple_return for shrink-wrapped blocks.
18152         * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
18153         end of blocks that need one.
18154         (get_unconverted_simple_return): Delete.
18155         (convert_to_simple_return): Delete.
18156         * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
18157         (convert_to_simple_return): Ditto.
18159 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
18161         * cfgcleanup.c (bb_is_just_return): New function.
18162         (try_optimize_cfg): Simplify jumps to return, branches to return,
18163         and branches around return.
18165 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
18167         * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
18168         branch to a return.
18170 2016-05-04  Jakub Jelinek  <jakub@redhat.com>
18172         PR c++/70906
18173         PR c++/70933
18174         * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
18175         * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
18176         assert flags & OEP_HASH_CHECK, instead of asserting it
18177         never happens.  Handle TARGET_EXPR.
18178         * fold-const.c (operand_equal_p): For hash verification,
18179         or in OEP_HASH_CHECK into flags.
18181 2016-05-04  Eric Botcazou  <ebotcazou@adacore.com>
18183         * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
18184         comment.
18185         (compute_samebase_partition_bases): Fix typo.
18187 2016-05-04  Jakub Jelinek  <jakub@redhat.com>
18189         * config/i386/sse.md (vec_interleave_highv8sf,
18190         vec_interleave_lowv8sf, vec_interleave_highv4df,
18191         vec_interleave_lowv4df): Remove constraints from expanders.
18193         * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
18195 2016-05-04  Jan Hubicka  <hubicka@ucw.cz>
18197         * tree-inline.c (expand_call_inline): Fix path dealing with
18198         making lhs of call statement undefined.
18200 2016-05-04  Jan Hubicka  <hubicka@ucw.cz>
18202         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
18203         Check availability on NODE, too.
18204         * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
18205         (cgraph_node::call_for_symbol_and_aliases): Likewise.
18206         (varpool_node::call_for_symbol_and_aliase): Likewise.
18207         * ipa-pure-const.c (add_new_function): Analyze all bodies.
18208         (propagate_pure_const): Propagate across interposable functions, too.
18209         (skip_function_for_local_pure_const): Do not skip interposable bodies
18210         with aliases.
18211         (pass_local_pure_const::execute): Update.
18213 2016-05-04  Marek Polacek  <polacek@redhat.com>
18215         * doc/invoke.texi: Document -Wdangling-else.
18217 2016-05-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18219         * config.gcc: Error out when conflicting multilib is detected.  Do not
18220         loop over multilibs since no combination is legal.
18222 2016-05-04  Alan Modra  <amodra@gmail.com>
18224         * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
18225         * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
18226         * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
18227         Align .toc.
18229 2016-05-04  Matthew Fortune  <matthew.fortune@imgtec.com>
18231         * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
18232         Clean up p5600 comments.
18234 2016-05-04  Richard Biener  <rguenther@suse.de>
18236         * match.pd: Add BIT_FIELD_REF canonicalizations and vector
18237         constructor simplifications.
18238         * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
18240 2016-05-04  Oleg Endo  <olegendo@gcc.gnu.org>
18242         * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
18243         * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
18244         result.set_rtx is null instead of aborting.
18245         * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
18246         Always enable.
18247         (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
18248         * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
18249         *mov<mode>_store_postinc): New patterns.
18251 2016-05-04  Marc Glisse  <marc.glisse@inria.fr>
18253         * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR.  Mark
18254         as commutative.  Check both conversions are NOP.
18255         ((A & B) OP (C & B)): Remove.
18257 2016-05-04  Alan Modra  <amodra@gmail.com>
18259         * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
18261 2016-05-04  Alan Modra  <amodra@gmail.com>
18263         PR target/70866
18264         * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
18265         when cr2,3,4 are all fixed regs.
18267 2016-05-04  Bernd Schmidt  <bschmidt@redhat.com>
18269         PR rtl-optimization/57193
18270         * opts.c (default_options_table): Revert OPT_frename_registers change.
18271         * doc/invoke.texi (-frename-registers, -O2): Likewise.
18273 2016-05-03  Martin Sebor  <msebor@redhat.com>
18275         PR c++/66561
18276         * builtins.c (fold_builtin_FILE): New function.
18277         (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
18278         (fold_builtin_0): Call them.
18279         * gimplify.c (gimplify_call_expr): Remove the handling of
18280         BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
18282         PR c++/66561
18283         * doc/extend.texi (Other Builtins): Update __builtin_FILE,
18284         __builtin_FUNCTION, and __builtin_LINE to reflect they yield
18285         constants.
18287         PR c++/66639
18288         * doc/extend.texi (Function Names as Strings): Update __func__,
18289         __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
18290         constants.
18292 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
18293             Richard Biener  <rguenther@suse.de>
18295         PR tree-optimization/70916
18296         * tree-if-conv.c: Include cfganal.h.
18297         (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
18298         and remove_fake_exit_edges around the optimization pass.
18300 2016-05-03  Jan Hubicka  <hubicka@ucw.cz>
18302         * cgraph.c (symbol_table::create_edge): Set inline_failed.
18303         (cgraph_edge::make_direct): Likewise.
18304         (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
18305         * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
18306         * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
18307         (CIF_THUNK): New code.
18308         * ipa-inline-analysis.c (initialize_inline_failed): Preserve
18309         CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
18310         (compute_inline_parameters): Set inline_failed for thunks.
18311         (inline_analyze_function): Cleanup.
18312         * ipa-inline.c (can_inline_edge_p): Do not deal with
18313         call_stmt_cannot_inline_p.
18314         (can_early_inline_edge_p): Likewise.
18315         (early_inliner): Initialize inline_failed.
18316         * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
18318 2016-05-03  Uros Bizjak  <ubizjak@gmail.com>
18320         * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
18321         from nonimm_ssenomem_operand.
18322         (nonimm_ssenomem_operand): New predicate.
18323         * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
18324         as operand 0 predicate.
18325         (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
18326         Disable unsupported alternatives using "enabled" attribute.
18327         Use register_ssemem_operand as operand 0 predicate.
18328         (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
18330 2016-05-03  Marek Polacek  <polacek@redhat.com>
18332         PR c/70859
18333         * input.c (expansion_point_location): New function.
18334         * input.h (expansion_point_location): Declare.
18336 2016-05-03  Pierre-Marie de Rodat  <derodat@adacore.com>
18338         * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
18339         occurence with frame_offset_ ones.
18341 2016-05-03  Alan Modra  <amodra@gmail.com>
18343         PR rtl-optimization/70890
18344         * ira.c (combine_and_move_insns): When moving def_insn, remove
18345         equivs on use_insn.
18347 2016-05-03  Dominik Vogt  <vogt@linux.vnet.ibm.com>
18349         * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
18350         ("*r<noxa>sbg_<mode>_srl"): New define_insns.
18351         ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
18352         ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
18354 2016-05-03  Alan Modra  <amodra@gmail.com>
18356         * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
18357         for SAVE_MULTIPLE/STORE_MULTIPLE.
18359 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
18361         * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
18362         *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
18364 2016-05-03  Richard Biener  <rguenther@suse.de>
18366         * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
18367         default true.
18368         (gimplify_arg): Likewise.
18369         * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
18370         re-writing the result to a decl if required.
18371         (internal_get_tmp_var): Add allow_ssa parameter
18372         and override into_ssa with it.
18373         (get_formal_tmp_var): Adjust.
18374         (get_initialized_tmp_var): Add allow_ssa parameter.
18375         (gimplify_arg): Add allow_ssa parameter and avoid generating
18376         SSA names for the result false.
18377         (gimplify_call_expr): If the call may return twice do not
18378         gimplify parameters into SSA.
18379         (prepare_gimple_addressable): Do not allow an SSA name as temporary.
18380         (gimplify_modify_expr): Adjust assert.  For noreturn calls
18381         with a SSA name LHS adjust its def.
18382         (gimplify_save_expr): Do not allow an SSA name as save-expr result.
18383         (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
18384         (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
18385         (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
18386         an SSA name.  Likewise for OMP_CLAUSE_REDUCTION operands.
18387         (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL.  Likewise
18388         for OMP_FOR_COND,  OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
18389         (optimize_target_teams): Do not allow SSA names for clause operands.
18390         (gimplify_expr): Likewise for where we mark the result addressable.
18391         * passes.def (pass_init_datastructures): Remove.
18392         * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
18393         (rewrite_stmt): Likewise.
18394         * tree-inline.c (initialize_cfun): Properly transfer SSA state.
18395         (replace_locals_op): Replace SSA names.
18396         (copy_gimple_seq_and_replace_locals): Init src_cfun.
18397         * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
18398         * cgraph.c (release_function_body): Free CFG annotations only
18399         when we have a CFG.  Simplify.
18400         * gimple-fold.c (gimplify_and_update_call_from_tree): Use
18401         force_gimple_operand instead of get_initialized_tmp_var.
18402         * tree-pass.h (make_pass_init_datastructures): Remove.
18403         * tree-ssa.c (execute_init_datastructures): Remove.
18404         (pass_data_init_datastructures): Likewise.
18405         (class pass_init_datastructures): Likewise.
18406         (make_pass_init_datastructures): Likewise.
18407         * omp-low.c (create_omp_child_function): Init SSA data structures.
18408         (grid_expand_target_grid_body): Likewise.
18409         * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
18410         name before adding it to names_to_release.
18411         (remove_bb): Always release SSA defs.
18412         * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
18413         before dereferencing it.
18414         * cgraphunit.c (init_lowered_empty_function): Always
18415         int SSA data structures.
18416         * tree-ssanames.c (release_defs): Remove assert that we are in
18417         SSA form.
18418         * trans-mem.c (diagnose_tm_1): Handle SSA name function.
18420 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
18421             Uros Bizjak  <ubizjak@gmail.com>
18423         PR rtl-optimization/70467
18424         * config/i386/predicates.md (x86_64_hilo_int_operand,
18425         x86_64_hilo_general_operand): New predicates.
18426         * config/i386/constraints.md (Wd): New constraint.
18427         * config/i386/i386.md (mode attr di): Use Wd instead of e.
18428         (general_hilo_operand): New mode attr.
18429         (add<mode>3, sub<mode>3): Use <general_hilo_operand>
18430         instead of <general_operand>.
18431         (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
18432         x86_64_hilo_general_operand instead of <general_operand>.
18434 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
18436         PR tree-optimization/70916
18437         * tree-if-conv.c (constant_or_ssa_name): Removed.
18438         (fold_build_cond_expr): Use is_gimple_val instead of
18439         constant_or_ssa_name.
18441         PR tree-optimization/70916
18442         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
18443         if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
18445         PR target/49244
18446         * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
18447         (optimize_atomic_bit_test_and): New function.
18448         (pass_fold_builtins::execute): Use it.
18449         * optabs.def (atomic_bit_test_and_set_optab,
18450         atomic_bit_test_and_complement_optab,
18451         atomic_bit_test_and_reset_optab): New optabs.
18452         * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
18453         ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
18454         * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
18455         * builtins.c (expand_ifn_atomic_bit_test_and): New function.
18456         * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
18457         expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
18458         expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
18459         * doc/md.texi (atomic_bit_test_and_set@var{mode},
18460         atomic_bit_test_and_complement@var{mode},
18461         atomic_bit_test_and_reset@var{mode}): Document.
18462         * config/i386/sync.md (atomic_bit_test_and_set<mode>,
18463         atomic_bit_test_and_complement<mode>,
18464         atomic_bit_test_and_reset<mode>): New expanders.
18465         (atomic_bit_test_and_set<mode>_1,
18466         atomic_bit_test_and_complement<mode>_1,
18467         atomic_bit_test_and_reset<mode>_1): New insns.
18469 2016-05-03  Richard Sandiford  <richard.sandiford@arm.com>
18471         PR rtl-optimization/70687
18472         * combine.c (change_zero_ext): Check for scalar modes.  Use wide_int
18473         instead of unsigned HOST_WIDE_INT.
18475 2016-05-03  Bernd Schmidt  <bschmidt@redhat.com>
18477         PR rtl-optimization/44281
18478         * hard-reg-set.h (struct target_hard_regs): New field
18479         x_fixed_nonglobal_reg_set.
18480         (fixed_nonglobal_reg_set): New macro.
18481         * reginfo.c (init_reg_sets_1): Initialize it.
18482         * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
18483         of fixed_reg_set.
18484         * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
18486 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
18488         PR tree-optimization/56541
18489         * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
18490         * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
18491         * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
18492         (any_complicated_phi): new static variable.
18493         (aggressive_if_conv): delete.
18494         (if_convertible_phi_p): support phis with more than two arguments.
18495         (if_convertible_bb_p): remvoe check on aggressive_if_conv and
18496         critical pred edges.
18497         (ifcvt_split_critical_edges): support phis with more than two
18498         arguments by checking new parameter.  only split critical edges
18499         if needed.
18500         (tree_if_conversion): handle simd pragma marked loop using new
18501         local variable aggressive_if_conv.  check any_complicated_phi.
18503 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
18505         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
18506         before using it.
18508 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
18510         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
18511         cbase.
18513 2016-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
18515         * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
18516         (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
18517         define_insn_and_split.
18518         (mulsi3_i): New define_insn_and_split.
18519         (mulsi3_call): Convert to define_insn.
18520         (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
18521         Remove constraints.
18523 2016-05-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
18525         * machmode.h (mode_complex): Add support to give the complex mode
18526         for a given mode.
18527         (GET_MODE_COMPLEX_MODE): Likewise.
18528         * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
18529         stored by build_complex_type and gfc_build_complex_type instead of
18530         trying to figure out the appropriate mode based on the size. Raise
18531         an assertion error, if the type was not set.
18532         * genmodes.c (struct mode_data): Add field for the complex type of
18533         the given type.
18534         (blank_mode): Likewise.
18535         (make_complex_modes): Remember the complex mode created in the
18536         base type.
18537         (emit_mode_complex): Write out the mode_complex array to map a
18538         type mode to the complex version.
18539         (emit_insn_modes_c): Likewise.
18540         * tree.c (build_complex_type): Set the complex type to use before
18541         calling layout_type.
18542         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
18543         support for __float128 complex datatypes.
18544         (rs6000_hard_regno_mode_ok): Likewise.
18545         (rs6000_setup_reg_addr_masks): Likewise.
18546         (rs6000_complex_function_value): Likewise.
18547         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
18548         __float128 and __ibm128 complex.
18549         (FLOAT128_IBM_P): Likewise.
18550         (ALTIVEC_ARG_MAX_RETURN): Likewise.
18551         * doc/extend.texi (Additional Floating Types): Document that
18552         -mfloat128 must be used to enable __float128.  Document complex
18553         __float128 and __ibm128 support.
18555 2016-05-02  Jakub Jelinek  <jakub@redhat.com>
18557         PR target/49244
18558         * gimple.c (gimple_builtin_call_types_compatible_p): Allow
18559         char/short arguments promoted to int because of promote_prototypes.
18561 2016-05-02  Uros Bizjak  <ubizjak@gmail.com>
18563         * config/i386/predicates.md (register_ssemem_operand): New predicate.
18564         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
18565         *cmpi<FPCMP:unord><MODEF:mode>_mixed and
18566         *cmpi<FPCMP:unord><X87MODEF:mode>_i387.  Disable unsupported
18567         alternatives using "enabled" attribute.  Use register_ssemem_operand
18568         as operand 1 predicate.
18569         (*cmpi<unord>xf_i387): Split XFmode pattern from
18570         *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
18571         (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
18572         *absneg<mode>2_i387.  Disable unsupported alternatives using
18573         "enabled" attribute.
18574         (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
18576 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
18578         * omp-low.c (lower_oacc_head_tail): Assert there is at least one
18579         marker.
18580         (oacc_loop_process): Check mask for loop termination.
18582 2016-05-02  Jan Hubicka  <hubicka@ucw.cz>
18584         * cif-code.def (CIF_THUNK): Add.
18585         * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
18586         accidental change.
18588 2016-05-02  Jan Hubicka  <hubicka@ucw.cz>
18590         * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
18591         (dump_inline_summary): Dump it.
18592         (fp_expression_p): New predicate.
18593         (estimate_function_body_sizes): Use it.
18594         (inline_merge_summary): Merge fp_expressions.
18595         (inline_read_section): Read fp_expressions.
18596         (inline_write_summary): Write fp_expressions.
18597         * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
18598         codegen boundary if either caller or callee is !fp_expressions.
18599         * ipa-inline.h (inline_summary): Add fp_expressions.
18600         * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
18601         to fp_expressions be sure the fp generation flags are updated.
18603 2016-05-02  Jakub Jelinek  <jakub@redhat.com>
18605         PR rtl-optimization/70467
18606         * cse.c (cse_insn): Handle no-op MEM moves after folding.
18608         PR rtl-optimization/70467
18609         * ipa-pure-const.c (check_call): Handle internal calls even in
18610         ipa mode like in local mode.
18612 2016-05-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
18614         * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
18616 2016-05-02  Marc Glisse  <marc.glisse@inria.fr>
18618         * match.pd (X u< X, X u> X): New transformations.
18620 2016-05-02  Marc Glisse  <marc.glisse@inria.fr>
18622         * flag-types.h (enum warn_strict_overflow_code): Move ...
18623         * coretypes.h: ... here.
18624         * fold-const.h (fold_overflow_warning): Declare.
18625         * fold-const.c (fold_overflow_warning): Make non-static.
18626         (fold_comparison): Move the transformation of X +- C1 CMP C2
18627         into X CMP C2 -+ C1 ...
18628         * match.pd: ... here.
18629         * gimple-fold.c (fold_stmt_1): Protect with
18630         fold_defer_overflow_warnings.
18632 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
18634         * omp-low.c (struct oacc_loop): Add 'inner' field.
18635         (new_oacc_loop_raw): Initialize it to zero.
18636         (oacc_loop_fixed_partitions): Initialize it.
18637         (oacc_loop_auto_partitions): Partition outermost loop to outermost
18638         available partitioning.
18640 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
18642         * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
18643         register_operand.
18644         (umulsidi3): Likewise.
18645         (indirect_jump): Fix jump instruction assembly patterns.
18647 2016-05-02  Thomas Schwinge  <thomas@codesourcery.com>
18649         PR target/70860
18650         * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
18651         (nvptx_function_value): Assert non-NULL cfun.
18653 2016-05-02  Eric Botcazou  <ebotcazou@adacore.com>
18655         PR rtl-optimization/70886
18656         * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
18658         * cselib.h (rtx_equal_for_cselib_1): Declare.
18659         (rtx_equal_for_cselib_p: New inline function.
18660         * cselib.c (rtx_equal_for_cselib_p): Delete.
18661         (rtx_equal_for_cselib_1): Make public.
18663 2016-05-02  Uros Bizjak  <ubizjak@gmail.com>
18665         * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
18666         (register_mixssei387nonimm_operand): Remove predicate.
18667         * config/i386/i386.md (*fop_<mode>_comm): Merge from
18668         *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387.  Disable unsupported
18669         alternatives using "enabled" attribute.  Also check X87_ENABLE_ARITH
18670         for TARGET_MIX_SSE_I387 alternatives.
18671         (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
18672         Disable unsupported alternatives using "enabled" attribute.  Use
18673         nonimm_ssenomem_operand as operand 1 predicate.  Also check
18674         X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
18676 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
18678         * tree.c (cst_and_fits_in_hwi): Simplify.
18680 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
18682         * tree.h (wi::to_wide): New function.
18683         * expr.c (expand_expr_real_1): Use wi::to_wide.
18684         * fold-const.c (int_const_binop_1): Likewise.
18685         (extract_muldiv_1): Likewise.
18687 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
18689         * wide-int.h: Update offset_int and widest_int documentation.
18690         (WI_SIGNED_SHIFT_RESULT): New macro.
18691         (wi::binary_shift): Define signed_shift_result_type for
18692         shifts on offset_int- and widest_int-like types.
18693         (generic_wide_int): Support <<= and >>= if << and >> are supported.
18694         * tree.h (int_bit_position): Use shift operators instead of wi::
18695          shifts.
18696         * alias.c (adjust_offset_for_component_ref): Likewise.
18697         * expr.c (get_inner_reference): Likewise.
18698         * fold-const.c (fold_comparison): Likewise.
18699         * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
18700         * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
18701         * tree-dfa.c (get_ref_base_and_extent): Likewise.
18702         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
18703         (stmt_kills_ref_p): Likewise.
18704         * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
18705         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
18706         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
18707         (ao_ref_init_from_vn_reference): Likewise.
18709 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
18711         * wide-int.h: Update offset_int and widest_int documentation.
18712         (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
18713         (wi::binary_traits): Allow ordered comparisons between offset_int and
18714         offset_int, between widest_int and widest_int, and between either
18715         of these types and basic C types.
18716         (operator <, <=, >, >=): Define for the same combinations.
18717         * tree.h (tree_int_cst_lt): Use comparison operators instead
18718         of wi:: comparisons.
18719         (tree_int_cst_le): Likewise.
18720         * gimple-fold.c (fold_array_ctor_reference): Likewise.
18721         (fold_nonarray_ctor_reference): Likewise.
18722         * gimple-ssa-strength-reduction.c (record_increment): Likewise.
18723         * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
18724         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
18725         * tree-sra.c (completely_scalarize): Likewise.
18726         * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
18727         * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
18728         * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
18729         (check_for_binary_op_overflow): Likewise.
18730         (search_for_addr_array): Likewise.
18731         * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
18733 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
18735         * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
18736         (arc_save_restore): Likewise.
18737         (arc_dwarf_register_span): Likewise.
18738         (arc_output_pic_addr_const): Initialize suffix variable.
18740 2016-05-02  Martin Liska  <mliska@suse.cz>
18742         * symbol-summary.h (function_summary::function_summary):
18743         Remove checking assert for all cgraph nodes.
18744         (function_summary::get): Check summary_uid.
18745         (symtab_insertion): Check summary_uid.
18747 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
18749         * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
18750         * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
18751         bmaskn instruction.
18752         (arc_dwarf_register_span): Remove enum keyword.
18753         (compact_memory_operand_p): New function.
18754         * config/arc/arc.h (reg_class): Add code density register classes.
18755         (REG_CLASS_NAMES): Likewise.
18756         (REG_CLASS_CONTENTS): Likewise.
18757         * config/arc/arc.md (*movqi_insn): Add code density instructions.
18758         (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
18759         (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
18760         (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
18761         * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
18762         constraints.
18763         (h, Rcd, Rsd, Rzd): New register constraints.
18764         (T): Use compact_memory_operand_p function.
18765         * config/arc/predicates.md (compact_load_memory_operand): Remove.
18767 2016-05-02  Oleg Endo  <olegendo@gcc.gnu.org>
18769         * config/sh/sh.md (*negnegt, *movtt): Remove.
18771 2016-05-02  Marek Polacek  <polacek@redhat.com>
18772             Tom de Vries  <tom@codesourcery.com>
18774         PR tree-optimization/70700
18775         * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
18776         bigger than FIRST_REF_NODE.
18778 2016-05-02  Oleg Endo  <olegendo@gcc.gnu.org>
18780         PR target/52898
18781         * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
18782         TARGET_CMPEQDI_T.
18783         (prepare_cbranch_operands): Don't use scratch register.  Assume that
18784         function is used when pseudos can be created.
18785         (expand_cbranchdi4): Likewise.  Remove unused TARGET_CMPEQDI_T paths.
18786         * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
18787         (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
18788         define_expand.  Allow it only when pseudos can be created.
18789         * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
18791 2016-05-01  Uros Bizjak  <ubizjak@gmail.com>
18793         * config/i386/constraints.md (BC): Only allow -1 operands.
18794         * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
18795         Add "enabled" attribute.  Update XI mode attribute calculation.
18796         * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
18797         (*movoi_internal_avx): Update XI mode attribute calculation.
18798         (*movti_internal): Ditto.
18800 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
18802         * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
18803         cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
18805 2016-05-01  Eric Botcazou  <ebotcazou@adacore.com>
18807         * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
18808         statement on instruction code.  Remove trailing spaces.
18809         (altivec_expand_stv_builtin): Likewise.
18811 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
18813         * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
18814         (TARGET_FPU_DOUBLE): Simplify.
18815         (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
18816         'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
18817         * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
18818         with 'TARGET_FPU_DOUBLE'.
18819         * config/sh/sh.md: Likewise.
18821 2016-05-01  Yoshinori Sato  <ysato@users.sourceforge.jp>
18823         * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
18824         SH_DIV_STR_FOR_SIZE): Remove.
18825         * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
18826         SH_DIV_STR_FOR_SIZE): Remove.
18828 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
18830         * config/sh/predicates.md (any_register_operand, zero_extend_operand,
18831         logical_reg_operand): Delete.
18832         (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
18833         arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
18834         logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
18835         match_operand and match_test.
18836         (sh_const_vec, sh_1el_vec): Remove redundant checks.  Declare local
18837         variables on their first use.  Return bool values.
18838         * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
18839         * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
18840         arith_reg_operand for input operand.  Remove empty constraints.
18841         (xorsi3): Delete.
18842         (*xorsi3_compact): Rename to xorsi3.
18843         (zero_extend<mode>si2): Use arith_reg_operand for input operand.
18844         (*zero_extend<mode>si2_disp_mem): Update comment.
18845         (mov_nop): Delete.
18847 2016-04-30  Oleg Endo  <olegendo@gcc.gnu.org>
18849         * config/sh/t-sh: Remove SH5 support.
18850         * config.gcc: Likewise.
18851         * configure: Likewise.
18853 2016-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18855         * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
18857 2016-04-30  Oleg Endo  <olegendo@gcc.gnu.org>
18859         * config/sh/sh.c (register_sh_passes, sh_option_override,
18860         sh_print_operand, prepare_move_operands,
18861         sh_can_follow_jump): Remove TARGET_SH1 checks.
18862         * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
18863         PROMOTE_MODE): Likewise.
18864         * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
18865         movdi): Likewise.
18867 2016-04-30  Alan Modra  <amodra@gmail.com>
18869         * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
18870         restoring when fixed_reg_p, but allow out-of-line or stmw save.
18871         Check for user regs later to avoid unnecessary looping over regs.
18872         Merge user reg check with non-saved reg check.  Don't force
18873         inline VR restore when static chain used.
18874         (rs6000_frame_related): Omit eh_frame info for user regs when
18875         saving.
18876         (fixed_regs_p): Delete.
18878 2016-04-30  Alan Modra  <amodra@gmail.com>
18880         * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
18881         (SAVE_STRATEGY, REST_STRATEGY): ..this.  Renumber and sort enum.
18882         Update all uses.
18884 2016-04-30  Alan Modra  <amodra@gmail.com>
18886         PR target/69645
18887         * config/rs6000/rs6000.c (fixed_reg_p): New function.
18888         (fixed_regs_p): Rename from global_regs_p.  Call fixed_reg_p.
18889         Update all uses.
18891 2016-04-30  Alan Modra  <amodra@gmail.com>
18893         * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
18894         Remove redundant PIC_OFFSET_TABLE_REGNUM test.  Replace with
18895         flag_pic test for Darwin.
18897 2016-04-30  Alan Modra  <amodra@gmail.com>
18899         * regs.h (struct reg_info_t): Delete freq_calls_crossed and
18900         throw_calls_crossed.
18901         (REG_FREQ_CALLS_CROSSED): Delete.
18902         (REG_N_THROWING_CALLS_CROSSED): Delete.
18903         * regstat.c (regstat_bb_compute_ri): Don't calculate
18904         REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
18905         (dump_reg_info): Don't print call cross frequency.
18906         * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
18907         and REG_N_THROWING_CALLS_CROSSED.
18909 2016-04-30  Alan Modra  <amodra@gmail.com>
18911         * regs.h (struct reg_info_t): Delete live_length.
18912         (REG_LIVE_LENGTH): Delete macro.
18913         * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
18914         local_live, local_processed and local_live_last_luid params.
18915         Replace bb_index param with bb.  Don't set REG_LIVE_LENGTH.
18916         Formatting fixes.
18917         (regstat_compute_ri): Adjust for above.  Don't set
18918         REG_LIVE_LENGTH.
18919         (dump_reg_info): Don't print live length.
18920         * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
18921         with test of setjmp_crosses.  Don't set REG_LIVE_LENGTH.
18922         Localize loop_depth var.
18924 2016-04-30  Alan Modra  <amodra@gmail.com>
18926         * ira.c (enum valid_equiv): New.
18927         (validate_equiv_mem): Return enum.
18928         (update_equiv_mem): Create replacement in more cases.
18929         (add_store_equivs): Update validate_equiv_mem call.
18931 2016-04-30  Alan Modra  <amodra@gmail.com>
18933         * ira.c (combine_and_move_insns): Rather than scanning insns,
18934         use DF infrastucture to find use and def insns.
18936 2016-04-30  Alan Modra  <amodra@gmail.com>
18938         ira.c (combine_and_move_insns): Move invariant conditions..
18939         (ira.c): ..to here.  Call combine_and_move_insns before
18940         add_store_equivs.  Call grow_reg_equivs later.  Allocate
18941         req_equiv later using max_reg_num() rather than global max_regno.
18942         (contains_replace_regs): Delete.
18943         (add_store_equivs): Remove contains_replace_regs test.
18945 2016-04-30  Alan Modra  <amodra@gmail.com>
18947         * ira.c (struct equiv_mem_data): New.
18948         (equiv_mem, equiv_mem_modified): Delete static vars.
18949         (validate_equiv_mem_from_store): Use "data" param to communicate..
18950         (validate_equiv_mem): ..from here.
18952 2016-04-30  Alan Modra  <amodra@gmail.com>
18954         * ira.c (add_store_equivs, combine_and_move_insns): New functions,
18955         split out from..
18956         (update_reg_equivs): ..here.  Move allocation and freeing of
18957         reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
18958         end_alias_analysis to..
18959         (ira): ..here.
18961 2016-04-30  Alan Modra  <amodra@gmail.com>
18963         * ira.c (pdx_subregs): Delete.
18964         (struct equivalence): Add pdx_subregs field.
18965         (set_paradoxical_subreg): Remove pdx_subregs param.  Update
18966         pdx_subregs access.
18967         (update_equiv_regs): Don't create or free pdx_subregs.  Update
18968         pdx_subregs access.
18970 2016-04-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18972         * config/rs6000/altivec.h: Change definitions of vec_xl and
18973         vec_xst.
18974         * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
18975         (LD_ELEMREV_V2DI): New.
18976         (LD_ELEMREV_V4SF): New.
18977         (LD_ELEMREV_V4SI): New.
18978         (LD_ELEMREV_V8HI): New.
18979         (LD_ELEMREV_V16QI): New.
18980         (ST_ELEMREV_V2DF): New.
18981         (ST_ELEMREV_V2DI): New.
18982         (ST_ELEMREV_V4SF): New.
18983         (ST_ELEMREV_V4SI): New.
18984         (ST_ELEMREV_V8HI): New.
18985         (ST_ELEMREV_V16QI): New.
18986         (XL): New.
18987         (XST): New.
18988         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
18989         descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
18990         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
18991         TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
18992         (altivec_expand_builtin): Add handling for
18993         VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
18994         (rs6000_invalid_builtin): Add error-checking for
18995         RS6000_BTM_P9_VECTOR.
18996         (altivec_init_builtins): Define builtins used to implement vec_xl
18997         and vec_xst.
18998         (rs6000_builtin_mask_names): Define power9-vector.
18999         * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
19000         (RS6000_BTM_P9_VECTOR): Define.
19001         (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
19002         * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
19003         (vsx_ld_elemrev_v2df): Likewise.
19004         (vsx_ld_elemrev_v4sf): Likewise.
19005         (vsx_ld_elemrev_v4si): Likewise.
19006         (vsx_ld_elemrev_v8hi): Likewise.
19007         (vsx_ld_elemrev_v16qi): Likewise.
19008         (vsx_st_elemrev_v2df): Likewise.
19009         (vsx_st_elemrev_v2di): Likewise.
19010         (vsx_st_elemrev_v4sf): Likewise.
19011         (vsx_st_elemrev_v4si): Likewise.
19012         (vsx_st_elemrev_v8hi): Likewise.
19013         (vsx_st_elemrev_v16qi): Likewise.
19014         * doc/extend.texi: Add prototypes for vec_xl and vec_xst.  Correct
19015         grammar.
19017 2016-04-29  Patrick Palka  <ppalka@gcc.gnu.org>
19019         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
19020         out into ...
19021         (simplify_control_stmt_condition_1): ... here.  Recurse into
19022         BIT_AND_EXPRs and BIT_IOR_EXPRs.
19024 2016-04-29  David Edelsohn  <dje.gcc@gmail.com>
19026         PR target/69810
19027         * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
19028         (zero_extendqi<mode>2_dot): Revert earlier conversion from
19029         define_insn_and_split to define_insn.
19030         (zero_extendqi<mode>2_dot2): Same.
19031         (extendqi<mode>2_dot): Same.
19032         (extendqi<mode>2_dot2): Same.
19034 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
19036         * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
19037         (probe_stack): New expander.
19038         (probe_stack_<mode>): New insn pattern.
19040 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
19042         * config/i386/i386.md
19043         (operations with memory inputs setting flags peephole2):
19044         Remove uneeded REG_P checks.  Cleanup pattern generation.
19046 2016-04-29  Ilya Enkovich  <ilya.enkovich@intel.com>
19048         * tree-vect-loop.c (vect_transform_loop): Fix
19049         nb_iterations_upper_bound computation for vectorized loop.
19051 2016-04-29  Marek Polacek  <polacek@redhat.com>
19052             Jakub Jelinek  <jakub@redhat.com>
19054         PR sanitizer/70342
19055         * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
19056         TARGET_EXPR_SLOT as a base.
19058 2016-04-29  Andrew Burgess  <andrew.burgess@embecosm.com>
19060         * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
19061         with 'rCm2' constraints to limit possible immediate size.
19062         (*load_zeroextendqisi_update): Likewise.
19063         (*load_signextendqisi_update): Likewise.
19064         (*loadhi_update): Likewise.
19065         (*load_zeroextendhisi_update): Likewise.
19066         (*load_signextendhisi_update): Likewise.
19067         (*loadsi_update): Likewise.
19068         (*loadsf_update): Likewise.
19070 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
19072         * config/i386/predicates.md (constm1_operand): Fix comparison.
19074 2016-04-29  Claudiu Zissulescu  <claziss@synopsys.com>
19076         * testsuite/gcc.target/arc/ieee_eq.c: New test.
19078 2016-04-29  Oleg Endo  <olegendo@gcc.gnu.org>
19080         * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
19081         remaining SH5 related settings.
19082         * config/sh/sh-protos.h (shmedia_cleanup_truncate,
19083         shmedia_prepare_call_address): Delete.
19084         * config/sh/sh.c (sh_print_operand, output_stack_adjust,
19085         DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
19086         * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
19087         UNSUPPORTED_SH2A): Remove m5 checks.
19088         (sh_divide_strategy_e): Remove SH5 division strategies.
19089         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
19090         * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
19092 2016-04-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
19094         * config/s390/s390.c (s390_rtx_costs): Update documentation.
19096 2016-04-29  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19098         * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
19099         * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
19100         Change lder to ldr.
19101         * config/s390/vector.md ("mov<mode>"): Likewise.
19103 2016-04-29  Ulrich Weigand  <uweigand@de.ibm.com>
19105         * config/s390/constraints.md ("U", "W"): Invoke
19106         s390_mem_constraint with "ZR" and "ZT".
19107         * config/s390/s390.c (s390_check_qrst_address): Reject invalid
19108         addresses when using LRA.  Accept also short displacements for S
19109         and T constraints.  Do not check for long displacement target for
19110         S and T constraints.
19111         (s390_mem_constraint): Remove handling of U and W constraints.
19112         * config/s390/s390.md (various patterns): Remove the short
19113         displacement constraints (Q and R) if a long displacement
19114         constraint is present.  Add longdisp as required CPU capability.
19115         * config/s390/vector.md: Likewise.
19116         * config/s390/vx-builtins.md: Likewise.
19118 2016-04-29  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
19120         PR target/60040
19121         * reload1.c (reload): Call finish_spills before
19122         restarting reload loop. Skip select_reload_regs
19123         if update_eliminables_and_spill returns true.
19125 2016-04-29  Claudiu Zissulescu  <claziss@synopsys.com>
19127         * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
19128         * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
19129         (umulhisi3_imm): Update predicates and constraint letters.
19130         (umulhisi3_reg): Declare instruction as commutative.
19131         * config/arc/constraints.md (J12, J16): New constraints.
19132         * config/arc/predicates.md (short_unsigned_const_operand): New
19133         predicate.
19134         (arc_short_operand): Likewise.
19135         * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
19137 2016-04-29  Richard Biener  <rguenther@suse.de>
19139         PR tree-optimization/13962
19140         PR tree-optimization/65686
19141         * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
19142         * tree-ssa-alias.c (ptrs_compare_unequal): New function
19143         using PTA to compare pointers.
19144         * match.pd: Add pattern for pointer equality compare simplification
19145         using ptrs_compare_unequal.
19147 2016-04-29  Richard Biener  <rguenther@suse.de>
19149         * stor-layout.c (layout_type): Do not build a pointer-to-element
19150         type for arrays.
19152 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
19154         * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
19155         Use SWI mode iterator.  Use general_reg_operand predicate.
19156         (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
19157         peephole to MMX and SSE part.  Use mmx_reg_operand and sse_reg_operand
19158         predicates.
19160 2016-04-29  Jakub Jelinek  <jakub@redhat.com>
19162         PR middle-end/70843
19163         * fold-const.c (operand_equal_p): Don't verify hash value equality
19164         if arg0 == arg1.
19165         * tree.c (inchash::add_expr): Handle STATEMENT_LIST.  Ignore BLOCK
19166         and OMP_CLAUSE.
19168 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
19170         PR target/70858
19171         * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
19172         to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
19173         (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
19174         __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
19175         __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
19177 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
19179         * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
19180         to info.  Don't initialize separate fields to 0.  Clean up
19181         formatting a bit.
19183 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
19185         * config/i386/i386.md (peephole2s for operations with memory inputs):
19186         Use SWI mode iterator.
19187         (peephole2s for operations with memory outputs): Ditto.
19188         Do not check for stack checking probe.
19190         (probe_stack): Remove expander.
19192 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
19193             Andrew Burgess  <andrew.burgess@embecosm.com>
19195         * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
19196         operands as 32-bits.
19198 2016-04-28  Jason Merrill  <jason@redhat.com>
19200         * gdbinit.in: Skip line-map.h.
19202 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
19203             Andrew Burgess  <andrew.burgess@embecosm.com>
19205         * config/arc/arc.c (arc_conditional_register_usage): Take
19206         TARGET_RRQ_CLASS into account.
19207         (arc_print_operand): Support printing 'p' and 's' operands.
19208         * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
19209         as 0.
19210         (TARGET_RRQ_CLASS): Define.
19211         (IS_POWEROF2_OR_0_P): Define.
19212         * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
19213         alternatives.
19214         (*tst_movb): New define_insn.
19215         (*tst): Avoid recognition if it could prevent '*tst_movb'
19216         combination; replace c/CnL with c/Chs alternative.
19217         (*tst_bitfield_tst): New define_insn.
19218         (*tst_bitfield_asr): New define_insn.
19219         (*tst_bitfield): New define_insn.
19220         (andsi3_i): Add Rrq variant.
19221         (extzv): New define_expand.
19222         (insv): New define_expand.
19223         (*insv_i): New define_insn.
19224         (*movb): New define_insn.
19225         (*movb_signed): New define_insn.
19226         (*movb_high): New define_insn.
19227         (*movb_high_signed): New define_insn.
19228         (*movb_high_signed + 1): New define_split pattern.
19229         (*mrgb): New define_insn.
19230         (*mrgb + 1): New define_peephole2 pattern.
19231         (*mrgb + 2): New define_peephole2 pattern.
19232         * config/arc/arc.opt (mbitops): New option for nps400, uses
19233         TARGET_NPS_BITOPS_DEFAULT.
19234         * config/arc/constraints.md (q): Make register class conditional.
19235         (Rrq): New register constraint.
19236         (Chs): New constraint.
19237         (Clo): New constraint.
19238         (Chi): New constraint.
19239         (Cbf): New constraint.
19240         (Cbn): New constraint.
19241         (C18): New constraint.
19242         (Cbi): New constraint.
19244 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
19246         * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
19247         dst->popcount.
19248         (bitmap_intersection_of_preds): Ditto.
19249         (bitmap_union_of_succs): Ditto.
19250         (bitmap_union_of_preds): Ditto.
19251         * sbitmap.c (do_popcount): Delete.
19252         (BITMAP_DEBUGGING): Delete.
19253         (sbitmap_verify_popcount): Delete.
19254         (sbitmap_alloc): Don't initialize the popcount field.
19255         (sbitmap_alloc_with_popcount): Delete.
19256         (sbitmap_resize): Don't resize the popcount array.
19257         (sbitmap_vector_alloc): Don't initialize the popcount field.
19258         (bitmap_copy): Don't copy the popcount array.
19259         (bitmap_clear): Don't clear the popcount array.
19260         (bitmap_clear): Delete the popcount array handling.
19261         (bitmap_ior_and_compl): Delete the popcount assert.
19262         (bitmap_not): Ditto.
19263         (bitmap_and_compl): Ditto.
19264         (bitmap_and): Delete the popcount array handling.
19265         (bitmap_xor): Ditto.
19266         (bitmap_ior): Ditto.
19267         (bitmap_or_and): Delete the popcount assert.
19268         (bitmap_and_or): Ditto.
19269         (popcount_table): Delete.
19270         (sbitmap_elt_popcount): Delete.
19271         * sbitmap.h (simple_bitmap_def): Delete the popcount field.
19272         (bitmap_set_bit): Delete the popcount assert.
19273         (bitmap_clear_bit): Ditto.
19274         (sbitmap_free): Don't free the popcount array.
19275         (sbitmap_alloc_with_popcount): Delete declaration.
19276         (sbitmap_popcount): Ditto.
19278 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
19279             Andrew Burgess  <andrew.burgess@embecosm.com>
19281         * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
19282         (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
19283         * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
19284         (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
19285         * config/arc/arc.opt (mcmem): New option.
19286         * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
19287         supply length for r/m alternative.
19288         (*extendqisi2_ac): Likewise.
19289         (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
19290         r/Uex alternative.
19291         (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
19292         (movhi_insn): Likewise.
19293         (movsi_insn): Add r/Ucm,Ucm/w alternatives.
19294         (*zero_extendqihi2_i): Add r/Ucm alternative.
19295         (*zero_extendqisi2_ac): Likewise.
19296         (*zero_extendhisi2_i): Likewise.
19297         * config/arc/constraints.md (Uex): New memory constraint.
19298         (Ucm): New define_constraint.
19299         * config/arc/predicates.md (long_immediate_loadstore_operand):
19300         Return 0 for MEM with cmem_address address.
19301         (cmem_address_0): New predicates.
19302         (cmem_address_1): Likewise.
19303         (cmem_address_2): Likewise.
19304         (cmem_address): Likewise.
19306 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
19308         * config/rs6000/rs6000.c (machine_function): Rename
19309         insn_chain_scanned_p to spe_insn_chain_scanned_p.
19310         (rs6000_stack_info): Adjust.
19312 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
19313             Andrew Burgess  <andrew.burgess@embecosm.com>
19315         * config/arc/constraints.md (Usd): Convert to define_constraint.
19316         (Us<): Likewise.
19317         (Us>): Likewise.
19319 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
19321         PR target/70821
19322         * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
19323         Add new peephole2 where the first insn is *mov<mode>_or instead of
19324         *mov<mode>_internal.
19326 2016-04-28  Segher Boesssenkool  <segher@kernel.crashing.org>
19328         * tracer.c (bb_seen): Make static.
19330 2016-04-28  Andrew Burgess  <andrew.burgess@embecosm.com>
19332         * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
19333         support, setup defaults.
19334         * config/arc/arc-opts.h (enum processor_type): Add NPS400.
19335         * config/arc/arc.c (arc_init): Add NPS400 support.
19336         * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
19337         (TARGET_ARC700): NPS400 is also an ARC700.
19338         * config/arc/arc.opt: Add NPS400 options to -mcpu=.
19340 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
19342         PR target/70668
19343         * config/nds32/nds32.md (casesi): Don't access the operands array
19344         out of bounds.
19346 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
19348         * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
19349         (or $-1,reg peephole2): Ditto.
19350         (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
19352 2016-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
19354         * doc/extend.texi (Common Function Attributes) [optimize]:
19355         Discourage use of the optimize attribute.
19357 2016-04-28  Bill Seurer  <seurer@linux.vnet.ibm.com>
19359         * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
19360         special case builtin.
19361         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
19362         ALTIVEC_BUILTIN_VEC_ADDE.
19363         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
19364         support for ALTIVEC_BUILTIN_VEC_ADDE.
19365         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
19366         for __builtin_vec_adde.
19368 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
19370         * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
19371         * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
19373 2016-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19375         PR testsuite/70595
19376         * doc/sourcebuild.texi (Effective-Target Keywords, Other
19377         attributes): Document cilkplus_runtime.
19379 2016-04-28  Martin Jambor  <mjambor@suse.cz>
19381         * tree-cfg.c (verify_expr): Verify that local declarations belong to
19382         this function.  Call verify_expr on MEM_REFs and bases of other
19383         handled_components.
19385 2016-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19387         * internal-fn.c (expand_arith_overflow): Convert preprocessor check
19388         for WORD_REGISTER_OPERATIONS to runtime check.
19390 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
19392         * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
19394 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
19396         * config/arc/arc.c (arc_process_double_reg_moves): Fix for
19397         big-endian compilation.
19398         * config/arc/arc.md (addf3): Likewise.
19399         (subdf3): Likewise.
19400         (muldf3): Likewise.
19402 2016-04-28  Richard Biener  <rguenther@suse.de>
19404         PR tree-optimization/70840
19405         * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
19406         Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
19407         Mark x * pow(x,c) -> pow(x,c+1) commutative.
19408         Add powi(x,y) * powi(z,y) -> powi(x*z,y).
19410 2015-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19412         * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
19413         and explain why in a comment.
19415 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
19417         * config/arc/arc.md (cpu_facility): Add fpx variant.
19418         (subdf3): Prohibit use reverse sub when assist operations option
19419         is enabled.
19420         * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
19421         instructions only when FPX is enabled.
19422         * testsuite/gcc.target/arc/trsub.c: New test.
19424 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
19426         * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
19427         mult_operator when calculating "type" attribute.
19428         (*fop_<mode>_1_i387): Ditto.
19429         (*fop_xf_1_i387): Ditto.
19430         (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
19431         Use std::swap to swap operands.  Use RTL expressions to generate
19432         converted pattern.
19434 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
19435             Joern Rennecke  <joern.rennecke@embecosm.com>
19437         * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
19438         declaration.
19439         (emit_pic_move): Remove.
19440         (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
19441         * config/arc/arc.c (emit_pic_move): Removed.
19442         (TARGET_HAVE_TLS): Define.
19443         (arc_conditional_register_usage): Test for arc_tp_regno.
19444         (arc_print_operand, arc_print_operand_address): Handle TLS
19445         unspecs.
19446         (arc_needs_pcl_p): New function.
19447         (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
19448         (arc_legitimate_pic_addr_p): Handle TLS unspecs.
19449         (arc_raw_symbolic_reference_mentioned_p): Likewise.
19450         (arc_get_tp, arc_emit_call_tls_get_addr): New function.
19451         (arc_legitimize_tls_address): Likewise.
19452         (DTPOFF_ZERO_SYM): Define.
19453         (arc_legitimize_pic_address): Make it static, handle TLS cases.
19454         (arc_output_pic_addr_const): Print TLS unspecs.
19455         (prepare_pic_move): New function, replaces emit_pic_move.
19456         (arc_legitimate_constant_p): Handle TLS unspecs.
19457         (arc_legitimate_address_p): Likewise.
19458         (arc_rewrite_small_data_p): Use assert for TLS constants.
19459         (prepare_move_operands): Use prepare_pic_move.
19460         (arc_legitimize_address): Legitimize tls addresses.
19461         (arc_epilogue_uses): Check for arc_tp_regno.
19462         (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
19463         * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
19464         Define.
19465         [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
19466         Likewise.
19467         [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
19468         %(arc_tls_extra_start_spec).
19469         (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
19470         (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
19471         (EH_USES): Define.
19472         (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
19473         * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
19474         (UNSPEC_TLS_OFF): Add.
19475         (R10_REG): Define.
19476         (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
19477         (get_thread_pointersi): New patterns.
19478         * config/arc/arc.opt (mtp-regno): New option.
19479         * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
19480         (move_dest_operand): Likewise.
19481         * configure: Regenerate.
19482         * configure.ac: Add arc*-*-* case to test for tls.
19483         * doc/invoke.texi (ARC options): Document mtp-regno.
19485 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
19487         * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
19488         the new ARC HS SIMD instructions.
19489         (arc_preferred_simd_mode): New function.
19490         (arc_autovectorize_vector_sizes): Likewise.
19491         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
19492         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
19493         (arc_init_reg_tables): Accept new ARC HS SIMD modes.
19494         (arc_init_builtins): Add new SIMD builtin types.
19495         (arc_split_move): Handle 64 bit vector moves.
19496         * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
19497         (TARGET_PLUS_QMACW): Define.
19498         * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
19499         (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
19500         (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
19501         (VSUBADD4H): New builtins.
19502         * config/arc/simdext.md: Add new ARC HS SIMD instructions.
19503         * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
19505 2016-04-28  Eduard Sanou  <dhole@openmailbox.org>
19506             Matthias Klose  <doko@debian.org>
19508         * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
19510 2016-04-28  Richard Biener  <rguenther@suse.de>
19512         PR middle-end/70777
19513         * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
19514         canonicalization.
19516 2016-04-28  Oleg Endo  <olegendo@gcc.gnu.org>
19518         * common/config/sh/sh-common.c: Remove SH5 support.
19519         * config/sh/constraints.md: Likewise.
19520         * config/sh/config/sh/elf.h: Likewise.
19521         * config/sh/linux.h: Likewise.
19522         * config/sh/netbsd-elf.h: Likewise.
19523         * config/sh/predicates.md: Likewise.
19524         * config/sh/sh-c.c: Likewise.
19525         * config/sh/sh-protos.h: Likewise.
19526         * config/sh/sh.c: Likewise.
19527         * config/sh/sh.h: Likewise.
19528         * config/sh/sh.md: Likewise.
19529         * config/sh/sh.opt: Likewise.
19530         * config/sh/sync.md: Likewise.
19531         * config/sh/sh64.h: Delete.
19532         * config/sh/shmedia.h: Likewise.
19533         * config/sh/shmedia.md: Likewise.
19534         * config/sh/sshmedia.h: Likewise.
19535         * config/sh/t-netbsd-sh5-64: Likewise.
19536         * config/sh/t-sh64: Likewise.
19537         * config/sh/ushmedia.h: Likewise.
19539 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
19541         * config/i386/i386.md (sign_extend to memory peephole2s): Use
19542         general_reg_operand instead of register_operand predicate.
19544 2016-04-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
19546         * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
19548 2016-04-27  Marc Glisse  <marc.glisse@inria.fr>
19550         * match.pd (A - B > A, A + B < A): New transformations.
19552 2016-04-27  Patrick Palka  <ppalka@gcc.gnu.org>
19554         * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
19555         which defaults to true.  Emit an outer pair of parentheses only if
19556         EMIT_PARENS.  When continuing a chain of && or || (or & or |),
19557         don't emit parentheses for the right-hand operand.
19559 2016-04-27  Jeff Law  <law@redhat.com>
19561         * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
19563 2016-04-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19565         * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
19566         (altivec_lvx_<mode>_internal): Document.
19567         (altivec_lvx_<mode>_2op): New define_insn.
19568         (altivec_lvx_<mode>_1op): Likewise.
19569         (altivec_lvx_<mode>_2op_si): Likewise.
19570         (altivec_lvx_<mode>_1op_si): Likewise.
19571         (altivec_stvx_<mode>): Remove.
19572         (altivec_stvx_<mode>_internal): Document.
19573         (altivec_stvx_<mode>_2op): New define_insn.
19574         (altivec_stvx_<mode>_1op): Likewise.
19575         (altivec_stvx_<mode>_2op_si): Likewise.
19576         (altivec_stvx_<mode>_1op_si): Likewise.
19577         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
19578         Expand vec_ld and vec_st during parsing.
19579         * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
19580         changes.
19581         (altivec_expand_stvx_be): Likewise.
19582         (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
19583         address-masking behavior in RTL.
19584         (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
19585         address-masking behavior in RTL.
19586         (altivec_expand_builtin): Change builtin code arguments for calls
19587         to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
19588         (insn_is_swappable_p): Avoid incorrect swap optimization in the
19589         presence of lvx/stvx patterns.
19590         (alignment_with_canonical_addr): New function.
19591         (alignment_mask): Likewise.
19592         (find_alignment_op): Likewise.
19593         (recombine_lvx_pattern): Likewise.
19594         (recombine_stvx_pattern): Likewise.
19595         (recombine_lvx_stvx_patterns): Likewise.
19596         (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
19597         stvx patterns from expand.
19598         * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
19599         expansions.
19600         (vector_altivec_store_<mode>): Likewise.
19602 2016-04-26  Evandro Menezes  <e.menezes@samsung.com>
19604         * config/aarch64/aarch64.md
19605         (*movhf_aarch64): Add "movi %0, #0" to zero up register and
19606         remove the "fp" attributes.
19607         (*movsf_aarch64): Add "movi %0, #0" to zero up register and
19608         add the "simd" attributes.
19609         (*movdf_aarch64): Likewise.
19610         (*movtf_aarch64): Remove the "fp" attributes.
19611         * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
19612         * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
19614 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
19616         * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
19617         rtx to rtx_code_label *.
19618         * rtl.h (maybe_set_first_label_num): Likewise.
19620 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
19622         * df-core.c (df_add_problem): Make the problem param be const.
19623         (df_remove_problem): Make local "problem" be const.
19624         * df-problems.c (problem_RD): Make const.
19625         (problem_LR): Likewise.
19626         (problem_LIVE): Likewise.
19627         (problem_MIR): Likewise.
19628         (problem_CHAIN): Likewise.
19629         (problem_WORD_LR): Likewise.
19630         (problem_NOTE): Likewise.
19631         (problem_MD): Likewise.
19632         * df-scan.c (problem_SCAN): Likewise.
19633         * df.h (struct df_problem): Make field "dependent_problem" be
19634         const.
19635         (struct dataflow): Likewise for field "problem".
19636         (df_add_problem): Make param const.
19638 2016-04-27  Uros Bizjak  <ubizjak@gmail.com>
19640         * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
19641         inter-unit moves to/from vector registers are enabled.  Do not disable
19642         for TARGET_MMX.
19644 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
19646         * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
19647         DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
19648         #define to...
19649         (enum df_problem_id): ...this new enum.
19650         (struct df_problem): Convert field "id" from "int" to
19651         enum df_problem_id.
19653 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
19655         * rtl.def: Update comment for "things in the instruction chain" to
19656         reflect the removal of the leading "i" field for INSN_UID in
19657         r210360.  Fix bogus apostrophe.
19659 2016-04-27  Uros Bizjak  <ubizjak@gmail.com>
19661         * config/i386/i386.md
19662         (lea arith with mem operand + setcc peephole2): Set operator mode.
19664 2016-04-27  H.J. Lu  <hongjiu.lu@intel.com>
19666         PR target/70155
19667         * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
19668         (dimode_scalar_to_vector_candidate_p): This.
19669         (timode_scalar_to_vector_candidate_p): New function.
19670         (scalar_to_vector_candidate_p): Likewise.
19671         (timode_check_non_convertible_regs): Likewise.
19672         (timode_remove_non_convertible_regs): Likewise.
19673         (remove_non_convertible_regs): Likewise.
19674         (remove_non_convertible_regs): Renamed to ...
19675         (dimode_remove_non_convertible_regs): This.
19676         (scalar_chain::~scalar_chain): Make it virtual.
19677         (scalar_chain::compute_convert_gain): Make it pure virtual.
19678         (scalar_chain::mark_dual_mode_def): Likewise.
19679         (scalar_chain::convert_insn): Likewise.
19680         (scalar_chain::convert_registers): Likewise.
19681         (scalar_chain::add_to_queue): Make it protected.
19682         (scalar_chain::emit_conversion_insns): Likewise.
19683         (scalar_chain::replace_with_subreg): Likewise.
19684         (scalar_chain::replace_with_subreg_in_insn): Likewise.
19685         (scalar_chain::convert_op): Likewise.
19686         (scalar_chain::convert_reg): Likewise.
19687         (scalar_chain::make_vector_copies): Likewise.
19688         (scalar_chain::convert_registers): New pure virtual function.
19689         (class dimode_scalar_chain): New class.
19690         (class timode_scalar_chain): Likewise.
19691         (scalar_chain::mark_dual_mode_def): Renamed to ...
19692         (dimode_scalar_chain::mark_dual_mode_def): This.
19693         (timode_scalar_chain::mark_dual_mode_def): New function.
19694         (timode_scalar_chain::convert_insn): Likewise.
19695         (dimode_scalar_chain::convert_registers): Likewise.
19696         (scalar_chain::compute_convert_gain): Renamed to ...
19697         (dimode_scalar_chain::compute_convert_gain): This.
19698         (scalar_chain::replace_with_subreg): Renamed to ...
19699         (dimode_scalar_chain::replace_with_subreg): This.
19700         (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
19701         (dimode_scalar_chain::replace_with_subreg_in_insn): This.
19702         (scalar_chain::make_vector_copies): Renamed to ...
19703         (dimode_scalar_chain::make_vector_copies): This.
19704         (scalar_chain::convert_reg): Renamed to ...
19705         (dimode_scalar_chain::convert_reg ): This.
19706         (scalar_chain::convert_op): Renamed to ...
19707         (dimode_scalar_chain::convert_op): This.
19708         (scalar_chain::convert_insn): Renamed to ...
19709         (dimode_scalar_chain::convert_insn): This.
19710         (scalar_chain::convert): Call convert_registers.
19711         (convert_scalars_to_vector): Change to scalar_chain pointer to
19712         use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
19713         in 32-bit mode.  Delete scalar_chain pointer.  Call
19714         free_dominance_info in 64-bit mode.
19715         (pass_stv::gate): Remove TARGET_64BIT check.
19716         (ix86_option_override): Put the 64-bit STV pass before the CSE
19717         pass.
19719 2016-04-27  Pierre-Marie de Rodat  <derodat@adacore.com>
19721         * dwarf2out.h (struct dw_loc_descr_node): Remove the
19722         dw_loc_frame_offset field.
19723         * dwarf2out.c (new_loc_descr): Likewise.
19724         (resolve_args_picking_1): Turn the VISITED hash set into a
19725         FRAME_OFFSET hash map. Use it to associate a frame offset to
19726         visited nodes. Remove uses of the CHECKING_P macro.
19727         (resolve_args_picking): Update call to resolve_args_picking_1.
19729 2016-04-27  Martin Liska  <mliska@suse.cz>
19731         * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
19732         (free_loop_data): Release vuses of groups.
19734 2016-04-27  Bin Cheng  <bin.cheng@arm.com>
19736         * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
19737         instead of redundant use_id and boolean have_use_for.
19738         (struct iv_use): Change sub_id into group_id.  Remove field next.
19739         Move fields: related_cands, n_map_members, cost_map and selected
19740         to ...
19741         (struct iv_group): ... here.  New structure.
19742         (struct iv_common_cand): Use structure declaration directly.
19743         (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
19744         (MAX_CONSIDERED_USES): Rename macro to ...
19745         (MAX_CONSIDERED_GROUPS): ... here.
19746         (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
19747         (dump_iv, dump_use, dump_cand): Refactor format of dump information.
19748         (dump_uses): Rename to ...
19749         (dump_groups): ... here.  Update all uses.
19750         (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
19751         (find_induction_variables): Refactor format of dump information.
19752         (record_sub_use): Delete.
19753         (record_use): Update all uses.
19754         (record_group): New function.
19755         (record_group_use, find_interesting_uses_op): Call above functions.
19756         Update all uses.
19757         (find_interesting_uses_cond): Ditto.
19758         (group_compare_offset): New function.
19759         (split_all_small_groups): Rename to ...
19760         (split_small_address_groups_p): ... here.  Update all uses.
19761         (split_address_groups):  Update all uses.
19762         (find_interesting_uses): Refactor format of dump information.
19763         (add_candidate_1): Update all uses.  Remove redundant check on iv,
19764         base and step.
19765         (add_candidate, record_common_cand): Remove redundant assert.
19766         (add_iv_candidate_for_biv): Update use.
19767         (add_iv_candidate_derived_from_uses): Update all uses.
19768         (add_iv_candidate_for_groups, record_important_candidates): Ditto.
19769         (alloc_use_cost_map): Ditto.
19770         (set_use_iv_cost, get_use_iv_cost): Rename to ...
19771         (set_group_iv_cost, get_group_iv_cost): ... here.  Update all uses.
19772         (determine_use_iv_cost_generic): Ditto.
19773         (determine_group_iv_cost_generic): Ditto.
19774         (determine_use_iv_cost_address): Ditto.
19775         (determine_group_iv_cost_address): Ditto.
19776         (determine_use_iv_cost_condition): Ditto.
19777         (determine_group_iv_cost_cond): Ditto.
19778         (determine_use_iv_cost): Ditto.
19779         (determine_group_iv_cost): Ditto.
19780         (set_autoinc_for_original_candidates): Update all uses.
19781         (find_iv_candidates): Update all uses.  Refactor dump information.
19782         (determine_use_iv_costs): Ditto.
19783         (determine_iv_costs): Ditto.
19784         (iv_ca_cand_for_use): Rename to ...
19785         (iv_ca_cand_for_group): ... here.  Update all uses.
19786         (iv_ca_add_use, iv_ca_add_group): Ditto.
19787         (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
19788         (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
19789         (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
19790         (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
19791         (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
19792         (create_new_iv, adjust_iv_update_pos): Ditto.
19793         (rewrite_use_address): Delete.
19794         (rewrite_use_address_1): Rename to ...
19795         (rewrite_use_address): ... here.
19796         (rewrite_use_compare): Update all uses.
19797         (rewrite_use): Delete.
19798         (rewrite_uses): Rename to ...
19799         (rewrite_groups): ... here.  Update all uses.
19800         (remove_unused_ivs, free_loop_data): Update all uses.
19801         (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
19803 2016-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19805         * rtlanal.c (nonzero_bits1): Convert preprocessor check
19806         for WORD_REGISTER_OPERATIONS to runtime check.
19808 2016-04-27  Richard Biener  <rguenther@suse.de>
19810         PR ipa/70760
19811         * tree-ssa-structalias.c (find_func_aliases_for_call): Use
19812         aggregate_value_p to determine if a function result is
19813         returned by reference.
19814         (ipa_pta_execute): Functions having their address taken are
19815         not automatically nonlocal.
19817 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
19819         PR sanitizer/70683
19820         * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
19821         * fold-const.c (operand_equal_p): If flag_checking and
19822         OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
19823         and if it returns non-zero, assert iterative_hash_expr on both
19824         args is the same.
19826 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
19828         * doc/invoke.texi (-frename-registers): Also enabled at -Os.
19830 2016-04-27  Nick Clifton  <nickc@redhat.com>
19832         PR middle-end/49889
19833         * varasm.c (merge_weak): Generate an error if an attempt is made
19834         to convert a non-weak static function into a weak, public function.
19836 2016-04-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
19838         * params.def (MAX_PARTITION_SIZE): New param.
19839         * doc/invoke.texi: Document lto-max-partition.
19841 2016-04-27  Richard Biener  <rguenther@suse.de>
19843         PR ipa/70785
19844         * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
19845         function cummulating used_from_other_partition, externally_visible
19846         and force_output from aliases.
19847         (refered_from_nonlocal_var): Likewise.
19848         (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
19849         node flags properly.
19851 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
19853         * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
19854         (-Wmemset-elt-size): New item.
19856 2016-04-27  Eric Botcazou  <ebotcazou@adacore.com>
19858         PR ada/70759
19859         * stor-layout.h (internal_reference_types): Delete.
19860         * stor-layout.c (reference_types_internal): Likewise.
19861         (internal_reference_types): Likewise.
19862         (layout_type) <REFERENCE_TYPE>: Adjust.
19864 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
19866         PR sanitizer/70683
19867         * tree.h (inchash::add_expr): Add FLAGS argument.
19868         * tree.c (inchash::add_expr): Likewise.  If not OEP_ADDRESS_OF,
19869         use STRIP_NOPS first.  For INTEGER_CST assert not OEP_ADDRESS_OF.
19870         For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
19871         Formatting fix.  Adjust recursive calls.  For tcc_comparison,
19872         if swap_tree_comparison (code) is smaller than code, hash that
19873         and arguments in the other order.  Hash CONVERT_EXPR the same
19874         as NOP_EXPR.  For OEP_ADDRESS_OF hash MEM_REF with 0 offset
19875         of ADDR_EXPR of decl as the decl itself.  Add or remove
19876         OEP_ADDRESS_OF from recursive flags as needed.  For
19877         FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
19878         operands commutatively and only the third one normally.
19879         For internal CALL_EXPR hash in CALL_EXPR_IFN.
19881 2016-04-27  Sebastian Huber  <sebastian.huber@embedded-brains.de>
19883         * config/rtems.h (LIB_SPEC): Add -latomic.
19885 2016-04-27  Joel Sherrill  <joel@rtems.org>
19887         * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
19888         xilink.ld and flags not relevant to RTEMS.
19890 2016-04-26  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
19892         * toplev.c (backend_init_target): Avoid calling init_reload when using
19893         LRA.
19895 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
19897         * reorg.c (try_merge_delay_insns): Declare i and j inside the
19898         for loops rather than one for the whole function.
19900 2016-04-26  Marc Glisse  <marc.glisse@inria.fr>
19902         * match.pd (X + CST CMP X): New transformation.
19904 2016-04-26  Marc Glisse  <marc.glisse@inria.fr>
19906         * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
19907         * fold-const.c (fold_binary_loc): Remove 2 transformations
19908         superseded by match.pd.
19909         * match.pd (x+x -> x*2): Generalize to integers.
19911 2016-04-26  Bernd Schmidt  <bschmidt@redhat.com>
19913         * config/i386/i386.md (operation on memory peephole): Duplicate an
19914         existing peephole and adapt it to match lea rather than an operation
19915         that clobbers CC.
19917         PR rtl-optimization/57193
19918         * opts.c (default_options_table): Add OPT_frename_registers at -O2
19919         and above.
19920         * doc/invoke.texi (-frename-registers, -O2): Update documentation.
19922 2016-04-26  Bin Cheng  <bin.cheng@arm.com>
19924         * tree-if-conv.c (any_pred_load_store): New static variable.
19925         (if_convertible_gimple_assign_stmt_p): Remove parameter.  Use
19926         any_pred_load_store instead of and_mask_load_store.
19927         (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
19928         (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
19929         (combine_blocks, tree_if_conversion): Ditto.
19931 2016-04-26  Bin Cheng  <bin.cheng@arm.com>
19933         PR tree-optimization/70771
19934         PR tree-optimization/70775
19935         * tree-if-conv.c (if_convertible_phi_p): Remove check on special
19936         virtual PHI nodes.  Delete parameter.
19937         (if_convertible_loop_p_1): Delete argument to above function.
19938         (predicate_all_scalar_phis): Delete code handling single-argument
19939         PHIs.
19940         (tree_if_conversion): Mark and update virtual SSA.
19942 2016-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19944         PR target/61821
19945         * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
19946         (x86_elf_aligned_common): Rename to ...
19947         (x86_elf_aligned_decl_common): ... this.
19948         Add decl arg.  Switch to .lbss for largecomm object.  Use
19949         LARGECOMM_SECTION_ASM_OP.
19950         * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
19951         renaming.
19952         * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
19953         (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
19954         Pass new decl arg.
19955         * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
19956         [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
19958 2016-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19960         PR target/59407
19961         * config/i386/i386.c (SECTION_LARGE): Define.
19962         (x86_64_elf_select_section): Set it for large data/bss sections.
19963         Only clear SECTION_WRITE for .lrodata.
19964         (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
19965         data/bss sections.
19966         * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
19967         * varasm.c (default_elf_asm_named_section): Grow flagchars.
19968         [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
19969         SECTION_MACH_DEP.
19970         * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
19971         * doc/tm.texi: Regenerate.
19973 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
19975         PR bootstrap/70704
19976         * configure.ac (--enable-checking): Document extra flag, for
19977         non-release builds default to --enable-checking=yes,extra.
19978         If misc checking and extra checking, define CHECKING_P to 2 instead
19979         of 1.
19980         * common.opt (fchecking=): Add.
19981         * doc/invoke.texi (-fchecking=): Document.
19982         * doc/install.texi: Document --enable-checking changes.
19983         * configure: Regenerated.
19984         * config.in: Regenerated.
19986 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
19988         * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
19989         attribute instead of which_alternative.
19990         * config/i386/sse.md (*mov<mode>_internal): Ditto.
19991         Use EXT_REX_SSE_REG_P where appropriate.
19993 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
19995         * config/i386/predicates.md (const0_operand): Do not match
19996         const_wide_int code.
19997         (const1_operand): Ditto.
19999 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
20001         * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
20002         for SSE constm1 operands and TARGET_AVX512VL.
20003         (*movti_internal): Ditto.
20004         (*mov<mode>_or): Use constm1_operand predicate.
20005         * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
20006         for SSE vector_all_ones operands and TARGET_AVX512VL.
20007         * config/i386/predicates.md (constm1_operand): New predicate.
20008         * config/i386/i386.c (standard_sse_constant_opcode): Simplify
20009         emission of constant -1 load.
20011 2016-04-25  Jason Merrill  <jason@redhat.com>
20013         * gdbinit.in: Skip is-a.h.
20015         * attribs.c (register_scoped_attributes): Fix logic.
20016         * attribs.h: Declare register_scoped_attributes.
20018 2016-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20020         * config/rs6000/rs6000-builtin.def: Correct pasto error for
20021         stxvd2x and stxvw4x built-in functions.
20023 2016-04-25  DJ Delorie  <dj@redhat.com>
20025         * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
20026         (ashrhi3): Likewise.
20027         (lshrhi3): Likewise.
20029 2016-04-25  Richard Biener  <rguenther@suse.de>
20031         PR tree-optimization/70780
20032         * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
20033         wasn't visited yet.
20034         (compute_antic): Mark blocks with abnormal preds as visited as
20035         they have a final empty antic-in solution already.
20037 2016-04-25  Michael Collison  <michael.collison@linaro.org>
20039         * ChangeLog(2016-04-25): Fix ChangeLog formatting.
20041 2016-04-25  Michael Collison  <michael.collison@linaro.org>
20043         * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
20044         mode is VQI to improve mixed mode vectorization.
20045         * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
20046         define_insn to match low half of signed vaddw.
20047         * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
20048         define_insn to match high half of signed vaddw.
20049         * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
20050         define_insn to match low half of unsigned vaddw.
20051         * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
20052         define_insn to match high half of unsigned vaddw.
20053         * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
20054         (arm_simd_check_vect_par_cnst_half_p): Likewise.
20055         * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
20056         for new function.
20057         (arm_simd_check_vect_par_cnst_half_p): Likewise.
20058         * config/arm/predicates.md (vect_par_constant_high): Support
20059         big endian and simplify by calling
20060         arm_simd_check_vect_par_cnst_half
20061         (vect_par_constant_low): Likewise.
20063 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
20065         * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
20066         predicate for operand 2.
20068 2016-04-24  Uros Bizjak  <ubizjak@gmail.com>
20069             H.J. Lu  <hongjiu.lu@intel.com>
20071         * config/i386/i386-protos.h (standard_sse_constant_p): Add
20072         machine_mode argument.
20073         * config/i386/i386.c (standard_sse_constant_p): Return 2 for
20074         constm1_rtx operands.  For VOIDmode constants, get mode from
20075         pred_mode.  Check mode size if the mode is supported by ABI.
20076         (standard_sse_constant_opcode): Do not use standard_constant_p.
20077         Strictly check ABI support for all-ones operands.
20078         (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
20079         immediates. Update calls to standard_sse_constant_p.
20080         (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
20081         (ix86_rtx_costs): Ditto.
20082         * config/i386/i386.md (*movxi_internal_avx512f): Use
20083         nonimmediate_or_sse_const_operand instead of vector_move_operand.
20084         Use (v,BC) alternative instead of (v,C). Use register_operand
20085         checks instead of MEM_P.
20086         (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
20087         of vector_move_operand.  Add (v,BC) alternative and corresponding avx2
20088         isa attribute.  Use register_operand checks instead of MEM_P.
20089         (*movti_internal): Use nonimmediate_or_sse_const_operand for
20090         TARGET_SSE.  Improve TARGET_SSE insn constraint.  Add (v,BC)
20091         alternative and corresponding sse2 isa attribute.
20092         (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
20093         to standard_sse_constant_p.
20094         (FP constant splitters): Ditto.
20095         * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
20096         (C): Ditto.
20097         * config/i386/predicates.md (constm1_operand): Remove.
20098         (nonimmediate_or_sse_const_operand): Rewrite using RTX.
20099         * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
20100         vector_all_ones_operand instead of constm1_operand.
20102 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20104         * print-rtl.c (print_rtx_insn_vec): New function.
20105         * print-rtl.h: New prototype.
20106         * store-motion.c (struct st_expr): Make avail_stores a vector.
20107         (st_expr_entry): Adjust.
20108         (free_st_expr_entry): Likewise.
20109         (print_store_motion_mems): Likewise.
20110         (find_moveable_store): Likewise.
20111         (compute_store_table): Likewise.
20112         (delete_store): Likewise.
20113         (build_store_vectors): Likewise.
20115 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20117         * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
20119 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20121         * vec.h (vec_safe_contains): New function.
20122         (vec::contains): Likewise.
20123         (vec::begin): Likewise.
20124         (vec::end): Likewise.
20126 2016-04-23  Jakub Jelinek  <jakub@redhat.com>
20128         PR sanitizer/70712
20129         * cfgexpand.c (expand_stack_vars): Fix typo.
20131 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
20133         * system.h (list, map, set, vector): Include conditionally.
20134         * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
20135         * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
20136         * ipa-icf.c (INCLUDE_LIST): Define.
20137         * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
20138         * config/sh/sh.c (INCLUDE_VECTOR): Define.
20139         * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
20140         (INCLUDE_LIST, INCLUDE_VECTOR): Define.
20141         * cp/logic.cc (INCLUDE_LIST): Define.
20142         * fortran/trans-common.c (INCLUDE_MAP): Define.
20144 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
20146         * auto-profile.c: Remove <string.h> include.
20147         * ipa-icf-gimple.c: Remove <list> include.
20148         * diagnostic.c: Remove <new> include.
20149         * genmatch.c: Likewise.
20150         * pretty-print.c: Likewise.
20151         * toplev.c: Likewise
20152         * c/c-objc-common.c: Likewise.
20153         * cp/error.c: Likewise.
20154         * fortran/error.c: Likewise.
20156 2016-04-22  Richard Biener  <rguenther@suse.de>
20158         * lto-streamer-in.c (input_ssa_names): Do not allocate
20159         GIMPLE_NOP for all SSA names.
20160         * lto-streamer-out.c (output_ssa_names): Do not output
20161         SSA names that should have been released.
20163 2016-04-22  Richard Biener  <rguenther@suse.de>
20165         PR tree-optimization/70740
20166         * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
20167         VDEF.
20169 2016-04-21  H.J. Lu  <hongjiu.lu@intel.com>
20171         PR target/70750
20172         * config/i386/predicates.md (call_insn_operand): Replace
20173         sibcall_memory_operand with memory_operand.
20175 2016-04-21  Patrick Palka  <ppalka@gcc.gnu.org>
20177         * tree-vrp.c (register_edge_assert_for_2): Remove redundant
20178         has_single_use() tests.
20179         (register_edge_assert_for_1): Likewise.
20180         (find_assert_locations_1): Check the liveness bitmap instead of
20181         checking has_single_use().
20183 2016-04-21  Kirill Yukhin  <kirill.yukhin@intel.com>
20185         PR target/70728
20186         * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
20187         Extract AVX-512BW constraint from AVX.
20189 2016-04-21  Richard Biener  <rguenther@suse.de>
20191         PR tree-optimization/70725
20192         * tree-if-conv.c (if_convertible_phi_p): Adjust guard
20193         for phi_convertible_by_degenerating_args.
20194         (predicate_all_scalar_phis): Handle single-argument PHIs.
20196 2016-04-21  Richard Biener  <rguenther@suse.de>
20198         PR middle-end/70747
20199         * fold-const.c (fold_comparison): Return properly typed
20200         constant boolean.
20202 2016-04-21  Bin Cheng  <bin.cheng@arm.com>
20204         PR tree-optimization/70715
20205         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
20206         after expanding BASE using expand_simple_operations.
20208 2016-04-21  Marc Glisse  <marc.glisse@inria.fr>
20210         * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
20211         New transformations.
20213 2016-04-21  Marc Glisse  <marc.glisse@inria.fr>
20215         * match.pd (min(int_max, x), max(int_min, x)): New transformations.
20217 2016-04-20  Jan Hubicka  <jh@suse.cz>
20219         * ipa-inline.c (can_inline_edge_p): Pass caller info to
20220         ultiimate_alias_target.
20221         (update_callee_keys): Likewise.
20222         (lookup_recursive_calls): Likewise.
20223         (speculation_useful_p): Likewise.
20225 2016-04-20  Jan Hubicka  <jh@suse.cz>
20227         PR ipa/70018
20228         * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
20229         (set_nothrow_flag_1): ... this; handle interposition correctly;
20230         recurse on aliases and thunks.
20231         (cgraph_node::set_nothrow_flag): New.
20232         * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
20233         functions compiled with non-call exceptions that binds to current
20234         def.
20235         (propagate_nothrow): Be safe WRT interposition.
20236         * cgraph.h (set_nothrow_flag): Update prototype.
20238 2016-04-18  Jan Hubicka  <jh@suse.cz>
20240         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
20241         max_loop_iterations_int.
20242         (tree_unswitch_outer_loop): Likewise.
20244 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
20246         PR tree-optimization/69489
20247         * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
20248         (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
20249         Revise dump message.
20250         (if_convertible_bb_p): Remove check on edge count of basic block's
20251         predecessors.
20253 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
20255         PR tree-optimization/56625
20256         PR tree-optimization/69489
20257         * tree-data-ref.h (DR_INNERMOST): New macro.
20258         * tree-if-conv.c (innermost_loop_behavior_hash): New class for
20259         hashing struct innermost_loop_behavior.
20260         (ref_DR_map): Remove.
20261         (innermost_DR_map): New map.
20262         (baseref_DR_map): Revise comment.
20263         (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
20264         to innermost_DR_map accroding to its innermost loop behavior.
20265         (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
20266         to its innermost loop behavior.
20267         (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
20268         Add initialization for innermost_DR_map.  Record memory reference
20269         in DR_BASE_ADDRESS if the reference is compound one or it doesn't
20270         have innermost loop behavior.
20271         (if_convertible_loop_p): Remove release for ref_DR_map.  Release
20272         innermost_DR_map.
20274 2016-04-20  Uros Bizjak  <ubizjak@gmail.com>
20276         * config/i386/i386.md (*lea<mode>_general_1): Rename from
20277         *lea_general_1.  Use explicit SWI12 mode interator.
20278         (*lea<mode>_general_2): Rename from *lea_general_2.
20279         Use explicit SWI12 mode interator.
20280         (*lea<mode>_general_3): Rename from *lea_general_3.
20281         Use explicit SWI12 mode interator.
20282         (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
20283         Use explicit SWI12 mode interator.
20284         (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
20285         Use explicit SWI48 mode interator.
20287 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
20289         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
20290         Short-cut unaligned load and store cases.  Handle all integer
20291         vector modes.
20292         (ix86_expand_vector_move_misalign): Short-cut unaligned load
20293         and store cases.  Call ix86_avx256_split_vector_move_misalign
20294         directly without checking mode class.
20296 2016-04-20  Andrew Pinski  <apinski@cavium.com>
20297             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20299         PR target/64971
20300         * config/aarch64/aarch64.md (sibcall): Force call
20301         address to be DImode for ILP32.
20302         (sibcall_value): Likewise.
20304 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
20306         * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
20308 2016-04-20  Richard Biener  <rguenther@suse.de>
20310         * gimple-match.h (maybe_build_generic_op): Adjust prototype.
20311         * gimple-match-head.c (maybe_build_generic_op): Pass all ops
20312         by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
20313         (maybe_push_res_to_seq): Adjust.
20314         * gimple-fold.c (maybe_build_generic_op): Likewise.
20316 2016-04-20  Marek Polacek  <polacek@redhat.com>
20318         * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
20319         rather than true.
20321 2016-04-20  Ilya Enkovich  <ilya.enkovich@intel.com>
20323         * config/i386/sse.md (vec_unpacks_lo_hi): Always
20324         use kmovw to support AVX512F target.
20326 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
20328         * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
20330 2016-04-20  Marek Polacek  <polacek@redhat.com>
20332         PR tree-optimization/70725
20333         * tree-if-conv.c (is_false_predicate): New function.
20334         (predicate_mem_writes): Use it.
20336 2016-04-20  Richard Biener  <rguenther@suse.de>
20338         PR tree-optimization/70726
20339         * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
20340         shift amounts from a pattern stmt operand.
20342 2016-04-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20344         PR target/70674
20345         * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
20346         stack_restore_from_fpr pattern when restoring r15.
20347         (s390_optimize_prologue): Strip away the memory barrier in the
20348         parallel when trying to get rid of restore insns.
20349         * config/s390/s390.md ("stack_restore_from_fpr"): New insn
20350         definition for loading the stack pointer from an FPR.  Compared to
20351         the normal move insn this pattern includes a full memory barrier.
20353 2016-04-19  Jakub Jelinek  <jakub@redhat.com>
20355         PR middle-end/70680
20356         * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
20357         implicitly linear or lastprivate iterator on the outer context.
20359 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
20361         * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
20362         alignment check.
20363         * config/i386/i386.md (ssememalign): Removed.
20364         * config/i386/sse.md: Remove ssememalign attribute from patterns.
20366 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
20368         PR target/69201
20369         * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
20370         const short * to __builtin_ia32_loaddquhi512_mask.
20371         (_mm512_maskz_loadu_epi16): Likewise.
20372         (_mm512_mask_storeu_epi16): Pass short * to
20373         __builtin_ia32_storedquhi512_mask.
20374         (_mm512_mask_loadu_epi8): Pass const char * to
20375         __builtin_ia32_loaddquqi512_mask.
20376         (_mm512_maskz_loadu_epi8): Likewise.
20377         (_mm512_mask_storeu_epi8): Pass char * to
20378         __builtin_ia32_storedquqi512_mask.
20379         * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
20380         const double * to __builtin_ia32_loadupd512_mask.
20381         (_mm512_mask_loadu_pd): Likewise.
20382         (_mm512_maskz_loadu_pd): Likewise.
20383         (_mm512_storeu_pd): Pass double * to
20384         __builtin_ia32_storeupd512_mask.
20385         (_mm512_mask_storeu_pd): Likewise.
20386         (_mm512_loadu_ps): Pass const float * to
20387         __builtin_ia32_loadups512_mask.
20388         (_mm512_mask_loadu_ps): Likewise.
20389         (_mm512_maskz_loadu_ps): Likewise.
20390         (_mm512_storeu_ps): Pass float * to
20391         __builtin_ia32_storeups512_mask.
20392         (_mm512_mask_storeu_ps): Likewise.
20393         (_mm512_mask_loadu_epi64): Pass const long long * to
20394         __builtin_ia32_loaddqudi512_mask.
20395         (_mm512_maskz_loadu_epi64): Likewise.
20396         (_mm512_mask_storeu_epi64): Pass long long *
20397         to __builtin_ia32_storedqudi512_mask.
20398         (_mm512_loadu_si512): Pass const int * to
20399         __builtin_ia32_loaddqusi512_mask.
20400         (_mm512_mask_loadu_epi32): Likewise.
20401         (_mm512_maskz_loadu_epi32): Likewise.
20402         (_mm512_storeu_si512): Pass int * to
20403         __builtin_ia32_storedqusi512_mask.
20404         (_mm512_mask_storeu_epi32): Likewise.
20405         * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
20406         char * to __builtin_ia32_storedquqi256_mask.
20407         (_mm_mask_storeu_epi8): Likewise.
20408         (_mm256_mask_loadu_epi16): Pass const short * to
20409         __builtin_ia32_loaddquhi256_mask.
20410         (_mm256_maskz_loadu_epi16): Likewise.
20411         (_mm_mask_loadu_epi16): Pass const short * to
20412         __builtin_ia32_loaddquhi128_mask.
20413         (_mm_maskz_loadu_epi16): Likewise.
20414         (_mm256_mask_loadu_epi8): Pass const char * to
20415         __builtin_ia32_loaddquqi256_mask.
20416         (_mm256_maskz_loadu_epi8): Likewise.
20417         (_mm_mask_loadu_epi8): Pass const char * to
20418         __builtin_ia32_loaddquqi128_mask.
20419         (_mm_maskz_loadu_epi8): Likewise.
20420         (_mm256_mask_storeu_epi16): Pass short * to.
20421         __builtin_ia32_storedquhi256_mask.
20422         (_mm_mask_storeu_epi16): Pass short * to.
20423         __builtin_ia32_storedquhi128_mask.
20424         * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
20425         const double * to __builtin_ia32_loadupd256_mask.
20426         (_mm256_maskz_loadu_pd): Likewise.
20427         (_mm_mask_loadu_pd): Pass onst double * to
20428         __builtin_ia32_loadupd128_mask.
20429         (_mm_maskz_loadu_pd): Likewise.
20430         (_mm256_mask_storeu_pd): Pass double * to
20431         __builtin_ia32_storeupd256_mask.
20432         (_mm_mask_storeu_pd): Pass double * to
20433         __builtin_ia32_storeupd128_mask.
20434         (_mm256_mask_loadu_ps): Pass const float * to
20435         __builtin_ia32_loadups256_mask.
20436         (_mm256_maskz_loadu_ps): Likewise.
20437         (_mm_mask_loadu_ps): Pass const float * to
20438         __builtin_ia32_loadups128_mask.
20439         (_mm_maskz_loadu_ps): Likewise.
20440         (_mm256_mask_storeu_ps): Pass float * to
20441         __builtin_ia32_storeups256_mask.
20442         (_mm_mask_storeu_ps): ass float * to
20443         __builtin_ia32_storeups128_mask.
20444         (_mm256_mask_loadu_epi64): Pass const long long * to
20445         __builtin_ia32_loaddqudi256_mask.
20446         (_mm256_maskz_loadu_epi64): Likewise.
20447         (_mm_mask_loadu_epi64): Pass const long long * to
20448         __builtin_ia32_loaddqudi128_mask.
20449         (_mm_maskz_loadu_epi64): Likewise.
20450         (_mm256_mask_storeu_epi64): Pass long long * to
20451         __builtin_ia32_storedqudi256_mask.
20452         (_mm_mask_storeu_epi64): Pass long long * to
20453         __builtin_ia32_storedqudi128_mask.
20454         (_mm256_mask_loadu_epi32): Pass const int * to
20455         __builtin_ia32_loaddqusi256_mask.
20456         (_mm256_maskz_loadu_epi32): Likewise.
20457         (_mm_mask_loadu_epi32): Pass const int * to
20458         __builtin_ia32_loaddqusi128_mask.
20459         (_mm_maskz_loadu_epi32): Likewise.
20460         (_mm256_mask_storeu_epi32): Pass int * to
20461         __builtin_ia32_storedqusi256_mask.
20462         (_mm_mask_storeu_epi32): Pass int * to
20463         __builtin_ia32_storedqusi128_mask.
20464         * config/i386/i386-builtin-types.def (PCSHORT): New.
20465         (PINT64): Likewise.
20466         (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
20467         (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
20468         (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
20469         (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
20470         (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
20471         (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
20472         (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
20473         (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
20474         (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
20475         (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
20476         (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
20477         (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
20478         (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
20479         (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
20480         (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
20481         (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
20482         (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
20483         (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
20484         (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
20485         (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
20486         (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
20487         (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
20488         (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
20489         (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
20490         (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
20491         (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
20492         (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
20493         (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
20494         (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
20495         (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
20496         (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
20497         (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
20498         (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
20499         (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
20500         (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
20501         (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
20502         (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
20503         (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
20504         (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
20505         (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
20506         (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
20507         (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
20508         (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
20509         (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
20510         (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
20511         (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
20512         (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
20513         (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
20514         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
20515         use UNSPEC_STOREU.
20516         (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
20517         (ix86_avx256_split_vector_move_misalign): Don't use unaligned
20518         load nor store.
20519         (ix86_expand_vector_move_misalign): Likewise.
20520         (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
20521         to scalar function prototype for unaligned load/store builtins.
20522         (ix86_expand_special_args_builtin): Updated.
20523         * config/i386/sse.md (UNSPEC_LOADU): Removed.
20524         (UNSPEC_STOREU): Likewise.
20525         (VI_ULOADSTORE_BW_AVX512VL): Likewise.
20526         (VI_ULOADSTORE_F_AVX512VL): Likewise.
20527         (ssescalarsize): Handle V4TI, V2TI and V1TI.
20528         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
20529         (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
20530         (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
20531         (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
20532         (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
20533         (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
20534         (sse2_avx_avx512f>_storedqu<mode>): Likewise.
20535         (<avx512>_storedqu<mode>_mask): Likewise.
20536         (*sse4_2_pcmpestr_unaligned): Likewise.
20537         (*sse4_2_pcmpistr_unaligned): Likewise.
20538         (*mov<mode>_internal): Renamed to ...
20539         (mov<mode>_internal): This.  Remove check of AVX and IAMCU on
20540         misaligned operand.  Replace vmovdqu64 with vmovdqu<ssescalarsize>.
20541         (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
20542         (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
20544 2016-04-19  Richard Biener  <rguenther@suse.de>
20546         PR tree-optimization/70171
20547         * tree-ssa-phiprop.c: Include stor-layout.h.
20548         (phiprop_insert_phi): Handle the aggregate copy case.
20549         (propagate_with_phi): Likewise.
20551 2016-04-19  Uros Bizjak  <ubizjak@gmail.com>
20553         * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
20554         instead of simplify_gen_subreg (... , 0).
20555         (ix86_delegitimize_address): Ditto.
20556         (ix86_split_divmod): Ditto.
20557         (ix86_split_copysign_const): Ditto.
20558         (ix86_split_copysign_var): Ditto.
20559         (ix86_expand_args_builtin): Ditto.
20560         (ix86_expand_round_builtin): Ditto.
20561         (ix86_expand_special_args_builtin): Ditto.
20562         * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
20563         (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
20564         (udivmodqi4): Ditto.
20565         (absneg splitters): Ditto.
20566         (*jcc_bt<mode>_1): Ditto.
20568 2016-04-19  Richard Biener  <rguenther@suse.de>
20570         PR tree-optimization/70724
20571         * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
20572         restoring out from ...
20573         (free_scc_vn): ... here.
20574         * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
20575         * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
20576         tail merging.
20577         (pass_fre::execute): Restore SSA info.
20579 2016-04-19  Richard Biener  <rguenther@suse.de>
20581         * gimple-walk.h (struct walk_stmt_info): Add stmt member.
20582         * gimple-walk.c (walk_gimple_op): Initialize it.
20583         (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
20584         * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
20585         remapping SSA names of defs.
20586         (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
20587         adjustment.
20589 2016-04-18  Vladimir Makarov  <vmakarov@redhat.com>
20591         PR middle-end/70689
20592         * lra-constraints.c (equiv_substition_p): New.
20593         (process_alt_operands): Use it.
20594         (swap_operands): Swap it.
20595         (curr_insn_transform): Update it.
20597 2016-04-18  Michael Matz  <matz@suse.de>
20599         * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
20600         (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
20601         * tree-core.h (tree_type_common.align): Use bit-field.
20602         (tree_type_common.spare): New.
20603         (tree_decl_common.off_align): Make smaller.
20604         (tree_decl_common.align): Use bit-field.
20606         * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
20607         * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
20608         (scan_sharing_clauses): Ditto.
20609         (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
20610         (omp_finish_file): Ditto.
20611         * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
20612         (layout_decl): Ditto.
20613         (relayout_decl): Ditto.
20614         (finalize_record_size): Use SET_TYPE_ALIGN.
20615         (finalize_type_size): Ditto.
20616         (finish_builtin_struct): Ditto.
20617         (layout_type): Ditto.
20618         (initialize_sizetypes): Ditto.
20619         * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
20620         * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
20621         (lookup_field_for_decl): Use SET_DECL_ALIGN.
20622         (get_chain_field): Ditto.
20623         (get_trampoline_type): Ditto.
20624         (get_nl_goto_field): Ditto.
20625         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
20626         SET_DECL_ALIGN.
20627         (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
20628         * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
20629         * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
20630         (build_qualified_type): Use SET_TYPE_ALIGN.
20631         (build_aligned_type, build_range_type_1): Ditto.
20632         (build_atomic_base): Ditto.
20633         (build_common_tree_nodes): Ditto.
20634         * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
20635         (expand_one_stack_var_at): Ditto.
20636         * coverage.c (build_var): Use SET_DECL_ALIGN.
20637         * except.c (init_eh): Ditto.
20638         * function.c (assign_parm_setup_block): Ditto.
20639         * symtab.c (increase_alignment_1): Ditto.
20640         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
20641         * tree-vect-stmts.c (ensure_base_align): Ditto.
20642         * varasm.c (align_variable): Ditto.
20643         (assemble_variable): Ditto.
20644         (build_constant_desc): Ditto.
20645         (output_constant_def_contents): Ditto.
20647         * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
20648         * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
20649         * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
20650         * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
20651         * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
20653 2016-04-18  H.J. Lu  <hongjiu.lu@intel.com>
20655         PR target/70708
20656         * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
20657         replace %vmovsd with "%vmovq".
20658         (vec_concatv2df): Likewise.
20660 2016-04-18  Uros Bizjak  <ubizjak@gmail.com>
20662         * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
20663         (*vec_extractv2si_0): Ditto.
20664         * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
20665         (zero_extended_scalar_load_operand splitters): Ditto.
20666         (vec_extract splitters): Ditto.
20667         (*vec_extractv4si_0_zext): Ditto.
20668         (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
20669         and lowpart_subreg.
20670         (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
20671         (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
20672         (*sse4_1_extractps): Use lowpart_subreg.
20673         * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
20675 2016-04-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20677         * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
20678         gld requirements.
20679         (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
20680         Mention Solaris 11 packaging changes.
20681         Update gas and gld requirements.
20682         Remove reference to pre-Solaris 10 bug.
20683         (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
20684         systems and bugs.
20685         (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
20686         with cc.
20688 2016-04-17  Jan Hubicka  <jh@suse.cz>
20690         * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
20691         max_loop_iterations_int.
20693 2016-04-18  Richard Biener  <rguenther@suse.de>
20695         PR tree-optimization/43434
20696         * tree-ssa-structalias.c (struct vls_data): New.
20697         (visit_loadstore): Handle all pointer-based accesses.
20698         (compute_dependence_clique): Compute a bitmap of restrict tags
20699         assigned bases and pass it to visit_loadstore.
20701 2016-04-18  Matthew Wahab  <matthew.wahab@arm.com>
20703         PR target/70711
20704         * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
20705         armv8.1-a and armv8.1-a+crc.
20707 2016-04-18  Richard Biener  <rguenther@suse.de>
20709         PR tree-optimization/70701
20710         * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
20711         references after translating through a memcpy.
20713 2016-04-18  Richard Biener  <rguenther@suse.de>
20715         * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
20716         (compute_antic): ... here.  For partial antic use regular
20717         postorder and scrap iteration.
20718         (compute_partial_antic_aux): Remove unused return value.
20719         (init_pre): Do not allocate postorder.
20720         (fini_pre): Do not free postorder.
20722 2016-04-18  Richard Biener  <rguenther@suse.de>
20724         PR middle-end/37870
20725         * expmed.c (extract_bit_field_1): Remove broken case
20726         using a wider MODE_INT mode.
20728 2016-04-18  Segher Boessenkool  <segher@kernel.crashing.org>
20730         * has-brig.c (lendian16): Don't try to use __builtin_bswap16
20731         unless compiling with at least GCC-4.8.
20733 2016-04-17  Jan Hubicka  <jh@suse.cz>
20735         PR bootstrap/70706
20736         * graphite.c (graphite_finalize): Update call to
20737         tree_estimate_probability.
20738         * predict.h (tree_estimate_probability): Update prototype.
20740 2016-04-17  Jan Hubicka  <jh@suse.cz>
20742         * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
20743         (tree_estimate_probability): Likewise.
20744         (pass_profile::execute): Update.
20745         (report_predictor_hitrates): New function.
20746         * profile.c (compute_branch_probabilities): Use it.
20747         * predict.h (report_predictor_hitrates): Declare.
20749 2016-04-17  Jan Hubicka  <jh@suse.cz>
20751         PR ipa/70018
20752         * cgraph.h (cgraph_node::set_const_flag,
20753         cgraph_node::set_pure_flag): Update prototype to return bool;
20754         update comment.
20755         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
20756         of interposable symbol are interposable, too.
20757         (cgraph_set_const_flag_1): Rename to ...
20758         (set_const_flag_1): ... this one; change to self recursive function
20759         instead of call_for_symbol_thunks_and_aliases. Handle correctly
20760         clearnig the flag in all variants and also virtual thunks of const
20761         functions are pure; track if any change was done.
20762         (cgraph_node::set_const_flag): Update.
20763         (struct set_pure_flag_info): New struct.
20764         (cgraph_set_pure_flag_1): Rename to ...
20765         (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
20766         rather than pointer encoded flags; track if any changes was done;
20767         handle correctly clearning flag and setting flag of aliases already
20768         declared const.
20769         (cgraph_node::set_pure_flag): Update.
20770         (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
20772 2016-04-17  Tom de Vries  <tom@codesourcery.com>
20774         PR other/70433
20775         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
20776         backslash in label.
20778 2016-04-17  Tom de Vries  <tom@codesourcery.com>
20780         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
20781         '{}<> ' as escape-for-record.
20783 2016-04-17  Tom de Vries  <tom@codesourcery.com>
20785         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
20786         structure.
20788 2016-04-17  Tom de Vries  <tom@codesourcery.com>
20790         PR other/70185
20791         * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
20792         * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
20793         * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
20794         * passes.c (finish_optimization_passes): Only call
20795         finish_graph_dump_file if dfi->graph_dump_initialized.
20796         (execute_function_dump, pass_init_dump_file): Use
20797         dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
20799 2016-04-17  Tom de Vries  <tom@codesourcery.com>
20801         PR tree-optimization/70256
20802         * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
20803         (debug_varmap): New function.
20805 2016-04-17  Tom de Vries  <tom@codesourcery.com>
20807         PR other/70183
20808         * passes.c (pass_manager::register_pass): Propagate pflags.
20810 2016-04-17  Tom de Vries  <tom@codesourcery.com>
20812         PR other/68875
20813         * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
20814         * passes.c (pass_manager::pass_manager): Declare and init p_start in
20815         INSERT_PASSES_AFTER.  Add pass parameter to TERMINATE_PASS_LIST, and
20816         check if it's equal to p_start.
20817         * passes.def: Add arguments to TERMINATE_PASS_LISTs.
20819 2016-04-15  Jan Hubicka  <jh@suse.cz>
20821         PR ipa/70018
20822         * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
20823         function does not bind to current def.
20824         * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
20825         handle conservatively calls to functions that does not need to bind
20826         to current def.
20827         (check_call): Update call of worse_state.
20828         (ignore_edge_for_nothrow): Update.
20829         (ignore_edge_for_pure_const): Likewise.
20830         (propagate_pure_const): Update calls to worse_state.
20831         (skip_function_for_local_pure_const): Reformat comments.
20833 2016-04-15  Jan Hubicka  <jh@suse.cz>
20835         PR ipa/70018
20836         * cgraph.c (cgraph_node::get_availability): Add REF parameter.
20837         (cgraph_node::function_symbol): Likewise.
20838         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
20839         * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
20840         (symtab_node::ultimate_alias_target): Add REF parameter.
20841         (symtab_node::binds_to_current_def_p): Declare.
20842         (symtab_node;:ultimate_alias_target_1): Add REF parameter.
20843         (cgraph_node::function_symbol): Likewise.
20844         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
20845         (cgraph_node::get_availability): Likewise.
20846         (cgraph_edge::binds_to_current_def_p): New inline function.
20847         (varpool_node::get_availability): Add REF parameter.
20848         (varpool_node::ultimate_alias_target): Likewise.
20849         * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
20850         (symtab_node::binds_to_current_def_p): Likewise.
20851         * varpool.c (varpool_node::get_availability): Likewise.
20853 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
20855         PR target/70662
20856         * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
20857         Fix mode size check.
20859 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
20861         * BASE-VER: Set to 7.0.0.
20863 2016-04-15  Alexander Monakov  <amonakov@ispras.ru>
20865         * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
20867 2016-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20869         * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
20870         architecture revisions.
20872 2016-04-15  Bernd Schmidt  <bschmidt@redhat.com>
20874         * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
20875         * config/i386/i386.c (ix86_using_red_zone): No longer static.
20876         * config/i386/i386.md (stack decrement to push peepholes): Guard
20877         with !x86_using_red_zone ().
20879 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
20881         PR c++/70675
20882         * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
20883         to dump_generic_node.
20884         (NIY): Pass also flags to do_niy.
20886 2016-04-15  Thomas Schwinge  <thomas@codesourcery.com>
20888         * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
20889         (simd_clone_vector_of_formal_parm_types)
20890         (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
20891         (simd_clone_mangle, simd_clone_create)
20892         (simd_clone_adjust_return_type, create_tmp_simd_array)
20893         (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
20894         (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
20895         (ipa_simd_modify_function_body, simd_clone_linear_addend)
20896         (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
20897         (pass_data_omp_simd_clone, class pass_omp_simd_clone)
20898         (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
20899         * omp-simd-clone.c: ... this new file.
20900         (simd_clone_vector_of_formal_parm_types): Make it static.
20901         * Makefile.in (OBJS): Add omp-simd-clone.o.
20903 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
20905         PR target/70662
20906         * config/i386/sse.md: Use proper memory operand modifiers.
20909 2016-04-15  Richard Biener  <rguenther@suse.de>
20910         Alan Modra  <amodra@gmail.com>
20912         PR tree-optimization/70130
20913         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
20914         when alignment stays not the same and no not use the realign
20915         scheme then.
20917 2016-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
20919         PR target/70669
20920         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
20921         direct move handlers for KFmode. Change TFmode handlers test from
20922         FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
20924 2016-04-14  Jakub Jelinek  <jakub@redhat.com>
20926         PR c++/70594
20927         * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
20928         * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
20929         (inlined_polymorphic_ctor_dtor_block_p): Use it.
20930         * tree-ssa-live.c (remove_unused_scope_block_p): When
20931         in_ctor_dtor_block, avoid discarding not just BLOCKs with
20932         BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
20933         block_ultimate_origin is FUNCTION_DECL.
20934         (remove_unused_locals): If current_function_decl is
20935         polymorphic_ctor_dtor_p, pass initial true to
20936         remove_unused_scope_block_p' is_ctor_dtor_block.
20938 2016-04-14  Martin Sebor  <msebor@redhat.com>
20940         PR c++/69517
20941         PR c++/70019
20942         PR c++/70588
20943         * doc/extend.texi (Variable Length): Revert.
20945 2016-04-14  Marek Polacek  <polacek@redhat.com>
20946             Jan Hubicka  <hubicka@ucw.cz>
20948         PR c++/70029
20949         * tree.c (verify_type): Disable the canonical type of main variant
20950         check.
20952 2016-04-14  Jason Merrill  <jason@redhat.com>
20954         * cfgexpand.c, expr.c: Revert previous change.
20956 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
20958         PR middle-end/70643
20959         * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
20960         when building a mem ref for the incoming reduction variable.
20962 2016-04-14  Richard Biener  <rguenther@suse.de>
20964         PR tree-optimization/70614
20965         * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
20966         loop if the evolution dropped to chrec_dont_know.
20967         (interpret_condition_phi): Likewise.
20969 2016-04-14  Richard Biener  <rguenther@suse.de>
20971         PR tree-optimization/70623
20972         * tree-ssa-pre.c (changed_blocks): Make global ...
20973         (compute_antic): ... local here.  Move and fix worklist
20974         handling here.  Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
20975         (compute_antic_aux): Add dumping for MAX assumed succs.  Remove
20976         worklist handling, dump when ANTIC_IN changed.
20977         (compute_partial_antic_aux): Remove worklist handling.
20978         (init_pre): Do not compute post dominators.  Add a comment about
20979         the CFG order chosen.
20980         (fini_pre): Do not free post dominators.
20982 2016-04-13  Martin Sebor  <msebor@redhat.com>
20984         PR c++/69517
20985         PR c++/70019
20986         PR c++/70588
20987         * doc/extend.texi (Variable Length): Document C++ specifics.
20989 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
20991         PR c++/70641
20992         * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
20993         on all recursive call stmts.  Return TODO_cleanup_cfg if any dead
20994         eh edges have been purged.
20996         PR c++/70594
20997         * tree-sra.c (create_access_replacement,
20998         get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
20999         gets fancy name.
21000         * tree-pretty-print.c (dump_fancy_name): New function.
21001         (dump_decl_name, dump_generic_node): Use it.
21003 2016-04-13  Jason Merrill  <jason@redhat.com>
21005         * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
21006         * expr.c (expand_expr_real_1): Likewise.
21008 2016-04-13  Ilya Enkovich  <ilya.enkovich@intel.com>
21010         * config/i386/i386.md (kunpckhi): Swap operands.
21011         (kunpcksi): Likewise.
21012         (kunpckdi): Likewise.
21013         * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
21014         (vec_pack_trunc_<mode>): Likewise.
21016 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
21018         PR debug/70628
21019         * explow.c (convert_memory_address_addr_space_1): Formatting fix.
21021         PR middle-end/70633
21022         * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
21023         gimplification turns some element into non-constant.
21025         PR debug/70628
21026         * rtl.h (convert_memory_address_addr_space_1): New prototype.
21027         * explow.c (convert_memory_address_addr_space_1): No longer static,
21028         add NO_EMIT argument and don't call convert_modes if true, pass
21029         it down recursively, remove break after return.
21030         (convert_memory_address_addr_space): Adjust caller.
21031         * simplify-rtx.c (simplify_unary_operation_1): Call
21032         convert_memory_address_addr_space_1 instead of convert_memory_address,
21033         if it returns NULL, don't simplify.
21035 2016-04-12  Eric Botcazou  <ebotcazou@adacore.com>
21037         PR target/70630
21038         * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
21040 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
21042         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
21043         Bump the upper SIMDLEN limits, so that if the return type or
21044         characteristic type if the return type is void can be passed in
21045         all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
21046         allowed.
21048 2016-04-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
21050         PR target/70640
21051         * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
21052         Do not use "=" constraint on an input constraint.
21053         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
21054         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
21055         (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
21056         generates (neg (abs ...)) instead of (abs ...).
21058 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
21060         PR rtl-optimization/70596
21061         * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
21062         just invalidate LRA data and reset them.  Adjust dump wording.
21064 2016-04-12  Martin Liska  <mliska@suse.cz>
21066         Revert
21067         2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
21069         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
21070         estimates here.
21071         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
21072         max_loop_iterations_int.
21073         (tree_unswitch_outer_loop): Likewise.
21074         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
21075         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
21077 2016-04-12  Tom de Vries  <tom@codesourcery.com>
21079         PR tree-optimization/68756
21080         * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
21081         instead of new_name.
21083 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
21085         PR tree-optimization/70602
21086         * tree-sra.c (generate_subtree_copies): Don't write anything into
21087         constant pool decls.
21089         * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
21090         regardless whether there are depend clauses or not.
21092 2016-04-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
21094         PR target/70381
21095         * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
21096         target attribute and pragma from changing the -mfloat128
21097         and -mfloat128-hardware options.
21099         * doc/extend.texi (Additional Floating Types): Document PowerPC
21100         __float128 restrictions.
21102 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
21104         PR target/70133
21105         * config/aarch64/driver-aarch64.c
21106         (aarch64_get_extension_string_for_isa_flags): New.
21107         (arch_extension): Rename to...
21108         (aarch64_arch_extension): ...This.
21109         (ext_to_feat_string): Rename to...
21110         (aarch64_extensions): ...This.
21111         (aarch64_core_data): Keep track of architecture extension flags.
21112         (cpu_data): Rename to...
21113         (aarch64_cpu_data): ...This.
21114         (aarch64_arch_driver_info): Keep track of architecture extension
21115         flags.
21116         (get_arch_name_from_id): Rename to...
21117         (get_arch_from_id): ...This, change return type.
21118         (host_detect_local_cpu): Update and reformat for renames, handle
21119         extensions through common infrastructure.
21121 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
21123         PR target/70133
21124         * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
21125         track of a canonical flag name.
21126         (all_extensions): Likewise.
21127         (arch_to_arch_name): Also track extension flags enabled by the arch.
21128         (all_architectures): Likewise.
21129         (aarch64_parse_extension): Move to here.
21130         (aarch64_get_extension_string_for_isa_flags): Take a new argument,
21131         rework.
21132         (aarch64_rewrite_selected_cpu): Update for above change.
21133         * config/aarch64/aarch64-option-extensions.def: Rework the way flags
21134         are handled, such that the single explicit value enabled by an
21135         extension is kept seperate from the implicit values it also enables.
21136         * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
21137         to here.
21138         (aarch64_parse_extension): New.
21139         * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
21140         here to config/aarch64/aarch64-protos.h.
21141         (aarch64_parse_extension): Move from here to
21142         common/config/aarch64/aarch64-common.c.
21143         (aarch64_option_print): Update.
21144         (aarch64_declare_function_name): Likewise.
21145         (aarch64_start_file): Likewise.
21146         * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
21147         the canonical flag for extensions.
21148         * config.gcc (aarch64*-*-*): Extend regex for capturing extension
21149         flags.
21151 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
21153         * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
21154         AARCH64_FL_CRC.
21156 2016-04-09  Tom de Vries  <tom@codesourcery.com>
21158         PR tree-optimization/68953
21159         * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
21160         first to last subscript.
21162 2016-04-09  Jakub Jelinek  <jakub@redhat.com>
21164         PR tree-optimization/70586
21165         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
21166         for any calls.
21168 2016-04-08  Cesar Philippidis  <cesar@codesourcery.com>
21170         PR lto/70289
21171         PR ipa/70348
21172         PR tree-optimization/70373
21173         PR middle-end/70533
21174         PR middle-end/70534
21175         PR middle-end/70535
21176         * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
21177         clauses for acc parallel reductions as necessary.  Error on those
21178         that are private.
21179         * omp-low.c (scan_sharing_clauses): Don't install variables which
21180         are used in acc parallel reductions.
21181         (lower_rec_input_clauses): Remove dead code.
21182         (lower_oacc_reductions): Add support for reference reductions.
21183         (lower_reduction_clauses): Remove dead code.
21184         (lower_omp_target): Don't remap variables appearing in acc parallel
21185         reductions.
21186         * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
21188 2016-04-08  Jakub Jelinek  <jakub@redhat.com>
21190         PR middle-end/70593
21191         * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
21192         with multiple SSA_NAME defs, force the outputs other than first
21193         to be live before calling live_track_process_def on each output.
21195         PR rtl-optimization/70574
21196         * fwprop.c (forward_propagate_and_simplify): Don't add
21197         REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
21198         (try_fwprop_subst): Don't add REG_EQUAL note if there are any
21199         paradoxical subregs within *loc.
21201 2016-04-08  Thomas Schwinge  <thomas@codesourcery.com>
21203         * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
21204         -ftree-parallelize-loops={0,1}.
21205         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
21206         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
21207         * config/ia64/hpux.h (LIB_SPEC): Likewise.
21208         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
21209         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
21211 2016-04-08  Maxim Ostapenko  <m.ostapenko@samsung.com>
21213         PR sanitizer/70541
21214         * asan.c (instrument_derefs): If we get unknown location, extract it
21215         with EXPR_LOCATION.
21216         (maybe_instrument_call): Instrument gimple_call's arguments if needed.
21218 2016-04-08  Tom de Vries  <tom@codesourcery.com>
21220         * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
21221         implicit firstprivate clause.
21223 2016-04-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21225         PR target/70566
21226         * config/arm/thumb2.md (tst + branch-> lsls + branch
21227         peephole below *orsi_not_shiftsi_si): Require that condition
21228         register is dead after the peephole.
21229         (second peephole after the above): Likewise.
21231 2016-04-08  Alan Modra  <amodra@gmail.com>
21233         PR target/70117
21234         * builtins.c (fold_builtin_classify): For IBM extended precision,
21235         look at just the high-order double to test for NaN.
21236         (fold_builtin_interclass_mathfn): Similarly for Inf.  For isnormal
21237         test just the high double for Inf but both doubles for subnormal
21238         limit.
21240 2016-04-07  Jakub Jelinek  <jakub@redhat.com>
21242         * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
21243         * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
21244         node->simdclone->mask_mode != VOIDmode masks.
21245         (simd_clone_adjust_argument_types): Likewise.  Move sc var definition
21246         earlier, use it instead of node->simdclone.
21247         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
21248         Set clonei->mask_mode.
21250 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
21252         PR c/70436
21253         * parser.c (cp_parser_iteration_statement): New parameter IF_P.
21254         Pass it through to cp_parser_already_scoped_statement.
21255         (cp_parser_already_scoped_statement): New parameter IF_P.  Pass
21256         it through to cp_parser_statement.
21257         (cp_parser_statement): Pass IF_P through to
21258         cp_parser_iteration_statement.
21259         (cp_parser_pragma): Adjust call to
21260         cp_parser_iteration_statement.
21262 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
21264         PR c/70436
21265         * gimplify.c (gimplify_omp_ordered): Add explicit braces to
21266         resolve a future -Wparentheses warning.
21267         * omp-low.c (scan_sharing_clauses): Likewise.
21268         * tree-parloops.c (eliminate_local_variables): Likewise.
21270 2016-04-06  Vladimir Makarov  <vmakarov@redhat.com>
21272         PR rtl-optimization/70398
21273         * lra-constraints.c (process_address_1): Check zero scale and code
21274         for reloading with zero scale.
21276 2016-04-06  Uros Bizjak  <ubizjak@gmail.com>
21278         * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
21279         (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
21281 2016-04-06  Jakub Jelinek  <jakub@redhat.com>
21283         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
21284         Add support for AVX512F clones, include them by default for
21285         exported OpenMP declare simd functions.  For AVX2 allow simdlen 32
21286         and use it if charasteric type is 8-bit, for AVX512F allow simdlen
21287         up to 128.
21289         PR middle-end/70550
21290         * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
21291         * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
21292         firstprivate clauses.
21293         * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
21294         OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
21295         (lower_omp_target): Set TREE_NO_WARNING for
21296         non-addressable possibly uninitialized vars which are copied into
21297         addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
21299 2016-04-05  John David Anglin  <danglin@gcc.gnu.org>
21301         * config/pa/predicates.md (integer_store_memory_operand): Accept
21302         REG+D operands with a large offset when reload_in_progress is true.
21303         (floating_point_store_memory_operand): Likewise.
21305 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
21307         PR c++/70336
21308         * match.pd (nested int casts): Limit to GIMPLE.
21310 2016-04-05  Jan Hubicka  <hubicka@ucw.cz>
21312         PR ipa/66223
21313         * ipa-devirt.c (maybe_record_node): Fix comment; use
21314         SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
21316 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
21318         PR rtl-optimization/70542
21319         * ree.c (add_removable_extension): For VECTOR_MODE_P punt
21320         if there are any uses other than insn or debug insns.
21322 2016-04-05  Marc Glisse  <marc.glisse@inria.fr>
21323             Jakub Jelinek  <jakub@redhat.com>
21325         PR tree-optimization/70509
21326         * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
21327         Shift HOST_WIDE_INT_1U instead of 1.
21329 2016-04-05  Zdenek Sojka  <zsojka@seznam.cz>
21331         PR tree-optimization/70509
21332         * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
21333         of the vector base type for index.
21335 2016-04-05  Uros Bizjak  <ubizjak@gmail.com>
21337         PR target/70510
21338         * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
21340 2016-04-05  Richard Biener  <rguenther@suse.de>
21342         PR tree-optimization/70526
21343         * tree-sra.c (build_ref_for_offset): Use prev_base to
21344         extract the alias pointer type.
21346 2016-04-05  Richard Biener  <rguenther@suse.de>
21348         * dse.c (struct store_info): Remove alias_set member.
21349         (struct read_info_type): Likewise.
21350         (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
21351         spill_deleted, clear_alias_set_lookup): Remove.
21352         (get_group_info): Remove dead base == NULL_RTX case.
21353         (dse_step0): Remove initialization of removed variables.
21354         (delete_dead_store_insn): Reomve alias set dumping.
21355         (free_read_records): Remove alias_set handling.
21356         (canon_address): Remove alias_set_out parameter.
21357         (record_store): Remove spill_alias_set, it's always zero.
21358         (check_mem_read_rtx): Likewise.
21359         (dse_step2): Rename from ...
21360         (dse_step2_nospill): ... this.  Adjust.
21361         (scan_stores): Rename from ...
21362         (scan_stores_nospill): ... this.
21363         (scan_reads): Rename from ...
21364         (scan_reads_nospill): ... this.
21365         (scan_stores_spill, scan_reads_spill): Remove.
21366         (dse_step3_scan): Remove for_spills argument which is always false.
21367         (dse_step3): Likewise.
21368         (dse_step5): Rename from ...
21369         (dse_step5_nospill): ... this.  Remove alias_set handling.
21370         (rest_of_handle_dse): Adjust.
21372 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
21374         PR target/70525
21375         * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
21376         Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
21377         V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
21378         (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
21380 2016-04-05  Richard Biener  <rguenther@suse.de>
21382         PR middle-end/70499
21383         * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
21384         non-register type temporaries into SSA.
21386 2016-04-04  Jan Hubicka  <hubicka@ucw.cz>
21388         PR ipa/66223
21389         * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
21390         calls when sanitizing.
21391         (possible_polymorphic_call_target_p): Fix formatting.
21393 2016-04-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21394             Jakub Jelinek  <jakub@redhat.com>
21396         PR middle-end/70457
21397         * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
21398         to ensure a call statement is compatible with a built-in's
21399         prototype.
21400         * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
21401         Likewise.
21403 2016-04-04  Richard Biener  <rguenther@suse.de>
21405         PR rtl-optimization/70484
21406         * rtl.h (canon_output_dependence): Declare.
21407         * alias.c (canon_output_dependence): New function.
21408         * dse.c (record_store): Use canon_output_dependence rather
21409         than canon_true_dependence.
21411 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
21413         PR ipa/68881
21414         * cgraph.h (symtab_node::copy_visibility_from): New function.
21415         * symtab.c (symtab_node::copy_visibility_from): New function.
21416         * ipa-visibility.c (optimize_weakref): New function.
21417         (function_and_variable_visibility): Use it.
21419 2016-04-04  Martin Liska  <mliska@suse.cz>
21421         PR hsa/70402
21422         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
21423         value that is really in range handled by SBR instruction.
21424         * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
21425         * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
21426         * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
21428 2016-04-03  Oleg Endo  <olegendo@gcc.gnu.org>
21430         PR target/70416
21431         PR target/67391
21432         * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
21433         set, but not for SP_REG operands.
21435 2016-04-02  Martin Sebor  <msebor@redhat.com>
21437         PR c++/67376
21438         * fold-const.c (maybe_nonzero_address): New function.
21439         (fold_comparison): Call it.  Fold equality and relational
21440         expressions involving null pointers.
21441         (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
21443 2016-03-31  Evandro Menezes  <e.menezes@samsung.com>
21445         Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
21446         the "Y" constraint (scalar FP 0.0 immediate).
21448         * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
21449         Add the "const_double" to the list of operand constraints.
21451 2016-04-01  Jakub Jelinek  <jakub@redhat.com>
21453         PR rtl-optimization/70467
21454         * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
21455         If low word of the last operand is 0, just emit addition/subtraction
21456         for the high word.
21458 2016-04-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21460         PR target/70404
21461         * config/s390/s390.c (s390_expand_insv): Check for everything
21462         constant instead of just VOIDmode stuff.
21464 2016-04-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21466         PR target/70496
21467         * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
21469 2016-04-01  Nathan Sidwell  <nathan@acm.org>
21471         * tree.def (TRY_CATCH_EXPR): Correct documentation.
21473 2016-03-31  Vladimir Makarov  <vmakarov@redhat.com>
21475         PR rtl-optimization/70461
21476         * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
21477         is necessary.
21479 2016-03-31  Martin Liska  <mliska@suse.cz>
21481         PR hsa/70399
21482         * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
21483         a tree value or an immediate integer value to a buffer
21484         that is eventually copied to a BRIG section.
21485         (emit_immediate_operand): Call the function here.
21486         * hsa-dump.c (dump_hsa_immed): Remove checking assert.
21487         * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
21488         of class' fields that are removed.
21489         (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
21490         * hsa.h (class hsa_op_immed): Remove m_brig_repr and
21491         m_brig_repr_size fields.
21493 2016-03-31  Martin Liska  <mliska@suse.cz>
21495         PR hsa/70391
21496         * hsa-gen.c (hsa_function_representation::update_dominance): New
21497         function.
21498         (convert_addr_to_flat_segment): Likewise.
21499         (gen_hsa_memory_set): New alignment argument.
21500         (gen_hsa_ctor_assignment): Likewise.
21501         (gen_hsa_insns_for_single_assignment): Provide alignment
21502         to gen_hsa_ctor_assignment.
21503         (gen_hsa_insns_for_direct_call): Add new argument.
21504         (expand_lhs_of_string_op): New function.
21505         (expand_string_operation_builtin): Likewise.
21506         (expand_memory_copy): New function.
21507         (expand_memory_set): New function.
21508         (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
21509         (convert_switch_statements): Change signature.
21510         (generate_hsa): Use a return value of the function.
21511         (pass_gen_hsail::execute): Do not call
21512         convert_switch_statements here.
21513         * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
21514         * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
21515         (hsa_function_representation::update_dominance): New function.
21517 2016-03-31  Martin Liska  <mliska@suse.cz>
21519         PR hsa/70391
21520         * hsa-brig.c (emit_directive_variable): Emit alignment
21521         according to hsa_symbol::m_align.
21522         * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
21523         (dump_hsa_symbol): Dump alignment of HSA symbols.
21524         * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
21525         (gen_hsa_addr_with_align): New function.
21526         (hsa_bitmemref_alignment): Use newly added function.
21527         (gen_hsa_insns_for_load): Likewise.
21528         (gen_hsa_insns_for_store): Likewise.
21529         (gen_hsa_memory_copy): New argument added.
21530         (gen_hsa_insns_for_single_assignment): Respect
21531         alignment for assignments processed via gen_hsa_memory_copy.
21532         (gen_hsa_insns_for_direct_call): Likewise.
21533         (gen_hsa_insns_for_return): Likewise.
21534         (gen_function_def_parameters): Set default alignment.
21535         * hsa.c (hsa_object_alignment): New function.
21536         (hsa_byte_alignment): Pasted function.
21537         * hsa.h (hsa_symbol::m_align): New field.
21539 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
21541         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
21542         scratch field for goto case.
21544 2016-03-31  James Greenhalgh  <james.greenhalgh@arm.com>
21546         * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
21548 2016-03-31  Ilya Enkovich  <enkovich.gnu@gmail.com>
21550         PR target/70442
21551         * config/i386/i386.c (scalar_chain::convert_op): Fix description.
21552         (scalar_chain::convert_insn): Call convert_op for reg
21553         moves to handle undefined registers.
21555 2016-03-31  Nathan Sidwell  <nathan@acm.org>
21557         PR c++/70393
21558         * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
21559         Assert we don't want to move backwards.
21561 2016-03-31  Kirill Yukhin  <kirill.yukhin@intel.com>
21563         PR target/70453
21564         * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
21566 2016-03-31  Jakub Jelinek  <jakub@redhat.com>
21568         PR rtl-optimization/70460
21569         * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
21570         with operand from REG_LABEL_OPERAND, instead substitute
21571         SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
21572         Don't do anything for REG_NON_LOCAL_GOTO jumps.
21574 2016-03-31  Martin Liska  <mliska@suse.cz>
21576         * passes.c (execute_one_pass): Do not call
21577         todo_after for a discarded function.
21579 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
21581         * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
21582         (no_cost, infinite_cost): Initialize the new field.
21583         (get_computation_cost_at): Record setup cost.
21584         (determine_use_iv_cost_address): Skip cost computation for sub
21585         uses if we can estimate it without losing accuracy.
21587 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
21589         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
21590         estimates here.
21591         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
21592         max_loop_iterations_int.
21593         (tree_unswitch_outer_loop): Likewise.
21594         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
21595         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
21597 2016-03-30  Richard Biener  <rguenther@suse.de>
21599         PR middle-end/70450
21600         * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
21602 2016-03-30  Jakub Jelinek  <jakub@redhat.com>
21604         PR target/70421
21605         * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
21606         in gen_blendm expander.
21608 2016-03-30  Nick Clifton  <nickc@redhat.com>
21610         PR target/62254
21611         * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
21612         case where we are already provided with an SImode SUBREG.
21614 2016-03-30  H.J. Lu  <hongjiu.lu@intel.com>
21616         PR target/70439
21617         * config/i386/i386.c (ix86_expand_epilogue): Properly check
21618         conflict between DRAP register and __builtin_eh_return.
21620 2016-03-30  Michael Matz  <matz@suse.de>
21621             Richard Biener  <rguenther@suse.de>
21623         PR ipa/12392
21624         * ipa-polymorphic-call.c (struct type_change_info): Change
21625         speculative to an unsigned allowing to limit the work we do.
21626         (csftc_abort_walking_p): New inline function..
21627         (check_stmt_for_type_change): Limit the number of may-defs
21628         skipped for speculative devirtualization to
21629         max-speculative-devirt-maydefs.
21630         * params.def (max-speculative-devirt-maydefs): New param.
21631         * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
21633 2016-03-30  Mike Stump  <mrs@gcc.gnu.org>
21635         PR target/63890
21636         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
21637         and TARGET_MACHO.
21639 2016-03-30  Patrick Palka  <ppalka@gcc.gnu.org>
21641         PR tree-optimization/59124
21642         * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
21643         where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
21645 2016-03-29  Jeff Law  <law@redhat.com>
21647         * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
21649 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
21651         * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
21652         to HOST_WIDE_INT.
21654 2016-03-29  Thomas Schwinge  <thomas@codesourcery.com>
21656         * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
21657         * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
21658         gcrt0.o if linking dynamically.
21660 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
21662         PR ipa/70283
21663         * ipa-devirt.c (methods_equal_p): New function.
21664         (compare_virtual_tables): Use it.
21665         * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
21666         * cgraphclones.c (clone_function_name_1): Use
21667         symbol_table::symbol_suffix_separator.
21668         * coverage.c (build_var): Likewise.
21669         * symtab.c (symbol_table::symbol_suffix_separator): New.
21671 2016-03-29  Jakub Jelinek  <jakub@redhat.com>
21673         PR rtl-optimization/70429
21674         * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
21675         (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
21676         mode != result_mode.
21678         PR c++/70353
21679         * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
21681         PR tree-optimization/70405
21682         * ssa-iterators.h (num_imm_uses): Add missing braces.
21684 2016-03-29  Vladimir Makarov  <vmakarov@redhat.com>
21686         PR rtl-optimization/68695
21687         * ira-color.c (allocno_copy_cost_saving): New.
21688         (improve_allocation): Use it.
21690 2016-03-29  Richard Henderson  <rth@redhat.com>
21692         PR middle-end/70355
21693         * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
21695 2016-03-29  Richard Biener  <rguenther@suse.de>
21697         PR middle-end/70424
21698         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
21699         use alignment returned by get_pointer_alignment_1 if it is
21700         bigger than BITS_PER_UNIT.
21701         * builtins.c (get_pointer_alignment_1): Do not return true
21702         for alignment extracted from SSA info.
21704 2016-03-28  James Bowman  <james.bowman@ftdichip.com>
21706         * config/ft32/ft32.opt (mnodiv): New.
21707         * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
21708         * doc/invoke.texi (FT32 Options -mnodiv): New.
21710 2016-03-28  Kirill Yukhin  <kirill.yukhin@intel.com>
21712         PR target/70406
21713         * config/i386/i386.md (define_split, andn): Fix modes.
21715 2016-03-26  Richard Biener  <rguenther@suse.de>
21716             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
21718         PR ipa/70366
21719         * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
21720         instead of
21721         TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
21722         as 2nd argument to cl_optimization_restore().
21724 2016-03-25  Richard Henderson  <rth@redhat.com>
21726         PR target/70120
21727         * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
21728         * config/aarch64/aarch64-protos.h: Declare it.
21729         * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
21731 2016-03-25  Alan Modra  <amodra@gmail.com>
21733         PR target/70052
21734         * config/rs6000/constraints.md (j): Simplify.
21735         * config/rs6000/predicates.md (easy_fp_constant): Exclude
21736         decimal float 0.D.
21737         * config/rs6000/rs6000.md (zero_fp): New mode_attr.
21738         (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
21739          mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
21740         in all constraint alternatives.
21741         (movtd_64bit_nodm): Delete "j" constraint alternative.
21743 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
21745         * tree-ssa-propagate.c: Enhance docs for
21746         SSA_PROP_NOT_INTERESTING.
21748 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
21750         * doc/extend.texi: Fix typo in documentation to pure attribute.
21752 2016-03-24  John David Anglin  <danglin@gcc.gnu.org>
21754         PR target/70319
21755         * config/pa/pa.md (bswapdi2): Use a scratch register.
21757 2016-03-24  Richard Henderson  <rth@redhat.com>
21759         PR middle-end/69845
21760         * fold-const.c (extract_muldiv_1): Correct test for multiplication
21761         overflow.
21763 2016-03-24  Uros Bizjak  <ubizjak@gmail.com>
21765         * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
21766         using ix86_expand_binary_operator instead of gen_andsi3.
21768 2016-03-24  Richard Biener  <rguenther@suse.de>
21770         PR tree-optimization/70396
21771         * tree-vect-stmts.c (vectorizable_comparison): Use
21772         get_vectype_for_scalar_type.
21774 2016-03-24  Richard Biener  <rguenther@suse.de>
21776         PR middle-end/70370
21777         * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
21778         with register bases.
21780 2016-03-24  Richard Biener  <rguenther@suse.de>
21782         PR tree-optimization/70372
21783         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
21784         build_all_ones_cst to also handle vector types correctly.
21786 2016-03-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
21788         PR target/70381
21789         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
21790         -mfloat128 here.
21792 2016-03-23  Marek Polacek  <polacek@redhat.com>
21794         PR c++/69884
21795         * doc/invoke.texi: Document -Wignored-attributes.
21797 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
21799         PR tree-optimization/69042
21800         * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
21801         parameter from 30 to 40.
21803 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
21805         PR tree-optimization/69042
21806         * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
21807         for use with constant offset stripped in base.
21809 2016-03-23  Richard Biener  <rguenther@suse.de>
21811         PR middle-end/70251
21812         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
21813         mode compatibility check.
21814         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
21816 2016-03-23  Jeff Law  <law@redhat.com>
21818         PR tree-optimization/64058
21819         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
21820         CONFLICT_COUNT.
21821         (struct ssa_conflicts): Move up earlier in the file.
21822         (conflicts_, var_map_): New static variables.
21823         (initialize_conflict_count): New function to initialize the
21824         CONFLICT_COUNT field for each conflict pair.
21825         (compare_pairs): Lazily initialize the conflict count and use it
21826         as the first tie-breaker.
21827         (sort_coalesce_list): Add new arguments conflicts, map.  Initialize
21828         and wipe conflicts_ and map_ around the call to qsort.  Remove
21829         special case for 2 coalesce pairs.
21830         * bitmap.c (bitmap_count_unique_bits): New function.
21831         (bitmap_count_bits_in_word): New function, extracted from
21832         bitmap_count_bits.
21833         (bitmap_count_bits): Use bitmap_count_bits_in_word.
21834         * bitmap.h (bitmap_count_unique_bits): Declare it.
21836 2016-03-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
21838         PR target/69917
21839         * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
21840         transparent alias chain for decl assembler name.
21841         * config/sol2.c (solaris_assemble_visibility): Likewise.
21843 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21845         * config/arm/arm1020e.md (1020call_op): Reduce reservation
21846         duration.
21847         (v10_fdivs): Likewise.
21848         (v10_fdivd): Likewise.
21850 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21852         PR driver/70132
21853         * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
21854         to not call fclose twice on file.
21856 2016-03-23  Jakub Jelinek  <jakub@redhat.com>
21858         PR tree-optimization/70354
21859         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
21860         oprnd0 is wider than oprnd1 and there is a cast from the wider
21861         type to oprnd1, mask it with the mask of the narrower type.
21863         PR target/70321
21864         * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
21865         Optimize TARGET_STV splitters, if high or low word of last argument
21866         is 0 or -1.
21868 2016-03-22  Jeff Law  <law@redhat.com>
21870         PR target/70232
21871         tree-ssa-threadbackward.c
21872         (fsm_find_control_statement_thread_paths): Correctly distinguish
21873         between old style jump threads vs FSM jump threads.
21875 2016-03-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
21877         PR target/70302
21878         * config/i386/i386.c (scalar_chain::convert_op): Support
21879         uninitialized register usage case.
21881 2016-03-22  Richard Biener  <rguenther@suse.de>
21883         PR middle-end/70251
21884         * genmatch.c (gen_transform): Adjust last parameter to a three-state
21885         int...
21886         (capture::gen_transform): ... to change behavior when substituting
21887         a condition into cond or not-cond expr context.
21888         (dt_simplify::gen_1): Adjust.
21889         * gimple-match-head.c: Include gimplify.h for unshare_expr.
21890         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
21891         last change and instead change to
21892         A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
21893         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
21895 2016-03-22  Anthony Green  <green@moxielogic.com>
21897         * config/moxie/moxiebox.h (CC1_SPEC): Define.  Fix endianness
21898         issue for moxiebox targets.
21899         (CC1PLUS_SPEC): Ditto.
21901 2016-03-22  Richard Biener  <rguenther@suse.de>
21903         PR middle-end/70333
21904         * fold-const.c (extract_muldiv_1): Properly perform multiplication
21905         in the wide type.
21907 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
21909         * config/i386/i386.c (def_builtin): Remove duplicated functionality.
21911 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
21913         PR target/70325
21914         * config/i386/i386.c (def_builtin): Handle
21915         OPTION_MASK_ISA_AVX512VL to be and-ed with other
21916         bits.
21917         (const struct builtin_description bdesc_special_args[]):
21918         Remove duplicate ISA bits.
21920 2016-03-22  Jakub Jelinek  <jakub@redhat.com>
21922         PR target/70329
21923         * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
21924         d.perm[i] for i >= d.nelt.  If not full_interleave, compute d.perm[i]
21925         in a way that works also for AVX512BW.
21927         PR target/70300
21928         * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
21929         instead of source if operands[1] is xmm16 and above and
21930         !TARGET_AVX512VL.  Use avx512f_vec_dupv16sf_1 instead of
21931         vec_interleave_lowv4sf if we need to unpack xmm16 and above.
21933         PR c++/70295
21934         * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
21935         on assign if (*from_p) is a comparison, set it to
21936         TREE_NO_WARNING (*from_p).
21938 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
21940         PR middle-end/70326
21941         * lra.c (restore_scratches): Ignore deleted insns.
21943 2016-03-21  Marc Glisse  <marc.glisse@inria.fr>
21944             Jakub Jelinek  <jakub@redhat.com>
21946         PR tree-optimization/70317
21947         * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
21948         to HONOR_NANS.
21950 2016-03-21  Uros Bizjak  <ubizjak@gmail.com>
21952         PR target/70327
21953         * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
21954         of ix86_expand_move.
21955         (movoi): Ditto.
21956         (movti): Use general_operand for operand 1 predicate.
21958 2016-03-21  Martin Liska  <mliska@suse.cz>
21960         * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
21961         insns.
21962         (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
21964 2016-03-21  Martin Liska  <mliska@suse.cz>
21966         PR ipa/70306
21967         * ipa-icf.c (sem_function::parse): Skip static
21968         constructors and destructors.
21970 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
21972         PR target/70296
21973         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
21974         function-like macro, peek following token(s) if it is followed
21975         by CPP_OPEN_PAREN token with optional padding in between, and
21976         if not, don't treat it like a macro.
21978 2016-03-21  Thomas Schwinge  <thomas@codesourcery.com>
21979             Alexander Monakov  <amonakov@ispras.ru>
21981         * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
21982         for the stabs debug format.
21984 2016-03-21  Richard Biener  <rguenther@suse.de>
21986         PR tree-optimization/70310
21987         * tree-vect-generic.c (expand_vector_condition): Fold the built
21988         condition.
21990 2016-03-21  Kirill Yukhin  <kirill.yukhin@intel.com>
21992         PR target/70293
21993         * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
21994         Block third alternative for AVX-512VL target,
21996 2016-03-21  Martin Liska  <mliska@suse.cz>
21998         PR hsa/70234
21999         * hsa-brig.c (emit_function_directives): Mark unemitted
22000         global variables for emission.
22001         * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
22002         (get_symbol_for_decl): Likewise.
22003         * hsa.h (struct hsa_symbol): New flag.
22005 2016-03-21  Richard Biener  <rguenther@suse.de>
22007         PR tree-optimization/70288
22008         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
22009         we do not estimate unsimplified all-constant conditionals or
22010         switches as optimized away.
22012 2016-03-21  Andrey Belevantsev  <abel@ispras.ru>
22014         PR rtl-optimization/69102
22015         * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
22016         when we have a readonly dependency context.
22018 2016-03-18  Jeff Law  <law@redhat.com>
22020         PR rtl-optimization/70263
22021         * ira.c (memref_used_between_p): Assert we found END in the insn chain.
22022         (update_equiv_regs): When trying to move a store to after the insn
22023         that sets the source of the store, make sure the store occurs after
22024         the insn that sets the source of the store.  When successful note
22025         the REG_EQUIV note created in the dump file.
22027 2016-03-16  David Wohlferd  <dw@LimeGreenSocks.com>
22028             Bernd Schmidt  <bschmidt@redhat.com>
22030         * doc/extend.texi: Document more potential problems with basic asms.
22032 2016-03-18  Bernd Schmidt  <bschmidt@redhat.com>
22034         PR rtl-optimization/70278
22035         * lra-constraints.c (split_reg): Handle the case where biggest_mode is
22036         VOIDmode.
22038 2016-03-18  Jason Merrill  <jason@redhat.com>
22040         * calls.c (load_register_parameters): Fix zero size sibcall logic.
22042 2016-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
22044         * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
22045         values to 128b regs.
22047 2016-03-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
22049         PR tree-optimization/70252
22050         * tree-vect-stmts.c (supportable_widening_operation): Check resulting
22051         boolean vector has a proper number of elements.
22052         (supportable_narrowing_operation): Likewise.
22054 2016-03-18  Tom de Vries  <tom@codesourcery.com>
22056         PR ipa/70269
22057         * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
22059 2016-03-18  Jakub Jelinek  <jakub@redhat.com>
22061         * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
22062         instead of replace_rtx for DEBUG_INSNs.
22064 2016-03-18  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
22066         * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
22067         load type reservations.
22069 2016-03-17  John David Anglin  <danglin@gcc.gnu.org>
22071         PR target/70188
22072         * config/pa/constraints.md: Revert 2015-02-13 change.  Use
22073         define_constraint for "Q" and "T" constraints.
22075 2016-03-17  Evandro Menezes  <e.menezes@samsung.com>
22077         Tweak the pipeline model for Exynos M1
22079         * config/aarch64/aarch64.c (exynosm1_tunings):  Enable weak prefetching
22080         model.
22082 2016-03-17  David Malcolm  <dmalcolm@redhat.com>
22084         PR c/70264
22085         * diagnostic-show-locus.c (compatible_locations_p): Handle the case
22086         where one or both locations aren't within a line_map.
22088 2016-03-17  H.J. Lu  <hongjiu.lu@intel.com>
22090         PR driver/70192
22091         * opts.c (finish_options): Don't set flag_pie to the default if
22092         -fpic, -fPIC, -fno-pic or -fno-PIC is used.  Set flag_pic to 0
22093         if it is -1.
22095 2016-03-17  Joern Rennecke  <joern.rennecke@embecosm.com>
22097         * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
22098         true as ALL_REGS argument to replace_rtx.
22100 2016-03-17  Richard Biener  <rguenther@suse.de>
22102         PR debug/70271
22103         * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
22104         last.
22106 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
22108         PR target/70245
22109         * rtl.h (replace_rtx): Add ALL_REGS argument.
22110         * rtlanal.c (replace_rtx): Likewise.  If true, use REGNO
22111         equality and assert mode is the same, instead of just rtx pointer
22112         equality.
22113         * config/i386/i386.md (mov + arithmetics with load peephole): Pass
22114         true as ALL_REGS argument to replace_rtx.
22116 2016-03-17  Ilya Enkovich  <enkovich.gnu@gmail.com>
22118         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
22119         for boolean vector with vector mode only.
22120         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
22122 2016-03-17  Nick Clifton  <nickc@redhat.com>
22124         PR target/70162
22125         * config/rx/rx.c (rx_print_integer): Print negative constants in
22126         decimal.
22128 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
22130         PR target/70261
22131         * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
22133 2016-03-16  Richard Henderson  <rth@redhat.com>
22134             Richard Biener  <rguenth@suse.de>
22136         PR middle-end/70240
22137         PR middle-end/68215
22138         PR tree-opt/68714
22139         * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
22140         first operand as is_gimple_condexpr.
22142         PR middle-end/70240
22143         PR middle-end/68215
22144         Revert r231575
22145         2015-12-11  Eric Botcazou  <ebotcazou@adacore.com>
22146         * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
22147         Do not gimplify the result.
22148         (do_unop): Adjust call to tree_vec_extract.
22149         (do_binop): Likewise.
22150         (do_compare): Likewise.
22151         (do_plus_minus): Likewise.
22152         (do_negate): Likewise.
22153         (expand_vector_condition): Likewise.
22154         (do_cond): Likewise.
22156 2016-03-16  Richard Henderson  <rth@redhat.com>
22158         PR target/70048
22159         * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
22160         (aarch64_classify_address): Use it.
22161         (aarch64_legitimize_address): Force all subexpressions of PLUS
22162         into registers.  Simplify as (sfp+const)+reg or (reg+reg)+const.
22164 2016-03-16  Jakub Jelinek  <jakub@redhat.com>
22165             Richard Biener  <rguenth@suse.de>
22167         PR target/70245
22168         * rtlanal.c (replace_rtx): For REG, if from is a REG,
22169         return to even if only REGNO is equal, and assert
22170         mode is the same.
22172 2016-03-11  Jeff Law  <law@redhat.com>
22174         PR rtl-optimization/70224
22175         * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
22177 2016-03-16  Richard Henderson  <rth@redhat.com>
22179         PR middle-end/70199
22180         * function.h (struct function): Add has_forced_label_in_static.
22181         * gimplify.c (force_labels_r): Set it.
22182         * lto-streamer-in.c (input_struct_function_base): Read it.
22183         * lto-streamer-out.c (output_struct_function_base): Write it.
22184         * tree-inline.c (has_label_address_in_static_1): Remove.
22185         (copy_forbidden): Remove fndecl parameter; test
22186         has_forced_label_in_static.
22187         (inline_forbidden_p): Update call to copy_forbidden.
22188         (tree_versionable_function_p): Likewise.
22189         * ipa-chkp.c (chkp_instrumentable_p): Likewise.
22190         (chkp_versioning): Likewise.
22191         * tree-inline.h (copy_forbidden): Update decl.
22193 2016-03-16  Marek Polacek  <polacek@redhat.com>
22195         PR c/70093
22196         * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
22197         function being thunked if the result type doesn't have fixed size.
22198         * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
22199         doesn't have fixed size.
22201 2016-03-16  Bin Cheng  <bin.cheng@arm.com>
22203         * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
22204         reporting malformed loop nest.
22206 2016-03-16  Tom de Vries  <tom@codesourcery.com>
22208         PR lto/70187
22209         * ipa-devirt.c (possible_polymorphic_call_targets): Move
22210         nodes.length () == 1 test to before first nodes[0] access.
22212 2016-03-16  Tom de Vries  <tom@codesourcery.com>
22214         PR tree-optimization/68715
22215         * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
22216         single_pred_p test.
22218 2016-03-16  Tom de Vries  <tom@codesourcery.com>
22220         PR tree-optimization/68809
22221         * graphite-scop-detection.c (same_close_phi_node): Test if result types
22222         are the same.
22224 2016-03-16  Carlos O'Donell  <carlos@redhat.com>
22225             Sandra Loosemore  <sandra@codesourcery.com>
22227         * doc/extend.texi (Common Function Attributes): Describe ifunc impact
22228         on leaf attribute. Mention ELF interposition problems.
22230 2016-03-16  Alan Modra  <amodra@gmail.com>
22232         PR rtl-optimization/69195
22233         PR rtl-optimization/47992
22234         * ira.c (indirect_jump_optimize): Ignore artificial defs.
22235         Add comments.
22237 2016-03-15  Eric Botcazou  <ebotcazou@adacore.com>
22239         PR bootstrap/69513
22240         * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
22242 2016-03-15  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
22244         * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
22246 2016-03-15  Jakub Jelinek  <jakub@redhat.com>
22248         PR rtl-optimization/70222
22249         * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
22250         optimization if mode is different from result_mode, queue up masking
22251         of the result in outer_op.  Formatting fix.
22253         PR middle-end/70239
22254         * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
22255         of safe_grow.
22257 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
22259         PR rtl-optimization/69032
22260         * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
22261         looping backwards over basic block insns.
22263 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
22265         PR target/66660
22266         * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
22267         to non-speculative when propagating trap bits.
22269 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
22271         PR rtl-optimization/63384
22272         * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
22273         DEBUG_INSN_P insns.
22275 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
22277         PR target/64411
22278         * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
22279         factored out from ...
22280         (sched_analyze_insn): ... here.
22281         * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
22282         * sel-sched-ir.c (setup_id_implicit_regs): New function, use
22283         get_implicit_reg_pending_clobbers in it.
22284         (setup_id_reg_sets): Use setup_id_implicit_regs.
22285         (deps_init_id): Ditto.
22287 2016-03-15  Tom de Vries  <tom@codesourcery.com>
22289         PR ipa/70161
22290         * cgraph.c (cgraph_node::get_body): Save, reset and restore
22291         dump_file_name.
22292         * passes.c (execute_one_ipa_transform_pass): Add missing argument to
22293         execute_function_dump.
22294         (execute_one_pass): Don't dump function if it will be dumped after ipa
22295         transform.
22297 2016-03-15  Segher Boessenkool  <segher@kernel.crashing.org>
22299         * genrecog.c (match_pattern_2): If pred is NULL don't call
22300         safe_predicate_mode on it.
22302 2016-03-14  Jakub Jelinek  <jakub@redhat.com>
22304         PR middle-end/70219
22305         * lra-constraints.c (delete_move_and_clobber): Change assertion
22306         to also allow dregno == 0.
22308 2016-03-14  Richard Henderson  <rth@redhat.com>
22310         PR tree-opt/68714
22311         * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
22312         (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
22313         (reassociate_bb): Use optimize_vec_cond_expr; avoid
22314         optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
22315         on vectors.
22317 2016-03-14  Bernd Schmidt  <bschmidt@redhat.com>
22319         PR target/70083
22320         * lra-lives.c (process_bb_lives): Also update biggest mode for hard
22321         regs.
22322         (lra_create_live_ranges_1): initialize hard register biggest_mode to
22323         VOIDmode.
22324         * lra-constraints.c (split_reg): For hard regs, try to find the
22325         biggest single-register mode used in the function.
22327 2016-03-14  Richard Biener  <rguenther@suse.de>
22329         PR tree-optimization/56365
22330         * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
22331         constants to compare against.
22333 2016-03-14  Segher Boessenkool  <segher@kernel.crashing.org>
22335         PR target/70098
22336         * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
22337         *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
22338         (define_split for the GPR case): Use int_reg_operand instead of
22339         gpc_reg_operand for the output.
22341 2016-03-14  Tom de Vries  <tom@codesourcery.com>
22343         PR tree-optimization/70045
22344         * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
22345         create_empty_if_region_on_edge argument.
22347 2016-03-13  Eric Botcazou  <ebotcazou@adacore.com>
22349         * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
22350         (STACK_CHECK_PROTECT): Likewise.
22351         * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
22352         (STACK_CHECK_PROTECT): Likewise.
22353         * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
22354         (STACK_CHECK_PROTECT): Likewise.
22355         * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
22356         * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
22357         (STACK_CHECK_PROTECT): Likewise.
22359 2016-03-12  Andrey Belevantsev  <abel@ispras.ru>
22361         PR rtl-optimization/69307
22362         * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
22363         registers in modes that span more than one register.
22365 2016-03-12  Vladimir Makarov  <vmakarov@redhat.com>
22367         PR target/69614
22368         * lra-constraints.c (delete_move_and_clobber): New.
22369         (remove_inheritance_pseudos): Use it.
22371 2016-03-12  Eric Botcazou  <ebotcazou@adacore.com>
22373         PR ada/70017
22374         * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
22375         the libcall is LCT_THROW.
22376         * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
22377         for the checking routine.
22379 2016-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
22381         PR target/70131
22382         * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
22383         optimization if we have direct move.
22384         (roundu32<mode>2_fprs): Likewise.
22386 2016-03-11  Bernd Schmidt  <bschmidt@redhat.com>
22388         PR target/70123
22389         * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
22390         be rematerialized.
22391         (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
22392         Arguments swapped.  All callers changed.  Take reg_renumber into
22393         account, and Calculate and compare register ranges for hard regs.
22395 2016-03-11  Jeff Law  <law@redhat.com>
22397         PR tree-optimization/70190
22398         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
22399         Handle cases where we can not extract the taken edge, even though we
22400         found a constant value.
22402         PR tree-optimization/64058
22403         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
22404         (num_coalesce_pairs): Move up earlier in file.
22405         (find_coalesce_pair): Initialize the INDEX field for each pair
22406         discovered.
22407         (compare_pairs): No longer sort on the elements in each pair.
22408         Instead break ties with the index of the coalesce pair.
22410 2016-03-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22412         PR target/70002
22413         * config/aarch64/aarch64-protos.h
22414         (aarch64_save_restore_target_globals): New prototype.
22415         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
22416         Call the above when popping pragma.
22417         * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
22418         New function.
22419         (aarch64_set_current_function): Rewrite using the above.
22421 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
22423         PR tree-optimization/70177
22424         * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
22425         (extract_ops_from_tree): ... this.  In the 2 argument
22426         overload remove _1 suffix.
22427         * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
22428         (extract_ops_from_tree): ... this.
22429         * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
22430         Adjust callers.
22431         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
22432         * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
22433         extract_ops_from_tree instead of 2 operand one.
22435 2016-03-11  Alan Lawrence  <alan.lawrence@arm.com>
22437         PR tree-optimization/70013
22438         * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
22439         for constant-pool entries.
22441 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
22443         PR rtl-optimization/70174
22444         * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
22445         followed by gen_lowpart on force_reg instead of just gen_lowpart.
22447         PR tree-optimization/70169
22448         * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
22449         LABEL_DECL like VAR_DECL.  Emit nothing instead of gcc_unreachable
22450         for unknown codes.
22452 2016-03-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
22453             Jakub Jelinek  <jakub@redhat.com>
22455         PR target/70160
22456         * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
22457         of uninitialized values.
22459 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
22461         * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
22462         define_expand.
22463         ("*trunctddd2"): New pattern definition.
22464         ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
22465         TD->DD truncation.
22467 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
22469         * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
22470         definitions for BFP and DFP rounding modes.
22471         ("fixuns_truncdddi2", "fixuns_trunctddi2")
22472         ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
22473         ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
22474         ("fix_trunctf<mode>2"): Use the new constants instead of magic
22475         numbers.
22477 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
22479         * config/s390/constraints.md: Adjust comment.
22480         ("Y"): Adjust comment.  Rename s390_decompose_shift_count to
22481         s390_decompose_addrstyle_without_index.
22482         * config/s390/predicates.md (shift_count_or_setmem_operand):
22483         Rename to setmem_operand.
22484         * config/s390/s390-protos.h
22485         (s390_decompose_shift_count): Rename to
22486         s390_decompose_addrstyle_without_index.
22487         * config/s390/s390.c (s390_decompose_shift_count)
22488         (s390_mem_constraint, print_shift_count_operand)
22489         (print_operand_address, print_operand): Rename
22490         s390_decompose_shift_count to
22491         s390_decompose_addrstyle_without_index and rename
22492         print_shift_count_operand to print_addrstyle_operand troughout the
22493         file.
22494         * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
22495         ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
22496         Rename shift_count_or_setmem_operand to setmem_operand.
22497         * config/s390/vx-builtins.md ("vec_insert<mode>")
22498         ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
22499         nonmemory_operand.
22501 2016-03-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
22503         PR target/70168
22504         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
22505         Handle overlapping retval and newval.
22507 2016-03-10  Nick Clifton  <nickc@redhat.com>
22509         PR target/7044
22510         * config/aarch64/aarch64.c
22511         (aarch64_override_options_after_change_1): When forcing
22512         flag_omit_frame_pointer to be true, use a special value that can
22513         be detected if this function is called again, thus preventing
22514         flag_omit_leaf_frame_pointer from being forced to be false.
22516 2016-03-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22518         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
22519         Set x_flag_omit_leaf_frame_pointer when handling
22520         -momit-leaf-frame-pointer.
22522 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
22524         PR lto/69589
22525         * cgraph.c (cgraph_node::dump): Dump split_part and
22526         indirect_call_target.
22527         * cgraph.h (cgraph_node): Add indirect_call_target flag.
22528         * ipa.c (has_addr_references_p): Cleanup.
22529         (is_indirect_call_target_p): New.
22530         (walk_polymorphic_call_targets): Do not mark virtuals that may be
22531         called indirectly as local.
22532         (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
22534 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
22536         PR ipa/69630
22537         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
22538         on cxa_pure_virtual.
22540 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
22542         PR lto/69589
22543         * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
22545 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
22547         PR lto/69589
22548         * tree.c (need_assembler_name_p): Only record main variant type names.
22550 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
22552         PR target/70113.
22553         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
22554         Always define to 0 or 1.
22555         (TARGET_FIX_ERR_A53_843419): New macro.
22556         * config/aarch64/aarch64-elf-raw.h
22557         (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
22558         * config/aarch64/aarch64-linux.h: Likewise.
22559         * config/aarch64/aarch64.c
22560         (aarch64_override_options_after_change_1): Do not default
22561         aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
22562         843419 is on.
22563         (aarch64_attributes): Handle fix-cortex-a53-843419.
22564         (aarch64_can_inline_p): Likewise.
22565         * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
22567 2016-03-10  Alan Lawrence  <alan.lawrence@arm.com>
22568             Jakub Jelinek  <jakub@redhat.com>
22570         * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
22571         * tree.c (array_at_struct_end_p): Do not limit to size of decl for
22572         DECL_COMMONS if flag_unconstrained_commons is set.
22573         * tree-dfa.c (get_ref_base_and_extent): Likewise.
22574         * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
22575         (funconstrained-commons): Document.
22577 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
22579         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
22580         aarch64-fusion-pairs.def and aarch64-tuning-flags.def
22582 2016-03-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
22584         * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
22585         has a proper number of elements.
22587 2016-03-10  Alan Modra  <amodra@gmail.com>
22589         PR rtl-optimization/69195
22590         PR rtl-optimization/47992
22591         * ira.c (recorded_label_ref): Delete.
22592         (update_equiv_regs): Return void.
22593         (indirect_jump_optimize): New function.
22594         (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
22595         before regstat_compute_ri.  Don't rebuild_jump_labels here.
22596         Delete update_regstat.
22598 2016-03-10  Richard Biener  <rguenther@suse.de>
22600         PR tree-optimization/70128
22601         * tree-ssa-structalias.c (set_uids_in_ptset): Set
22602         vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
22604 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
22606         PR tree-optimization/70152
22607         * tree-sra.c (replace_removed_params_ssa_names): Copy over
22608         SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
22610         PR target/70086
22611         * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
22612         instead of gen_sse2_loadlpd.
22613         * config/i386/sse.md (*vec_concatv2df): Rename to...
22614         (vec_concatv2df): ... this.
22616         PR tree-optimization/70127
22617         * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
22619 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
22621         PR c/68473
22622         PR c++/70105
22623         * diagnostic-show-locus.c (compatible_locations_p): New function.
22624         (layout::layout): Sanitize ranges using compatible_locations_p.
22626 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
22628         PR c/68473
22629         PR c++/70105
22630         * diagnostic-show-locus.c (layout_range::layout_range): Replace
22631         location_range param with three const expanded_locations * and a
22632         bool.
22633         (layout::layout): Replace call to
22634         rich_location::lazily_expand_location with get_expanded_location.
22635         Extract the range and perform location expansion here, passing
22636         the results to the layout_range ctor.
22637         * diagnostic.c (source_range::debug): Delete.
22638         * diagnostic.h (diagnostic_expand_location): Reimplement in terms
22639         of rich_location::get_expanded_location.
22640         * gcc-rich-location.c (get_range_for_expr): Delete.
22641         (gcc_rich_location::add_expr): Reimplement to avoid the
22642         rich_location::add_range overload that took a location_range,
22643         passing a location_t instead.
22645 2016-03-09  Richard Biener  <rguenther@suse.de>
22646         Jakub Jelinek  <jakub@redhat.com>
22648         PR tree-optimization/70138
22649         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
22650         Also skip vect_double_reduction_def.
22652 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
22654         PR target/70049
22655         * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
22656         if the operand is "m".
22658 2016-03-09  Nathan Sidwell  <nathan@acm.org>
22660         * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
22662 2016-03-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
22664         * config/i386/i386.c (processor_target_table): Fix cost table
22665         intialization order for znver1.
22667 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
22669         * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
22670         - becuase -> because.
22671         * ipa-reference.c (ignore_module_statics): Likewise.
22672         * cgraph.c (cgraph_node::get_body): Likewise.
22673         * ipa-inline.c (early_inliner): Likewise.
22674         * ipa-devirt.c (types_same_for_odr): Likewise.
22675         * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
22676         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
22678 2016-03-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22680         * tree-ssa-math-opts.c: Fix typo in comment.
22682 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
22684         PR target/70110
22685         * config/i386/i386.c (scalar_chain::make_vector_copies,
22686         scalar_chain::convert_reg): Call end_sequence in between
22687         get_insns and emit_conversion_insns rather than after both
22688         calls.
22690 2016-03-07  Uros Bizjak  <ubizjak@gmail.com>
22692         PR target/70064
22693         * config/i386/i386.h (machine_function): Add
22694         pc_thunk_call_expanded flag.
22695         (ix86_pc_thunk_call_expanded): New define.
22696         * config/i386/i386.md (set_got, set_got_labelled): New expanders.
22697         (*set_got): Rename insn pattern from set_got.
22698         (*set_got_labelled): Rename inst pattern from set_got_labelled.
22699         * config/i386/i386.c (ix86_compute_frame_layout): Use
22700         ix86_pc_thunk_call_expanded to prevent red-zone.
22702 2016-03-07  Martin Jambor  <mjambor@suse.cz>
22704         * hsa.h (hsa_get_ctor_statements): Declare.
22705         (hsa_get_dtor_statements): Likewise.
22706         (hsa_get_kernel_dispatch_type): Likewise.
22707         * hsa.c (hsa_get_ctor_statements): New function.
22708         (hsa_get_dtor_statements): Likewise.
22709         (hsa_get_kernel_dispatch_type): Likewise.
22710         * hsa-brig.c (hsa_cdtor_statements): Removed.
22711         (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
22712         hsa_get_dtor_statements.
22713         * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
22714         (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
22716 2016-03-07  Andre Vieira  <andre.simoesdiasvieira@arm.com>
22718         * config/arm/arm-cores.def (cortex-r8): New.
22719         * config/arm/arm-tables.opt (cortex-r8): Regenerate.
22720         * config/arm/arm-tune.md: Likewise.
22721         * doc/invoke.texi: Add cortex-r8 to list of cpu values.
22723 2016-03-07  Martin Sebor  <msebor@redhat.com>
22725         PR rtl-optimization/19705
22726         * doc/invoke.texi (Options That Control Optimization): Clarify
22727         -fno-branch-count-reg.
22729 2016-02-26  Richard Biener  <rguenther@suse.de>
22730             Jeff Law  <law@redhat.com>
22732         PR tree-optimization/69740
22733         * cfghooks.c (remove_edge): Request loop fixups if we delete
22734         an edge that might turn an irreducible loop into a natural
22735         loop.
22736         * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
22737         Move after definition of loops_state_clear.
22739 2016-03-07  Bin Cheng  <bin.cheng@arm.com>
22741         PR rtl-optimization/69052
22742         * rtlanal.c (commutative_operand_precedence): Set higher precedence
22743         to CONST_WIDE_INT.
22745 2016-03-07  Tom de Vries  <tom@codesourcery.com>
22747         PR tree-optimization/70116
22748         * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
22749         is_tm_ending stmts and ubsan/asan internal functions.
22750         (find_duplicate): Use it.  Don't test is_tm_ending here.
22752 2016-03-07  Richard Biener  <rguenther@suse.de>
22754         PR tree-optimization/70115
22755         * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
22756         (propagate_constants_for_unrolling): Use replace_uses_by.
22758 2016-03-07  Nathan Sidwell  <nathan@codesourcery.com>
22760         PR middle-end/69916
22761         * omp-low.c (struct oacc_loop): Add ifns.
22762         (new_oacc_loop_raw): Initialize it.
22763         (finish_oacc_loop): Clear mask & flags if no ifns.
22764         (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
22765         (oacc_loop_xform_loop): Add ifns arg & adjust.
22766         (oacc_loop_process): Adjust oacc_loop_xform_loop call.
22768 2016-03-07  Richard Henderson  <rth@redhat.com>
22770         PR rtl-opt/70061
22771         * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
22772         (insert_value_copy_on_edge): Likewise.
22774 2016-03-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22776         * config/arm/arm_neon.h: Show error if using with soft-float ABI.
22778 2016-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22780         PR target/62281
22781         * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
22783 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
22785         * config/i386/i386.c (znver1_cost): Fix Multiply cost.
22787 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
22789         Fix sseimul type attribute.
22790         * config/i386/znver1.md
22791         (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
22792         znver1_sseimul_avx256_load) : Fix the type attribute.
22793         (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
22794         pipe usage and latency.
22796 2016-03-05  Jakub Jelinek  <jakub@redhat.com>
22798         PR c++/70084
22799         * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
22800         of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
22801         to the right type.
22803 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
22805         PR c/69973
22806         * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
22808         PR rtl-optimization/69941
22809         * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
22810         the reg share its mode.
22812 2016-03-04  Jeff Law  <law@redhat.com>
22814         PR tree-optimization/69196
22815         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
22816         If the both SSA_NAMEs are anonymous, then consider them unassociated
22817         and include the PHI in the statement count.
22819 2016-03-05  Tom de Vries  <tom@codesourcery.com>
22821         * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
22822         construct in oacc routine.  Check for oacc region in oacc routine.
22824 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
22826         PR target/70062
22827         * config/i386/i386.c (decide_alg): Add RECUR argument.  Revert
22828         2016-02-22 changes, instead don't recurse if RECUR is already true.
22829         Don't change *dynamic_check if RECUR.  Adjust recursive caller
22830         to pass true to the new argument.
22831         (ix86_expand_set_or_movmem): Adjust decide_alg caller.
22833         PR target/70059
22834         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
22835         <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
22836         fixes.
22837         (vec_set_hi_<mode><mask_name>): Likewise.  Swap VEC_CONCAT operands.
22839 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
22841         PR rtl-optimization/57676
22842         * lra-assigns.c (lra_assign): Guard test for maximum iterations
22843         with flag_checking.
22845 2016-03-04  Ilya Enkovich  <enkovich.gnu@gmail.com>
22847         * tree-vect-patterns.c (search_type_for_mask): Handle
22848         comparison of booleans.
22850 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
22852         * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
22853         Fix @xref usage.
22855         PR debug/69947
22856         * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
22857         all other ops that have dw_val_class_die_ref operands,
22858         and DW_OP_GNU_entry_value.
22860 2016-03-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22862         PR rtl-optimization/69904
22863         * config/arm/arm.c (arm_cannot_copy_insn_p):
22864         Return true for load-exclusive instructions.
22866 2016-03-03  Jakub Jelinek  <jakub@redhat.com>
22868         PR target/70021
22869         * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
22870         argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
22871         the pattern no matter if it is used just by non-pattern, pattern
22872         or mix thereof.
22873         (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
22874         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
22875         oprnd1 def_stmt is in pattern, don't look through it.
22877 2016-03-03  Marek Polacek  <polacek@redhat.com>
22879         PR middle-end/70050
22880         * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
22882 2016-03-03  Martin Liska  <mliska@suse.cz>
22884         PR tree-optimization/70043
22885         * tree-vect-loop.c (optimize_mask_stores): Move iterator to
22886         previous statement if we see a debug statement.
22888 2016-03-03  Richard Biener  <rguenther@suse.de>
22890         PR tree-optimization/55936
22891         * tree-vrp.c (compare_name_with_value): Add use_equiv_p
22892         parameter and guard unsafe equivalence use.
22893         (vrp_evaluate_conditional_warnv_with_ops): Always use
22894         safe equivalences but not via the quadratic compare_names
22895         helper.
22897 2016-03-03  Michael Collison  <michael.collison@linaro.org>
22899         PR target/70014
22900         * config/arm/arm.md (*subsi3_carryin_const): Change predicate
22901         for operand 1 to s_register_operand. Change predicate for operand
22902         2 to arm_not_immediate_operand.
22904 2016-03-02  H.J. Lu  <hongjiu.lu@intel.com>
22906         * doc/tm.texi: Regenerated.
22908 2016-03-02  Richard Henderson  <rth@redhat.com>
22910         PR rtl-opt/67145
22911         * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
22912         simplification when all args are positive non-fixed registers.
22914 2016-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
22916         * target.def (lra_p): Specify that new ports should use LRA.
22918 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
22920         PR libgomp/69555
22921         * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
22922         gimplify_type_sizes the type they refer to.
22923         (omp_notice_variable): Handle reference vars to VLAs.
22924         * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
22925         reference to VLA decls in the second pass instead of first pass.
22927 2016-03-02  Tom de Vries  <tom@codesourcery.com>
22929         PR tree-optimization/68659
22930         * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
22931         new_expr == NULL_TREE.
22932         (get_new_name): Handle ADDR_EXPR.
22934 2016-03-02  Bin Cheng  <bin.cheng@arm.com>
22936         PR rtl-optimization/69052
22937         * loop-invariant.c (canonicalize_address): New function.
22938         (inv_can_prop_to_addr_use): Check validity of address expression
22939         which is canonicalized by above function.
22941 2016-03-02  Alan Modra  <amodra@gmail.com>
22943         PR ipa/69990
22944         * ipa-icf.c (sem_variable::merge): Do not merge an alias with
22945         larger alignment.
22947 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
22949         PR target/70028
22950         * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
22951         (*movhi_internal): Put mask moves from and to memory separately
22952         from moves from/to GPRs.
22954 2016-03-02  Richard Biener  <rguenther@suse.de>
22956         * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
22957         GENERIC expressions in GIMPLE.
22959 2016-03-02  Richard Biener  <rguenther@suse.de>
22961         * config/i386/i386.c (type_natural_mode): Fix typo.
22963 2016-03-02  Nick Clifton  <nickc@redhat.com>
22965         * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
22967 2016-03-02  Richard Biener  <rguenther@suse.de>
22968             Uros Bizjak  <ubizjak@gmail.com>
22970         PR target/67278
22971         * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
22973 2016-03-02  Richard Biener  <rguenther@suse.de>
22975         PR middle-end/67278
22976         * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
22978 2016-03-02  Marek Polacek  <polacek@redhat.com>
22980         PR c/67854
22981         * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
22982         "is promoted to" warning.
22984 2016-03-01  DJ Delorie  <dj@redhat.com>
22986         * config.gcc: Deprecate mep-*.
22988 2016-03-01  Vladimir Makarov  <vmakarov@redhat.com>
22990         PR middle-end/70025
22991         * lra-constraints.c (regno_val_use_in): New.
22992         (match_reload): Use it instead of regno_use_in.
22994 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
22996         PR rtl-optimization/70007
22997         * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
22998         references present in REG_EQUAL notes attached to non-SET patterns.
23000 2016-03-01  Jeff Law  <law@redhat.com>
23002         PR tree-optimization/69196
23003         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
23004         Appropriately clamp the number of statements to copy when the
23005         thread path does not traverse a loop backedge.
23007         PR tree-optimization/69196
23008         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
23009         Do count some PHIs in the thread path against the insn count.  Decrease
23010         final statement count by one as the control statement in the last
23011         block will get removed.  Remove special cased code for handling PHIs
23012         in the last block.
23014 2016-03-01  Uros Bizjak  <ubizjak@gmail.com>
23016         PR target/70027
23017         * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
23018         asm dialect alternatives to explicit GOTPCREL calls.
23020 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
23022         PR ada/70017
23023         * ira.c (do_reload): Issue warning for generic stack checking here...
23024         * reload1.c (reload): ...instead of here and streamline it.
23026 2016-03-01  Nick Clifton  <nickc@redhat.com>
23028         * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
23030 2016-03-01  Richard Biener  <rguenther@suse.de>
23032         PR tree-optimization/69983
23033         * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
23034         types and fall back to operand_equal_p.
23036 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23038         Revert
23039         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23041         * config/s390/constraints.md ("jm8"): New constraint.
23042         * config/s390/predicates.md ("const_int_8bitset_operand"): New
23043         predicate.
23044         * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
23045         into ...
23046         ("*setmem_long<setmem_and>"): New pattern.
23047         ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
23048         into ...
23049         ("*setmem_long_31z<setmem_and>"): New pattern.
23050         * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
23051         New substitution rules with the required attributes.
23054 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23056         Revert
23057         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23059         * gensupport.c (process_substs_on_one_elem): Split loop to
23060         complete mark_operands_used_in_match_dup on all expressions in the
23061         vector first.
23062         (adjust_operands_numbers): Inline into process_substs_on_one_elem
23063         and remove function.
23065 2016-03-01  Richard Biener  <rguenther@suse.de>
23067         PR middle-end/70022
23068         * fold-const.c (fold_indirect_ref_1): Fix range checking for
23069         vector BIT_FIELD_REF extract.
23071 2016-03-01  Richard Biener  <rguenther@suse.de>
23073         PR tree-optimization/69994
23074         * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
23076 2016-03-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
23078         PR tree-optimization/69956
23079         * tree-vect-stmts.c (supportable_widening_operation): Support
23080         multi-step conversion of boolean vectors.
23081         (supportable_narrowing_operation): Likewise.
23083 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23085         * config/s390/s390.c (s390_decompose_address): Don't accept SImode
23086         anymore.
23088 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23090         * config/s390/subst.md (DSI_VI): New mode iterator.
23091         ("addr_style_op_subst"): Use DSI_VI instead of DSI.
23092         * config/s390/vector.md ("vec_set<mode>"): Move expander before
23093         the insn definition.
23094         ("*vec_set<mode>"): Change predicate and add alternative to
23095         support only either register or const_int operands as element
23096         selector.
23097         ("*vec_set<mode>_plus"): New pattern to support reg + const_int
23098         operands.
23099         ("vec_extract<mode>"): New expander.
23100         ("*vec_extract<mode>"): New insn definition supporting reg and
23101         const_int element selectors.
23102         ("*vec_extract<mode>_plus"): New insn definition supporting
23103         reg+const_int element selectors.
23104         ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
23105         following expander+insn definition.
23106         ("<vec_shifts_name><mode>3"): New expander.
23107         ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
23109 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23111         * config/s390/s390.md ("*tabort_1"): Change predicate to
23112         nonmemory_operand.  Add a second alternative to cover
23113         register as well as const int operands.
23114         ("*tabort_1_plus"): New pattern definition.
23116 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23118         * config/s390/s390.md ("*ashrdi3_cc_31")
23119         ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
23120         ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
23121         Merge insn definitions into ...
23122         ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
23123         New pattern definition.
23124         ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
23125         ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
23126         ("*ashr<mode>3_and"): Merge insn definitions into ...
23127         ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
23128         New pattern definition.
23129         * config/s390/subst.md ("addr_style_op_cc_subst")
23130         ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
23131         substitutions patterns plus attributes.
23132         Add ashiftrt to SUBST iterator.
23134 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23136         * config/s390/s390.md ("<shift><mode>3"): Change predicate of
23137         op2 to nonmemory_operand.
23138         ("*<shift>di3_31", "*<shift>di3_31_and"):
23139         Merge into single pattern definition ...
23140         ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
23141         ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
23142         pattern definition ...
23143         ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
23144         * config/s390/subst.md: Add ashift and lshiftrt to SUBST
23145         iterator.
23147 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23149         * config/s390/predicates.md (const_int_6bitset_operand): New
23150         predicate.
23151         * config/s390/s390.md: Include subst.md.
23152         ("rotl<mode>3"): New expander.
23153         ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
23154         ...
23155         ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
23156         * config/s390/subst.md: New file.
23158 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23160         * config/s390/s390.md ("op_type", "atype", "length" attributes):
23161         Remove RRR type.  It doesn't really exist.
23162         ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
23163         attributes.
23164         ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
23165         ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
23166         ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
23167         ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
23168         ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
23169         ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
23170         `enabled' attribute.
23172 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23174         * gensupport.c (process_substs_on_one_elem): Split loop to
23175         complete mark_operands_used_in_match_dup on all expressions in the
23176         vector first.
23177         (adjust_operands_numbers): Inline into process_substs_on_one_elem
23178         and remove function.
23180 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
23182         PR target/69706
23183         * config/sparc/sparc.c (NWORDS_UP): Rename to...
23184         (CEIL_NWORDS): ...this.  Use CEIL macro.
23185         (compute_fp_layout): Adjust to above renaming.
23186         (function_arg_union_value): Likewise.
23187         (sparc_arg_partial_bytes): Likewise.
23188         (sparc_function_arg_advance): Likewise.
23190 2016-02-29  Jeff Law  <law@redhat.com>
23192         PR tree-optimization/70005
23193         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
23194         where an object with a boolean range is compared against a value
23195         outside [0..1].
23197         PR tree-optimization/69999
23198         * gimple-ssa-split-paths.c (split_paths): When duplicating a block
23199         with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
23200         loop cleanups.
23202 2016-02-29  Richard Biener  <rguenther@suse.de>
23204         PR tree-optimization/69994
23205         * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
23206         (get_unary_op): Look through nop conversions.
23207         (ops_equal_values_p): New function, look for equality diregarding
23208         nop conversions.
23209         (eliminate_plus_minus_pair): Use ops_equal_values_p
23210         (repropagate_negates): Do not use get_unary_op here.
23212 2016-02-29  Martin Liska  <mliska@suse.cz>
23214         * system.h: Poison ENABLE_CHECKING macro.
23216 2016-02-29  Martin Liska  <mliska@suse.cz>
23218         * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
23219         is presented in dump flags.
23220         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
23221         (hsa_regalloc): Likewise.
23223 2016-02-19  Richard Biener  <rguenther@suse.de>
23225         PR tree-optimization/69980
23226         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
23227         permutation of those we need to keep.
23229 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
23231         PR target/69706
23232         * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
23233         (NWORDS_UP): ...this
23234         (init_cumulative_args): Minor tweaks.
23235         (sparc_promote_function_mode): Likewise.
23236         (scan_record_type): Delete.
23237         (traverse_record_type): New function template.
23238         (classify_data_t): New structure type.
23239         (classify_registers): New inline function.
23240         (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
23241         exhausted.  Instantiate traverse_record_type on classify_registers and
23242         deal with the case of a structure passed in slot #15 with no FP field
23243         in the first word.
23244         (assign_data_t): New structure type.
23245         (compute_int_layout): New static function.
23246         (compute_fp_layout): Likewise.
23247         (count_registers): New inline function.
23248         (assign_int_registers): New static function.
23249         (assign_fp_registers): Likewise.
23250         (assign_registers): New inline function.
23251         (function_arg_record_value_1): Delete.
23252         (function_arg_record_value_2): Likewise.
23253         (function_arg_record_value_3): Likewise.
23254         (function_arg_record_value): Adjust to above changes.  Instantiate
23255         traverse_record_type on count_registers to first count the number of
23256         registers to be used and then on assign_registers to assign them.
23257         (function_arg_union_value): Adjust to above renaming.
23258         (sparc_function_arg_1); Minor tweaks.  Remove commented out code.
23259         (sparc_arg_partial_bytes): Adjust to above renaming.  Deal with the
23260         case of a structure passed in slot #15
23261         (sparc_function_arg_advance): Likewise.
23262         (function_arg_padding): Minor tweak.
23264 2016-02-29  Richard Biener  <rguenther@suse.de>
23266         PR tree-optimization/69720
23267         * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
23268         the adjustment_def path for possibly vectorized defs.
23269         (vect_create_epilog_for_reduction): Handle vectorized initial
23270         defs properly.
23272 2016-02-28  Eric Botcazou  <ebotcazou@adacore.com>
23274         * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
23276 2016-02-27  Jeff Law  <law@redhat.com>
23278         Revert
23279         2016-02-26  Richard Biener  <rguenther@suse.de>
23280                     Jeff Law  <law@redhat.com>
23282         PR tree-optimization/69740
23283         * cfghooks.c (remove_edge): Request loop fixups if we delete
23284         an edge that might turn an irreducible loop into a natural
23285         loop.
23287 2016-02-27  Jakub Jelinek  <jakub@redhat.com>
23289         PR rtl-optimization/69896
23290         * tree-vect-generic.c (get_compute_type): Avoid single element
23291         vector types.
23293 2016-02-26  Evandro Menezes  <e.menezes@samsung.com>
23295         Rename the AArch64 tuning option and related functions to enable the
23296         Newton series for the reciprocal square root to reflect its
23297         approximative characteristic.
23299         * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
23300         function to "aarch64_emit_approx_rsqrt".
23301         * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
23302         AARCH64_EXTRA_TUNE_APPROX_RSQRT.
23303         * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
23304         (xgene1_tunings): Likewise.
23305         (use_rsqrt_p): Likewise.
23306         (aarch64_emit_swrsqrt): Use new function name.
23307         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
23308         * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
23309         text explaining this option.
23310         * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
23312 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
23314         PR target/69969
23315         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
23316         complain about -mallow-movmisalign without -mvsx if
23317         TARGET_ALLOW_MOVMISALIGN was not set explicitly.
23319 2016-02-26  Joel Sherrill  <joel@rtems.org>
23321         * config.gcc: Add x86_64-*-rtems*.
23322         * config/i386/rtems-64.h: New file.
23324 2016-02-26  Joel Sherrill  <joel@rtems.org>
23326         * config.gcc: Add aarch64-*-rtems*.
23327         * config/aarch64/rtems.h: New file.
23329 2016-02-26  Segher Boessenkool  <segher@kernel.crashing.org>
23331         PR target/69946
23332         * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
23333         shift amount using %h.  Add comment.
23335 2016-02-26  Richard Biener  <rguenther@suse.de>
23336             Jeff Law  <law@redhat.com>
23338         PR tree-optimization/69740
23339         * cfghooks.c (remove_edge): Request loop fixups if we delete
23340         an edge that might turn an irreducible loop into a natural
23341         loop.
23343 2016-02-26  Martin Jambor  <mjambor@suse.cz>
23345         PR middle-end/69920
23346         * tree-sra.c (sra_modify_assign): Do not remove loads of
23347         uninitialized aggregates to SSA_NAMEs.
23349 2016-02-26  Richard Henderson  <rth@redhat.com>
23351         PR target/69709
23352         * config/s390/s390.md (risbg and risbgn splitters): Allocate new
23353         pseudo in case the target rtx matches the source of the left
23354         shift.
23356 2016-02-26  Martin Jambor  <mjambor@suse.cz>
23358         PR hsa/69568
23359         * hsa.h (hsa_type_packed_p): Declare.
23360         * hsa.c (hsa_type_packed_p): New function.
23361         * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
23362         loads.
23363         (gen_hsa_insns_for_store): Use hsa_type_packed_p.
23364         * hsa-brig.c (emit_basic_insn): Likewise.
23366 2016-02-26  Martin Jambor  <mjambor@suse.cz>
23368         pr hsa/69674
23369         * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
23370         pointers.
23371         (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
23373 2016-02-26  Martin Jambor  <mjambor@suse.cz>
23375         * hsa.h (is_a_helper): New overload for hsa_op_immed for
23376         hsa_op_with_type operands.
23377         (hsa_unsigned_type_for_type): Declare.
23378         * hsa.c (hsa_unsigned_type_for_type): New function.
23379         * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
23380         (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
23381         the finalizer.  Do not emit extra move.
23383 2016-02-26  Martin Jambor  <mjambor@suse.cz>
23385         * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
23386         atomic operations in private segment.
23388 2016-02-26  Martin Jambor  <mjambor@suse.cz>
23390         * omp-low.c (grid_find_ungridifiable_statement): Store problematic
23391         statements to wi->info.  Also disallow omp simd constructs.
23392         (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
23393         for not gridifying.  Dump special string for omp_for.
23395 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23397         PR target/69245
23398         * config/aarch64/aarch64.c (aarch64_set_current_function):
23399         Save/restore target globals when switching to
23400         target_option_default_node.
23402 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23404         PR target/69613
23405         * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
23406         Return 0 if !SHIFT_COUNT_TRUNCATED.
23408 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
23409             Eric Botcazou  <ebotcazou@adacore.com>
23411         PR rtl-optimization/69891
23412         * dse.c (scan_insn): If we can't figure out memset arguments
23413         or they are non-constant, call clear_rhs_from_active_local_stores.
23415 2016-02-26  Martin Liska  <mliska@suse.cz>
23417         * doc/extend.texi: Mention clog10, clog10f an clog10l
23418         in Builtins section.
23420 2016-02-26  Martin Liska  <mliska@suse.cz>
23422         * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
23423         CHECKING_P.
23424         (resolve_args_picking_1): Likewise.
23425         * dwarf2out.h (struct GTY): Likewise.
23427 2016-02-26  Martin Liska  <mliska@suse.cz>
23429         * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
23430         with flag_checking.
23431         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
23433 2016-02-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
23434             Martin Liska  <mliska@suse.cz>
23436         * doc/install.texi: Mention --enable-valgrind-annotations.
23438 2016-02-26  Richard Biener  <rguenther@suse.de>
23440         PR tree-optimization/69551
23441         * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
23442         looking through aliases adjust DECL_PT_UID to refer to the
23443         ultimate alias target.
23445 2016-02-25  Martin Liska  <mliska@suse.cz>
23447         PR middle-end/69919
23448         * alloc-pool.c (after_memory_report): New variable.
23449         * alloc-pool.h (base_pool_allocator ::release): Do not use
23450         the infrastructure if after_memory_report.
23451         * toplev.c (toplev::main): Mark after memory report.
23453 2016-02-25  Richard Biener  <rguenther@suse.de>
23455         PR tree-optimization/48795
23456         * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
23458 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
23460         PR driver/68463
23461         * config/gnu-user.h (CRTOFFLOADBEGIN): Define.  Add crtoffloadbegin.o if
23462         offloading is enabled and -fopenacc or -fopenmp is specified.
23463         (CRTOFFLOADEND): Likewise.
23464         (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
23465         (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
23466         * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
23467         (offload_objects_file_name): New static var.
23468         (tool_cleanup): Remove offload_objects_file_name file.
23469         (find_offloadbeginend): Replace with ...
23470         (find_crtoffloadtable): ... this.
23471         (run_gcc): Remove offload_argc and offload_argv.
23472         Get offload_objects_file_name from -foffload-objects=... option.
23473         Read names of object files with offload from this file, pass them to
23474         compile_images_for_offload_targets.  Don't call find_offloadbeginend and
23475         don't pass offloadbegin and offloadend to the linker.  Don't pass
23476         offload non-LTO files to the linker, because now they're not claimed.
23478 2016-02-25  Jan Hubicka  <hubicka@ucw.cz>
23480         PR ipa/69630
23481         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
23482         on builtin_unreachable.
23484 2016-02-25  Jakub Jelinek  <jakub@redhat.com>
23486         PR rtl-optimization/69896
23487         * regcprop.c: Include cfgrtl.h.
23488         (copyprop_hardreg_forward_1): If noop_p insn uses narrower
23489         than remembered mode, either delete it (if noop_move_p), or
23490         treat like copy_p but not noop_p instruction.
23492 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
23494         PR debug/69705
23495         * dwarf2out.c (gen_variable_die): Work around buggy LTO
23496         - allow NULL decl for Fortran DW_TAG_common_block variables.
23498 2016-02-24  Jason Merrill  <jason@redhat.com>
23500         * common.opt (flifetime-dse): Add -flifetime-dse=1.
23502 2016-02-24  Richard Biener  <rguenther@suse.de>
23503             Jakub Jelinek  <jakub@redhat.com>
23505         PR middle-end/69760
23506         * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
23507         conditionally executed ops to well-defined overflow behavior.
23509 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
23511         PR middle-end/69915
23512         * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
23513         elements.
23515 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23517         PR rtl-optimization/69886
23518         * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
23519         argument.  Use it when checking validity of set instructions.
23520         (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
23521         (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
23522         callsite.
23523         * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
23524         * store-motion.c (find_moveable_store): Update
23525         can_assign_to_reg_without_clobbers_p callsite.
23527 2016-02-24  Richard Biener  <rguenther@suse.de>
23529         PR middle-end/68963
23530         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
23531         bogus check.
23532         (record_nonwrapping_iv): Do not fall back to the low/high bound
23533         for non-constant IV bases if the stmt is not always executed.
23535 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23537         * config/arm/arm-cores.def (cortex-a32): New entry.
23538         * config/arm/arm-tables.opt: Regenerate.
23539         * config/arm/arm-tune.md: Regenerate.
23540         * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
23541         * config/arm/t-aprofile: Handle mcpu=cortex-a32.
23542         * doc/invoke.texi (ARM Options): Document cortex-a32 as value
23543         for -mcpu and -mtune.
23545 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23547         PR target/69875
23548         * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
23549         * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
23550         * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
23551         (atomic_loaddi_1): Delete.
23552         (atomic_loaddi): Rewrite expander using the above changes.
23554 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
23556         PR c/69918
23557         * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
23558         2 to 3.
23560 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
23561             Richard Biener  <rguenth@suse.de>
23563         PR middle-end/69909
23564         * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
23565         set_mem_attributes if tem is SSA_NAME which got expanded
23566         as a MEM.
23568 2016-02-24  Richard Biener  <rguenther@suse.de>
23570         PR tree-optimization/69907
23571         * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
23572         end of permutations for BB vectorization.
23574 2016-02-24  Christian Bruel  <christian.bruel@st.com>
23576         * config/arm/arm-c.c (arm_option_override): Initialize
23577         target_option_current_node.
23578         * config/arm/arm.c (arm_pragma_target_parse): Replace
23579         build_target_option_node call by target_option_current_node.
23580         Set target_option_current_node.
23581         Fix comments.
23583 2016-02-23  David Edelsohn  <dje.gcc@gmail.com>
23585         PR target/69810
23586         * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
23587         define_insn_and_split to define_insn.
23588         (zero_extendqi<mode>2_dot2): Same.
23589         (extendqi<mode>2_dot): Same.
23590         (extendqi<mode>2_dot2): Same.
23592 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
23594         * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
23595         and add bypass for AES{D,E} and AESMC pairs.
23596         * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
23597         and AESMC pairs.
23599 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
23601         * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
23602         series for reciprocal square root in Exynos M1.
23604 2016-02-23  Martin Sebor  <msebor@redhat.com>
23606         PR c/69759
23607         * doc/extend.texi (Other Builtins): Document __builtin_alloca and
23608         __builtin_alloca_with_align.
23610 2016-02-23  Richard Henderson  <rth@redhat.com>
23612         * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
23613         (ix86_register_pragmas): Remove __seg_tls.
23614         * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
23615         * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
23616         (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
23617         (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
23618         (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
23619         * doc/extend.texi (__seg_tls): Remove item.
23621 2016-02-23  Richard Biener  <rguenther@suse.de>
23623         * alloc-pool.h (struct allocation_object): Make id member
23624         conditional on CHECKING_P again.
23625         (get_instance): Adjust.
23626         (base_pool_allocator): Likewise.
23628 2016-02-23  Thomas Schwinge  <thomas@codesourcery.com>
23630         * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
23631         (parallelize_loops): In OpenACC kernels mode, set n_threads to
23632         zero.
23633         (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
23634         flag_openacc.
23635         * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
23637 2016-02-23  Richard Biener  <rguenther@suse.de>
23639         * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
23640         * bitmap.h (struct bitmap_usage): Likewise.
23641         (bitmap_move): Declare.
23642         * bitmap.c (register_overhead): Take size_t argument.
23643         (bitmap_move): New function.
23644         * df-problems.c (df_rd_transfer_function): Use bitmap_move
23645         to properly account overhead.
23646         * tree.c (free_node): Use tree_size.
23648 2016-02-23  Jakub Jelinek  <jakub@redhat.com>
23650         PR c++/69902
23651         * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
23652         when inverting comparison.
23654         PR c/69900
23655         * common.opt (Wunreachable-code): Add Warning flag.
23657 2016-02-23  Mark Wielaard  <mjw@redhat.com>
23658             Jakub Jelinek  <jakub@redhat.com>
23660         PR c/69911
23661         * cgraphunit.c (check_global_declaration): Check main_input_filename
23662         and DECL_SOURCE_FILE are not NULL.
23664 2016-02-23  Martin Jambor  <mjambor@suse.cz>
23666         PR tree-optimization/69666
23667         * tree-sra.c (sra_modify_assign): Do not attempt to create
23668         default_def replacements for unscalarizable regions.
23670 2016-02-20  Mark Wielaard  <mjw@redhat.com>
23672         PR c/28901
23673         * cgraphunit.c (check_global_declaration): Check level of
23674         warn_unused_const_variable and main_input_filename.
23675         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
23676         (-Wunused-variable): For C implies -Wunused-const-variable=1.
23677         (-Wunused-const-variable): Explain levels 1 and 2.
23679 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
23681         PR target/69888
23682         * config/i386/i386.c (decide_alg): Ensure we don't recurse with
23683         identical arguments.  Formatting and spelling fixes.
23685         PR target/69885
23686         * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
23687         be specified.
23689         PR target/69894
23690         PR target/69895
23691         * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
23692         and m68k-devices.def.
23693         * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
23694         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
23696 2016-02-22  Cesar Philippidis  <cesar@codesourcery.com>
23698         * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
23699         and HImode registers.
23701 2016-02-22  Richard Biener  <rguenther@suse.de>
23703         PR tree-optimization/69882
23704         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
23705         preserve permutations present because of gaps.
23706         (vect_supported_load_permutation_p): Always continue checking
23707         permutations after vect_attempt_slp_rearrange_stmts.
23709 2016-02-22  Bin Cheng  <bin.cheng@arm.com>
23711         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
23712         min_profitable_estimate, rather than min_profitable_iters.
23714 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
23716         PR target/69885
23717         * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
23718         SImode for last match_operand.
23720 2016-02-22  Martin Liska  <mliska@suse.cz>
23722         * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
23723         return bitsize - 1 as the return value.
23725 2016-02-22  Oleg Endo  <olegendo@gcc.gnu.org>
23727         PR target/69806
23728         PR target/54089
23729         * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
23730         Handle negative shift counts.
23731         * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
23732         force_reg on the shift constant.
23733         (lshrsi3): Likewise.  Expand into lshrsi3_n* instead of lshrsi3_d.
23734         (lshrsi3_d): Handle negative shift counts.
23736 2016-02-22  Richard Biener  <rguenther@suse.de>
23737             Tom de Vries  <tom@codesourcery.com>
23739         * graph.c: Include dumpfile.h.
23740         (print_graph_cfg): Split into three overloads.
23741         * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
23743 2016-02-22  Tom de Vries  <tom@codesourcery.com>
23745         * gdbhooks.py (class DumpFn): Add and instantiate, adding command
23746         dump-fn.
23748 2016-02-22  Richard Biener  <rguenther@suse.de>
23750         PR ipa/37448
23751         * ipa-inline-transform.c (inline_call): When not updating
23752         overall summaries adjust self size by the growth estimate.
23753         * ipa-inline.c (inline_to_all_callers_1): Add to the callers
23754         hash-set, do not update overall summaries here.  Renamed from ...
23755         (inline_to_all_callers): ... this which is now wrapping the
23756         above and performing delayed overall summary update.
23757         (early_inline_small_functions): Delay updating of the overall
23758         summary.
23760 2016-02-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
23762         * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
23763         variable.
23765 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
23767         PR driver/69805
23768         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
23769         :%* in %:gt() argument.
23770         (greater_than_spec_func): Adjust for expecting only numbers,
23771         if there are more than two numbers, compare the last two.
23773 2016-02-19  Jonathan Wakely  <jwakely@redhat.com>
23775         * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
23776         -Wnarrowing with -std.
23778 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
23780         PR c++/69851
23781         * expr.c (store_field): Don't use bit-field path if exp is
23782         COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
23783         different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
23784         and the assignment can be performed by bitwise copy.  Formatting
23785         fix.
23787         PR middle-end/69838
23788         * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
23789         call copy_reg_eh_region_note_forward on before and/or after sequences
23790         and remove note from insn if it no longer can throw.
23792         PR target/69820
23793         * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
23794         if TARGET_AVX512BW.
23796 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23798         * config/s390/vector.md: Add missing commutative operand markers
23799         to the patterns which qualify for one.
23800         * config/s390/vx-builtins.md: Likewise.
23802 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23804         * config/s390/vector.md (VI, VI_QHS): Add single element vector
23805         types to mode iterators.
23806         (vec_double): ... and mode attribute.
23807         * config/s390/vx-builtins.md (non_vec_int): Likewise.
23809 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23811         * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
23812         Change the predicate of op2 from nonimmediate to general and let
23813         reload fix it if necessary.
23815 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23817         * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
23819 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23821         * config/s390/s390.c (s390_expand_vcond): Use the compare operand
23822         mode.
23824 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23826         * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
23827         * config/s390/s390.c (s390_expand_vec_movstr): New function.
23828         * config/s390/s390.md ("movstr<P:mode>"): Call
23829         s390_expand_vec_movstr.
23831 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23833         * config/s390/s390.md: Add missing output modifier for operand 1
23834         to print it as address properly.
23836 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23838         * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
23839         * config/s390/2964.md: New file.
23840         * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
23841         of insn grouping attributes depending on the CPU level.
23842         (s390_get_unit_mask): New function.
23843         (s390_sched_score): Remove the OOO from the scheduling macros.
23844         Add loop to calculate a score for the instruction mix.
23845         (s390_sched_reorder): Likewise plus improve debug output.
23846         (s390_sched_variable_issue): Rename macros as above.  Calculate
23847         the unit distances after actually scheduling an insn.  Improve
23848         debug output.
23849         (s390_sched_init): Clear last_scheduled_unit_distance array.
23850         * config/s390/s390.md: Include 2964.md.
23852 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
23854         PR target/69671
23855         * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
23856         *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
23857         *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
23858         *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
23859         *avx512f_<code>v8div16qi2_mask_1): New insns.
23861 2016-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
23863         PR target/68404
23864         * config/rs6000/predicates.md (fusion_gpr_addis): Revert
23865         2016-02-09 change.
23867         * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
23868         earlyclobber from target.  Use wF constraint for fused memory
23869         address.
23870         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
23872 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
23873             Martin Liska  <mliska@suse.cz>
23875         PR sanitizer/69863
23876         * cfgexpand.c (asan_sanitize_stack_p): New function.
23877         (partition_stack_vars): Use the function.
23878         (expand_stack_vars): Likewise.
23879         (defer_stack_allocation): Likewise.
23880         (expand_used_vars): Likewise.
23882 2016-02-18  Richard Biener  <rguenther@suse.de>
23884         PR middle-end/69553
23885         * fold-const.c (operand_equal_p): Properly compare offsets for
23886         IMAGPART_EXPR and ARRAY_REF.
23888 2016-02-18  Nick Clifton  <nickc@redhat.com>
23890         PR target/62254
23891         PR target/69610
23892         * config/arm/arm.c (arm_option_override_internal): Disable
23893         interworking if the target does not support thumb instructions.
23894         (arm_reload_in_hi): Handle the case where a register to register
23895         move needs reloading because there is no simple pattern to handle
23896         it.
23897         (arm_reload_out_hi): Likewise.
23899 2016-02-18  Richard Biener  <rguenther@suse.de>
23901         PR middle-end/69854
23902         * match.pd: Don't use fold_binary or fold_unary for folding
23903         constants.
23905 2016-02-17  Jakub Jelinek  <jakub@redhat.com>
23907         PR c++/69850
23908         * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
23909         on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
23910         * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
23911         warn on gimple_no_warning_p statements.
23913 2016-02-17  Jonathan Wakely  <jwakely@redhat.com>
23915         * doc/extend.texi (C++ Attributes): Correct description of
23916         warn_unused type attribute.
23918 2016-02-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
23920         * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
23921         correct instruction.
23923 2016-02-17  Richard Biener  <rguenther@suse.de>
23925         PR rtl-optimization/69609
23926         * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
23927         (find_traces_1_round): When ending a trace update cached priority
23928         of successors.
23929         (bb_to_key): Use cached priority when available.
23930         (copy_bb): Initialize cached priority.
23931         (reorder_basic_blocks_software_trace_cache): Likewise.
23933 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23935         PR target/69161
23936         * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
23937         New predicate.
23938         (aarch64_comparison_operator): Break overly long line into two.
23939         (aarch64_comparison_operation): Likewise.
23940         * config/aarch64/aarch64.md (cstorecc4): Use
23941         aarch64_comparison_operator_mode instead of
23942         aarch64_comparison_operator.
23943         (cstore<mode>4): Likewise.
23944         (aarch64_cstore<mode>): Likewise.
23945         (*cstoresi_insn_uxtw): Likewise.
23946         (cstore<mode>_neg): Likewise.
23947         (*cstoresi_neg_uxtw): Likewise.
23949 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23951         PR target/69161
23952         * config/arm/predicates.md (arm_comparison_operator_mode):
23953         New predicate.
23954         * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
23955         instead of arm_comparison_operator.
23956         (*mov_negscc): Likewise.
23957         (*mov_notscc): Likewise.
23958         * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
23959         (*thumb2_mov_negscc): Likewise.
23960         (*thumb2_mov_negscc_strict_it): Likewise.
23961         (*thumb2_mov_notscc): Likewise.
23962         (*thumb2_mov_notscc_strict_it): Likewise.
23964 2016-02-17  Wilco Dijkstra  <wdijkstr@arm.com>
23966         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
23967         Add missing return.
23969 2016-02-17  Eric Botcazou  <ebotcazou@adacore.com>
23971         * config/visium/visium.c (machine_libfunc_index): New enum.
23972         (machine_libfuncs): New structure.
23973         (visium_libfuncs): New static variable.
23974         (TARGET_INIT_LIBFUNCS): Define to...
23975         (visium_init_libfuncs): ...this.  New function.
23976         (expand_block_move_4): Use the appropriate libfunc.
23977         (expand_block_move_2): Likewise.
23978         (expand_block_move_1): Likewise.
23979         (expand_block_set_4): Likewise.
23980         (expand_block_set_2): Likewise.
23981         (expand_block_set_1): Likewise.
23982         (visium_trampoline_init): Likewise.
23984 2016-02-17  Nick Clifton  <nickc@redhat.com>
23986         * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
23987         TI's devices.csv file as of March 2016.
23989 2016-02-16  Kelvin Nilsen  <kelvin@gcc.gnu.org>
23991         PR Target/48344
23992         * opts-global.c (handle_common_deferred_options): Introduce and
23993         initialize two global variables to remember command-line options
23994         specifying a stack-limiting register.
23995         * opts.h: Add extern declarations of the two new global variables.
23996         * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
23997         variable based on the values of the two new global variables.
23999 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
24001         PR c/69835
24002         * common.opt (Wnonnull-compare): New warning.
24003         * doc/invoke.texi (-Wnonnull): Remove text about comparison
24004         of arguments against NULL.
24005         (-Wnonnull-compare): Document.
24006         * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
24007         * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
24008         * passes.def (pass_warn_nonnull_compare): Add.
24009         * gimple-ssa-nonnull-compare.c: New file.
24011 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
24013         * config/aarch64/aarch64.c (cortexa57_tunings): Remove
24014         AARCH64_EXTRA_TUNE_RECIP_SQRT.
24016 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
24018         * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
24019         reciprocal sqrt for -mlow-precision-recip-sqrt.
24021 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
24022             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24024         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
24025         always use lane loads to construct non-constant vectors.
24027 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
24029         * config/aarch64/aarch64.md
24030         (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
24031         constraints for operand 3.
24032         (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
24034 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
24035             Richard Biener  <rguenther@suse.de>
24037         PR tree-optimization/69820
24038         * tree-vect-patterns.c (type_conversion_p): Return false if
24039         *orig_type is unsigned single precision or boolean.
24040         (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
24041         Formatting fix.
24043 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
24045         PR rtl-optimization/69764
24046         PR rtl-optimization/69771
24047         * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
24048         op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
24050 2016-02-16  Richard Biener  <rguenther@suse.de>
24052         PR tree-optimization/69776
24053         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
24054         sets from caller.
24055         (indirect_refs_may_alias_p): Likewise.
24056         (refs_may_alias_p_1): Pass alias sets as from ao_ref.
24057         * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
24058         according to tbaa_p.
24059         * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
24060         (optimize_stmt): For redundant store discovery do not allow tbaa.
24062 2016-02-16  Bernd Schmidt  <bschmidt@redhat.com>
24064         PR tree-optimization/69714
24065         * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
24066         Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
24068 2016-02-16  Claudiu Zissulescu  <claziss@synopsys.com>
24070         * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
24071         * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
24072         (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
24073         * config/arc/arc.c (arc_init): Check FPU options.
24074         (get_arc_condition_code): Handle new CC_FPU* modes.
24075         (arc_select_cc_mode): Likewise.
24076         (arc_conditional_register_usage): Allow 64 bit datum into even-odd
24077         register pair only. Allow access for ARCv2 accumulator.
24078         (gen_compare_reg): Whenever we have FPU support use FPU compare
24079         instructions.
24080         (arc_reorg): Don't generate brcc insns when FPU compare
24081         instructions are involved.
24082         * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
24083         (TARGET_OPTFPE): Add condition when ARC EM can use optimized
24084         floating point emulation.
24085         (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
24086         (REVERSE_CONDITION): Add new CC_FPU* modes.
24087         (TARGET_FP_SP_BASE): Define.
24088         (TARGET_FP_DP_BASE): Likewise.
24089         (TARGET_FP_SP_FUSED): Likewise.
24090         (TARGET_FP_DP_FUSED): Likewise.
24091         (TARGET_FP_SP_CONV): Likewise.
24092         (TARGET_FP_DP_CONV): Likewise.
24093         (TARGET_FP_SP_SQRT): Likewise.
24094         (TARGET_FP_DP_SQRT): Likewise.
24095         (TARGET_FP_DP_AX): Likewise.
24096         * config/arc/arc.md (ARCV2_ACC): New constant.
24097         (type): New fpu type attribute.
24098         (SDF): Conditional iterator.
24099         (cstore<mode>, cbranch<mode>): Change expand condition.
24100         (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
24101         handles FPU/FPX cases as well.
24102         * config/arc/arc.opt (mfpu): New option.
24103         * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
24104         Renamed.
24105         (adddf3, muldf3, subdf3): Removed.
24106         * config/arc/predicates.md (proper_comparison_operator): Recognize
24107         CC_FPU* modes.
24108         * config/arc/fpu.md: New file.
24109         * doc/invoke.texi (ARC Options): Document mfpu option.
24111 2016-02-16  Richard Biener  <rguenther@suse.de>
24113         PR rtl-optimization/69291
24114         * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
24115         noce_operand_ok check.
24117 2016-02-16  Tom de Vries  <tom@codesourcery.com>
24119         PR lto/67709
24120         * omp-low.c (simd_clone_create): Remove call to
24121         symtab->call_cgraph_insertion_hooks.
24123 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
24125         PR tree-optimization/69802
24126         * tree-ssa-reassoc.c (update_range_test): If op is
24127         SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
24128         op == 1 test of precision 1 integral op, otherwise handle
24129         that case as op itself.  Fix up formatting.
24130         (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
24131         up formatting.
24133 2016-02-16  Richard Biener  <rguenther@suse.de>
24135         PR tree-optimization/69586
24136         * tree-vrp.c (register_edge_assert_for_2): Handle all integral
24137         types for conversion sources.
24139 2016-02-16  Richard Biener  <rguenther@suse.de>
24141         PR middle-end/69801
24142         * fold-const.c (operand_equal_p): For COND_EXPR zero operand
24143         mask OEP_ADDRESS_OF.
24145 2016-02-16  Alan Modra  <amodra@gmail.com>
24147         PR target/68973
24148         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
24149         (p8_mtvsrd_df, p8_mtvsrd_sf): New.
24150         (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
24151         (p8_mtvsrwz): New.
24152         (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
24153         (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
24154         (p8_fmrgow_<mode>): Likewise.
24155         (reload_vsx_from_gpr<mode>): Make clobber IF.  Adjust for above
24156         changes.
24157         (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
24158         (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
24159         to use movdi_internal64.  Remove op0_di.
24160         * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
24162 2016-02-15  Evandro Menezes  <e.menezes@samsung.com>
24164         Add support for the FCCMP insn types
24166         * config/aarch64/aarch64.md (fccmp): Change insn type.
24167         (fccmpe): Likewise.
24168         * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
24169         * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
24170         * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
24171         * config/arm/xgene1.md (xgene1_fcmp): Likewise.
24172         * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
24173         * config/arm/types.md (fccmps): Add new insn type.
24174         (fccmpd): Likewise.
24176 2016-02-15  Bernd Edlinger  <bernd.edlinger@hotmail.de>
24178         * alias.c (get_alias_set): Fix a typo in comment.
24180 2016-02-15  Richard Biener  <rguenther@suse.de>
24182         PR tree-optimization/69595
24183         * match.pd: Complete range test simplification to true.
24185 2016-02-15  Bernd Schmidt  <bschmidt@redhat.com>
24187         PR rtl-optimization/69648
24188         * lra-constraints.c (update_ebb_live_info): Don't remove sets of
24189         pic_offset_table_rtx.
24191         PR rtl-optimization/69752
24192         * ira.c (update_equiv_regs): When looking for more than a single SET,
24193         also take other side effects into account.
24195 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
24197         * config/s390/s390.c (s390_function_profiler): Add a new sequence
24198         for z900+ CPUs in 31-bit mode.
24200 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
24202         * common/config/s390/s390-common.c (s390_supports_split_stack):
24203         New function.
24204         (TARGET_SUPPORTS_SPLIT_STACK): New macro.
24205         * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
24206         * config/s390/s390.c (struct machine_function): New field
24207         split_stack_varargs_pointer.
24208         (s390_register_info): Mark r12 as clobbered if it'll be used as temp
24209         in s390_emit_prologue.
24210         (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
24211         vararg pointer.
24212         (morestack_ref): New global.
24213         (SPLIT_STACK_AVAILABLE): New macro.
24214         (s390_expand_split_stack_prologue): New function.
24215         (s390_live_on_entry): New function.
24216         (s390_va_start): Use split-stack vararg pointer if appropriate.
24217         (s390_asm_file_end): Emit the split-stack note sections.
24218         (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
24219         * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
24220         (UNSPECV_SPLIT_STACK_CALL): New unspec.
24221         (UNSPECV_SPLIT_STACK_DATA): New unspec.
24222         (split_stack_prologue): New expand.
24223         (split_stack_space_check): New expand.
24224         (split_stack_data): New insn.
24225         (split_stack_call): New expand.
24226         (split_stack_call_*): New insn.
24227         (split_stack_cond_call): New expand.
24228         (split_stack_cond_call_*): New insn.
24230 2016-02-15  Richard Biener  <rguenther@suse.de>
24232         PR tree-optimization/69783
24233         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
24234         Add trivially correct cases.
24236 2016-02-15  Tom de Vries  <tom@codesourcery.com>
24238         PR lto/69655
24239         * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
24240         do_force_output.
24241         * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
24243 2016-02-15  Richard Biener  <rguenther@suse.de>
24245         PR tree-optimization/69776
24246         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
24247         * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
24248         indicate whether we can use TBAA to disambiguate against stores.
24249         Use alias-set zero if not.
24250         (visit_reference_op_store): Do not use TBAA when looking up
24251         redundant stores.
24252         * tree-ssa-pre.c (compute_avail): Use TBAA here.
24253         (eliminate_dom_walker::before_dom_children): But not when looking
24254         up redundant stores.
24256 2016-02-14  John David Anglin  <danglin@gcc.gnu.org>
24258         * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
24260 2016-02-14  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
24262         *  config/i386/znver1.md
24263         (znver1_pop, znver1_pop_mem,
24264         znver1_load_imov_double_store,
24265         znver1_load_imov_direct_store,
24266         znver1_load_imov_direct_load,
24267         znver1_load_imov_double_load): Add new.
24268         (znver1_insn, znver1_insn_load): Add icmov type.
24269         (znver1_sseavx_fma,
24270         znver1_sseavx_fma_load,
24271         znver1_avx256_fma,
24272         znver1_avx256_fma_load): Fix pipe usage.
24274 2016-02-14  Alan Modra  <amodra@gmail.com>
24276         PR target/68973
24277         * reload.c (find_reloads_address_1): For pre/post-inc/dec
24278         with an invalid hard reg, reload just the reg not the entire
24279         pre/post-inc/dec address expression.
24281 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
24283         PR target/67260
24284         * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
24285         fixed R1_REG scratch reg.
24286         (sibcall_value_pcrel_fdpic): Likewise.
24288 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
24290         PR target/67636
24291         PR target/64345
24292         * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
24294 2016-02-12  Walter Lee  <walt@tilera.com>
24296         * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
24297         * config/tilegx/t-tilegx: Likewise.
24299 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
24301         PR other/69554
24302         * diagnostic-show-locus.c (struct line_span): New struct.
24303         (layout::get_first_line): Delete.
24304         (layout::get_last_line): Delete.
24305         (layout::get_num_line_spans): New member function.
24306         (layout::get_line_span): Likewise.
24307         (layout::print_heading_for_line_span_index_p): Likewise.
24308         (layout::get_expanded_location): Likewise.
24309         (layout::calculate_line_spans): Likewise.
24310         (layout::m_first_line): Delete.
24311         (layout::m_last_line): Delete.
24312         (layout::m_line_spans): New field.
24313         (layout::layout): Update comment.  Replace m_first_line and
24314         m_last_line with m_line_spans, replacing their initialization
24315         with a call to calculate_line_spans.
24316         (diagnostic_show_locus): When printing source lines and
24317         annotations, rather than looping over a single span
24318         of lines, instead loop over each line_span within
24319         the layout, with an inner loop over the lines within them.
24320         Call the context's start_span callback when changing line spans.
24321         * diagnostic.c (diagnostic_initialize): Initialize start_span.
24322         (diagnostic_build_prefix): Break out the building of the location
24323         part of the string into...
24324         (diagnostic_get_location_text): ...this new function, rewriting
24325         it from nested ternary expressions to a sequence of "if"
24326         statements.
24327         (default_diagnostic_start_span_fn): New function.
24328         * diagnostic.h (diagnostic_start_span_fn): New typedef.
24329         (diagnostic_context::start_span): New field.
24330         (default_diagnostic_start_span_fn): New prototype.
24332 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
24334         PR driver/69779
24335         * gcc.c (driver::finalize): Fix cleanup of "specs".
24337 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
24339         PR driver/69265
24340         PR driver/69453
24341         * gcc.c (driver::driver): Initialize m_option_suggestions.
24342         (driver::~driver): Clean up m_option_suggestions.
24343         (suggest_option): Convert to...
24344         (driver::suggest_option): ...this, and split out into
24345         driver::build_option_suggestions and find_closest_string.
24346         (driver::build_option_suggestions): New function, from
24347         first half of suggest_option.  Special-case
24348         OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
24349         the sanitizer_opts array.  For options of enum types, add the
24350         various enum values to the candidate strings.
24351         (driver::handle_unrecognized_options): Remove "const".
24352         * gcc.h (driver::handle_unrecognized_options): Likewise.
24353         (driver::build_option_suggestions): New decl.
24354         (driver::suggest_option): New decl.
24355         (driver::m_option_suggestions): New field.
24356         * opts-common.c (add_misspelling_candidates): New function.
24357         * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
24358         and make non-static.
24359         * opts.h (sanitizer_opts): New array decl.
24360         (add_misspelling_candidates): New function decl.
24361         * spellcheck.c (find_closest_string): New function.
24362         * spellcheck.h (find_closest_string): New function decl.
24364 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
24366         PR rtl-optimization/69764
24367         PR rtl-optimization/69771
24368         * optabs.c (expand_binop_directly): For shift_optab_p, force
24369         convert_modes with VOIDmode if xop1 has VOIDmode.
24371 2016-02-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
24373         PR target/69729
24374         * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
24375         to correctly determine instrumentation thunks.
24377 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
24379         PR ipa/69241
24380         * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
24381         type by reference, force lhs on the call.
24383         PR ipa/68672
24384         * ipa-split.c (split_function): Don't compute/use main_part_return_p.
24385         Compute retval and retbnd early in all cases if split_part_return_p
24386         and return_bb is not EXIT.  Remove all clobber stmts and reset
24387         all debug stmts that refer to SSA_NAMEs defined in split part,
24388         except if it is retval, in that case replace the old retval with the
24389         lhs of the call to the split part.
24391 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
24393         revert:
24394         2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
24396         PR middle-end/66726
24397         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
24398         whose result is used in PHI.
24399         (maybe_optimize_range_tests): Likewise.
24400         (final_range_test_p): Likweise.
24402 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
24404         PR middle-end/66726
24405         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
24406         whose result is used in PHI.
24407         (maybe_optimize_range_tests): Likewise.
24408         (final_range_test_p): Likweise.
24410 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
24412         * cgraph.c: Spelling fixes - behaviour -> behavior and
24413         neighbour -> neighbor.
24414         * target.def: Likewise.
24415         * sel-sched.c: Likewise.
24416         * config/mips/mips.c: Likewise.
24417         * config/arc/arc.md: Likewise.
24418         * config/arm/cortex-a57.md: Likewise.
24419         * config/arm/arm.c: Likewise.
24420         * config/arm/neon.md: Likewise.
24421         * config/arm/arm-c.c: Likewise.
24422         * config/vms/vms-c.c: Likewise.
24423         * config/s390/s390.c: Likewise.
24424         * config/i386/znver1.md: Likewise.
24425         * config/i386/i386.c: Likewise.
24426         * config/ia64/hpux-unix2003.h: Likewise.
24427         * config/msp430/msp430.md: Likewise.
24428         * config/rx/rx.c: Likewise.
24429         * config/rx/rx.md: Likewise.
24430         * config/aarch64/aarch64-simd.md: Likewise.
24431         * config/aarch64/aarch64.c: Likewise.
24432         * config/nvptx/nvptx.c: Likewise.
24433         * config/bfin/bfin.c: Likewise.
24434         * config/cris/cris.opt: Likewise.
24435         * config/rs6000/rs6000.c: Likewise.
24436         * target.h: Likewise.
24437         * spellcheck.c: Likewise.
24438         * ira-build.c: Likewise.
24439         * tree-inline.c: Likewise.
24440         * builtins.c: Likewise.
24441         * lra-constraints.c: Likewise.
24442         * explow.c: Likewise.
24443         * hwint.h: Likewise.
24444         * targhooks.c: Likewise.
24445         * tree-vect-data-refs.c: Likewise.
24446         * expr.c: Likewise.
24447         * doc/tm.texi: Likewise.
24448         * doc/extend.texi: Likewise.
24449         * doc/install.texi: Likewise.
24450         * doc/md.texi: Likewise.
24451         * tree-ssa-tail-merge.c: Likewise.
24452         * sched-int.h: Likewise.
24453         * match.pd: Likewise.
24454         * sched-ebb.c: Likewise.
24455         * target.def (omit_struct_return_reg): Likewise.
24456         * gimple-ssa-isolate-paths.c: Likewise.
24457         (find_implicit_erroneous_behaviour): Renamed to...
24458         (find_implicit_erroneous_behavior): ... this.
24459         (find_explicit_erroneous_behaviour): Renamed to...
24460         (find_explicit_erroneous_behavior): ... this.
24461         (gimple_ssa_isolate_erroneous_paths): Adjust caller.
24463 2016-02-11  Segher Boessenkool  <segher@kernel.crashing.org>
24465         PR rtl-optimization/64682
24466         PR rtl-optimization/69567
24467         PR rtl-optimization/69737
24468         * combine.c (distribute_notes) <REG_DEAD>: If the register is set
24469         in I2 as well, just lose it.
24471 2016-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24473         * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
24474         New variable.
24475         (aarch64_last_printed_tune_string): Likewise.
24476         (aarch64_declare_function_name): Only output .arch assembler
24477         directive if it will be different from the previously output
24478         directive.  Same for .tune comment but only if -dA is set.
24479         (aarch64_start_file): New function.
24480         (TARGET_ASM_FILE_START): Define.
24482 2016-02-11  David Malcolm  <dmalcolm@redhat.com>
24484         PR plugins/69758
24485         * Makefile.in (PLUGIN_HEADERS): Add params.list.
24487 2016-02-11  Jakub Jelinek  <jakub@redhat.com>
24489         PR target/65313
24490         * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
24491         -Wmaybe-uninitialized warning.
24493 2016-02-11  Oleg Endo  <olegendo@gcc.gnu.org>
24495         PR target/69713
24496         * config/sh/sh.md (casesi_worker_0): Add T_REG use.
24498 2016-02-11  Richard Biener  <rguenther@suse.de>
24500         PR rtl-optimization/69291
24501         * ifcvt.c (noce_try_store_flag_constants): Do not allow
24502         subexpressions affected by changing the result.
24504 2016-02-10  Vladimir Makarov  <vmakarov@redhat.com>
24506         PR target/69148
24507         * lra-constraints.c (curr_insn_transform): Find in/out operands
24508         for secondary memory moves.  Update dups.
24510 2016-02-10  Yuri Rumyantsev  <ysrumyan@gmail.com>
24512         PR tree-optimization/69652
24513         * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
24514         to nested loop, did source re-formatting, skip debug statements,
24515         add check on statement with volatile operand, remove dead scalar
24516         statements.
24518 2016-02-10  Jakub Jelinek  <jakub@redhat.com>
24519             Patrick Palka  <ppalka@gcc.gnu.org>
24521         PR ipa/69241
24522         PR c++/69649
24523         * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
24524         calls if the return type is TREE_ADDRESSABLE.
24525         * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
24526         * ipa-split.c (split_function): Fix doubled "we" in comment.
24527         Use void return type for the split part even if
24528         !split_point->split_part_set_retval.
24530 2016-02-10  Bin Cheng  <bin.cheng@arm.com>
24532         PR tree-optimization/68021
24533         * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
24534         when computing the value of biv cand by itself.
24536 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
24538         * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
24539         (cortexa57_tunings): Likewise.
24540         (cortexa72_tunings): Likewise.
24541         (arch_macro_fusion_pair_p): Add support for AES fusion.
24542         * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
24543         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
24544         Allow virtual registers before reload so early scheduling works.
24545         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
24546         correct latency and pipeline.
24547         (cortex_a57_crypto_complex): Likewise.
24548         (cortex_a57_crypto_xor): Likewise.
24549         (define_bypass): Add AES bypass.
24551 2016-02-10  Richard Biener  <rguenther@suse.de>
24553         PR tree-optimization/69726
24554         * passes.def: Add DCE pass before late uninit.
24555         * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
24556         really fixup if-conversions job.
24558 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
24560         * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
24561         (arm_cortex_a57_tune): Likewise.
24562         (aarch_macro_fusion_pair_p): Add support for AES fusion.
24563         * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
24565 2016-02-10  Eric Botcazou  <ebotcazou@adacore.com>
24567         * timevar.def (TV_PHASE_DBGINFO): Delete.
24568         (TV_PHASE_CHECK_DBGINFO): Likewise.
24569         * varpool.c (varpool_node::assemble_decl): Do not change timevar.
24571 2016-02-10  Richard Biener  <rguenther@suse.de>
24573         PR tree-optimization/69719
24574         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
24575         Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
24577 2016-02-09  Andrew Pinski  <apinski@cavium.com>
24579         PR tree-opt/69282
24580         * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
24581         get_vcond_mask_icode returns false.
24583 2016-02-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
24585         PR target/68404
24586         * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
24587         an ADDIS that adds a pointer to a large constant that sets the
24588         upper16 bits with a load operation.
24590 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
24592         PR target/68532
24593         * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
24594         order.
24595         * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
24596         endian.
24597         (vzipq_s16): Likewise.
24598         (vzipq_s32): Likewise.
24599         (vzipq_f32): Likewise.
24600         (vzipq_u8): Likewise.
24601         (vzipq_u16): Likewise.
24602         (vzipq_u32): Likewise.
24603         (vzipq_p8): Likewise.
24604         (vzipq_p16): Likewise.
24606 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
24608         PR target/68532
24609         * config/arm/arm.c (neon_endian_lane_map): New function.
24610         (neon_vector_pair_endian_lane_map): New function.
24611         (arm_evpc_neon_vuzp): Allow for big endian lane order.
24612         * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
24613         endian.
24614         (vuzpq_s16): Likewise.
24615         (vuzpq_s32): Likewise.
24616         (vuzpq_f32): Likewise.
24617         (vuzpq_u8): Likewise.
24618         (vuzpq_u16): Likewise.
24619         (vuzpq_u32): Likewise.
24620         (vuzpq_p8): Likewise.
24621         (vuzpq_p16): Likewise.
24623 2016-02-11  Alexandre Oliva  <aoliva@redhat.com>
24625         PR target/69634
24626         * regstat.c (regstat_bb_compute_calls_crossed): Disregard
24627         debug insns.
24629 2016-02-09  Uros Bizjak  <ubizjak@gmail.com>
24631         * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
24632         truncate const_int operand 1 to QImode.
24634 2016-02-09  Eric Botcazou  <ebotcazou@adacore.com>
24636         * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
24637         corresponding to an abnormal edge.
24639 2016-02-09  Tom de Vries  <tom@codesourcery.com>
24641         PR tree-optimization/69599
24642         * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
24643         function.
24644         (find_func_aliases_for_builtin_call, find_func_clobbers)
24645         (ipa_pta_execute):  Handle case that foo and foo._0 are not in same lto
24646         partition.
24648 2016-02-09  Richard Biener  <rguenther@suse.de>
24650         PR tree-optimization/69715
24651         * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
24652         LHS on calls as non-rewritable.
24654 2016-02-09  Tom de Vries  <tom@codesourcery.com>
24656         PR lto/69707
24657         * lto-wrapper.c (append_diag_options): New function.
24658         (compile_offload_image): Call append_diag_options.
24660 2016-02-08  Sandra Loosemore  <sandra@codesourcery.com>
24662         PR other/69722
24663         * doc/extend.texi (Flag Output Operands): Correct sectioning.
24664         Minor copy-edit to fix verb tenses.
24666 2016-02-08  Jakub Jelinek  <jakub@redhat.com>
24668         PR tree-optimization/69209
24669         * ipa-split.c (split_function): If split part is not
24670         returning retval, retval has gimple type but is not
24671         gimple value, force it into a SSA_NAME first.
24673 2016-02-08  Nicklas Bo Jensen  <nbjensen@gmail.com>
24675         * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
24676         outdated section.
24678 2016-02-08  Jason Merrill  <jason@redhat.com>
24680         PR c++/69631
24681         * convert.c (convert_to_integer_1): Check dofold on truncation
24682         distribution.
24683         (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
24684         (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
24685         Rename from *_nofold.
24686         * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
24687         (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
24689 2016-02-08  Bernd Schmidt  <bschmidt@redhat.com>
24691         PR target/60410
24692         * tree.c (build_common_tree_nodes): Remove short_double argument.
24693         All callers changed.
24694         * tree.h (build_common_tree_nodes): Adjust declaration.
24695         * doc/invoke.texi (-fshort-double): Remove documentation.
24696         * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
24697         MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
24698         * lto-wrapper.c (merge_and_complain, append_compiler_options)
24699         (append_linker_options): Don't handle OPT_fshort_double.
24701         PR rtl-optimization/68730
24702         * lra-remat.c (insn_to_cand_activation): New static variable.
24703         (lra_remat): Allocate and free it.
24704         (create_cand): New arg activation. Initialize a field in
24705         insn_to_cand_activation if it is nonnull.
24706         (create_cands): Pass the activation insn to create_cand when making
24707         a candidate involving an output reload.  Reorganize code a little.
24708         (do_remat): Keep track of active status of candidates in a separate
24709         bitmap.
24711 2016-02-08  Richard Biener  <rguenther@suse.de>
24713         PR tree-optimization/69719
24714         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
24715         Properly use absolute of the difference of the two offsets to
24716         compare or adjust the segment length.
24718 2016-02-08  Richard Biener  <rguenther@suse.de>
24719             Jeff Law  <law@redhat.com>
24721         PR target/68273
24722         * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
24723         types for anonymous SSA names.
24725 2016-02-08   Richard Biener  <rguenther@suse.de>
24727         PR rtl-optimization/69274
24728         * ira.c (ira_setup_alts): Do not change recog_data.operand order.
24730 2016-02-08  Jeff Law  <law@redhat.com>
24732         PR tree-optimization/65917
24733         * tree-ssa-dom.c (record_temporary_equivalences): Record both
24734         equivalences from if (x == y) style conditionals.
24735         (loop_depth_of_name): Remove.
24736         (record_equality): Remove loop depth check.
24737         * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
24738         (const_and_copies::record_const_or_copy_raw): New member function.
24739         * tree-ssa-scopedtables.c
24740         (const_and_copies::record_const_or_copy_raw): New, factored out of
24741         (const_and_copies::record_const_or_copy): Call new member function.
24743 2016-02-05  Jeff Law  <law@redhat.com>
24745         PR tree-optimization/68541
24746         * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
24747         (count_stmts_in_block): New function.
24748         (poor_ifcvt_candidate_code): Likewise.
24749         (is_feasible_trace): Add some heuristics to determine when path
24750         splitting is profitable.
24751         (find_block_to_duplicate_for_splitting_paths): Make sure the graph
24752         is a diamond with a single exit.
24754 2016-02-05  Martin Sebor  <msebor@redhat.com>
24756         PR c++/69662
24757         * doc/invoke.texi: Update -Wplacement-new to take an optional
24758         argument.
24760 2016-02-06  Richard Henderson  <rth@redhat.com>
24762         PR c/69643
24763         * tree.c (tree_nop_conversion_p): Do not strip casts into or
24764         out of non-standard address spaces.
24766 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
24768         PR rtl-optimization/69691
24769         * lra-eliminations.c (move_plus_up): Don't add the addend twice.
24771 2016-02-05  Pat Haugen  <pthaugen@us.ibm.com>
24773         * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
24774         * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
24775         (*ieee128_mfvsrd_64bit): Likewise.
24776         (*ieee128_mfvsrd_32bit): Likewise.
24778 2016-02-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
24780         PR target/69369
24781         Revert r232560:
24782         2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
24784         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
24785         instrumented_version.
24787 2016-01-05  Jeremy Bennett  <jeremy.bennett@embecosm.com>
24789         * doc/invoke.texi (Optimize Options): In table of --param options
24790         rename second occurrence of tracer-min-branch-ratio to
24791         tracer-min-branch-probability, rename
24792         tracer-min-branch-ratio-feedback to
24793         tracer-min-branch-probability-feedback and clarify description,
24794         rename sched-spec-state-edge-prob-cutoff to
24795         sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
24796         to selsched-insns-to-rename, rename lto-minpartition to
24797         lto-min-partition, delete reorder-blocks-duplicate and
24798         reorder-blocks-duplicate-feedback.
24800 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
24802         * config/s390/s390.c (s390_register_info_set_ranges): Remove
24803         superfluous loops.
24805 2016-02-05  Dominik Vogt  <vogt@linux.vnet.ibm.com>
24807         * doc/extend.texi: S/390: Correct some typos.
24809 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
24811         * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
24813 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
24815         PR target/69625
24816         * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
24817         (s390_register_info_gprtofpr): Use new macros above.
24818         (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
24819         its name.
24820         (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
24821         its name.  Adjust restore and save gpr ranges.
24822         (s390_register_info_set_ranges): New function.
24823         (s390_register_info): Use new macros above.  Call
24824         s390_register_info_set_ranges.
24825         (s390_optimize_register_info): Likewise.
24826         (s390_hard_regno_rename_ok): Use new macros.
24827         (s390_hard_regno_scratch_ok): Likewise.
24828         (s390_emit_epilogue): Likewise.
24829         (s390_can_use_return_insn): Likewise.
24830         (s390_optimize_prologue): Likewise.
24831         * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
24833 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
24835         PR bootstrap/69677
24836         * config/i386/i386.c (convert_scalars_to_vector): Readd stack
24837         alignment fixes.
24838         (ix86_option_override_internal): Disable TARGET_STV even for
24839         -m{incoming,preferred}-stack-boundary=3.
24841 2016-02-03  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
24843         * config.gcc: Mark deprecated rtems targets as obsolete.
24845 2016-02-04  Segher Boessenkool  <segher@kernel.crashing.org>
24847         PR rtl-optimization/64682
24848         PR rtl-optimization/69567
24849         * combine.c (distribute_notes) <REG_DEAD>: Place the death note
24850         before I2 only if the register is both used and set in I2.
24852 2016-02-04  DJ Delorie  <dj@redhat.com>
24854         * config/msp430/msp430.c (msp430_start_function): Add function type.
24856 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
24858         PR fortran/69368
24859         * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
24861 2016-02-04  Uros Bizjak  <ubizjak@gmail.com>
24863         PR rtl-optimization/69577
24864         Revert:
24865         2015-10-29  Richard Henderson  <rth@redhat.com>
24867         PR target/68124
24868         PR rtl-opt/67609
24869         * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
24870         sse check to the exact conditions of PR 67609.
24872 2016-02-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
24874         PR target/69667
24875         * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
24876         instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
24877         not allowed into the traditional Altivec registers.
24878         (movtd_64bit_nodm): Likewise.
24879         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
24881 2016-02-04  David Malcolm  <dmalcolm@redhat.com>
24883         * config/aarch64/cortex-a57-fma-steering.c
24884         (aarch64_register_fma_steering): Remove "static" from arguments
24885         to register_pass.
24887 2016-02-04  Wilco Dijkstra  <wdijkstr@arm.com>
24889         PR target/69619
24890         * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
24891         twice when complex.
24893 2016-02-04  Mike Frysinger  <vapier@gentoo.org>
24895         * doc/invoke.texi: Delete -mno-fma4.
24897 2016-02-04  Richard Sandiford  <richard.sandiford@arm.com>
24899         PR rtl-optimization/69577
24900         * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
24901         (find_subregs_of_mode): Update accordingly.  Iterate over partial
24902         definitions.
24904 2016-02-04  Alan Lawrence  <alan.lawrence@arm.com>
24906         * config/arm/arm-protos.h (neon_reinterpret): Remove.
24907         * config/arm/arm.c (neon_reinterpret): Remove.
24908         * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
24909         vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
24910         vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
24911         vreinterpretti): Remove.
24912         * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
24913         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
24914         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
24915         neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
24916         neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
24917         neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
24918         * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
24919         vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
24920         vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
24921         vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
24922         vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
24923         vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
24924         vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
24925         vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
24926         vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
24927         vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
24928         vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
24929         vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
24930         vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
24931         vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
24932         vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
24933         vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
24934         vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
24935         vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
24936         vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
24937         vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
24938         vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
24939         vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
24940         vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
24941         vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
24942         vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
24943         vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
24944         vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
24945         vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
24946         vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
24947         vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
24948         vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
24949         vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
24950         vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
24951         vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
24952         vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
24953         vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
24954         vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
24955         vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
24956         vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
24957         vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
24958         vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
24959         vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
24960         vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
24961         vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
24962         vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
24963         vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
24964         vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
24965         vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
24966         vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
24967         vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
24968         vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
24969         vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
24970         vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
24971         vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
24972         vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
24973         vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
24974         vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
24975         vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
24976         vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
24977         vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
24978         vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
24979         vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
24980         vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
24981         vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
24982         vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
24983         vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
24984         vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
24985         vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
24986         vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
24987         vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
24988         vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
24989         vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
24990         vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
24991         vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
24992         vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
24993         vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
24994         vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
24995         vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
24996         vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
24997         vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
24998         vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
24999         vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
25000         vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
25001         vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
25002         vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
25003         vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
25004         vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
25005         vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
25006         vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
25007         vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
25008         vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
25009         vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
25010         vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
25011         vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
25012         vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
25013         vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
25014         vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
25016 2016-02-04  Martin Liska  <mliska@suse.cz>
25018         PR sanitizer/69276
25019         * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
25020         that are gimple_store_p.
25021         (maybe_instrument_call): Likewise.
25023 2016-02-04  Bin Cheng  <bin.cheng@arm.com>
25025         * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
25026         register scaling out of memory reference and comment why.
25028 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25030         PR target/65932
25031         PR target/67714
25032         * cse.c (cse_insn): Pass NULL to fold_rtx when initially
25033         folding the source of a SET.
25035 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25037         PR target/65932
25038         PR target/67714
25039         * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
25040         the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
25042 2016-02-04  Jim Wilson  <jim.wilson@linaro.org>
25044         PR target/65932
25045         PR target/67714
25046         * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
25047         HImode.
25049 2016-02-04  Christian Bruel  <christian.bruel@st.com>
25051         * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
25052         * config/arm/arm.c (arm_set_current_function): Likewise.
25054 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
25055             Ilya Enkovich  <enkovich.gnu@gmail.com>
25056             H.J. Lu  <hongjiu.lu@intel.com>
25058         PR target/69454
25059         * config/i386/i386.c (convert_scalars_to_vector): Remove
25060         stack alignment fixes.
25061         (ix86_option_override_internal): Disable TARGET_STV if stack
25062         might not be aligned enough.
25063         (ix86_minimum_alignment): Assert that TARGET_STV is false.
25065 2016-02-04  Victoria Stepanyan  <victoria.stepanyan@amd.com>
25067         * config/i386/x86-tune.def: Disable default prefetching
25068         for -march=znver1.
25070 2016-02-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
25071             Vladimir Makarov  <vmakarov@redhat.com>
25073         PR target/69461
25074         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
25075         in validating fused toc addresses.
25077 2016-02-03  Jakub Jelinek  <jakub@redhat.com>
25079         PR c/69627
25080         * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
25081         range->m_caret fields if range->m_show_caret_p is false.
25083         PR target/69644
25084         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
25085         Force oldval into register if it does not satisfy reg_or_short_operand
25086         predicate.  Fix up formatting.
25088 2016-02-03  Vladimir Makarov  <vmakarov@redhat.com>
25089             Alexandre Oliva  <aoliva@redhat.com>
25091         PR target/69461
25092         * lra-constraints.c (simplify_operand_subreg): Check additionally
25093         address validity after potential reloading.
25094         (process_address_1): Check insns validity.  In case of failure do
25095         nothing.
25097 2016-02-03  Kirill Yukhin  <kirill.yukhin@intel.com>
25099         PR target/69118
25100         * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
25101         Fix target.
25103 2016-02-02  Jakub Jelinek  <jakub@redhat.com>
25105         * wide-int.cc (canonize_uhwi): New function.
25106         (wi::divmod_internal): Use it.
25108 2016-02-02  James Norris  <jnorris@codesourcery.com>
25110         * gimplify.c (omp_notice_variable): Add usage check.
25112 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
25114         * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
25115         like LE, GE, LT, GT when emitting relational operator.
25117 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
25119         * ira-costs.c (find_costs_and_classes): Add extra argument.
25120         * target.def (ira_change_pseudo_allocno_class): Add parameter.
25121         * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
25122         * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
25123         * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
25124         Add best_class parameter, and return it if not ALL_REGS.
25125         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
25126         Add parameter.
25127         * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
25128         Update target hook.
25130 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
25132         * config/aarch64/aarch64.c
25133         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
25134         (aarch64_ira_change_pseudo_allocno_class): New function.
25136 2016-02-02  Uros Bizjak  <ubizjak@gmail.com>
25138         PR target/67032
25139         * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
25141 2016-02-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
25143         * config/avr/avr.c (avr_option_override): Set
25144         PARAM_ALLOW_STORE_DATA_RACES to 1.
25146 2016-02-02  Richard Biener  <rguenther@suse.de>
25148         PR tree-optimization/69595
25149         * match.pd: Add range test simplifications to true/false.
25151 2016-02-02  Thomas Schwinge  <thomas@codesourcery.com>
25153         * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
25154         * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
25155         instead.
25157 2016-02-02  Richard Biener  <rguenther@suse.de>
25159         PR tree-optimization/69606
25160         * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
25161         info on the result before moving a stmt.
25163 2016-02-02  Yuri Rumyantsev  <ysrumyan@gmail.com>
25165         PR middle-end/68542
25166         * config/i386/i386.c (ix86_expand_branch): Add support for conditional
25167         branch with vector comparison.
25168         * config/i386/sse.md (VI48_AVX): New mode iterator.
25169         (define_expand "cbranch<mode>4): Add support for conditional branch
25170         with vector comparison.
25171         * tree-vect-loop.c (optimize_mask_stores): New function.
25172         * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
25173         has_mask_store field of vect_info.
25174         * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
25175         vectorized loops having masked stores after vec_info destroy.
25176         * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
25177         correspondent macros.
25178         (optimize_mask_stores): Add prototype.
25180 2016-02-02  Alan Modra  <amodra@gmail.com>
25182         PR target/69548
25183         * config/rs6000/predicates.md (quad_int_reg_operand): Don't
25184         allow subregs.
25186 2016-02-02  Alan Modra  <amodra@gmail.com>
25188         PR target/68662
25189         * config/rs6000/rs6000.c (need_toc_init): New var, set it
25190         whenever toc_label_name used.
25191         (rs6000_file_start): Don't set up toc section here,
25192         (rs6000_output_function_epilogue): do so here instead,
25193         (rs6000_xcoff_file_start): and here.
25194         * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
25195         (load_toc_aix_di): Likewise.
25197 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
25199         PR rtl-optimization/69592
25200         * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
25201         (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
25202         (num_sign_bit_copies_binary_arith_p): New inline function.
25203         (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
25205 2016-02-01  Jeff Law  <law@redhat.com>
25207         PR tree-optimization/69580
25208         * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
25209         * tree-ssa-threadbackward.c
25210         (fsm_find_control_statement_thread_paths): Do not try to walk
25211         through large PHI nodes.
25213 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
25215         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
25216         when count is incremented above limit, don't analyze further
25217         insns afterwards.
25219         * omp-low.c (oacc_parse_default_dims): Avoid
25220         -Wsign-compare warning, make sure value fits into int
25221         rather than just unsigned int.
25223 2016-02-01  Bin Cheng  <bin.cheng@arm.com>
25225         PR tree-optimization/67921
25226         * fold-const.c (split_tree): New parameters.  Convert pointer
25227         type variable part to proper type before negating.
25228         (fold_binary_loc): Pass new arguments to split_tree.
25230 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
25232         * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
25233         (nvptx_goacc_validate_dims): Extend to handle global defaults.
25234         * target.def (OACC_VALIDATE_DIMS): Extend documentation.
25235         * doc/tm.texti: Rebuilt.
25236         * doc/invoke.texi (fopenacc-dim): Document.
25237         * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
25238         (append_compiler_options): Likewise.
25239         * omp-low.c (oacc_default_dims, oacc_min_dims): New.
25240         (oacc_parse_default_dims): New.
25241         (oacc_validate_dims): Add USED arg.  Select non-unity default when
25242         possible.
25243         (oacc_loop_fixed_partitions): Return mask of used partitions.
25244         (oacc_loop_auto_partitions): Emit dump info.
25245         (oacc_loop_partition): Return mask of used partitions.
25246         (execute_oacc_device_lower): Parse default dimension arg.  Adjust
25247         loop partitioning and validation calls.
25249 2016-02-01  Richard Biener  <rguenther@suse.de>
25251         PR middle-end/69556
25252         * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
25254 2016-02-01  Richard Biener  <rguenther@suse.de>
25256         PR tree-optimization/69574
25257         * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
25258         of asserting return chrec_dont_know.
25260 2016-02-01  Martin Liska  <mliska@suse.cz>
25262         * mem-stats-traits.h: Add copyright header.
25263         * mem-stats.h: Likewise.
25265 2016-02-01  Richard Biener  <rguenther@suse.de>
25267         PR tree-optimization/69579
25268         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
25269         Do not propagate through abnormal PHI results.
25271 2016-02-01  Eric Botcazou  <ebotcazou@adacore.com>
25273         * postreload.c (reload_cse_simplify): Remove dead code.
25275 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
25277         PR rtl-optimization/69570
25278         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
25279         if there is more than one set, not if there is a single set.
25281 2016-02-01  Richard Henderson  <rth@redhat.com>
25283         PR rtl-opt/69535
25284         * combine.c (make_compound_operation): When looking through a
25285         subreg, make sure to re-extend to the width of the outer mode.
25287 2016-01-30  Jakub Jelinek  <jakub@redhat.com>
25289         PR tree-optimization/69546
25290         * wide-int.cc (wi::divmod_internal): For unsigned division
25291         where both operands fit into uhwi, if o1 is 1 and o0 has
25292         msb set, if divident_prec is larger than bits per hwi,
25293         clear another quotient word and return 2 instead of 1.
25294         Similarly for remainder with msb in HWI set, if dividend_prec
25295         is larger than bits per hwi.
25297 2016-01-29  Martin Jambor  <mjambor@suse.cz>
25299         * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
25300         Use short lowercase names.
25301         (get_memory_order): Mask with MEMMODEL_BASE_MASK.  Support
25302         MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
25303         acq_rel one.  Protect warning agains segfaults if
25304         get_memory_order_name returns NULL.
25305         (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
25306         with release semantics.  Do not warn if get_memory_order already did.
25307         (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
25308         semantics.  Fix check for relaxed or acquire semantics.  Do not warn
25309         if get_memory_order already did.
25311 2016-01-29  Sebastian Pop  <s.pop@samsung.com>
25313         * doc/install.texi: Document that isl-0.16 is supported.
25315 2016-01-29  Vladimir Makarov  <vmakarov@redhat.com>
25317         PR target/69299
25318         * config/i386/constraints.md (Bm): Describe as special memory
25319         constraint.
25320         * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
25321         * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
25322         * genpreds.c (struct constraint_data): Add is_special_memory.
25323         (have_special_memory_constraints, special_memory_start): New
25324         static vars.
25325         (special_memory_end): Ditto.
25326         (add_constraint): Add new arg is_special_memory.  Add code to
25327         process its true value.  Update have_special_memory_constraints.
25328         (process_define_constraint): Pass the new arg.
25329         (process_define_register_constraint): Ditto.
25330         (choose_enum_order): Process special memory.
25331         (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
25332         function insn_extra_special_memory_constraint.
25333         (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
25334         * gensupport.c (process_rtx): Process
25335         DEFINE_SPECIAL_MEMORY_CONSTRAINT.
25336         * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
25337         * ira-lives.c (single_reg_class): Use
25338         insn_extra_special_memory_constraint.
25339         * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
25340         * lra-constraints.c (process_alt_operands): Ditto.
25341         (curr_insn_transform): Use insn_extra_special_memory_constraint.
25342         * recog.c (asm_operand_ok, preprocess_constraints): Process
25343         CT_SPECIAL_MEMORY.
25344         * reload.c (find_reloads): Ditto.
25345         * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
25346         * stmt.c (parse_input_constraint): Use
25347         insn_extra_special_memory_constraint.
25349 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
25351         PR target/69530
25352         * lra-splill.c (lra_final_code_change): Revert r229087 by
25353         removing all sub-registers.
25355 2016-01-29  Steve Ellcey  <sellcey@imgtec.com>
25357         PR target/65604
25358         * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
25360 2016-01-29  Jakub Jelinek  <jakub@redhat.com>
25362         PR target/69551
25363         * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
25364         SSE1, copy target into the temporary reg first before recursing
25365         on it.
25367 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
25369         * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
25370         with vm.
25372 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
25374         * ginclude/stdarg.h: Test __cplusplus instead of
25375         __GXX_EXPERIMENTAL_CXX0X__.
25377 2016-01-29  Richard Biener  <rguenther@suse.de>
25379         PR tree-optimization/69547
25380         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
25381         Do not mark clobbers necessary.
25382         (mark_all_reaching_defs_necessary_1): Likewise.
25384 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
25386         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
25387         declaration name with %qs and print it in both error messages.
25388         Also fix indentation.
25390 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
25392         PR other/69006
25393         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
25394         trailing blank line from error message.
25396 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
25398         PR c++/69462
25399         * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
25400         for C++-11.
25402 2016-01-29  Richard Biener  <rguenther@suse.de>
25404         PR middle-end/69537
25405         * match.pd: Allow all integral types when simplifying a
25406         widening or sign-changing conversion.
25408 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
25410         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
25411         back to setting codegen_error to fail codegen.
25413 2016-01-28  Uros Bizjak  <ubizjak@gmail.com>
25415         PR target/69459
25416         * config/i386/constraints.md (C): Only accept constant zero operand.
25417         (BC): New constraint.
25418         * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
25419         instead of C constraint.
25420         * doc/md.texi (Machine Constraints): Update description
25421         of C constraint.
25423 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
25425         PR target/68400
25426         * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
25428 2016-01-28  Jakub Jelinek  <jakub@redhat.com>
25430         PR middle-end/69542
25431         * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
25432         non-debug insns.
25434 2016-01-28  Pat Haugen  <pthaugen@us.ibm.com>
25436         * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
25437         branches if using guessed profile.
25439 2016-01-28  H.J. Lu  <hongjiu.lu@intel.com>
25441         * graphite-optimize-isl.c (optimize_isl): Fix dump.
25443 2016-01-28  Richard Henderson  <rth@redhat.com>
25445         PR target/69305
25446         * config/aarch64/aarch64-modes.def (CC_Cmode): New
25447         * config/aarch64/aarch64-protos.h: Update.
25448         * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
25449         (aarch64_select_cc_mode): Add check for use of CC_Cmode.
25450         (aarch64_get_condition_code_1): Handle CC_Cmode.
25451         * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
25452         (*add<mode>3_compareC_cconly_imm): New.
25453         (*add<mode>3_compareC_cconly): New.
25454         (*add<mode>3_compareC_imm): New.
25455         (add<mode>3_compareC): New.
25456         (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
25457         to be first.  Use aarch64_carry_operation.
25458         (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
25459         (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
25460         (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
25461         (subti3): Use subdi3_compare1.
25462         (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
25463         (sub<mode>3_compare1): New.
25464         (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
25465         (*sub<mode>3_carryin): Use aarch64_borrow_operation.
25466         (*subsi3_carryin_uxtw): Likewise.
25467         (*ngc<mode>, *ngcsi_uxtw): Likewise.
25468         (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
25469         * config/aarch64/iterators.md (DWI): New.
25470         * config/aarch64/predicates.md (aarch64_carry_operation): New.
25471         (aarch64_borrow_operation): New.
25473 2016-01-28  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
25475         * graphite-optimize-isl.c (optimize_isl): Print a different debug
25476         message when isl does not return a valid schedule.
25478 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
25480         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
25481         Remove comments from class declarations: they are already in the code
25482         close by the defs.
25484 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
25486         * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
25487         codegen_error_p.
25488         (ternary_op_to_tree): Same.
25489         (unary_op_to_tree): Same.
25490         (nary_op_to_tree): Same.
25491         (gcc_expression_from_isl_expr_op): Same.
25492         (gcc_expression_from_isl_expression): Same.
25493         (graphite_create_new_loop): Same.
25494         (graphite_create_new_loop_guard): Same.
25495         (build_iv_mapping): Same.
25496         (graphite_create_new_guard): Same.
25497         (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
25498         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
25500 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
25502         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
25503         instead of setting codegen_error to fail codegen.
25505 2016-01-28  Jason Merrill  <jason@redhat.com>
25507         * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
25509 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
25511         * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
25512         Remove CONST_INT_P check in CCMP cost calculation.
25514 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
25516         * config/aarch64/aarch64.c (generic_vector_cost):
25517         Set vec_permute_cost.
25518         (cortexa57_vector_cost): Likewise.
25519         (exynosm1_vector_cost): Likewise.
25520         (xgene1_vector_cost): Likewise.
25521         (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
25522         * config/aarch64/aarch64-protos.h (cpu_vector_cost):
25523         Add vec_permute_cost entry.
25525 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
25527         * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
25528         immediate as %1.
25529         (add<mode>3_compare0): Likewise.
25530         (addsi3_compare0_uxtw): Likewise.
25531         (add<mode>3nr_compare0): Likewise.
25532         (compare_neg<mode>): Likewise.
25533         (<optab><mode>3): Likewise.
25535 2016-01-28  Ilya Enkovich  <enkovich.gnu@gmail.com>
25537         * tree-vect-stmts.c (vectorizable_comparison): Add
25538         NULL check for vectype.
25540 2016-01-28  Richard Biener  <rguenther@suse.de>
25542         PR tree-optimization/69466
25543         * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
25544         Account for PHIs we couldn't duplicate.
25546 2016-01-28  Martin Liska  <mliska@suse.cz>
25548         PR pch/68758
25549         * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
25550         instead of ENABLE_VALGRIND_CHECKING.
25552 2016-01-27  Richard Henderson  <rth@redhat.com>
25554         PR rtl-opt/69447
25555         * lra-remat.c (subreg_regs): New.
25556         (dump_candidates_and_remat_bb_data): Dump it.
25557         (operand_to_remat): Reject if operand in subreg_regs.
25558         (set_bb_regs): Collect subreg_regs.
25559         (lra_remat): Init and free subreg_regs.  Compute
25560         calculate_local_reg_remat_bb_data before create_cands.
25562 2016-01-27  H.J. Lu  <hongjiu.lu@intel.com>
25564         PR target/68986
25565         * config/i386/i386.c (ix86_update_stack_boundary): Don't
25566         change stack_alignment_needed for __tls_get_addr call.
25568 2016-01-27  Segher Boessenkool  <segher@kernel.crashing.org>
25570         * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
25572 2016-01-27  Jeff Law  <law@redhat.com>
25574         PR tree-optimization/68398
25575         PR tree-optimization/69196
25576         * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
25577         (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
25578         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
25579         Only count PHIs in the last block in the path.  The others will
25580         const/copy propagate away.  Add heuristic to allow more irreducible
25581         subloops to be created when it is likely profitable to do so.
25583         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
25584         Fix typo in comment.  Use gsi_after_labels and remove the GIMPLE_LABEL
25585         check from within the loop.  Use gsi_next_nondebug rather than gsi_next.
25587 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
25589         PR lto/69254
25590         * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
25591         END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
25592         * asan.c (DEF_BUILTIN_STUB): Temporarily define.
25593         * tree-streamer-in.c: Include asan.h.
25594         (streamer_get_builtin_tree): For builtins in sanitizer
25595         range call initialize_sanitizer_builtins and retry.
25597 2016-01-27  Ian Lance Taylor  <iant@google.com>
25599         * common.opt (fkeep-gc-roots-live): New undocumented option.
25600         * tree-ssa-loop-ivopts.c (add_candidate_1): If
25601         -fkeep-gc-roots-live, skip pointers.
25602         (add_iv_candidate_for_biv): Handle add_candidate_1 returning
25603         NULL.
25605 2016-01-27  Uros Bizjak  <ubizjak@gmail.com>
25607         PR target/69512
25608         * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
25609         (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
25611 2016-01-27  Thomas Klausner  <wiz@NetBSD.org>
25613         PR target/68380
25614         * configure.ac: NetBSD provides SSP in its C library.
25615         * configure: Updated.
25617 2016-01-27  Richard Biener  <rguenther@suse.de>
25619         PR tree-optimization/69166
25620         * tree-vect-loop.c (vect_is_simple_reduction): Always check
25621         reduction code for commutativity / associativity.
25623 2016-01-27  Martin Jambor  <mjambor@suse.cz>
25625         PR tree-optimization/69355
25626         * tree-sra.c (analyze_access_subtree): Correct hole detection when
25627         total_scalarization fails.
25629 2016-01-27  David Edelsohn  <dje.gcc@gmail.com>
25631         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
25632         power9.
25634 2016-01-27  Christian Bruel  <christian.bruel@st.com>
25636         PR target/69245
25637         * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
25638         Move arm_reset_previous_fndecl and set_target_option_current_node in
25639         the conditional part.  Call save_restore_target_globals.
25640         * config/arm/arm.c (arm_set_current_function):
25641         Refactor to better support #pragma target and attribute mix.
25642         Call save_restore_target_globals.
25643         * config/arm/arm-protos.h (save_restore_target_globals): New function.
25645 2016-01-27  Martin Liska  <mliska@suse.cz>
25647         * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
25648         reference for an HSA kernel and its host function.
25650 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
25652         PR tree-optimization/69399
25653         * wide-int.h (wi::lrshift): For larger precisions, only
25654         use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
25656 2016-01-27  Claudiu Zissulescu  <claziss@synopsys.com>
25658         * config/arc/predicates.md (proper_comparison_operator): Reject
25659         constant-constant comparison.
25661 2016-01-26  Tom de Vries  <tom@codesourcery.com>
25663         PR tree-optimization/69110
25664         * tree-data-ref.c (initialize_data_dependence_relation): Handle
25665         DR_NUM_DIMENSIONS == 0.
25667 2016-01-26  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
25668             Sebastian Pop  <s.pop@samsung.com>
25670         * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
25671         isl_ast_op_cond and isl_ast_op_select.
25672         (gcc_expression_from_isl_expr_op): Same.
25674 2016-01-26  Jason Merrill  <jason@redhat.com>
25676         PR c++/68782
25677         * tree.c (recompute_constructor_flags): Split out from
25678         build_constructor.
25679         (verify_constructor_flags): New.
25680         * tree.h: Declare them.
25682 2016-01-26  Iain Buclaw  <ibuclaw@gdcproject.org>
25684         PR rtl-optimization/69217
25685         * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
25686         are no TYPE_FIELDS set for the record type.
25688 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
25690         PR target/68662
25691         * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
25692         toc_label_name unconditionally.
25693         (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
25694         SYMBOL_REF string.  Use toc_label_name instead of constructing
25695         LCTOC1.
25696         (rs6000_elf_declare_function_name): Use toc_label_name instead of
25697         constructing LCTOC1.
25699 2016-01-26  Martin Sebor  <msebor@redhat.com>
25701         PR other/69477
25702         * doc/extend.texi (Common Type Attributes): Move text that talks about
25703         attribute packed from attribute aligned to the section discussing
25704         the former attribute for clarity.
25706 2016-01-26  Richard Henderson  <rth@redhat.com>
25708         PR middle-end/60908
25709         * trans-mem.c (tm_region_init): Mark entry block as visited.
25711 2016-01-26  David Malcolm  <dmalcolm@redhat.com>
25713         PR other/69006
25714         * diagnostic-show-locus.c (layout::print_source_line): Replace
25715         call to pp_newline with call to layout::print_newline.
25716         (layout::print_annotation_line): Likewise.
25717         (layout::move_to_column): Likewise.
25718         (layout::print_any_fixits): After printing any fixits, print a
25719         trailing newline, if necessary.
25720         (layout::print_newline): New method, resetting any colorization
25721         before a newline.
25722         (diagnostic_show_locus): Move the pp_newline to before the
25723         early bailout.  Remove dummy block enclosing the layout instance.
25724         * diagnostic.c (default_diagnostic_finalizer): Replace invocation
25725         of pp_newline_and_flush with pp_flush.
25726         (diagnostic_append_note): Delete use of pp_newline.
25727         (diagnostic_append_note_at_rich_loc): Delete.
25728         * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
25729         * pretty-print.h (output_buffer_append_r): Reset buff->line_length
25730         when newline characters are added to the buffer.
25732 2016-01-26  Michael Matz  <matz@suse.de>
25734         * configure.ac (ac_cv_std_swap_in_utility): New test.
25735         * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
25736         * configure: Regenerate.
25737         * config.in: Regenerate.
25739 2016-01-26  Claudiu Zissulescu  <claziss@synopsys.com>
25741         * config/arc/arc.md (cstoresi4): Force operand into register.
25742         (arcset<code>): Fix predicate.
25743         (arcsetltu): Likewise.
25744         (arcsetgeu): Likewise.
25745         (arcsethi): Likewise.
25746         (arcsetls): Likewise.
25748 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
25750         PR tree-optimization/69483
25751         * gimple-fold.c (canonicalize_constructor_val): Return NULL
25752         if base has error_mark_node type.
25754 2016-01-26  Christophe Lyon  <christophe.lyon@linaro.org>
25756         PR target/68620
25757         * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
25758         * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
25759         New helper macros.
25760         (vget_lane_f16): Handle big-endian.
25761         (vgetq_lane_f16): Likewise.
25762         (vset_lane_f16): Likewise.
25763         (vsetq_lane_f16): Likewise.
25764         * config/arm/iterators.md (VQXMOV): Add V8HF.
25765         (VDQ): Add V4HF and V8HF.
25766         (V_reg): Handle V4HF and V8HF.
25767         (Is_float_mode): Likewise.
25768         * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
25769         neon_vdup_nv8hf): New patterns.
25770         (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
25771         Use VD_LANE iterator.
25772         (neon_vld1_dup<mode>): Use VQ2 iterator.
25774 2016-01-26  Nathan Sidwell  <nathan@acm.org>
25776         * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
25777         (set_oacc_fn_attrib): Add IS_KERNEL arg.
25778         * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
25779         (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
25780         (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
25781         (oacc_validate_dims): Add LEVEL arg, don't return level.
25782         (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
25783         oacc_validate_dims.
25784         (execute_oacc_device_lower): Adjust, add more dump output.
25785         * tree-ssa-loop.c (gate_oacc_kernels): Use
25786         oacc_fn_attrib_kernels_p.
25787         * tree-parloops.c (create_parallel_loop): Adjust
25788         set_oacc_fn_attrib call.
25790 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
25792         PR lto/69254
25793         * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
25794         (append_compiler_options): Handle -fcilkplus.
25795         (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
25797 2016-01-26  Nick Clifton  <nickc@redhat.com>
25799         PR target/66655
25800         * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
25801         been marked as DECL_ONE_ONLY but we do not the means to make it
25802         so, then do not allow it to bind locally.
25804 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
25806         PR lto/69254
25807         * opts.h (parse_sanitizer_options): New prototype.
25808         * opts.c (sanitizer_opts): New array.
25809         (parse_sanitizer_options): New function.
25810         (common_handle_option): Use parse_sanitizer_options.
25812 2016-01-26  H.J. Lu  <hongjiu.lu@intel.com>
25814         PR target/68986
25815         * config/i386/i386.c (ix86_compute_frame_layout): Move stack
25816         alignment adjustment to ...
25817         (ix86_update_stack_boundary): Here.  Don't over-align stack for
25818         __tls_get_addr.
25819         (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
25820         if __tls_get_addr is called.
25822 2016-01-26  Christian Bruel  <christian.bruel@st.com>
25824         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
25826 2016-01-26  Eric Botcazou  <ebotcazou@adacore.com>
25828         * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
25830 2016-01-26  Richard Biener  <rguenther@suse.de>
25832         PR middle-end/69467
25833         * match.pd: Guard X * CST CMP 0 pattern with single_use.
25835 2016-01-26  Richard Biener  <rguenther@suse.de>
25837         PR tree-optimization/69452
25838         * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
25839         (move_computations_dom_walker::before_dom_children): Rename
25840         to ...
25841         (move_computations_worker): This.
25842         (move_computations): Perform an RPO rather than a DOM walk.
25844 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
25846         PR target/69442
25847         * combine.c (combine_instructions): For REG_EQUAL note with
25848         SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
25849         to the underlying register.
25850         * doc/rtl.texi (REG_EQUAL): Document the behavior of
25851         REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
25853 2016-01-26  Roger Ferrer Ibáñez  <rofirrim@gmail.com>
25855         PR target/67896
25856         * config/aarch64/aarch64-builtins.c
25857         (aarch64_init_simd_builtin_types): Do not set structural
25858         equality to __Poly{8,16,64,128}_t types.
25860 2016-01-26  Richard Sandiford  <richard.sandiford@arm.com>
25862         PR tree-optimization/69400
25863         * wide-int.cc (wi_pack): Take the precision as argument and
25864         perform canonicalization here rather than in the callers.
25865         Use the main loop to handle all full-width HWIs.  Add a
25866         zero HWI if in_len isn't a full result.
25867         (wi::divmod_internal): Update accordingly.
25868         (wi::mul_internal): Likewise.  Simplify.
25870 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
25871             Sebastian Pop  <s.pop@samsung.com>
25873         * graphite-poly.c (apply_poly_transforms): Simplify.
25874         (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
25875         (print_isl_map): Same.
25876         (print_isl_union_map): Same.
25877         (print_isl_schedule): New.
25878         (debug_isl_schedule): New.
25879         * graphite-dependences.c (scop_get_reads): Do not call
25880         isl_union_map_add_map that is undocumented isl functionality.
25881         (scop_get_must_writes): Same.
25882         (scop_get_may_writes): Same.
25883         (scop_get_original_schedule): Remove.
25884         (scop_get_dependences): Do not call isl_union_map_compute_flow that
25885         is deprecated in isl 0.15.  Instead, use isl_union_access_* interface.
25886         (compute_deps): Remove.
25887         * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
25888         (debug_schedule_ast): New.
25889         (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
25890         set_separate_option.
25891         (graphite_regenerate_ast_isl): Add dump.
25892         (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
25893         from scop->transformed_schedule.
25894         (graphite_regenerate_ast_isl): Add more dump.
25895         * graphite-optimize-isl.c (optimize_isl): Set
25896         scop->transformed_schedule.  Check whether schedules are equal.
25897         (apply_poly_transforms): Move here.
25898         * graphite-poly.c (apply_poly_transforms): ... from here.
25899         (free_poly_bb): Static.
25900         (free_scop): Static.
25901         (pbb_number_of_iterations_at_time): Remove.
25902         (print_isl_ast): New.
25903         (debug_isl_ast): New.
25904         (debug_scop_pbb): New.
25905         * graphite-scop-detection.c (print_edge): Move.
25906         (print_sese): Move.
25907         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
25908         (build_scop_scattering): Remove.
25909         (create_pw_aff_from_tree): Assert instead of bailing out.
25910         (add_condition_to_pbb): Remove unused code, do not fail.
25911         (add_conditions_to_domain): Same.
25912         (add_conditions_to_constraints): Remove.
25913         (build_scop_context): New.
25914         (add_iter_domain_dimension): New.
25915         (build_iteration_domains): Initialize pbb->iterators.
25916         Call add_conditions_to_domain.
25917         (nested_in): New.
25918         (loop_at): New.
25919         (index_outermost_in_loop): New.
25920         (index_pbb_in_loop): New.
25921         (outermost_pbb_in): New.
25922         (add_in_sequence): New.
25923         (add_outer_projection): New.
25924         (outer_projection_mupa): New.
25925         (add_loop_schedule): New.
25926         (build_schedule_pbb): New.
25927         (build_schedule_loop): New.
25928         (embed_in_surrounding_loops): New.
25929         (build_schedule_loop_nest): New.
25930         (build_original_schedule): New.
25931         (build_poly_scop): Call build_original_schedule.
25932         * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
25933         (free_poly_dr): Remove.
25934         (struct poly_bb): Add iterators.  Remove schedule, transformed, saved.
25935         (free_poly_bb): Remove.
25936         (debug_loop_vec): Remove.
25937         (print_isl_ast): Declare.
25938         (debug_isl_ast): Declare.
25939         (scop_do_interchange): Remove.
25940         (scop_do_strip_mine): Remove.
25941         (scop_do_block): Remove.
25942         (flatten_all_loops): Remove.
25943         (optimize_isl): Remove.
25944         (pbb_number_of_iterations_at_time): Remove.
25945         (debug_scop_pbb): Declare.
25946         (print_schedule_ast): Declare.
25947         (debug_schedule_ast): Declare.
25948         (struct scop): Remove schedule.  Add original_schedule,
25949         transformed_schedule.
25950         (free_gimple_poly_bb): Remove.
25951         (print_generated_program): Remove.
25952         (debug_generated_program): Remove.
25953         (unify_scattering_dimensions): Remove.
25954         * sese.c (print_edge): ... here.
25955         (print_sese): ... here.
25956         (debug_edge): ... here.
25957         (debug_sese): ... here.
25958         * sese.h (print_edge): Declare.
25959         (print_sese): Declare.
25960         (dump_edge): Declare.
25961         (dump_sese): Declare.
25963 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
25964             Sebastian Pop  <s.pop@samsung.com>
25966         * Makefile.in: Set ISLVER in site.exp.
25968 2016-01-25  Jakub Jelinek  <jakub@redhat.com>
25970         * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
25971         DECL_VALUE_EXPR of new_var even for the non-array case.  Look
25972         through DECL_VALUE_EXPR for expansion.
25974 2016-01-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
25976         * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
25977         the frame info after reload completed.
25979 2016-01-25  Jeff Law  <law@redhat.com>
25981         PR tree-optimization/69196
25982         PR tree-optimization/68398
25983         * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
25984         tree-ssa-threadupdate.c.
25985         (determine_bb_domination_status): Prototype
25986         * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
25987         (determine_bb_domination_status): No longer static.
25988         (valid_jump_thread_path): Remove code to detect characteristics
25989         of the jump thread path not associated with correctness.
25990         * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
25991         Correct test for thread path length.  Count PHIs for real operands as
25992         statements that need to be copied.  Do not count ASSERT_EXPRs.
25993         Look at all the blocks in the thread path.  Compute and selectively
25994         filter thread paths based on threading through the latch, threading
25995         a multiway branch or crossing a multiway branch.
25997 2016-01-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25999         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled):  Add
26000         decl with __attribute__ ((unused)) annotation.
26002 2016-01-25  Ilya Enkovich  <enkovich.gnu@gmail.com>
26004         PR target/69421
26005         * tree-vect-stmts.c (vectorizable_condition): Check vectype
26006         of operands is compatible with a statement vectype.
26008 2016-01-25  Eric Botcazou  <ebotcazou@adacore.com>
26010         * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
26011         improve wording for mixed storage order support.
26013 2016-01-25  Bilyan Borisov  <bilyan.borisov@arm.com>
26015         * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
26016         (vcvt_u64_f64): Likewise.
26017         (vcvta_s64_f64): Likewise.
26018         (vcvta_u64_f64): Likewise.
26019         (vcvtm_s64_f64): Likewise.
26020         (vcvtm_u64_f64): Likewise.
26021         (vcvtn_s64_f64): Likewise.
26022         (vcvtn_u64_f64): Likewise.
26023         (vcvtp_s64_f64): Likewise.
26024         (vcvtp_u64_f64): Likewise.
26026 2016-01-25  Claudiu Zissulescu  <claziss@synopsys.com>
26028         * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
26029         (arc_init): Check validity mll64 option.
26030         (arc_save_restore): Use double load/store instruction.
26031         (arc_expand_movmem): Likewise.
26032         (arc_split_move): Don't split if we have double load/store
26033         instructions. Returns a boolean.
26034         (arc_process_double_reg_moves): Change function to return boolean
26035         instead of a sequence of instructions.
26036         (arc_dwarf_register_span): New function.
26037         * config/arc/arc-protos.h (arc_split_move): Change prototype.
26038         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
26039         * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
26040         (*movdf_insn): Likewise.
26041         * config/arc/arc.opt (mll64): New option.
26042         * config/arc/predicates.md (even_register_operand): New predicate.
26043         * doc/invoke.texi (ARC Options): Add mll64 documentation.
26045 2016-01-25  Richard Biener  <rguenther@suse.de>
26047         PR lto/69393
26048         * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
26049         * tree-streamer-out.c (pack_ts_base_value_fields): Stream
26050         DECL_NAMELESS.
26051         * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
26053 2016-01-25  Richard Biener  <rguenther@suse.de>
26055         PR tree-optimization/69376
26056         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
26057         flag.
26058         (VN_INFO_ANTI_RANGE_P): New inline.
26059         (VN_INFO_RANGE_TYPE): Likewise.
26060         * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
26061         SSA_NAME_ANTI_RANGE_P.
26062         (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
26063         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
26064         Properly query VN_INFO_RANGE_TYPE.
26066 2016-01-25  Nick Clifton  <nickc@redhat.com>
26068         PR target/66655
26069         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
26071 2016-01-23  Tom de Vries  <tom@codesourcery.com>
26073         PR tree-optimization/69426
26074         * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
26075         removed clobber.
26077 2016-01-23  Jakub Jelinek  <jakub@redhat.com>
26079         * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
26080         "the the" with "the" in the comments.
26081         * ipa-devirt.c (build_type_inheritance_graph,
26082         update_type_inheritance_graph): Likewise.
26083         * tree.c (build_function_type_list_1): Likewise.
26084         * cfgloopmanip.c (scale_loop_profile): Likewise.
26085         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
26086         * gimple-ssa-split-paths.c
26087         (find_block_to_duplicate_for_splitting_paths): Likewise.
26088         * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
26089         * expr.c (convert_move): Likewise.
26090         * var-tracking.c (vt_stack_adjustments): Likewise.
26091         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
26092         * tree-vrp.c (test_for_singularity): Likewise.
26094         * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
26095         directly instead of building a temporary tree.
26097         PR bootstrap/69434
26098         * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
26099         remove <algorithm> include.
26101 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
26103         PR target/69432
26104         * config/i386/i386.c: Include dojump.h.
26105         (expand_small_movmem_or_setmem,
26106         expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
26107         fixes.
26108         (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
26109         if dynamic_check != -1.
26111 2016-01-21  Jeff Law  <law@redhat.com>
26113         PR middle-end/69347
26114         * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
26115         record_temporary_equivalences.  Rewritten to avoid unnecessary calls
26116         into dominated_by_p.
26117         (cprop_into_successor_phis): Avoid unnecessary tests.
26119 2016-01-22  Richard Henderson  <rth@redhat.com>
26121         PR target/69416
26122         * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
26123         (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
26125 2016-01-22  Michael Matz  <matz@suse.de>
26127         * system.h (string, algorithm): Include only conditionally.
26128         (new): Include always under C++.
26129         * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
26130         * final.c (toplevel): Ditto.
26131         * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
26132         * genconditions.c (write_header): Make gencondmd.c define
26133         INCLUDE_STRING.
26134         * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
26136         * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
26137         * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
26139 2016-01-22  Christian Bruel  <christian.bruel@st.com>
26141         PR target/68674
26142         * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
26144 2016-01-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26146         PR target/69403
26147         * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
26148         define_insn_and_split.  Ensure operands[1] and operands[0] do not
26149         get assigned the same register.
26151 2016-01-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
26153         * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
26155 2016-01-22  Christian Bruel  <christian.bruel@st.com>
26157         * config/arm/arm-c.c (arm_pragma_target_parse):
26158         Remove warn_builtin_macro_redefined overwrite.
26160 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
26162         * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
26163         flag_non_call_exceptions compatibility.
26165 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
26167         PR debug/66668
26168         * dwarf2out.c (add_child_die_after): New function.
26169         (dwarf_qual_info_t): New type.
26170         (dwarf_qual_info): New variable.
26171         (qualified_die_p): New function.
26172         (modified_type_die): For -fdebug-types-section, ensure
26173         canonical order of qualifiers.  Put qualified DIEs adjacent
26174         to the corresponding non-qualified type DIE and search there
26175         for existing qualified DIEs.
26177 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
26179         * doc/extend.texi (scalar_storage_order type attribute): Document
26180         restriction on type punning and aliasing, and remove future tense.
26182 2016-01-21  Roman Zhuykov  <zhroma@ispras.ru>
26184         PR target/69252
26185         * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
26186         first stage.
26188 2016-01-21  Jeff Law  <law@redhat.com>
26190         PR middle-end/69347
26191         * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
26192         useless call to record_temporary_equivalences.
26193         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
26194         allocate 10 slots in the bb_path vector and let it grow as needed.
26195         (fsm_find_control_statement_thread_paths): Similarly for the next_path
26196         vector.
26198 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
26200         * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
26201         Detangle.
26202         * configure: Regenerate.
26204 2016-01-21  Pat Haugen  <pthaugen@us.ibm.com>
26206         * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
26207         * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
26209 2016-01-21  Bernd Schmidt  <bschmidt@redhat.com>
26211         PR middle-end/66178
26212         * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
26213         drop EXPAND_INITIALIZER.
26214         * rtl.h (contains_symbolic_reference_p): Declare.
26215         * rtlanal.c (contains_symbolic_reference_p): New function.
26216         * simplify-rtx.c (simplify_binary_operation_1): Don't turn
26217         a subtraction into a NOT if symbolic constants are involved.
26219 2016-01-21  Anton Blanchard  <anton@samba.org>
26220             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26222         PR target/63354
26223         * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
26224         #define.
26225         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
26226         function.
26228 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
26230         * config/microblaze/microblaze.c
26231         (get_branch_target): New.
26232         (insert_wic_for_ilb_runout): New.
26233         (insert_wic): New.
26234         (microblaze_machine_dependent_reorg): New.
26235         (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
26236         * config/microblaze/microblaze.md
26237         (UNSPEC_IPREFETCH): Define.
26238         (iprefetch): New pattern
26239         * config/microblaze/microblaze.opt
26240         (mxl-prefetch): New flag.
26242 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
26244         * config/microblaze/microblaze.h
26245         (FIXED_REGISTERS): Update in macro.
26246         (CALL_USED_REGISTERS): Update in macro.
26248 2016-01-21  Yuri Rumyantsev  <ysrumyan@gmail.com>
26250         PR rtl-optimization/68920
26251         * ifcvt.c (cond_move_process_if_block): Limit number of conditional
26252         moves.
26254 2016-01-21  Vladimir Makarov  <vmakarov@redhat.com>
26256         PR rtl-optimization/68990
26257         * lra-coalesce.c (lra_coalesce): Invalidate value for the result
26258         pseudo instead of inheritance ones.
26260 2016-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
26261             Nick Clifton  <nickc@redhat.com>
26263         PR target/69129
26264         PR target/69012
26265         * config/mips/mips.c (mips_compute_frame_info): Initialise
26266         args_size and hard_frame_pointer_offset fields of the frame
26267         structure before calling mips_global_pointer.
26269 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
26271         * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
26272         label reference.
26273         * configure: Regenerate.
26275 2016-01-21  Richard Biener  <rguenther@suse.de>
26277         * graphite-optimize-isl.c (get_schedule_map): Fix typo.
26279 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
26281         * config/s390/s390.c (s390_asm_declare_function_size): Add code
26282         to actually emit the .size directive.
26284 2016-01-21   Stefan Sørensen  <stefan.sorensen@spectralink.com>
26285              Jakub Jelinek  <jakub@redhat.com>
26287         PR target/69187
26288         PR target/65624
26289         * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
26290         args array size by one to avoid buffer overflow.
26292 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
26294         * config/s390/s390.md (pool_section_start): Use switch_to_section
26295         to select proper read-only data section instead of hardcoding
26296         .rodata.
26297         (pool_section_end): Use switch_to_section to match the above.
26299 2016-01-21  Richard Biener  <rguenther@suse.de>
26301         PR tree-optimization/69378
26302         * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
26303         (set_ssa_val_to): Use it for dominance checks taking into
26304         account not executable edges.
26306 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
26308         PR c++/69355
26309         * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
26310         for bitsize instead of GET_MODE_PRECISION (mode).
26312 2016-01-20  Martin Sebor  <msebor@redhat.com>
26314         PR c/52291
26315         * extend.texi (__sync Builtins): Clarify the semantics of
26316         __sync_fetch_and_OP built-ins on pointers.
26317         (__atomic Builtins): Same.
26319 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
26320             Sebastian Pop  <s.pop@samsung.com>
26322         * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
26323         (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
26324         (is_valid_rename): Same.
26325         (translate_isl_ast_to_gimple::get_rename): Same.
26326         (translate_isl_ast_to_gimple::rename_all_uses): Same.
26327         (translate_isl_ast_to_gimple::rename_uses): Same.
26328         (get_new_name): Check for close_phi nodes.
26329         (copy_loop_phi_args): Use phi_node_kind.
26330         (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
26331         (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
26333 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
26334             Sebastian Pop  <s.pop@samsung.com>
26336         Revert commit r229783.
26337         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
26338         Remove use of parameter_rename_map.
26339         (copy_def): Remove.
26340         (copy_internal_parameters): Remove.
26341         (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
26342         * sese.c (new_sese_info): Do not initialize parameter_rename_map.
26343         (free_sese_info): Do not free parameter_rename_map.
26344         (set_rename): Do not use parameter_rename_map.
26345         (rename_uses): Update call to set_rename.
26346         (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
26347         * sese.h (parameter_rename_map_t): Remove.
26348         (struct sese_info_t): Remove field parameter_rename_map.
26350 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
26351             Sebastian Pop  <s.pop@samsung.com>
26353         * graphite-isl-ast-to-gimple.c: Fix comment.
26354         * graphite-scop-detection.c (defined_in_loop_p): New.
26355         (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
26356         names defined in loop.
26358 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
26359             Sebastian Pop  <s.pop@samsung.com>
26361         * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
26362         Discard unstructured if-then-else regions.
26364 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
26365             Sebastian Pop  <s.pop@samsung.com>
26367         * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
26368         (cleanup_loop_iter_dom): Remove.
26369         (build_loop_iteration_domains): Remove.
26370         (build_scop_context): Remove.
26371         (build_scop_iteration_domain): Remove.
26372         (add_loop_constraints): New.
26373         (build_iteration_domains): New.
26374         (build_poly_scop): Call build_iteration_domains.
26376 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
26377             Sebastian Pop  <s.pop@samsung.com>
26379         * graphite-scop-detection.c
26380         (scop_detection::harmful_loop_in_region): Free dom and loops.
26381         (scop_detection::loop_body_is_valid_scop): Free bbs.
26383 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
26384             Sebastian Pop  <s.pop@samsung.com>
26386         * graphite-scop-detection.c (record_loop_in_sese): New.
26387         (gather_bbs::before_dom_children): Call record_loop_in_sese.
26388         (build_scops): Remove call to build_sese_loop_nests.
26389         * sese.c (sese_record_loop): Remove.
26390         (build_sese_loop_nests): Remove.
26391         (new_sese_info): Remove region->loops.
26392         (free_sese_info): Same.
26393         * sese.h (sese_contains_loop): Same.
26394         (build_sese_loop_nests): Remove.
26395         (sese_contains_loop): Remove.
26397 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
26398             Sebastian Pop  <s.pop@samsung.com>
26400         * graphite-scop-detection.c (loop_is_valid_scop): Renamed
26401         loop_is_valid_in_scop.
26402         (scop_detection::harmful_stmt_in_region): Renamed
26403         harmful_loop_in_region.
26404         Call loop_is_valid_in_scop.
26406 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
26407             Sebastian Pop  <s.pop@samsung.com>
26409         * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
26410         isl_ast_node_mark.
26412 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
26413             Sebastian Pop  <s.pop@samsung.com>
26415         * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
26416         * graphite.h (struct poly_bb): Remove field is_reduction.
26417         (PBB_IS_REDUCTION): Remove.
26419 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
26420             Sebastian Pop  <s.pop@samsung.com>
26422         * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
26423         (add_pdr_constraints): Same.
26424         (scop_get_reads): Same.
26425         (scop_get_must_writes): Same.
26426         (scop_get_may_writes): Same.
26427         (scop_get_original_schedule): Same.
26428         (extend_schedule): Same.
26429         (apply_schedule_on_deps): Same.
26430         (carries_deps): Same.
26431         (compute_deps): Same.
26432         (scop_get_dependences): Same.
26433         * graphite-isl-ast-to-gimple.c
26434         (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
26435         * graphite-optimize-isl.c (get_schedule_for_band): Same.
26436         (get_schedule_for_band_list): Same.
26437         (get_schedule_map): Same.
26438         (apply_schedule_map_to_scop): Same.
26439         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
26440         (build_loop_iteration_domains): Same.
26441         (add_condition_to_pbb): Same.
26442         (add_param_constraints): Same.
26443         (pdr_add_memory_accesses): Same.
26444         (pdr_add_data_dimensions): Same.
26446 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
26448         * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
26449         requirements.
26451 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
26453         * common.opt (feliminate-dwarf2-dups): Replace references to
26454         "DWARF 2" with just "DWARF".
26455         * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
26456         * doc/extend.texi: Likewise.
26457         * doc/cpp.texi: Likewise.
26458         * doc/invoke.texi: Likewise.
26459         (Option Summary): Add -gdwarf to list of Debugging Options.
26460         (Debugging Options): Document -gdwarf.
26461         * doc/contrib.texi: Spell "DWARF" like that.
26463 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
26465         * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
26466         warning.  Fix up formatting.
26468         PR middle-end/67653
26469         * gimplify.c (gimplify_asm_expr): Warn if it is too late to
26470         attempt to mark memory input operand addressable and
26471         call prepare_gimple_addressable in that case.  Don't adjust
26472         input_location for diagnostics, use error_at instead.
26474 2016-01-20  Peter Bergner  <bergner@vnet.ibm.com>
26476         * config/rs6000/ppc-auxv.h: New file.
26477         * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
26478         (cpu_is): Likewise.
26479         (cpu_supports): Likewise.
26480         * config/rs6000/rs6000.c: include "ppc-auxv.h".
26481         (cpu_is_info): New variable.
26482         (cpu_supports_info): Likewise.
26483         (tcb_verification_symbol): Likewise.
26484         (cpu_builtin_p): Likewise.
26485         (cpu_expand_builtin): New function.
26486         (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
26487         (rs6000_init_builtins): Likewise.
26488         (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
26489         * config/rs6000/rs6000.h (TLS_REGNUM): New define.
26490         * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
26491         * configure: Regenerate.
26492         * config.in: Likewise.
26493         * doc/extend.texi (PowerPC Built-in Functions): Document
26494         __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
26496 2016-01-20  David Edelsohn  <dje.gcc@gmail.com>
26498         PR target/68609
26499         * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
26500         domain check.
26501         * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
26502         for V4SFmode.
26504 2016-01-20  Richard Henderson  <rth@redhat.com>
26506         PR bootstrap/69343
26507         PR bootstrap/69339
26508         PR tree-opt/68964
26509         Revert:
26510         * tree.c (tm_define_builtin): New.
26511         (find_tm_vector_type): New.
26512         (build_tm_vector_builtins): New.
26513         (build_common_builtin_nodes): Call it.
26515 2016-01-20  Christophe Lyon  <christophe.lyon@linaro.org>
26517         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
26518         (arm_fp_ok): Likewise.
26519         (arm_fp): Likewise.
26520         (arm_crypto): Likewise.
26522 2016-01-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
26523             Richard Biener  <rguenther@suse.de>
26525         PR tree-optimization/69328
26526         * tree-vect-stmts.c (vect_is_simple_cond): Check compared
26527         vectors have same number of elements.
26528         (vectorizable_condition): Fix masked version recognition.
26530 2016-01-20  Richard Biener  <rguenther@suse.de>
26532         PR tree-optimization/69345
26533         * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
26534         (VN_INFO_PTR_INFO): Likewise.
26535         * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
26536         info when it is equal between non-dominating SSA names.
26537         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
26538         Make sure to look at original SSA infos.
26540 2016-01-20  Jeff Law  <law@redhat.com>
26542         PR target/25114
26543         * config/m68k/predicates.md (pow2_m1_operand): New predicate
26544         extracted from ...
26545         (reg_or_pow2_m1_operand): Call pow2_m1_operand.
26546         (pc_or_label_operand): New predicate.
26547         * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
26548         tests for small integers that are 2^n - 1.
26550 2016-01-20  Jonathan Wakely  <jwakely@redhat.com>
26552         * doc/invoke.texi (Options Summary): Add '.' after @xref.
26554 2016-01-19  Jeff Law  <law@redhat.com>
26556         PR middle-end/69347
26557         * tree-ssa-threadbackwards.c
26558         (fsm_find_control_statement_thread_paths): Do not try to lookup
26559         FSM paths for SSA_NAMEs appearing in abnormal PHIs.
26561 2016-01-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
26563         * doc/lto.texi: Remove text that says only Gold has linker plugin
26564         support.
26566 2016-01-19  Eric Botcazou  <ebotcazou@adacore.com>
26568         * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
26569         (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
26570         the DIE accordingly.
26571         (modified_type_die): Add REVERSE parameter and pass it recursively,
26572         as well as to base_type_die.  Adjust presence check accordingly.
26573         (base_type_for_mode): Adjust call to modified_type_die.
26574         (add_type_attribute): Add REVERSE parameter and pass it to
26575         modified_type_die.
26576         (generic_parameter_die): Adjust call to add_type_attribute.
26577         (add_scalar_info): Likewise.
26578         (add_subscript_info): Likewise.
26579         (gen_array_type_die): Likewise.
26580         (gen_descr_array_type_die): Likewise.
26581         (gen_entry_point_die): Likewise.
26582         (gen_enumeration_type_die): Likewise.
26583         (gen_formal_parameter_die): Likewise.
26584         (gen_subprogram_die): Likewise.
26585         (gen_variable_die ): Likewise.
26586         (gen_const_die): Likewise.
26587         (gen_field_die): Likewise.
26588         (gen_pointer_type_die): Likewise.
26589         (gen_reference_type_die): Likewise.
26590         (gen_ptr_to_mbr_type_die): Likewise.
26591         (gen_inheritance_die): Likewise.
26592         (gen_subroutine_type_die): Likewise.
26593         (gen_typedef_die): Likewise.
26594         (force_type_die): Adjust call to modified_type_die.
26596 2016-01-19  Sandra Loosemore  <sandra@codesourcery.com>
26598         * doc/standards.texi: Copy-editing for grammar, markup, and sentence
26599         flow throughout the file.  Fix broken link to Objective-C 2.0
26600         documentation.
26601         * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
26602         errors.
26604 2016-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
26606         * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
26608 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
26610         PR ipa/66223
26611         * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
26612         (maybe_record_node): Record cxa_pure_virtual as the only possible
26613         target if there are not ohter candidates.
26614         (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
26616 2016-01-19  Richard Biener  <rguenther@suse.de>
26618         * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
26619         (get_memory_order): Likewise.
26621 2016-01-19  Kirill Yukhin  <kirill.yukhin@intel.com>
26623         * tree-vect-stmts.c (vectorizable_store): Check
26624         rhs vectype.
26626 2016-01-19  David Malcolm  <dmalcolm@redhat.com>
26628         PR jit/68446
26629         * gcc.c (driver::decode_argv): Add call to
26630         init_opts_obstack before init_options_struct.
26631         * opts.c (init_opts_obstack): Remove idempotency.
26632         (init_options_struct): Replace call to init_opts_obstack
26633         with a gcc_assert to verify that it has already been called.
26634         * toplev.c (toplev::main): Add call to init_opts_obstack before
26635         calls to init_options_struct.
26636         (toplev::finalize): Move cleanup of opts_obstack next to
26637         cleanup of save_decoded_options, clearing the latter, and
26638         save_decoded_options_count.
26640 2016-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26642         PR target/69135
26643         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
26644         attribute to unconditional.  Remove %? from output template.
26646 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
26647             Jiong Wang  <jiong.wang@arm.com>
26649         * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
26650         generated from different expand order.
26652 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
26654         * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
26655         Add support for CCMP costing.
26657 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
26659         * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
26660         * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
26661         (fccmpe<mode>): Likewise.
26662         (fcmp): Rename to fcmp and globalize pattern.
26663         (fcmpe): Likewise.
26664         * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
26665         (aarch64_gen_ccmp_next): Add FP support.
26667 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
26669         * target.def (gen_ccmp_first): Update documentation.
26670         (gen_ccmp_next): Likewise.
26671         * doc/tm.texi (gen_ccmp_first): Update documentation.
26672         (gen_ccmp_next): Likewise.
26673         * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
26674         expand_ccmp_expr_1.  Improve comments.
26675         * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
26676         (ccmp_ior<mode>): Remove pattern.
26677         (cmp<mode>): Remove expand.
26678         (cmp): Globalize pattern.
26679         (cstorecc4): Use cc_register.
26680         (mov<mode>cc): Remove ccmp_cc_register check.
26681         * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
26682         Simplify after removal of CC_DNE/* modes.
26683         (aarch64_ccmp_mode_to_code): Remove.
26684         (aarch64_print_operand): Remove 'K' case.  Merge 'm' and 'M' cases.
26685         In 'k' case use integer as condition.
26686         (aarch64_nzcv_codes): Remove inverted cases.
26687         (aarch64_code_to_ccmode): Remove.
26688         (aarch64_gen_ccmp_first): Use cmp pattern directly.  Return the correct
26689         comparison with CC register to be used in folowing CCMP/branch/CSEL.
26690         (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
26691         pattern.  Return the comparison with CC register.  Invert conditions
26692         when bitcode is OR.
26693         * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
26694         * config/aarch64/predicates.md (ccmp_cc_register): Remove.
26696 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
26698         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
26699         instrumented_version.
26701 2016-01-19  Richard Biener  <rguenther@suse.de>
26703         PR tree-optimization/69336
26704         * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
26705         handled components with get_ref_base_and_extent.
26706         (equal_mem_array_ref_p): Adjust.
26708 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
26710         PR debug/65779
26711         * shrink-wrap.c: Include valtrack.h.
26712         (move_insn_for_shrink_wrap): Add DEBUG argument.  If
26713         MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
26714         in between insn and where it will be moved to.  Call
26715         dead_debug_insert_temp.
26716         (prepare_shrink_wrap): Adjust caller.  Call dead_debug_local_init
26717         first and dead_debug_local_finish at the end.
26718         For uses and defs bitmap, handle all regs in between REGNO and
26719         END_REGNO, not just the first one.
26721 2016-01-19  Richard Biener  <rguenther@suse.de>
26723         PR tree-optimization/69352
26724         * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
26725         (equal_mem_array_ref_p): Constrain size and max size properly.
26726         Compare the reverse flag.
26728 2016-01-19  Bernd Schmidt  <bschmidt@redhat.com>
26730         * ira.c (ira): Update regstat data if we deleted insns.
26732 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
26734         PR rtl-optimization/68955
26735         PR rtl-optimization/64557
26736         * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
26737         here.  Fix up formatting.
26738         * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
26740 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
26742         PR lto/69133
26743         * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
26744         assume that the node has body.
26745         * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
26746         check.
26748 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
26750         * lto-streamer-out.c (lto_output): Do not stream instrumentation
26751         thunks.
26753 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
26755         * symtab.c (symtab_node::asm_name): Do not call printable name directly.
26756         (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
26758 2016-01-19  Martin Jambor  <mjambor@suse.cz>
26759             Martin Liska  <mliska@suse.cz>
26760             Michael Matz  <matz@suse.de>
26762         * Makefile.in (OBJS): Add new source files.
26763         (GTFILES): Add hsa.c.
26764         * common.opt (disable_hsa): New variable.
26765         (-Whsa): New warning.
26766         * config.in (ENABLE_HSA): New.
26767         * configure.ac: Treat hsa differently from other accelerators.
26768         (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
26769         $enable_offloading.
26770         (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
26771         * doc/install.texi (Configuration): Document --with-hsa-runtime,
26772         --with-hsa-runtime-include, --with-hsa-runtime-lib and
26773         --with-hsa-kmt-lib.
26774         * doc/invoke.texi (-Whsa): Document.
26775         (hsa-gen-debug-stores): Likewise.
26776         * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
26777         to invoke offload compiler for hsa acclerator.
26778         * opts.c (common_handle_option): Determine whether HSA offloading
26779         should be performed.
26780         * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
26781         * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
26782         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
26783         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
26784         * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
26785         * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
26786         GF_OMP_FOR_KIND_GRID_LOOP.
26787         (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
26788         (pp_gimple_stmt_1): Likewise.
26789         * gimple-walk.c (walk_gimple_stmt): Likewise.
26790         * gimple.c (gimple_build_omp_grid_body): New function.
26791         (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
26792         * gimple.def (GIMPLE_OMP_GRID_BODY): New.
26793         * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
26794         GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
26795         GF_OMP_TEAMS_GRID_PHONY.
26796         (gimple_statement_omp_single_layout): Updated comments.
26797         (gimple_build_omp_grid_body): New function.
26798         (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
26799         (gimple_omp_for_grid_phony): New function.
26800         (gimple_omp_for_set_grid_phony): Likewise.
26801         (gimple_omp_parallel_grid_phony): Likewise.
26802         (gimple_omp_parallel_set_grid_phony): Likewise.
26803         (gimple_omp_teams_grid_phony): Likewise.
26804         (gimple_omp_teams_set_grid_phony): Likewise.
26805         (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
26806         * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
26807         (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
26808         (BUILT_IN_GOMP_TARGET): Updated type.
26809         * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
26810         (adjust_for_condition): New function.
26811         (get_omp_for_step_from_incr): Likewise.
26812         (extract_omp_for_data): Moved parts to adjust_for_condition and
26813         get_omp_for_step_from_incr.
26814         (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
26815         (fixup_child_record_type): Bail out if receiver_decl is NULL.
26816         (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
26817         (scan_omp_parallel): Do not create child functions for phony
26818         constructs.
26819         (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
26820         (scan_omp_1_op): Checking assert we are not remapping to
26821         ERROR_MARK.  Also also handle GIMPLE_OMP_GRID_BODY.
26822         (parallel_needs_hsa_kernel_p): New function.
26823         (expand_parallel_call): Register apprpriate parallel child
26824         functions as HSA kernels.
26825         (grid_launch_attributes_trees): New type.
26826         (grid_attr_trees): New variable.
26827         (grid_create_kernel_launch_attr_types): New function.
26828         (grid_insert_store_range_dim): Likewise.
26829         (grid_get_kernel_launch_attributes): Likewise.
26830         (get_target_argument_identifier_1): Likewise.
26831         (get_target_argument_identifier): Likewise.
26832         (get_target_argument_value): Likewise.
26833         (push_target_argument_according_to_value): Likewise.
26834         (get_target_arguments): Likewise.
26835         (expand_omp_target): Call get_target_arguments instead of looking
26836         up for teams and thread limit.
26837         (grid_expand_omp_for_loop): New function.
26838         (grid_arg_decl_map): New type.
26839         (grid_remap_kernel_arg_accesses): New function.
26840         (grid_expand_target_kernel_body): New function.
26841         (expand_omp): Call it.
26842         (lower_omp_for): Do not emit phony constructs.
26843         (lower_omp_taskreg): Do not emit phony constructs but create for them
26844         a temporary variable receiver_decl.
26845         (lower_omp_taskreg): Do not emit phony constructs.
26846         (lower_omp_teams): Likewise.
26847         (lower_omp_grid_body): New function.
26848         (lower_omp_1): Call it.
26849         (grid_reg_assignment_to_local_var_p): New function.
26850         (grid_seq_only_contains_local_assignments): Likewise.
26851         (grid_find_single_omp_among_assignments_1): Likewise.
26852         (grid_find_single_omp_among_assignments): Likewise.
26853         (grid_find_ungridifiable_statement): Likewise.
26854         (grid_target_follows_gridifiable_pattern): Likewise.
26855         (grid_remap_prebody_decls): Likewise.
26856         (grid_copy_leading_local_assignments): Likewise.
26857         (grid_process_kernel_body_copy): Likewise.
26858         (grid_attempt_target_gridification): Likewise.
26859         (grid_gridify_all_targets_stmt): Likewise.
26860         (grid_gridify_all_targets): Likewise.
26861         (execute_lower_omp): Call grid_gridify_all_targets.
26862         (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
26863         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
26864         (tree_omp_clause): Added union field dimension.
26865         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
26866         * tree.c (omp_clause_num_ops): Added number of arguments of
26867         OMP_CLAUSE__GRIDDIM_.
26868         (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
26869         (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
26870         * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
26871         (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
26872         (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
26873         (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
26874         * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
26875         * tree-pass.h (make_pass_gen_hsail): Declare.
26876         (make_pass_ipa_hsa): Likewise.
26877         * ipa-hsa.c: New file.
26878         * lto-section-in.c (lto_section_name): Add hsa section name.
26879         * lto-streamer.h (lto_section_type): Add hsa section.
26880         * timevar.def (TV_IPA_HSA): New.
26881         * hsa-brig-format.h: New file.
26882         * hsa-brig.c: New file.
26883         * hsa-dump.c: Likewise.
26884         * hsa-gen.c: Likewise.
26885         * hsa.c: Likewise.
26886         * hsa.h: Likewise.
26887         * toplev.c (compile_file): Call hsa_output_brig.
26888         * hsa-regalloc.c: New file.
26890 2016-01-18  Jeff Law  <law@redhat.com>
26892         PR tree-optimization/69320
26893         * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
26894         ranged object, do nothing if the RHS constant is not [0..1].
26895         (optimize_stmt): Comparing a boolean ranged object against a
26896         constant outside [0..1] results in a compile-time constant.
26898         * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
26899         test.
26901 2016-01-18  Sandra Loosemore  <sandra@codesourcery.com>
26903         * doc/invoke.texi (Invoking GCC): Add new section to menu.
26904         (Option Summary): Update to reflect new section and moved options.
26905         (C++ Dialect Options): Move -fstats to new section.
26906         (Debugging Options): Move all dump, statistics, and other GCC
26907         developer options to new section.  Rewrite section introduction
26908         and re-order remaining options to put the more basic ones first.
26909         (Optimization Options): Move -fira-verbose and -flto-report* to
26910         new section.
26911         (Developer Options): New section incorporating moved options.
26912         * doc/cppopts.texi (-dM): Update cross-reference.
26914 2016-01-18  Richard Henderson  <rth@redhat.com>
26916         PR target/69176
26917         * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
26918         operands to pseudo only if CSE is expected.  Split long immediate
26919         operands only after reload, and for the stack pointer.
26920         (*add<GPI>3_pluslong): Remove.
26921         (*addsi3_aarch64, *adddi3_aarch64): Merge into...
26922         (*add<GPI>3_aarch64): ... here.  Add r/rk/Upl alternative.
26923         (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
26924         (*add<GPI>3 peepholes): New.
26925         (*add<GPI>3 splitters): New.
26926         * config/aarch64/constraints.md (Upl): New.
26927         * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
26929 2016-01-18  Richard Biener  <rguenther@suse.de>
26931         PR tree-optimization/69297
26932         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
26933         stmt at most once.
26934         (vect_bb_vectorization_profitable_p): Clear visited flag again.
26936 2016-01-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
26938         PR middle-end/68542
26939         * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
26940         of mixind vector and scalar types.
26941         (fold_relational_const): Add handling of vector
26942         comparison with boolean result.
26943         * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
26944         comparison of vector operands with boolean result for EQ/NE only.
26945         (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
26946         (verify_gimple_cond): Likewise.
26947         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
26948         valid type of VAL.
26950 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
26952         * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
26953         !TARGET_OCTEON.
26955 2016-01-18  Richard Biener  <rguenther@suse.de>
26957         PR middle-end/69308
26958         * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
26960 2016-01-18  Tom de Vries  <tom@codesourcery.com>
26962         * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
26964 2016-01-18  Tom de Vries  <tom@codesourcery.com>
26966         * omp-low.c (set_oacc_fn_attrib): Make extern.
26967         * omp-low.h (set_oacc_fn_attrib): Declare.
26968         * tree-parloops.c (struct reduction_info): Add reduc_addr field.
26969         (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
26970         (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
26971         Add and handle function parameter oacc_kernels_p.
26972         (find_reduc_addr, get_omp_data_i_param): New function.
26973         (ref_conflicts_with_region, oacc_entry_exit_ok_1)
26974         (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
26975         (parallelize_loops): Add and handle function parameter oacc_kernels_p.
26976         Calculate dominance info.  Skip loops that are not in a kernels region
26977         in oacc_kernels_p mode.  Skip inner loops of parallelized loops.
26978         (pass_parallelize_loops::execute): Call parallelize_loops with
26979         oacc_kernels_p argument.
26980         (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
26981         New member function.
26982         (pass_parallelize_loops::bool oacc_kernels_p): New member var.
26983         * passes.def: Add argument to pass_parallelize_loops instantation.
26985 2016-01-18  Tom de Vries  <tom@codesourcery.com>
26987         * tree-parloops.c (pass_parallelize_loops::execute): Allow
26988         pass_parallelize_loops to be run outside the loop pipeline.
26990 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
26992         * tree-scalar-evolution.c (follow_copies_to_constant): New.
26993         (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
26995 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
26997         PR target/63679
26998         * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
26999         using get_ref_base_and_extent.
27000         (equal_mem_array_ref_p): New.
27001         (hashable_expr_equal_p): Add call to previous.
27003 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
27005         PR target/63679
27006         * tree-sra.c (disqualified_constants, constant_decl_p): New.
27007         (sra_initialize): Allocate disqualified_constants.
27008         (sra_deinitialize): Free disqualified_constants.
27009         (disqualify_candidate): Update disqualified_constants when appropriate.
27010         (create_access): Scan for constant-pool entries as we go along.
27011         (scalarizable_type_p): Add check against type_contains_placeholder_p.
27012         (maybe_add_sra_candidate): Allow constant-pool entries.
27013         (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
27014         (initialize_constant_pool_replacements): New.
27015         (sra_modify_assign): Avoid mangling assignments created by previous,
27016         and don't generate writes into constant pool.
27017         (sra_modify_function_body): Call initialize_constant_pool_replacements.
27019 2016-01-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
27021         * config/i386/i386.c (scalar_to_vector_candidate_p): Support
27022         andnot instruction.
27023         (scalar_chain::convert_op): Likewise.
27024         * config/i386/i386.md (*andndi3_doubleword): New.
27026 2016-01-18  Richard Biener  <rguenther@suse.de>
27028         PR tree-optimization/69170
27029         * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
27030         building a vector from scalar results of a pattern stmt.
27032 2016-01-18  Jakub Jelinek  <jakub@redhat.com>
27034         * haifa-sched.c (autopref_multipass_init): Work around
27035         -Wmaybe-uninitialized warning.
27037 2016-01-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
27039         * config/arm/arm.c (thumb1_reorg): Check that the comparison is
27040         against the constant 0.
27042 2016-01-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27044         PR tree-optimization/68799
27045         * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
27046         look up phi candidates in the statement-candidate map.
27047         (phi_add_costs): Likewise.
27048         (record_phi_increments): Likewise.
27049         (phi_incr_cost): Likewise.
27050         (ncd_with_phi): Likewise.
27051         (all_phi_incrs_profitable): Likewise.
27053 2016-01-17  Jakub Jelinek  <jakub@redhat.com>
27055         * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
27056         -Wmaybe-uninitialized warning.
27058 2016-01-16  Sandra Loosemore  <sandra@codesourcery.com>
27060         * doc/invoke.texi (Invoking GCC): Add new section to menu.
27061         (Option Summary): Update to reflect new section and moved options.
27062         (C++ Dialect Options): Move -fvtable-verify and related options.
27063         (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
27064         and profiling-related options.
27065         (Optimization Options): Move profile generation options and
27066         -fstack-protector and related options.
27067         (Instrumentation Options): New section incorporating moved options.
27068         (Code Generation Options): Move -finstrument-functions and
27069         related options, -fstack-check, -fstack-limit*, and -fbounds-check.
27071 2016-01-16  Tom de Vries  <tom@codesourcery.com>
27073         * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
27075 2016-01-16  Tom de Vries  <tom@codesourcery.com>
27077         * omp-low.c (expand_omp_atomic_fetch_op):  Release defs of update stmt.
27079 2016-01-16  Richard Sandiford  <richard.sandiford@arm.com>
27081         * hash-table.h (hash_table::empty): Turn into an inline wrapper
27082         that checks whether the table is already empty.  Rename the
27083         original implementation to...
27084         (hash_table::empty_slot): ...this new private function.
27086 2016-01-15  David Malcolm  <dmalcolm@redhat.com>
27088         PR diagnostic/68899
27089         * diagnostic-show-locus.c (layout::print_source_line): Move x
27090         offset of line until after call to
27091         get_line_width_without_trailing_whitespace.
27093 2016-01-15  Jeff Law  <law@redhat.com>
27095         PR tree-optimization/69270
27096         * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
27097         tree-ssa-dom.c.  Improve test for [0..1] ranve from VRP.
27098         * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
27099         * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
27100         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
27101         ssa_name_has_boolean_range and constant_boolean_node.
27103 2016-01-15  Vladimir Makarov  <vmakarov@redhat.com>
27105         PR rtl-optimization/69030
27106         * lra-spills.c (remove_pseudos): Check nrefs and make the function
27107         returning bool.
27108         (spill_pseudos): Delete debug insn for dead pseudo.
27109         (lra_spill): Initiate spill_hard_reg and slots memory separately.
27111 2016-01-15  Jiong Wang  <jiong.wang@arm.com>
27113         * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
27114         New.
27115         (TYPES_UNOPUS): Likewise.
27116         * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
27117         builtin type, from UNOP to UNOPUS.
27118         (lbtruncuv4sf): Likewise.
27119         (lbtruncuv2df): Likewise.
27120         (lrounduv2sf): Likewise.
27121         (lrounduv4sf): Likewise.
27122         (lrounduv2df): Likewise.
27123         (lroundusf): Likewise.
27124         (lroundusf): Likewise.
27125         (lceiluv2sf): Likewise.
27126         (lceiluv4sf): Likewise.
27127         (lceiluv2df): Likewise.
27128         (lceilusf): Likewise.
27129         (lceiludf): Likewise.
27130         (lflooruv2sf): Likewise.
27131         (lflooruv4sf): Likewise.
27132         (lflooruv2df): Likewise.
27133         (lfloorusf): Likewise.
27134         (lfloorudf): Likewise.
27135         (lfrintnuv2sf): Likewise.
27136         (lfrintnuv4sf): Likewise.
27137         (lfrintnuv2df): Likewise.
27138         (lfrintnusf): Likewise.
27139         (lfrintnudf): Likewise.
27140         * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
27141         conversion.
27142         (vcvtq_u32_f32): Likewise.
27143         (vcvtq_u64_f64): Likewise.
27144         (vcvta_u32_f32): Likewise.
27145         (vcvtaq_u32_f32): Likewise.
27146         (vcvtaq_u64_f64): Likewise.
27147         (vcvtm_u32_f32): Likewise.
27148         (vcvtmq_u32_f32): Likewise.
27149         (vcvtmq_u64_f64): Likewise.
27150         (vcvtn_u32_f32): Likwise.
27151         (vcvtnq_u32_f32): Likewise.
27152         (vcvtnq_u64_f64): Likewise.
27153         (vcvtp_u32_f32): Likewise.
27154         (vcvtpq_u32_f32): Likewise.
27155         (vcvtpq_u64_f64): Likewise.
27156         (vcvtmd_u64_f64): Likewise.
27157         (vcvtms_u32_f32): Likewise.
27158         (vcvtad_u64_f64): Likewise.
27159         (vcvtas_u32_f32): Likewise.
27160         (vcvtnd_u64_f64): Likewise.
27161         (vcvtns_u32_f32): Likewise.
27162         (vcvtpd_u64_f64): Likewise.
27163         (vcvtps_u32_f32): Likewise.
27165 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27167         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
27168         CSEL of zero_extended registers.
27170 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27172         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
27173         Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
27175 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27177         * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
27178         false when argument string is not found in the attributes table
27179         at all.
27181 2016-01-15  David Edelsohn  <dje.gcc@gmail.com>
27183         PR target/68609
27184         * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
27185         (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
27186         * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
27187         precision estimate.
27189 2016-01-15  Richard Biener  <rguenther@suse.de>
27191         PR tree-optimization/66856
27192         * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
27193         * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
27194         (vect_create_new_slp_node): Increment stmt reference count.
27195         (vect_get_and_check_slp_defs): Make sure stmts are nor already in
27196         an SLP tree before swapping operands.
27197         (vect_build_slp_tree): Likewise.
27198         (destroy_bb_vec_info): Free stmt info after SLP instances.
27199         * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
27200         * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
27201         (STMT_VINFO_NUM_SLP_USES): New macro.
27203 2016-01-15  Richard Biener  <rguenther@suse.de>
27205         PR debug/69137
27206         * dwarf2out.c (add_linkage_name_raw): New function split out from ...
27207         (add_linkage_name): ... here.
27208         (gen_typedef_die): Use add_linkage_name_raw instead of
27209         add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
27210         if necessary.
27212 2016-01-15  Cesar Philippidis  <cesar@codesourcery.com>
27214         * gimplify.c (oacc_default_clause): Decode reference and pointer
27215         types for both kernels and parallel regions.
27217 2016-01-15  Richard Sandiford  <richard.sandiford@arm.com>
27219         PR middle-end/69246
27220         * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
27222 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
27224         * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
27225         (convert_scalars_to_vector): Likewise.
27227 2016-01-15  Jonathan Wakely  <jwakely@redhat.com>
27229         * doc/extend.texi (Type Traits): Fix grammar.
27231 2016-01-15  Martin Jambor  <mjambor@suse.cz>
27233         * tree-inline.c (remap_decl): Use existing dclarations if
27234         remapping a type and prevent_decl_creation_for_types.
27235         (replace_locals_stmt): Do an initial remapping of non-VLA typed
27236         decls first.  Do real remapping with
27237         prevent_decl_creation_for_types set.
27238         * tree-inline.h (copy_body_data): New field
27239         prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
27240         padding.
27242 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
27244         * config/s390/s390.opt (mmvcle): More verbose help text.
27246 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
27248         * config/s390/s390.opt: Add period to -mzvector option text.
27250 2016-01-15  Richard Biener  <rguenther@suse.de>
27252         PR tree-optimization/68961
27253         * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
27254         of invariants in stores again.
27256 2016-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
27258         * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
27260 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
27262         * config/i386/i386.c (ix86_expand_branch): Don't split
27263         DI mode xor instruction to SI mode.
27265 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
27267         PR ipa/68148
27268         * ipa-icf.c (sem_function::merge): Virtual functions may become
27269         reachable even if they address is not taken and there are no
27270         idrect calls.
27272 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
27274         * lto-streamer-out.c (subtract_estimated_size): New function.
27275         (get_symbol_initial_value): Use it.
27277 2016-01-15  Christian Bruel  <christian.bruel@st.com>
27279         PR target/65837
27280         * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
27281         (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
27282         (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
27283         use add_builtin_function_ext_scope instead of add_builtin_function.
27284         (neon_set_p, neon_crypto_set_p): Remove.
27285         (arm_init_builtins): Always call arm_init_neon_builtins and
27286         arm_init_crypto_builtins.
27287         (arm_expand_builtin): Check that builtins are allowed for the arch.
27288         * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
27289         * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
27290         arm_init_neon_builtins call.
27292 2016-01-15  Richard Biener  <rguenther@suse.de>
27294         PR tree-optimization/69117
27295         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
27296         * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
27297         of the leader conservatively.
27298         (free_scc_vn): Restore original SSA name infos.
27300 2016-01-14  Jeff Law  <law@redhat.com>
27302         PR tree-optimization/69270
27303         * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
27304         single bit of precision, verify it's also unsigned.
27305         (record_edge_info): Use constant_boolean_node rather than fold_convert
27306         to convert boolean_true/boolean_false to the right type.
27308 2016-01-14  Richard Henderson  <rth@redhat.com>
27310         PR rtl-opt/69014
27311         * loop-doloop.c (record_reg_sets): New.
27312         (doloop_optimize): Reject the transform if the sequence
27313         clobbers registers live at the end of the loop block.
27314         (doloop_optimize_loops): Enable df_live if needed.
27316 2016-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
27318         * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
27319         * config/rs6000/rs6000.c: Likewise.
27320         * config/rs6000/rs6000.h: Likewise.
27321         * config/rs6000/rs6000.md: Likewise.
27322         * doc/extend.texi: Likewsie.
27324 2016-01-14  Jeff Law  <law@redhat.com>
27326         * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
27327         typo.
27329 2016-01-14  Richard Henderson  <rth@redhat.com>
27331         PR c/69272
27332         PR tree-opt/68964
27333         * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
27334         * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
27335         instead of builtin_decl_declared_p to test for declaration.
27337 2016-01-14  Nicklas Bo Jensen  <nbjensen@gmail.com>
27339         * doc/loop.texi (Loop Analysis and Representation): Document
27340         loop_depth function.
27342 2016-01-14  Tom de Vries  <tom@codesourcery.com>
27344         PR tree-optimization/68773
27345         * omp-low.c (expand_omp_target): Don't set force_output.
27346         * varpool.c (varpool_node::get_create): Same.
27347         * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
27348         offload_funcs with force_output.
27350 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
27352         PR debug/69244
27353         * lra-eliminations.c (move_plus_up): Don't change anything if either
27354         the outer or inner subreg mode is not MODE_INT.
27355         * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
27356         integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
27358 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
27360         * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
27361         reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
27362         reduc_uplus_@var{m}): Remove.
27363         * expr.c (expand_expr_real_2): Remove expansion path for
27364         reduc_[us](min|max|plus) optabs.
27365         * optabs-tree.c (scalar_reduc_to_vector): Remove.
27366         * optabs-tree.h (scalar_reduc_to_vector): Remove.
27367         * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
27368         reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
27369         * tree-vect-loop.c (vectorizable_reduction): Remove test for
27370         reduc_[us](min|max|plus) optabs.
27372 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
27374         * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
27375         (reduc_plus_scal_v2sf): New.
27376         (reduc_smax_v2sf): Rename to...
27377         (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
27378         (reduc_smin_v2sf): Rename to...
27379         (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
27381 2016-01-14  Jan Hubicka  <hubicka@ucw.cz>
27383         * alias.c (compare_base_symbol_refs): New function.
27384         (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
27385         it.
27387 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
27389         PR middle-end/68146
27390         PR tree-optimization/69155
27391         * tree-complex.c: Include cfganal.h.
27392         (phis_to_revisit): New variable.
27393         (extract_component): Add phiarg_p argument.  Assert that returned
27394         SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
27395         (update_phi_components): Partly rewrite to use loop over real/imag
27396         components instead of code duplication.  If extract_component returns
27397         SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
27398         create_tmp_reg into the PHI node instead, and mention the phi triplet
27399         in phis_to_revisit.
27400         (tree_lower_complex): Walk bbs in rpo order.  Adjust phis recorded
27401         in phis_to_revisit at the end.
27403 2016-01-14  Richard Biener  <rguenther@suse.de>
27405         PR tree-optimization/68060
27406         * tree-vect-loop.c (vect_is_simple_reduction): Check the
27407         outer loop reduction is only used in the inner loop before
27408         detecting a double reduction.
27410 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
27412         PR target/68269
27413         * combine.c (expand_field_assignment): Punt if compute_mode is
27414         unsupported scalar mode.
27416 2016-01-14  Richard Biener  <rguenther@suse.de>
27418         PR tree-optimization/66856
27419         * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
27420         SLP node only if it built successfully.
27421         (vect_analyze_slp_instance): Adjust.
27423 2016-01-14  Jeff Law  <law@redhat.com>
27425         PR tree-optimization/69270
27426         * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
27427         (record_edge_info): Use it.  Convert boolean_{true,false}_node
27428         to the type of op0.
27430 2016-01-13  Jan Hubicka  <hubicka@ucw.cz>
27432         PR ipa/66487
27433         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
27434         use block_ultimate_origin
27435         (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
27437 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
27439         * doc/invoke.texi (Submodel Options): Rename section to
27440         "Machine-Dependent Options" to better reflect its content.
27441         Rewrite introductory text to remove archaic CPU names.
27442         Update references.
27444 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
27446         * doc/invoke.texi (Code Gen Options): Move section up in file,
27447         before target-specific options.  Update menu and option summary
27448         to reflect the new section ordering.
27450 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
27452         * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
27453         (C++ Dialect Options): Add cross-reference to -std option.
27454         * doc/standards.texi (C++ Language): Document C++14 support.
27456 2016-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
27458         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
27459         for pack/unpack functions for __ibm128.
27460         (PACK_IF): Likewise.
27461         (UNPACK_IF): Likewise.
27463         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
27464         support for __ibm128 pack/unpack functions.
27465         (rs6000_invalid_builtin): Likewise.
27466         (rs6000_init_builtins): Likewise.
27467         (rs6000_opt_masks): Likewise.
27469         * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
27470         (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
27471         functions
27472         (RS6000_BTM_COMMON): Likewise.
27474         * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
27475         (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
27476         disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
27477         128-bit floating point.  Add support for the double values to be
27478         in Altivec registers for TF/IF packing and unpacking, but restrict
27479         TD packing sub-fields to be FPR registers.  Don't allow overlapped
27480         register support for packing.  Allow pack inputs to be memory
27481         locations.  Don't build generator functions for unpack<mode>_dm
27482         and unpack<mode>_nodm.
27483         (unpack<mode>_dm): Likewise.
27484         (unpack<mode>_nodm): Likewise.
27485         (pack<mode>): Likewise.
27487         * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
27488         built-in functions to pack/unpack explicit __ibm128 values.
27489         (__builtin_unpack_ibm128): Likewise.
27491         * doc/extend.texi (PowerPC Built-in Functions): Document
27492         __builtin_pack_ibm128 and __builtin_unpack_ibm128.
27494 2016-01-13  Bernd Schmidt  <bschmidt@redhat.com>
27496         PR c/66208
27497         * c-common.c (check_function_nonnull): Remove unnecessary declaration.
27498         Add new arg loc and pass it down as context.
27499         (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
27500         to the location to use for the warning.
27501         (check_function_arguments): New arg loc.  All callers changed.  Pass
27502         it to check_function_nonnull.
27503         * c-common.h (check_function_arguments): Adjust declaration.
27505 2016-01-13  Jakub Jelinek  <jakub@redhat.com>
27507         PR tree-optimization/69156
27508         * gimple.c (validate_type): Removed.
27509         (gimple_builtin_call_types_compatible_p): Use
27510         useless_type_conversion_p instead of validate_type.
27511         * value-prof.c (gimple_stringop_fixed_value): Fold
27512         icall_size to correct type.
27514 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
27516         * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
27517         effects.
27519 2016-01-13  Richard Henderson  <rth@redhat.com>
27521         PR tree-opt/68964
27522         * target.def (builtin_tm_load, builtin_tm_store): Remove.
27523         * config/i386/i386.c (ix86_builtin_tm_load): Remove.
27524         (ix86_builtin_tm_store): Remove.
27525         (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
27526         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
27527         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
27528         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
27529         * doc/tm.texi: Rebuild.
27531         * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
27532         (BUILT_IN_TM_MEMCPY_RTWN): New.
27533         * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
27534         fallback from vector to integer helpers.
27535         (build_tm_load): Handle vector types directly, instead of
27536         via target hook.
27537         (build_tm_store): Likewise.
27538         (expand_assign_tm): Prepare for register types not handled by
27539         the above.  Copy them to memory and use memcpy.
27540         * tree.c (tm_define_builtin): New.
27541         (find_tm_vector_type): New.
27542         (build_tm_vector_builtins): New.
27543         (build_common_builtin_nodes): Call it.
27545 2016-01-13  Uros Bizjak  <ubizjak@gmail.com>
27547         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
27548         TARGET_SSE_MATH without TARGET_SSE2.  Rewrite.
27550 2016-01-13  Tom de Vries  <tom@codesourcery.com>
27552         PR tree-optimization/69169
27553         * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
27554         handled_struct_type param.
27555         (create_variable_info_for, intra_create_variable_infos): Call
27556         create_variable_info_for_1 with extra arg.
27558 2016-01-13  Yvan Roux  <yvan.roux@linaro.org>
27560         * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
27561         and "armv8.1-a+crc" entries.
27563 2016-01-13  Alexander Fomin  <alexander.fomin@intel.com>
27565         PR target/69228
27566         * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
27567         Change first operand predicate from register_or_constm1_operand
27568         to register_operand.
27569         (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
27570         (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
27571         (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
27572         (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
27573         (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
27574         (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
27575         (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
27576         * config/i386/i386.c (ix86_expand_builtin): Remove first operand
27577         comparison with constm1_rtx from vec_prefetch_gen part.
27579 2016-01-13  Richard Biener  <rguenther@suse.de>
27581         PR tree-optimization/69013
27582         * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
27583         Exchange assert for a test.
27585 2016-01-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
27587         PR target/69247
27588         * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
27590 2016-01-13  Richard Biener  <rguenther@suse.de>
27592         PR tree-optimization/69242
27593         * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
27594         assert with a check.
27596 2016-01-13  Richard Biener  <rguenther@suse.de>
27598         PR tree-optimization/69186
27599         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
27600         Properly guard vect_update_misalignment_for_peel call.
27602 2016-01-12  Jeff Law  <law@redhat.com>
27604         PR tree-optimization/pr67755
27605         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
27606         "need_profile_correction".
27607         (thread_block_1): Initialize new field to false by default.  If we
27608         have multiple thread paths through a common joiner to different
27609         final targets, then set new field to true.
27610         (compute_path_counts): Only do count adjustment when it's really
27611         needed.
27613 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
27615         * doc/invoke.texi (Spec Files): Move section down in file, past
27616         all command-line option descriptions.
27618 2016-01-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
27620         PR middle-end/54809
27621         * doc/gty.texi: Remove documentation of mark_hook.
27622         * gengtype.c (struct write_types_data): Remove code to support
27623         mark_hook attribute.
27624         (walk_type): Likewise.
27625         (write_func_for_structure): Likewise.
27627 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
27629         * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
27630         Directory Options, and -specs= to Overall Options.
27631         (Overall Options): Adjust similarly.  Reorder to group related
27632         options together.  Make -specs= cross-reference the spec file details.
27633         (Directory Options): Adjust similarly.
27635 2016-01-12  Jeff Law  <law@redhat.com>
27637         * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
27639 2016-01-12  Olivier Hainque  <hainque@adacore.com>
27641         * gcc.c (spec_undefvar_allowed): New global.
27642         (process_command): Set to true when running for --version or --help,
27643         alone or together.
27644         (getenv_spec_function): When the variable is not defined, use the
27645         variable name as the variable value if we're allowed not to issue
27646         a fatal error.
27648 2016-01-12  Bin Cheng  <bin.cheng@arm.com>
27650         PR tree-optimization/68911
27651         * tree-vrp.c (adjust_range_with_scev): Check overflow in range
27652         information computed for expression "init + nit * step".
27654 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
27656         * doc/invoke.texi (Invoking GCC): Copy-edit.  Incorporate information
27657         about name of GCC executable.  Remove deleted node from menu.
27658         (Directory Options) <-B>: Remove cross-reference to deleted node.
27659         (Target Options): Delete section.
27661 2016-01-12  Christian Bruel  <christian.bruel@st.com>
27663         PR target/69180
27664         * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
27665         for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
27667 2016-01-12  Jakub Jelinek  <jakub@redhat.com>
27669         PR target/69198
27670         * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
27671         aligned_mem is properly set for AVX512-VL floating point masked
27672         stores.
27674         PR target/69175
27675         * ifcvt.c (cond_exec_process_if_block): When removing the last
27676         insn from then_bb, remove also any possible barriers that follow it.
27678 2016-01-12  H.J. Lu  <hongjiu.lu@intel.com>
27680         PR target/68456
27681         PR target/69226
27682         * config/i386/iamcu.h (SIZE_TYPE): New macro.
27683         (PTRDIFF_TYPE): Likewise.
27684         (WCHAR_TYPE): Likewise.
27685         (WCHAR_TYPE_SIZE): Likewise.
27686         (STDINT_LONG32): Likewise.
27688 2016-01-12  Richard Biener  <rguenther@suse.de>
27690         PR tree-optimization/69053
27691         * tree-vect-loop.c (get_initial_def_for_reduction): Properly
27692         convert initial value for cond reductions.
27694 2016-01-12  Richard Biener  <rguenther@suse.de>
27696         PR tree-optimization/69007
27697         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
27698         widen_sum after dot_prod and sad.
27700 2016-01-12  Richard Biener  <rguenther@suse.de>
27702         PR tree-optimization/69168
27703         * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
27704         pattern stmt SLP type.
27705         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
27706         end up unused so cope with that case.
27708 2016-01-12  Richard Biener  <rguenther@suse.de>
27710         PR tree-optimization/69157
27711         * tree-vect-stmts.c (vectorizable_mask_load_store): Check
27712         stmts def type only during analyze phase.
27713         (vectorizable_call): Likewise.
27714         (vectorizable_simd_clone_call): Likewise.
27715         (vectorizable_conversion): Likewise.
27716         (vectorizable_assignment): Likewise.
27717         (vectorizable_shift): Likewise.
27718         (vectorizable_operation): Likewise.
27719         (vectorizable_store): Likewise.
27720         (vectorizable_load): Likewise.
27722 2016-01-12  Richard Biener  <rguenther@suse.de>
27724         PR tree-optimization/69174
27725         * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
27726         space.
27727         (vectorizable_load): Properly compute the number of loads needed
27728         for permuted strided SLP loads and do not spuriously assign
27729         to SLP_TREE_VEC_STMTS.
27731 2016-01-12  Andris Pavenis  <andris.pavenis@iki.fi>
27733         * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
27734         (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
27735         (MD_EXEC_PREFIX): Remove.
27736         (MD_STARTFILE_PREFIX) Removee.
27737         (FILE_NAME_ABSOLUTE_P): Remove.
27738         (CPP_SPEC): Do not read macros from sys/version.h.
27739         (LINK_COMMAND_SPEC): Remove.
27740         (LOCAL_INCLUDE_DIR): Remove.
27741         (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
27742         (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
27743         (POST_LINK_SPEC): Define to invoke stubify after linker
27744         (LIBSTDCXX): Remove define
27745         (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
27746         (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
27747         (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
27748         (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
27749         (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
27750         (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
27751         (i386_djgpp_asm_named_section): Add propotype of new procedure
27753         * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
27754         (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
27755         (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
27756         in config/i386/djgpp.h).
27757         (STANDARD_STARTFILE_PREFIX_2): Define identical to
27758         STANDARD_STARTFILE_PREFIX_1.
27759         (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
27760         (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
27761         installation errors.
27762         (MAX_OFILE_ALIGNMENT): Define to 128.
27763         (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
27765         * config/i386/djgpp.c: New file. Add implementation of
27766         i386_djgpp_asm_named_section.
27768         * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
27770         * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
27771         Add rule for building djgpp.o.
27773 2016-01-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27775         * config/rs6000/rs6000.c (v2df_reduction_p): New function.
27776         (rtx_is_swappable_p): Reductions are swappable.
27777         (insn_is_swappable_p): V2DF reductions are swappable.
27779 2016-01-11  John David Anglin  <danglin@gcc.gnu.org>
27781         * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
27782         reloads for other unsupported memory operands.
27784 2016-01-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
27785             Jim Wilson  <jim.wilson@linaro.org>
27787         PR target/69194
27788         * config/arm/arm-builtins.c (arm_expand_neon_args): Call
27789         copy_to_mode_reg instead of force_reg.
27791 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
27793         PR target/69225
27794         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
27795         TARGET_80387 is true.
27797 2016-01-11  Jakub Jelinek  <jakub@redhat.com>
27799         PR target/69071
27800         * lra-eliminations.c (move_plus_up): Only move plus up
27801         if subreg of the constant can be simplified into constant
27802         and use the simplified subreg of the constant instead of
27803         the original constant.
27805         * fold-const.c (fold_convertible_p): Don't return true
27806         for conversion of VECTOR_TYPE to same sized integral type.
27807         (fold_convert_loc): Fix up formatting.  Fold conversion of
27808         VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
27809         instead of NOP_EXPR.
27811         PR tree-optimization/69214
27812         * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
27813         innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
27814         Formatting fix.
27816         PR tree-optimization/69207
27817         * tree-vect-slp.c (vect_get_constant_vectors): For
27818         VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
27819         fold_convertible_p to vector_type's element type, and always
27820         use VCE for non-VECTOR_BOOLEAN_TYPE_P.
27822 2016-01-11  Richard Biener  <rguenther@suse.de>
27824         PR tree-optimization/69173
27825         * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
27826         fixup the cycle if all stmts are in a pattern.
27828 2016-01-11  Uros Bizjak  <ubizjak@gmail.com>
27830         PR middle-end/68999
27831         * alias.c (base_alias_check): Move check for addresses with
27832         alignment ANDs before the call for compare_base_decls.
27833         (memrefs_conflict_p): Return -1 for different decls
27834         that went through alignment adjustments.
27836 2016-01-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27838         PR rtl-optimization/68796
27839         * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
27840         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
27841         and QImode comparisons against zero with CC_NZmode.
27842         * config/aarch64/iterators.md (short_mask): New mode_attr.
27844 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
27846         * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
27847         (<avx512>_store<mode>_mask): Likewise.
27849 2016-01-11  Bernd Schmidt  <bschmidt@redhat.com>
27850             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27852         PR rtl-optimization/68841
27853         * ifcvt.c (struct noce_if_info): Add orig_x field.
27854         (bbs_ok_for_cmove_arith): Add to_rename parameter.
27855         Don't record conflicts on to_rename if it's present.
27856         Allow memory destinations in sets.
27857         (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
27858         blocks, passing orig_x to the checks.
27859         (noce_process_if_block): Set if_info->orig_x appropriately.
27861 2016-01-11  Tom de Vries  <tom@codesourcery.com>
27863         PR tree-optimization/69069
27864         * tree-parloops.c (create_parallel_loop): Add missing phi args.
27866 2016-01-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
27868         PR rtl-optimization/68920
27869         * config/i386/i386.c (ix86_option_override_internal): Restrict number
27870         of conditional moves for  RTL if-conversion to 1 for
27871         TARGET_ONE_IF_CONV_INSN.
27872         * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
27873         * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
27874         * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
27875         parameter to restirct number of conditional moves for
27876         RTL if-conversion.
27877         * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
27878         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
27879         conditionl moves.
27881 2016-01-11  Alexandre Oliva  <aoliva@redhat.com>
27883         PR bootstrap/69123
27884         * var-tracking.c (drop_overlapping_mem_locs): Operate on all
27885         onepart vars.  Fix typo in comment.  Fix reversed condition in
27886         unshare test.
27887         (dataflow_set_remove_mem_locs): Operate on all onepart vars.
27889         PR bootstrap/69123
27890         * var-tracking.c (dump_onepart_variable_differences): New.
27891         (dataflow_set_different): If a detailed dump is requested,
27892         delay early returns and dump differences between onepart
27893         variables present before and after, and added variables.
27895 2016-01-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
27897         PR target/69010
27898         * expr.c (expand_expr_real_1): For boolean vector constants
27899         with a scalar mode use const_scalar_mask_from_tree.
27900         (const_scalar_mask_from_tree): New.
27901         * optabs.c (expand_vec_cond_mask_expr): Use mask mode
27902         assigned to a mask type to handle constants.
27904 2016-01-11  Martin Jambor  <mjambor@suse.cz>
27906         PR ipa/69044
27907         * ipa-cp.c (estimate_local_effects): Do not clone for removal of
27908         useless parameters if we cannot change function signature.
27910 2016-01-11  Martin Jambor  <mjambor@suse.cz>
27912         PR ipa/66616
27913         * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
27914         flag.
27916 2016-01-11  Tom de Vries  <tom@codesourcery.com>
27918         PR tree-optimization/69109
27919         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
27920         latch with phi.
27922 2016-01-11  Tom de Vries  <tom@codesourcery.com>
27924         PR tree-optimization/69108
27925         * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
27926         res is not used in a phi.
27928 2016-01-11  Yury Gribov  <y.gribov@samsung.com>
27930         PR 67425
27931         * common.opt (frandom-seed): Fix parameter name.
27932         * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
27934 2016-01-11  Tom de Vries  <tom@codesourcery.com>
27936         PR tree-optimization/69058
27937         * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
27938         not supported.
27940 2016-01-11  Andrew Burgess  <andrew.burgess@embecosm.com>
27942         * config/arc/arc.opt (mdiv-rem): Add period to the end.
27943         (mcode-density): Likewise.
27945 2016-01-10  Tom de Vries  <tom@codesourcery.com>
27947         PR tree-optimization/69062
27948         * tree-parloops.c (loop_has_phi_with_address_arg): New function.
27949         (parallelize_loops): Don't paralelize loop that has phi with address
27950         arg.
27952 2016-01-10  Tom de Vries  <tom@codesourcery.com>
27954         PR tree-optimization/69039
27955         * tree-parloops.c (try_create_reduction_list): Only allow single exit
27956         phi for reduction.
27958 2016-01-09  John David Anglin  <danglin@gcc.gnu.org>
27960         PR middle-end/68743
27961         * match.pd: Require target has function_c99_misc before doing
27962         truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
27964 2016-01-09  Gerald Pfeifer  <gerald@pfeifer.com>
27966         * configure.ac (isl_options_set_schedule_serialize_sccs): Also
27967         use GMPINC.
27968         * configure: Regenerate.
27970 2016-01-09  Jakub Jelinek  <jakub@redhat.com>
27972         PR middle-end/50865
27973         PR tree-optimization/69097
27974         * fold-const.h (expr_not_equal_to): New prototype.
27975         * fold-const.c: Include stringpool.h and tree-ssanames.h.
27976         (expr_not_equal_to): New function.
27977         * match.pd (X % -Y is the same as X % Y): Don't optimize
27978         unless X is known not to be equal to minimum or Y is known
27979         not to be equal to -1.
27980         * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
27981         fold TRUNC_MOD_EXPR if the second argument is not a power of two.
27982         (simplify_stmt_using_ranges): Adjust caller.
27983         (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
27984         substitute_and_fold.
27986 2016-01-09  Jan Hubicka  <hubicka@ucw.cz>
27988         * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
27989         w/o DECL_NAME.
27991 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
27993         PR tree-optimization/69167
27994         * gimple-fold.c (replace_stmt_with_simplification): Also punt if
27995         new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
27996         ops[0] comparison.
27997         * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
27999 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
28000             Richard Biener  <rguenther@suse.de>
28002         PR tree-optimization/68707
28003         * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
28004         instances that can be handled via vect_load_lanes.
28006 2016-01-08  Uros Bizjak  <ubizjak@gmail.com>
28008         * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
28009         if we can't determine address equivalence.
28010         * alias.c (compare_base_decl): Update for changed return value of
28011         symtab_node::equal_address_to.
28013 2016-01-08  Jason Merrill  <jason@redhat.com>
28015         PR c++/68983
28016         PR c++/67557
28017         * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
28018         * expr.c (store_field): Not here.
28019         * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
28020         call with TREE_ADDRESSABLE type.
28021         * tree-cfg.c (verify_gimple_call): Adjust.
28023 2016-01-08  Olivier Hainque  <hainque@adacore.com>
28025         * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
28026         libc_internal.
28028 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
28030         * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
28031         (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
28032         (reduc_smin_v2sf): Rename to...
28033         (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
28034         (reduc_splus_v2sf): Rename to...
28035         (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
28037 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
28039         PR tree-optimization/69162
28040         * gimplify.c (gimplify_va_arg_expr): Encode original type of
28041         valist argument in another argument.
28042         (gimplify_modify_expr): Adjust for the above change.  Cleanup.
28043         * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
28044         to determine the va_list type, build a MEM_REF instead of
28045         build_fold_indirect_ref.
28047         PR tree-optimization/69172
28048         * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
28049         gimple_build.
28051 2016-01-08  Thomas Preud'homme  <thomas.preudhomme@arm.com>
28053         PR tree-optimization/67781
28054         * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
28055         and cmpnop in two steps: first the ones not accessed in original
28056         gimple expression in a endian independent way and then the ones not
28057         accessed in the final result in an endian-specific way.
28059 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
28061         PR tree-optimization/69083
28062         * tree-vect-slp.c (vect_get_constant_vectors): For
28063         VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
28064         element type.  If op is fold_convertible_p to vector_type's element
28065         type, use NOP_EXPR instead of VCE.
28067 2016-01-08  Segher Boessenkool  <segher@kernel.crashing.org>
28069         PR rtl-optimization/67778
28070         PR rtl-optimization/68634
28071         PR rtl-optimization/68909
28072         * shrink-wrap.c (try_shrink_wrapping): Add comment.  Don't pop
28073         block from the stack until done with it.  Remove a superfluous
28074         bitmap set.  Remove a superfluous bitmap test.
28076 2016-01-07  Martin Sebor  <msebor@redhat.com>
28078         PR c/68966
28079         * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
28080         constraint on the type of arguments.
28082 2016-01-07  Andreas Tobler  <andreast@gcc.gnu.org>
28084         * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
28085         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
28086         unaligned_access on the gcc_options set.
28087         * config/arm/arm.c (arm_option_override_internal): Use
28088         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
28090 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
28092         PR target/69140
28093         * config/i386/i386.c (ix86_frame_pointer_required): Enable
28094         frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
28096 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
28098         Revert
28099         2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
28101         PR target/69140
28102         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
28103         depending on frame_pointer_needed before remaining integer and SSE
28104         registers are saved.
28106 2016-01-07  Sandra Loosemore  <sandra@codesourcery.com>
28108         PR 1078
28109         * doc/extend.texi (Nvidia PDX Function Attributes): New section.
28111 2016-01-07  H.J. Lu  <hongjiu.lu@intel.com>
28113         PR target/69171
28114         * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
28115         Use the "xBm" constraint.
28116         (float<sseintvecmodelower><mode>2<mask_name><round_name):
28117         Likewise.
28118         (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
28119         (sse_cvtsi2ssq<round_name>): Likewise.
28120         (sse_cvtss2si<round_name>): Likewise.
28121         (sse_cvtss2siq<round_name>): Likewise.
28122         (sse2_cvtsi2sdq<round_name>): Likewise.
28123         (sse2_cvtsd2si<round_name>): Likewise.
28124         (sse2_cvtsd2siq<round_name>): Likewise.
28125         * config/i386/subst.md (round_nimm_scalar_predicate): New
28126         predicate.
28128 2015-12-15  Bernd Schmidt  <bschmidt@redhat.com>
28130         PR middle-end/67639
28131         * varasm.c (make_decl_rtl): Mark invalid register vars as
28132         DECL_EXTERNAL.
28134         PR rtl-optimization/66206
28135         * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
28136         All callers changed.
28138 2016-01-07  Jakub Jelinek  <jakub@redhat.com>
28140         PR tree-optimization/69141
28141         * tree-ssa-pre.c: Include langhooks.h.
28142         (eliminate_dom_walker::before_dom_children): Use
28143         lang_hooks.decl_printable_name instead of
28144         cgraph_node::get ()->name ().
28146         PR middle-end/68960
28147         * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
28148         it and DECL_ALIGN too.
28150 2016-01-06  Robert Suchanek  <robert.suchanek@imgtec.com>
28152         * config/mips/mips-ftypes.def: Sort to lexicographical order.
28154 2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
28156         PR target/69140
28157         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
28158         depending on frame_pointer_needed before remaining integer and SSE
28159         registers are saved.
28161 2015-01-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28163         * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
28164         mode iterator with VSX_M2.
28165         (*p9_vecstore_<mode>): Likewise.
28166         (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
28167         (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
28168         (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
28169         (define_split for VSX_LE128 stores): Likewise.
28170         (define_peephole2 for TImode LE swaps): Likewise.
28171         (define_split for VSX_LE128 post-reload stores): Likewise.
28173 2016-01-06  Marek Polacek  <polacek@redhat.com>
28175         PR sanitizer/69099
28176         * convert.c (convert_to_integer_1): Adjust call to
28177         ubsan_instrument_float_cast.  Use NULL_TREE instead of NULL.
28178         * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter.  Use
28179         EXPR instead of ARG.
28180         * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
28182 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
28184         PR 1078
28185         * doc/extend.texi (RL78 Variable Attributes): New section.
28187 2016-01-05  Marek Polacek  <polacek@redhat.com>
28189         PR c/69104
28190         * builtins.c (get_memmodel): Use expansion point location rather than
28191         the input location.  Call warning_at rather than warning.
28192         (expand_builtin_atomic_compare_exchange): Likewise.
28193         (expand_builtin_atomic_load): Likewise.
28194         (expand_builtin_atomic_store): Likewise.
28195         (expand_builtin_atomic_clear): Likewise.
28197 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
28199         PR target/68991
28200         * config/i386/i386.c (ix86_expand_vector_logical_operator):
28201         Replace nonimmediate_operand with vector_operand.
28202         * config/i386/predicates.md (vector_operand): New predicate.
28203         (general_vector_operand): Replace nonimmediate_operand with
28204         vector_operand.
28205         * config/i386/sse.md: Replace nonimmediate_operand with
28206         vector_operand and m constraint with Bm constraint on SSE
28207         patterns with 16-byte memory operand.
28208         * config/i386/subst.md (round_nimm_predicate): Replace
28209         nonimmediate_operand with vector_operand.
28210         (round_saeonly_nimm_predicate): Likewise.
28211         (round_saeonly_nimm_scalar_predicate): New.
28213 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
28215         PR target/68991
28216         * config/i386/constraints.md (Bm): New constraint.
28217         * config/i386/predicates.md (vector_memory_operand): New
28218         predicate.
28219         * config/i386/sse.md: Replace xm with xBm in plusminus and
28220         any_logic patterns.
28222 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
28224         PR 1078
28225         * doc/extend.texi (V850 Function Attributes): New section.
28226         (V850 Variable Attributes): New section.
28228 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
28230         PR 1078
28231         * doc/extend.texi (MicroBlaze Function Attributes): Document
28232         interrupt_handler and fast_interrupt attributes.
28234 2016-01-05  Sergei Trofimovich  <siarheit@google.com>
28236         PR other/60465
28237         * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
28238         for local symbolic operands.
28239         * config/ia64/predicates.md (local_symbolic_operand64): New
28240         predicate.
28242 2016-01-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28244         PR rtl-optimization/68651
28245         * combine.c (combine_simplify_rtx): Canonicalize x + x into
28246         x << 1.
28248 2016-01-05  Nathan Sidwell  <nathan@acm.org>
28250         * alias.c (compare_base_decls): Use symtab_node::get.
28252 2016-01-05  Nick Clifton  <nickc@redhat.com>
28254         PR target/68770
28255         * ira-costs.c (copy_cost): Initialise the t_icode field of the
28256         secondary_reload_info structure.
28258         PR target/66655
28259         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
28260         decls if weak support is available.
28262 2016-01-04  Martin Sebor  <msebor@redhat.com>
28264         * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
28266 2016-01-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
28268         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
28269         OPTION_MASK_P9_DFORM.
28271         * config/rs6000/constraints.md (wo constraint): New constraint for
28272         ISA 3.0 (power9).
28274         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
28275         for wo constraint.
28276         (rs6000_init_hard_regno_mode_ok): Likewise.
28278         * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
28279         wo constraint.
28281         * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
28282         expanders not to have constraints.  Add support for ISA 3.0 xxperm
28283         instruction.  Add support for fusing xxlor with xxperm.
28284         (altivec_vperm_<mode>_internal): Likewise.
28285         (altivec_vperm_v8hiv16qi): Likewise.
28286         (altivec_vperm_<mode>v16q): Likewise.
28287         (altivec_vperm_<mode>_uns): Likewise.
28288         (vperm_v8hiv4si): Likewise.
28289         (vperm_v16qiv8hi): Likewise.
28291         * doc/md.texi (RS/6000 constraints): Document wo constraint.
28293 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
28295         Update copyright years.
28297         * gcc.c (process_command): Update copyright notice dates.
28298         * gcov-dump.c (print_version): Ditto.
28299         * gcov.c (print_version): Ditto.
28300         * gcov-tool.c (print_version): Ditto.
28301         * gengtype.c (create_file): Ditto.
28302         * doc/cpp.texi: Bump @copying's copyright year.
28303         * doc/cppinternals.texi: Ditto.
28304         * doc/gcc.texi: Ditto.
28305         * doc/gccint.texi: Ditto.
28306         * doc/gcov.texi: Ditto.
28307         * doc/install.texi: Ditto.
28308         * doc/invoke.texi: Ditto.
28310 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
28312         * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
28313         modes larger than TImode as TImode if NEON is not enabled.
28315 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
28317         PR target/69100
28318         * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
28319         mode for %f0-%f31 only if TARGET_FPU.
28321 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
28323         PR target/69072
28324         * config/sparc/sparc.c (scan_record_type): Take into account subfields
28325         to compute the PACKED_P predicate.
28326         (function_arg_record_value): Minor tweaks.
28328 2016-01-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
28330         * doc/install.texi (--with-multilib-list): Describe the meaning of the
28331         option for arm*-*-* targets.
28333 2016-01-03  Sandra Loosemore  <sandra@codesourcery.com>
28335         * doc/extend.texi (Common Function Attributes): Move docs for
28336         MSP430-specific attributes to....
28337         (MSP430 Function Attributes): ...here.  Delete the redundant
28338         entries and copy-edit the remaining text.
28339         (MSP430 Variable Attributes): Use uniform format for index
28340         entries and add a cross-reference to the corresponding function
28341         attribute docs.
28343 2016-01-03  Vladimír Čunát  <vcunat@gmail.com>
28345         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
28346         -finite-math typo.
28347         (x86 Options): Likewise.
28349 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
28351         PR 1078
28353         * extend.texi (Common Function Attributes) <no_stack_limit>: New.
28354         * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
28355         to corresponding attribute.
28357 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
28359         * doc/extend.texi (Common Function Attributes) <noplt>: Move
28360         to correct alphabetization of table.  Copy-edit and correct
28361         markup.
28362         <stack_protect>: Likewise.
28363         <target_clones>: Likewise.
28364         <simd>: Likewise.
28365         * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
28366         Correct punctuation.
28367         (Code Gen Options) <-fno-plt>: Copy-edit.
28369 2016-01-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
28371         PR target/68917
28372         * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
28373         SI values.  Explicitly convert SI to DI and vice-versa.
28375 2016-01-01  Jakub Jelinek  <jakub@redhat.com>
28377         PR tree-optimization/69070
28378         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
28379         REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
28381         PR sanitizer/69055
28382         * ubsan.c (ubsan_instrument_float_cast): Call
28383         initialize_sanitizer_builtins.
28385         PR target/69015
28386         * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
28388 Copyright (C) 2016 Free Software Foundation, Inc.
28390 Copying and distribution of this file, with or without modification,
28391 are permitted in any medium without royalty provided the copyright
28392 notice and this notice are preserved.