2016-10-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
[official-gcc.git] / gcc / ChangeLog
blob3cad7bb512c7c0c3a6deacb6840c67d157f1355a
1 2016-10-17  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3         PR target/77308
4         * config/arm/arm.c (arm_emit_coreregs_64bit_shift): Clear the result
5         register explicitly.
6         * config/arm/arm.md (ashldi3, ashrdi3, lshrdi3): Don't FAIL if
7         optimizing for size.
9 2016-10-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11         * config/aarch64/aarch64.c: Delete inclusion of
12         cortex-a57-fma-steering.h.
13         (aarch64_override_options): Delete call
14         to aarch64_register_fma_steering.
15         * config/aarch64/aarch64-protos.h (make_pass_fma_steering): Declare.
16         * config/aarch64/cortex-a57-fma-steering.h: Delete.
17         * config/aarch64/aarch64-passes.def: New file.
18         * config/aarch64/cortex-a57-fma-steering.c
19         (aarch64_register_fma_steering): Delete definition.
20         (make_pass_fma_steering): Remove static qualifier.
21         * config/aarch64/t-aarch64 (PASSES_EXTRA): New directive.
22         (cortex-a57-fma-steering.o): Remove dependency on
23         cortex-a57-fma-steering.h.
25 2016-10-17  Eric Botcazou  <ebotcazou@adacore.com>
27         * explow.c (validize_mem): Do not modify the argument in-place.
29 2016-10-17  Thomas Schwinge  <thomas@codesourcery.com>
31         * tree-streamer.c (record_common_node): Explicitly list expected
32         tree codes.
34 2016-10-17  Richard Biener  <rguenther@suse.de>
36         PR tree-optimization/77988
37         * tree-vrp.c (remove_range_assertions): Use replace_uses_by.
39 2016-10-17  Marek Polacek  <polacek@redhat.com>
41         * Makefile.in (C_COMMON_OBJS): Add c-family/c-attribs.o.
43 2016-10-17  Richard Biener  <rguenther@suse.de>
45         * bb-reorder.c (reorder_basic_blocks_simple): Clear BB_VISITED
46         before using it.
48 2016-10-17  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
50         PR tree-optimization/71636
51         * match.pd (x & ((1 << b) - 1) -> x & ~(~0 << b)): New pattern.
53 2016-10-17  Richard Biener  <rguenther@suse.de>
55         * gimplify.c (gimplify_function_tree): Do not move the outer
56         binds block.
58 2016-10-17  Jakub Jelinek  <jakub@redhat.com>
60         * langhooks.h (struct lang_hooks_for_decls): Remove
61         function_decl_explicit_p, function_decl_deleted_p and
62         function_decl_defaulted hooks.  Add decl_dwarf_attribute hook.
63         * langhooks-def.h (lhd_decl_dwarf_attribute): Declare.
64         (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P,
65         LANG_HOOKS_FUNCTION_DECL_DELETED_P,
66         LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Remove.
67         (LANG_HOOKS_DECL_DWARF_ATTRIBUTE): Define.
68         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P,
69         LANG_HOOKS_FUNCTION_DECL_DELETED_P and
70         LANG_HOOKS_FUNCTION_DECL_DEFAULTED.  Add
71         LANG_HOOKS_DECL_DWARF_ATTRIBUTE.
72         * langhooks.c (lhd_decl_dwarf_attribute): New function.
73         * dwarf2out.c (gen_subprogram_die): Use
74         lang_hooks.decls.decl_dwarf_attribute instead of
75         lang_hooks.decls.function_decl_*.
77 2016-10-16  Eric Botcazou  <ebotcazou@adacore.com>
79         PR ada/37139
80         PR ada/67205
81         * common.opt (-ftrampolines): New option.
82         * doc/invoke.texi (Code Gen Options): Document it.
83         * doc/tm.texi.in (Trampolines): Add TARGET_CUSTOM_FUNCTION_DESCRIPTORS.
84         * doc/tm.texi: Regenerate.
85         * builtins.def: Add init_descriptor and adjust_descriptor.
86         * builtins.c (expand_builtin_init_trampoline): Do not issue a warning
87         on platforms with descriptors.
88         (expand_builtin_init_descriptor): New function.
89         (expand_builtin_adjust_descriptor): Likewise.
90         (expand_builtin) <BUILT_IN_INIT_DESCRIPTOR>: New case.
91         <BUILT_IN_ADJUST_DESCRIPTOR>: Likewise.
92         * calls.c (prepare_call_address): Remove SIBCALLP parameter and add
93         FLAGS parameter.  Deal with indirect calls by descriptor and adjust.
94         Set STATIC_CHAIN_REG_P on the static chain register, if any.
95         (call_expr_flags): Set ECF_BY_DESCRIPTOR for calls by descriptor.
96         (expand_call): Likewise.  Move around call to prepare_call_address
97         and pass all flags to it.
98         * cfgexpand.c (expand_call_stmt): Reinstate CALL_EXPR_BY_DESCRIPTOR.
99         * gimple.h (enum gf_mask): New GF_CALL_BY_DESCRIPTOR value.
100         (gimple_call_set_by_descriptor): New setter.
101         (gimple_call_by_descriptor_p): New getter.
102         * gimple.c (gimple_build_call_from_tree): SetCALL_EXPR_BY_DESCRIPTOR.
103         (gimple_call_flags): Deal with GF_CALL_BY_DESCRIPTOR.
104         * langhooks.h (struct lang_hooks): Add custom_function_descriptors.
105         * langhooks-def.h (LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS): Define.
106         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_CUSTOM_FUNCTION_DESCRIPTORS.
107         * rtl.h (STATIC_CHAIN_REG_P): New macro.
108         * rtlanal.c (find_first_parameter_load): Skip static chain registers.
109         * target.def (custom_function_descriptors): New POD hook.
110         * tree.h (FUNC_ADDR_BY_DESCRIPTOR): New flag on ADDR_EXPR.
111         (CALL_EXPR_BY_DESCRIPTOR): New flag on CALL_EXPR.
112         * tree-core.h (ECF_BY_DESCRIPTOR): New mask.
113         Document FUNC_ADDR_BY_DESCRIPTOR and CALL_EXPR_BY_DESCRIPTOR.
114         * tree.c (make_node_stat) <tcc_declaration>: Use FUNCTION_ALIGNMENT.
115         (build_common_builtin_nodes): Initialize init_descriptor and
116         adjust_descriptor.
117         * tree-nested.c: Include target.h.
118         (struct nesting_info): Add 'any_descr_created' field.
119         (get_descriptor_type): New function.
120         (lookup_element_for_decl): New function extracted from...
121         (create_field_for_decl): Likewise.
122         (lookup_tramp_for_decl): ...here.  Adjust.
123         (lookup_descr_for_decl): New function.
124         (convert_tramp_reference_op): Deal with descriptors.
125         (build_init_call_stmt): New function extracted from...
126         (finalize_nesting_tree_1): ...here.  Adjust and deal with descriptors.
127         * defaults.h (FUNCTION_ALIGNMENT): Define.
128         (TRAMPOLINE_ALIGNMENT): Set to above instead of FUNCTION_BOUNDARY.
129         * config/i386/i386.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
130         * config/ia64/ia64.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Likewise.
131         * config/rs6000/rs6000.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS):Likewise.
132         * config/sparc/sparc.h (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Likewise.
134 2016-10-16  Eric Botcazou  <ebotcazou@adacore.com>
136         * config/sparc/sparc.c (sparc_expand_vector_init): Only accept literal
137         constants in CONST_VECTORs.
139 2016-10-15  Eric Botcazou  <ebotcazou@adacore.com>
141         * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use a scratch
142         register as destination of bmask.
143         (vector_init_bshuffle): Likewise.
144         * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
145         (bmaskdi_vis): Enable only in 64-bit mode.
147 2016-10-15  Segher Boessenkool  <segher@kernel.crashing.org>
149         * config/rs6000/rs6000.c (rs6000_get_separate_components): Do not
150         make LR a separately shrink-wrapped component unless savres_strategy
151         contains all of {SAVE,REST}_INLINE_{GPRS,FPRS,VRS}.  Do not wrap
152         GPRs unless both {SAVE,REST}_INLINE_GPRS.  Do not disallow all
153         wrapping when not both {SAVE,REST}_INLINE_GPRS.
155 2016-10-15  Eric Botcazou  <ebotcazou@adacore.com>
157         * optabs.c (expand_parity): Fix mode mismatch, add final conversion
158         and keep looping on failure.
160 2016-10-14  David Malcolm  <dmalcolm@redhat.com>
162         * print-rtl-function.c (print_edge): Omit "(flags)" when none are
163         set.
164         (print_rtx_function): Update example in comment for...
165         * print-rtl.c (print_rtx_operand_code_r): In compact mode, print
166         non-virtual pseudos with a '%' sigil followed by the regno, offset
167         by (LAST_VIRTUAL_REGISTER + 1), so that the first non-virtual
168         pseudo is dumped as "%0".
170 2016-10-14  Jakub Jelinek  <jakub@redhat.com>
172         PR middle-end/77959
173         * expr.c (expand_expr_real_1) <case CONST_DECL>: For EXPAND_WRITE
174         return a MEM.
176 2016-10-14  Eric Botcazou  <ebotcazou@adacore.com>
178         * config/sparc/sparc-passes.def: New file.
179         * config/sparc/t-sparc (PASSES_EXTRA): Add sparc-passes.def.
180         * config/sparc/sparc-protos.h (make_pass_work_around_errata): New.
181         * config/sparc/sparc.c (sparc_option_override): Don't register passes.
183 2016-10-14  Pat Haugen  <pthaugen@us.ibm.com>
185         * loop-unroll.c (unroll_loop_runtime_iterations): Condition initial
186         loop peel to loops with exit test at the beginning.
188 2016-10-14  Pat Haugen  <pthaugen@us.ibm.com>
190         PR rtl-optimization/68212
191         * cfgloopmanip.c (duplicate_loop_to_header_edge): Use preheader edge
192         frequency when computing scale factor for peeled copies.
193         * loop-unroll.c (unroll_loop_runtime_iterations): Fix freq/count
194         values for switch/peel blocks/edges.
196 2016-10-14  Pedro Alves  <palves@redhat.com>
198         * coretypes.h (OVERRIDE, FINAL): Delete, moved to include/ansidecl.h.
200 2016-10-14  Catherine Moore  <clm@codesourcery.com>
202         * gcc/config/mips/mips.c (mips_prepare_pch_save): Initialize
203         micromips_globals to zero.
205 2016-10-14  Richard Biener  <rguenther@suse.de>
207         PR tree-optimization/77979
208         * tree-vrp.c (compare_name_with_value): Handle released SSA names
209         in the equivalency sets.
210         (compare_names): Likewise.
212 2016-10-14  Martin Liska  <mliska@suse.cz>
214         * builtins.h(target_char_cst_p): Declare the function.
215         * builtins.c (fold_builtin_memchr): Remove.
216         (target_char_cst_p): Move the function from gimple-fold.c.
217         (fold_builtin_3): Do not call the function.
218         * gimple-fold.c (gimple_fold_builtin_memchr): New function.
219         (gimple_fold_builtin): Call the function.
220         * fold-const-call.c (fold_const_call_1): Handle CFN_BUILT_IN_MEMCHR.
222 2016-10-14  Martin Liska  <mliska@suse.cz>
224         * builtins.c (fold_builtin_strcmp): Remove function.
225         (fold_builtin_strncmp): Likewise.
226         (fold_builtin_2): Remove call of the function.
227         (fold_builtin_3): Likewise.
228         * fold-const-call.c (fold_const_call): Add constant folding
229         for CFN_BUILT_IN_STRCASECMP and CFN_BUILT_IN_STRNCASECMP.
230         * fold-const-call.h (build_cmp_result): Declare the function.
231         * gimple-fold.c (gimple_load_first_char): New function.
232         (gimple_fold_builtin_string_compare): Likewise.
233         (gimple_fold_builtin): Call the function.
235 2016-10-14  Nathan Sidwell  <nathan@acm.org>
237         * gcov-io.c (gcov_open): Deconstify 'mode'.
239 2016-10-14  Martin Liska  <mliska@suse.cz>
241         * fold-const.c (c_getstr): Support of properly \0-terminated
242         string constants.  New argument is added.
243         * fold-const.h: New argument is added.
245 2016-10-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
247         * config/aarch64/aarch64.c (aarch64_print_hint_for_core_or_arch):
248         New function.
249         (aarch64_print_hint_for_core): Likewise.
250         (aarch64_print_hint_for_arch): Likewise.
251         (aarch64_validate_march): Use it.  Fix indentation in type signature.
252         (aarch64_validate_mcpu): Use aarch64_print_hint_for_core_or_arch.
253         (aarch64_validate_mtune): Likewise.
254         (aarch64_handle_attr_arch): Likewise.
255         (aarch64_handle_attr_cpu): Likewise.
256         (aarch64_handle_attr_tune): Likewise.
258 2016-10-14  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
260         * optabs.def: Remove optab function gen_int_libfunc for sdivmod_optab
261         and udivmod_optab.
263 2016-10-13  Andreas Schwab  <schwab@linux-m68k.org>
265         * config/m68k/m68k.c (m68k_option_override): Check
266         opt_fstack_limit_symbol_arg and opt_fstack_limit_register_no
267         instead of stack_limit_rtx.
269 2016-10-13  Jakub Jelinek  <jakub@redhat.com>
271         * dwarf2out.c (gen_member_die): Handle inline static data member
272         definitions.
274 2016-10-13  Nathan Sidwell  <nathan@acm.org>
276         * gcov-io.c (gcov_open): Fix documentation.  Simplify setting
277         gcov_var.mode.  Remove unnecessary fstat.
279 2016-10-13  Segher Boessenkool  <segher@kernel.crashing.org>
281         PR bootstrap/77962
282         * function.c (thread_prologue_and_epilogue_insns): Call all
283         make_*logue_seq in the same order as traditional.  Call them
284         all a second time if shrink_wrapped_separate.
286 2016-10-13  Marek Polacek  <polacek@redhat.com>
288         * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
289         insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Don't
290         use -Wno-error.
292 2016-10-13  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
294         PR tree-optimization/77937
295         * gimple-ssa-strength-reduction.c (analyze_increments): Set cost
296         to infinite when we have a pointer with an increment of -1.
298 2016-10-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
300         * coretypes.h: Move MEMMODEL_* macros and enum memmodel definition
301         into ...
302         * memmodel.h: This file.
303         * alias.c, asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
304           caller-save.c, calls.c, ccmp.c, cfgbuild.c, cfgcleanup.c,
305           cfgexpand.c, cfgloopanal.c, cfgrtl.c, cilk-common.c, combine.c,
306           combine-stack-adj.c, common/config/aarch64/aarch64-common.c,
307           common/config/arm/arm-common.c, common/config/bfin/bfin-common.c,
308           common/config/c6x/c6x-common.c, common/config/i386/i386-common.c,
309           common/config/ia64/ia64-common.c, common/config/nvptx/nvptx-common.c,
310           compare-elim.c, config/aarch64/aarch64-builtins.c,
311           config/aarch64/aarch64-c.c, config/aarch64/cortex-a57-fma-steering.c,
312           config/arc/arc.c, config/arc/arc-c.c, config/arm/arm-builtins.c,
313           config/arm/arm-c.c, config/avr/avr.c, config/avr/avr-c.c,
314           config/avr/avr-log.c, config/bfin/bfin.c, config/c6x/c6x.c,
315           config/cr16/cr16.c, config/cris/cris.c, config/darwin-c.c,
316           config/darwin.c, config/epiphany/epiphany.c,
317           config/epiphany/mode-switch-use.c,
318           config/epiphany/resolve-sw-modes.c, config/fr30/fr30.c,
319           config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
320           config/i386/i386-c.c, config/i386/winnt.c, config/iq2000/iq2000.c,
321           config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
322           config/m68k/m68k.c, config/mcore/mcore.c,
323           config/microblaze/microblaze.c, config/mmix/mmix.c,
324           config/mn10300/mn10300.c, config/moxie/moxie.c,
325           config/msp430/msp430.c, config/nds32/nds32-cost.c,
326           config/nds32/nds32-intrinsic.c, config/nds32/nds32-md-auxiliary.c,
327           config/nds32/nds32-memory-manipulation.c,
328           config/nds32/nds32-predicates.c, config/nds32/nds32.c,
329           config/nios2/nios2.c, config/nvptx/nvptx.c, config/pa/pa.c,
330           config/pdp11/pdp11.c, config/rl78/rl78.c, config/rs6000/rs6000-c.c,
331           config/rx/rx.c, config/s390/s390-c.c, config/s390/s390.c,
332           config/sh/sh.c, config/sh/sh-c.c, config/sh/sh-mem.cc,
333           config/sh/sh_treg_combine.cc, config/sol2.c, config/spu/spu.c,
334           config/stormy16/stormy16.c, config/tilegx/tilegx.c,
335           config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
336           config/visium/visium.c, config/vms/vms-c.c, config/xtensa/xtensa.c,
337           coverage.c, cppbuiltin.c, cprop.c, cse.c, cselib.c, dbxout.c, dce.c,
338           df-core.c, df-problems.c, df-scan.c, dojump.c, dse.c, dwarf2asm.c,
339           dwarf2cfi.c, dwarf2out.c, emit-rtl.c, except.c, explow.c, expmed.c,
340           expr.c, final.c, fold-const.c, function.c, fwprop.c, gcse.c,
341           ggc-page.c, haifa-sched.c, hsa-brig.c, hsa-gen.c, hw-doloop.c,
342           ifcvt.c, init-regs.c, internal-fn.c, ira-build.c, ira-color.c,
343           ira-conflicts.c, ira-costs.c, ira-emit.c, ira-lives.c, ira.c, jump.c,
344           loop-doloop.c, loop-invariant.c, loop-iv.c, loop-unroll.c,
345           lower-subreg.c, lra.c, lra-assigns.c, lra-coalesce.c,
346           lra-constraints.c, lra-eliminations.c, lra-lives.c, lra-remat.c,
347           lra-spills.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
348           postreload-gcse.c, postreload.c, predict.c, print-rtl-function.c,
349           recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
350           reload.c, reload1.c, reorg.c, resource.c, rtl-chkp.c, rtl-tests.c,
351           rtlanal.c, rtlhooks.c, sched-deps.c, sched-rgn.c, sdbout.c,
352           sel-sched-ir.c, sel-sched.c, shrink-wrap.c, simplify-rtx.c,
353           stack-ptr-mod.c, stmt.c, stor-layout.c, target-globals.c,
354           targhooks.c, toplev.c, tree-nested.c, tree-outof-ssa.c,
355           tree-profile.c, tree-ssa-coalesce.c, tree-ssa-ifcombine.c,
356           tree-ssa-loop-ivopts.c, tree-ssa-loop.c, tree-ssa-reassoc.c,
357           tree-ssa-sccvn.c, tree-vect-data-refs.c, ubsan.c, valtrack.c,
358           var-tracking.c, varasm.c: Include memmodel.h.
359         * genattrtab.c (write_header): Include memmodel.h in generated file.
360         * genautomata.c (main): Likewise.
361         * gengtype.c (open_base_files): Likewise.
362         * genopinit.c (main): Likewise.
363         * genconditions.c (write_header): Include memmodel.h earlier in
364         generated file.
365         * genemit.c (main): Likewise.
366         * genoutput.c (output_prologue): Likewise.
367         * genpeep.c (main): Likewise.
368         * genpreds.c (write_insn_preds_c): Likewise.
369         * genrecog.c (write_header): Likewise.
370         * Makefile.in (PLUGIN_HEADERS): Include memmodel.h
372 2016-10-13  David Malcolm  <dmalcolm@redhat.com>
374         * function-tests.c (selftest::test_expansion_to_rtl): Add "true"
375         for new "compact" param of print_rtx_function.  Check for "cinsn"
376         rather than "insn".
377         * print-rtl-function.c (flag_compact): New decl.
378         (print_rtx_function): Add param "compact" and use it to set
379         flag_compact, adding a description of the effect to the leading
380         comment, and updating the example output.
381         * print-rtl.c (flag_compact): New variable.
382         (print_rtx_operand_code_0): Omit the JUMP_LABEL reference in compact
383         mode.
384         (print_rtx_operand_code_i): When printing source locations, wrap
385         xloc.file in quotes.  Don't print INSN_CODEs in compact mode.
386         (print_rtx_operand_code_r): Don't print regnos for hard regs and
387         virtuals in compact mode.
388         (print_rtx_operand_code_u): Don't print insn UIDs in compact mode,
389         apart from in LABEL_REFs.
390         (print_rtx_operand): In case 'w', don't print in hex in compact mode.
391         Don't print basic block ids in compact mode.
392         (print_rtx):  In compact mode, prefix the code of insns with "c",
393         only print the INSN_UID of CODE_LABELs, and omit their LABEL_NUSES.
394         * print-rtl.h (print_rtx_function): Add "compact" param.
396 2016-10-13  Richard Earnshaw  <rearnsha@arm.com>
398         * arm.h (TARGET_VFP): Delete.
399         (TARGET_VFPD32): Remove references to TARGET_VFP.
400         (TARGET_VFP3, TARGET_VFP5): Likewise.
401         (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE): Likewise.
402         (TARGET_NEON_FP16): Likewise.
403         (TARGET_FMA): Likewise.
404         (TARGET_CRYPTO): Likewise.
405         (TARGET_NEON): Likewise.
406         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
407         (FUNCTION_ARG_REGNO_P): Likewise.
408         * arm.c (arm_option_check_internal): Likewise.
409         (arm_option_override): Likewise.
410         (use_return_insn): Likewise.
411         (arm_function_value_regno_p): Likewise.
412         (arm_apply_result_size): Likewise.
413         (use_vfp_abi): Likewise.
414         (arm_legitimate_address_outer_p): Likewise.
415         (thumb2_legitimate_address_p): Likewise.
416         (arm_legitimate_index_p): Likewise.
417         (thumb2_legitimate_index_p): Likewise.
418         (arm_legitimate_address): Likewise.
419         (arm_get_vfp_saved_size): Likewise.
420         (arm_emit_vfp_multi_reg_pop): Likewise.
421         (arm_get_frame_offsets): Likewise.
422         (arm_save_coproc_regs): Likewise.
423         (arm_hard_regno_mode_ok): Likewise.
424         (arm_expand_epilogue_apcs_frame): Likewise.
425         (arm_expand_epilogue): Likewise.
426         (arm_file_start): Likewise.
427         (arm_conditional_register_usage): Likewise.
428         (arm_validize_comparison): Use vfp_compare_operand directly.
429         * arm-builtins.c (arm_init_builtins): Remove references to TARGET_VFP.
430         (arm_expand_vfp_builtin): Use TARGET_HARD_FLOAT for detecting
431         unsupported usage.
432         (arm_atomic_assign_expand_fenv): Likewise.
433         * arm.md (divsf3): Likewise.
434         (arm_negsi2): Likewise.
435         (absdf2): Likewise.
436         (arm_movdi): Likewise.
437         (arm_movt): Likewise.
438         (cbranchsf4): Change predicate to vfp_compare_operand.
439         (cbranchdf4): Change predicate to vfp_compare_operand.
440         (cstorehf4): Change predicate to vfp_compare_operand.
441         (cstoresf4): Change predicate to vfp_compare_operand.
442         (cstoredf4): Change predicate to vfp_compare_operand.
443         (vfp_pop_multiple_with_writeback): Remove references to TARGET_VFP.
444         (movhi_insn_arch4, movhi_bytes): Likewise.
445         * constraints.md (Dt): Likewise.
446         (Dp): Likewise.
447         * iterators.md (SDF): Likewise.
448         * predicates.md (arm_float_compare_operand): Delete.
449         (const_double_vcvt_power_of_two_reciprocal): Remove references to
450         TARGET_VFP.
451         (const_double_vcvt_power_of_two): Likewise.
452         * thumb2.md thumb2_movsi_insn): Likewise.
453         * vfp.md (arm_movhi_vfp, thumb2_movhi_vfp): Likewise.
454         (movhf_vfp): Likewise.
455         (arm_movsi_vfp, thumb2_movsi_vfp): Likewise.
456         (movdi_vfp, movdi_vfp_cortexa8): Likewise.
457         (movsf_vfp, thumb2_movsf_vfp): Likewise.
458         (movdf_vfp, thumb2_movdf_vfp): Likewise.
459         (movsfcc_vfp, abssf2_vfp, negsf2_vfp, addsf3_vfp): Likewise.
460         (subsf3_vfp, divsf3_vfp): Likewise.
461         (mulsf3_vfp, mulsf3negsf_vfp, negmulsf3_vfp): Likewise.
462         (mulsf3addsf_vfp, (mulsf3subsf_vfp, mulsf3negsfaddsf_vfp): Likewise.
463         (mulsf3negsfsubsf_vfp): Likewise.
464         (truncsisf2_vfp, fixuns_truncsfsi2, floatsisf2_vfp): Likewise.
465         (floatunssisf2, sqrtsf2_vfp): Likewise.
466         (movcc_vfp): Likewise.
467         (cmpsf_split_vfp, cmpsf_trap_split_vfp): Likewise.
468         (cmpsf_vfp, cmpsf_trap_vfp): Likewise.
469         (push_multi_vfp): Likewise.
470         (set_fpscr, get_fpscr): Likewise.
471         * arm-c.c (arm_cpu_builtins): Unconditionally define __VFP_FP__.
473 2016-10-13  Richard Earnshaw  <rearnsha@arm.com>
475         * arm.h (TARGET_VFP): Unconditionally define to 1.
476         (arm_fpu_desc): Remove 'model' field.
477         (TARGET_FPU_MODEL): Delete.
478         * arm.c (all_fpus): Don't initialize the model field.
479         (arm_can_inline_p): Don't check the FPU model.
480         * arm-fpus.def: Remove redundant model field from all FPU
481         descriptions.
483 2016-10-13  Richard Biener  <rguenther@suse.de>
485         PR middle-end/77826
486         * genmatch.c (struct capture): Add value_match member.
487         (commutate): Preserve value_match.
488         (lower_opt_convert): Likewise.
489         (lower_cond): Likewise.
490         (replace_id): Likewise.
491         (struct dt_operand): Add value_match member.
492         (decision_tree::cmp_node): Compare it.
493         (decision_tree::insert_operand): Honor it when finding and
494         when appending a DT_MATCH.
495         (dt_operand::gen_match_op): Generate a type check after
496         operand_equal_p if ! value_match for both GENERIC and GIMPLE.
497         (parser::get_internal_capture_id): New helper.
498         (parser::finish_match_operand): New function lowering @@<id>.
499         (parser::parse_capture): Parse @@<id> as value-match.
500         (parser::parse_expr): Use get_internal_capture_id.
501         (parser::parse_simplify): Call finish_match_operand.
502         (walk_captures): New helper.
503         * match.pd (X - (X / Y) * Y -> X % Y): Use value-matching instead
504         of operand_equal_p.
505         ((X /[ex] A) * A -> X): Likewise.
506         ((X | Y) ^ X -> Y & ~ X): Handle constants properly by using
507         convert[12] and value-matching.
508         ((A | B) & (A | C) ->  A | (B & C)): Likewise.
509         ((X | Y) | Y -> X | Y): Likewise.
510         ((X ^ Y) ^ Y -> X): Likewise.
511         (A - (A & B) -> ~B & A): Likewise.
512         ((T)(P + A) - (T)P -> (T) A): Likewise.
513         ((T)P - (T)(P + A) -> -(T) A): Likewise.
514         ((T)(P + A) - (T)(P + B) -> (T)A - (T)B): Likewise.
515         * doc/match-and-simplify.texi: Amend capture section.
517 2016-10-13  Claudiu Zissulescu  <claziss@synopsys.com>
519         * config/arc/arc.md (umul_600): Remove predicated variant.
520         (umul64_600): Likewise.
522 2016-10-13  Claudiu Zissulescu  <claziss@synopsys.com>
524         * config/arc/arc.h (INSN_LENGTH_ALIGNMENT): Change.
526 2016-10-13  Bin Cheng  <bin.cheng@arm.com>
528         * tree-vect-loop.c (loop_niters_no_overflow): New func.
529         (vect_transform_loop): Call loop_niters_no_overflow.  Pass the
530         no-overflow information to vect_do_peeling_for_loop_bound and
531         vect_gen_vector_loop_niters.
533 2016-10-13  Bin Cheng  <bin.cheng@arm.com>
535         * tree-predcom.c (tree_predictive_commoning_loop): Skip loop that only
536         iterates 1 time.
538 2016-10-13  Bin Cheng  <bin.cheng@arm.com>
540         * tree-vect-loop-manip.c (adjust_vec_debug_stmts): Don't release
541         adjust_vec automatically.
542         (slpeel_add_loop_guard): Remove param cond_expr_stmt_list.  Rename
543         param exit_bb to guard_to.
544         (slpeel_checking_verify_cfg_after_peeling):
545         (set_prologue_iterations):
546         (create_lcssa_for_virtual_phi): New func which is factored out from
547         slpeel_tree_peel_loop_to_edge.
548         (slpeel_tree_peel_loop_to_edge):
549         (iv_phi_p): New func.
550         (vect_can_advance_ivs_p): Call iv_phi_p.
551         (vect_update_ivs_after_vectorizer): Call iv_phi_p.  Directly insert
552         new gimple stmts in basic block.
553         (vect_do_peeling_for_loop_bound):
554         (vect_do_peeling_for_alignment):
555         (vect_gen_niters_for_prolog_loop): Rename to...
556         (vect_gen_prolog_loop_niters): ...Rename from.  Change parameters and
557         adjust implementation.
558         (vect_update_inits_of_drs): Fix code style issue.  Convert niters to
559         sizetype if necessary.
560         (vect_build_loop_niters): Move to here from tree-vect-loop.c.  Change
561         it to external function.
562         (vect_gen_scalar_loop_niters, vect_gen_vector_loop_niters): New.
563         (vect_gen_vector_loop_niters_mult_vf): New.
564         (slpeel_update_phi_nodes_for_loops): New.
565         (slpeel_update_phi_nodes_for_guard1): Reimplement.
566         (find_guard_arg, slpeel_update_phi_nodes_for_guard2): Reimplement.
567         (slpeel_update_phi_nodes_for_lcssa, vect_do_peeling): New.
568         * tree-vect-loop.c (vect_build_loop_niters): Move to file
569         tree-vect-loop-manip.c
570         (vect_generate_tmps_on_preheader): Delete.
571         (vect_transform_loop): Rename vectorization_factor to vf.  Call
572         vect_do_peeling instead of vect_do_peeling-* functions.
573         * tree-vectorizer.h (vect_do_peeling): New decl.
574         (vect_build_loop_niters, vect_gen_vector_loop_niters): New decls.
575         (vect_do_peeling_for_loop_bound): Delete.
576         (vect_do_peeling_for_alignment): Delete.
578 2016-10-13  Bin Cheng  <bin.cheng@arm.com>
580         * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg): Put
581         duplicated loop after its preheader and after the original loop.
583 2016-10-13  Bin Cheng  <bin.cheng@arm.com>
585         * tree-vect-loop.c (vect_analyze_loop_2): Check and skip loop if it
586         has no enough iterations for LOOP_VINFO_PEELING_FOR_GAPS.
588 2016-10-13  Bin Cheng  <bin.cheng@arm.com>
590         * tree-vect-loop.c (vectorizable_live_operation): Support handling
591         for live variable outside loop but not in lcssa form.
593 2016-10-13  Bin Cheng  <bin.cheng@arm.com>
595         * cfg.c (reset_original_copy_tables): New func.
596         * cfg.h (reset_original_copy_tables): New decl.
598 2016-10-13  Jakub Jelinek  <jakub@redhat.com>
600         PR c/77946
601         * tree.h (FALLTHROUGH_LABEL_P): Use private_flag instead of
602         public_flag.
603         * varasm.c (default_binds_local_p_3): Formatting fix.
605 2016-10-13  Bin Cheng  <bin.cheng@arm.com>
607         * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Fix code
608         style issue.
609         (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
610         Remove useless code.
612 2016-10-13  Martin Liska  <mliska@suse.cz>
614         PR tree-optimization/77943
615         * tree-ssa-tail-merge.c (merge_stmts_p): Do not merge BBs with
616         a different EH landing pads.
618 2016-10-13  Jakub Jelinek  <jakub@redhat.com>
620         PR target/77957
621         * hooks.h (hook_tree_void_null): Declare.
622         * hooks.c (hook_tree_void_null): New function.
623         * langhooks.c (lhd_return_null_tree_v): Remove.
624         * langhooks-def.h (lhd_return_null_tree_v): Remove.
625         * cfgexpand.c (stack_protect_prologue): If guard_decl is NULL,
626         set y to const0_rtx.
627         * function.c (stack_protect_epilogue): Likewise.
628         * config/tilepro/tilepro.c (TARGET_STACK_PROTECT_GUARD): Redefine
629         if TARGET_THREAD_SSP_OFFSET is defined.
630         * config/s390/s390.c (TARGET_STACK_PROTECT_GUARD): Likewise.
631         * config/sparc/sparc.c (TARGET_STACK_PROTECT_GUARD): Likewise.
632         * config/tilegx/tilegx.c (TARGET_STACK_PROTECT_GUARD): Likewise.
633         * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Likewise.
634         * config/i386/i386.c (TARGET_STACK_PROTECT_GUARD): Likewise.
635         (ix86_stack_protect_guard): New function.
637 2016-10-13  Richard Biener  <rguenther@suse.de>
639         * dwarf2out.c (tree_add_const_value_attribute): Do not try
640         rtl_for_decl_init during early phase.
641         (gen_variable_die): Do not create locations during early phase.
642         (gen_label_die): Likewise.
643         (decls_for_scope): Do not waste time handling BLOCK_NONLOCALIZED_VARs
644         twice.
646 2016-10-12  Richard Biener  <rguenther@suse.de>
648         * tree-vrp.c (evrp_dom_walker::try_find_new_range): Renamed from
649         try_add_new_range and made to eturn new range.
650         (evrp_dom_walker::before_dom_children): Push op1 value range before
651         pushing op0 value range.
653 2016-10-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
655         PR tree-optimization/77937
656         * gimple-ssa-strength-reduction.c (analyze_increments): Use
657         POINTER_TYPE_P on the candidate type to determine whether
658         candidates in this chain require pointer arithmetic.
660 2016-10-12  Eric Botcazou  <ebotcazou@adacore.com>
662         * config/visium/visium.c (visium_gimplify_va_arg): Emit a big-endian
663         correction if the type is smaller than a word.
664         (visium_select_cc_mode): Add ... fall through ... comment.
666 2016-10-12  Segher Boessenkool  <segher@kernel.crashing.org>
668         * config/rs6000/rs6000.c (machine_function): Add new fields
669         gpr_is_wrapped_separately and lr_is_wrapped_separately.
670         (TARGET_SHRINK_WRAP_GET_SEPARATE_COMPONENTS,
671         TARGET_SHRINK_WRAP_COMPONENTS_FOR_BB,
672         TARGET_SHRINK_WRAP_DISQUALIFY_COMPONENTS,
673         TARGET_SHRINK_WRAP_EMIT_PROLOGUE_COMPONENTS,
674         TARGET_SHRINK_WRAP_EMIT_EPILOGUE_COMPONENTS,
675         TARGET_SHRINK_WRAP_SET_HANDLED_COMPONENTS): Define.
676         (rs6000_get_separate_components): New function.
677         (rs6000_components_for_bb): New function.
678         (rs6000_disqualify_components): New function.
679         (rs6000_emit_prologue_components): New function.
680         (rs6000_emit_epilogue_components): New function.
681         (rs6000_set_handled_components): New function.
682         (rs6000_emit_prologue): Don't emit LR save if lr_is_wrapped_separately.
683         Don't emit GPR saves if gpr_is_wrapped_separately for that register.
684         (restore_saved_lr): Don't restore LR if lr_is_wrapped_separately.
685         (rs6000_emit_epilogue): Don't emit GPR restores if
686         gpr_is_wrapped_separately for that register.  Don't make a
687         REG_CFA_RESTORE note for registers we did not restore, either.
689 2016-10-12  Segher Boessenkool  <segher@kernel.crashing.org>
691         * function.c (thread_prologue_and_epilogue_insns): Call
692         try_shrink_wrapping_separate.  Compute the prologue_seq afterwards,
693         if it has possibly changed.  Compute the split_prologue_seq and
694         epilogue_seq later, too.
695         * shrink-wrap.c: #include cfgbuild.h and insn-config.h.
696         (dump_components): New function.
697         (struct sw): New struct.
698         (SW): New function.
699         (init_separate_shrink_wrap): New function.
700         (fini_separate_shrink_wrap): New function.
701         (place_prologue_for_one_component): New function.
702         (spread_components): New function.
703         (disqualify_problematic_components): New function.
704         (emit_common_heads_for_components): New function.
705         (emit_common_tails_for_components): New function.
706         (insert_prologue_epilogue_for_components): New function.
707         (try_shrink_wrapping_separate): New function.
708         * shrink-wrap.h: Declare try_shrink_wrapping_separate.
710 2016-10-12  Segher Boessenkool  <segher@kernel.crashing.org>
712         * regrename.c (build_def_use): Invalidate chains that have a
713         REG_CFA_RESTORE on some instruction.
715 2016-10-12  Segher Boessenkool  <segher@kernel.crashing.org>
717         * dce.c (delete_unmarked_insns): Don't delete instructions with
718         a REG_CFA_RESTORE note.
720 2016-10-12  Segher Boessenkool  <segher@kernel.crashing.org>
722         * common.opt (-fshrink-wrap-separate): New flag.
723         * doc/invoke.texi: Document it.
724         * doc/tm.texi.in (Shrink-wrapping separate components): New subsection.
725         * doc/tm.texi: Regenerate.
726         * emit-rtl.h (struct rtl_data): New field shrink_wrapped_separate.
727         * target.def (shrink_wrap): New hook vector.
728         (get_separate_components, components_for_bb, disqualify_components,
729         emit_prologue_components, emit_epilogue_components,
730         set_handled_components): New hooks.
732 2016-10-12  Segher Boessenkool  <segher@kernel.crashing.org>
734         * config/rs6000/rs6000.c (rs6000_return_in_memory): Warn for
735         vector return by reference only if -Wpsabi.
736         (rs6000_pass_by_reference): Similarly, for argument passing.
738 2016-10-12  David Malcolm  <dmalcolm@redhat.com>
740         * function-tests.c: Include "print-rtl.h".
741         (selftest::test_expansion_to_rtl): Call print_rtx_function on the
742         function, and verify what is dumped.
743         * print-rtl-function.c (print_edge): New function.
744         (begin_any_block): New function.
745         (end_any_block): New function.
746         (can_have_basic_block_p): New function.
747         (print_rtx_function): Track the basic blocks of insns in the
748         chain, wrapping those that are within blocks within "(block)"
749         directives.  Remove the "(cfg)" directive.
751 2016-10-12  David Malcolm  <dmalcolm@redhat.com>
753         * selftest.c (selftest::read_file): New function.
754         (selftest::test_read_file): New function.
755         (selftest::selftest_c_tests): Call test_read_file.
756         * selftest.h (selftest::read_file): New decl.
758 2016-10-12  Richard Biener  <rguenther@suse.de>
760         PR debug/77947
761         * cgraphunit.c (analyze_functions): Preserve cgraph nodes
762         function context.
764 2016-10-12  Thomas Schwinge  <thomas@codesourcery.com>
766         * lto-streamer.c: Fix LTO_STREAMER_DEBUG build.
768         * dwarf2out.c (dwarf2_lineno_debug_hooks): Use
769         dwarf2out_assembly_start.
771         * Makefile.in (SELFTEST_FLAGS): Add -nostdinc.
773         * Makefile.in (SELFTEST_FLAGS): New variable.
774         (s-selftest, selftest-gdb, selftest-valgrind): Use it.
776         * vmsdbgout.c (vmsdbg_debug_hooks): Add filename parameter to
777         early_finish hook.
779 2016-10-12  Georg-Johann Lay  <avr@gjlay.de>
781         * rtl.h (struct rtx_def): Comment how RTX_FLAGS will be
782         dumped in RTL dumps.
784 2016-10-12  Martin Liska  <mliska@suse.cz>
786         * gimple-fold.c (create_tmp_reg_or_ssa_name): New function.
787         (gimple_fold_builtin_memory_op): Use the function.
788         (gimple_fold_builtin_strchr): Likewise.
789         (gimple_fold_builtin_strcat): Likewise.
790         (gimple_build): Likewise.
792 2016-10-12  Nathan Sidwell  <nathan@acm.org>
794         * diagnostic.c (diagnostc_report_diagnostic): Fix formatting.
796 2016-10-12  Pierre-Marie de Rodat  <derodat@adacore.com>
798         * dwarf2out.c (int_loc_descriptor): Generate opcodes for another
799         equivalent 32-bit constant (modulo 2**32) when that yields
800         smaller instructions.
801         (size_of_int_loc_descriptor): Update accordingly.
803 2016-10-12  Pierre-Marie de Rodat  <derodat@adacore.com>
805         * dwarf2out.c (dwarf2out_early_global_decl): For nested
806         functions, call dwarf2out_decl on the parent function first.
808 2016-10-12  Richard Biener  <rguenther@suse.de>
810         * match.pd ((X /[ex] A) * A -> X): Remove unnecessary constraint
811         on the conversion.
813 2016-10-12  Richard Biener  <rguenther@suse.de>
815         * tree-ssa-propagate.c
816         (substitute_and_fold_dom_walker::before_dom_children): Do not
817         ignore ASSERT_EXPRs but only preserve them.
818         * tree-vrp.c (remove_range_assertions): Deal with ASSERT_EXPRs
819         that have been propagated into.
820         (vrp_finalize): Enable DCE for substitute_and_fold.
822 2016-10-12  Richard Biener  <rguenther@suse.de>
824         PR tree-optimization/77920
825         * tree-vrp.c (simplify_div_or_mod_using_ranges): Simplify.
826         (simplify_min_or_max_using_ranges): Pass in gsi and use it.
827         (simplify_abs_using_ranges): Likewise.
828         (simplify_conversion_using_ranges): Likewise.
829         (simplify_stmt_using_ranges): Adjust.
831 2016-10-12  Jakub Jelinek  <jakub@redhat.com>
833         PR tree-optimization/77929
834         * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Handle
835         (*ops)[ranges[i].idx]->op != ranges[i].exp case.
837 2016-10-12  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
839         PR target/77934
840         * config/rs6000/vmx.md (vsx_concat_<mode>): The mtvsrdd instruction
841         needs a base register for arg 1.
843 2016-10-12  Jakub Jelinek  <jakub@redhat.com>
845         * common.opt (Wimplicit-fallthrough) Turn into alias to
846         -Wimplicit-fallthrough=3.  Remove EnabledBy.
847         (Wimplicit-fallthrough=): New option.
848         * gimplify.c (warn_implicit_fallthrough_r): Use
849         OPT_Wimplicit_fallthrough_ instead of OPT_Wimplicit_fallthrough.
850         * doc/invoke.texi (-Wimplicit-fallthrough): Document as alias
851         to -Wimplicit-fallthrough=3.
852         (-Wimplicit-fallthrough=): Document.
854 2016-10-11  Eric Botcazou  <ebotcazou@adacore.com>
856         * config/sparc/sparc.c (emit_scc_insn): Remove direct support for EQ
857         and GEU in DImode if TARGET_SUBXC.
858         * config/sparc/sparc.md (seqdi<W:mode>_zero): Remove TARGET_SUBXC.
859         (seqdi<W:mode>_zero_subxc): Delete.
860         (neg_seqdi<W:mode>_zero): Remove TARGET_VIS3.
861         (neg_seqdi<W:mode>_zero_vis3): Delete.
862         (plus_seqdi<W:mode>_zero): Likewise.
863         (minus_seqdi<W:mode>_zero): Likewise.
864         (plus_plus_sltu<W:mode>): Accept only register.
865         (addx<W:mode>): Likewise.
866         (plus_sltu<W:mode>_vis3): Likewise.
867         (plus_plus_sltu<W:mode>_vis3): Likewise.
868         (neg_sgeu<W:mode>_vis3): Delete.
869         (minus_sgeu<W:mode>_vis3): Likewise.
870         (addxc<W:mode>): Accept only registers.
871         (neg_sltu<W:mode>_subxc): Write %%g0 instead of 0.
872         (minus_neg_sltu<W:mode>_subxc): Accept only register.
873         (neg_plus_sltu<W:mode>_subxc): Likewise.
874         (minus_sltu<W:mode>_subxc): Write %%g0 instead of 0.
875         (minus_minus_sltu<W:mode>_subxc): Accept only register.
876         (sgeu<W:mode>_insn_subxc): Delete.
877         (plus_sgeu<W:mode>_subxc): Likewise.
878         (subxc<W:mode>): Accept only register.
879         (scc splitter): Split always GEU again.
881 2016-10-11  Jeff Law  <law@redhat.com>
883         PR tree-optimization/77424
884         * tree-ssa-threadupdate.c (thread_through_all_blocks): Remove
885         dead conditionals.  Assert that all e->aux fields are NULL.
887 2016-10-11  David Malcolm  <dmalcolm@redhat.com>
889         * print-rtl.c (print_rtx): Rename "i" to "idx".  Split out the
890         operand-printing "switch" statement into...
891         (print_rtx_operand_code_0): ...this new function, ...
892         (print_rtx_operand_code_e): ...this new function, ...
893         (print_rtx_operand_codes_E_and_V): ...this new function, ...
894         (print_rtx_operand_code_i): ...this new function, ...
895         (print_rtx_operand_code_r): ...this new function, ...
896         (print_rtx_operand_code_u): ...this new function, ...
897         (print_rtx_operand): ...and this new function.
899 2016-10-11  Uros Bizjak  <ubizjak@gmail.com>
901         * config/alpha/alpha-passes.def: New file.
902         * config/alpha/t-alpha: New file.
903         * config/alpha/alpha-protos.h (gcc::context, rtl_opt_pass): Declare.
904         (make_pass_handle_trap_shadows): New prototype.
905         (make_pass_align_insns): Ditto.
906         * config/alpha/alpha.c (alpha_option_override): Don't register
907         passes here.
908         * config.gcc (alpha*-*-*) Add alpha/t-alpha to tmake_file.
910 2016-10-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
912         PR target/77924
913         * config/rs6000/rs6000.c (rs6000_init_builtins): Only create the
914         distinct __ibm128 IBM extended double type if long doubles are
915         128-bits and the default format for long double is IEEE 128-bit.
917 2016-10-11  Richard Biener  <rguenther@suse.de>
919         * dwarf2out.c (DEBUG_STR_OFFSETS_SECTION): Remove conditional.
920         (init_sections_and_labels): Use DEBUG_DWO_STR_OFFSETS_SECTION.
921         (verify_die): New function.
922         (dwarf2out_finish): Call it.
923         (output_line_info): Handle case of -gsplit-dwarf without
924         DWARF2_ASM_LINE_DEBUG_INFO.
926 2016-10-11  Richard Biener  <rguenther@suse.de>
928         PR debug/77931
929         * gimple-low.c (lower_gimple_bind): Handle arbitrary common
930         sub-chains of BLOCK_VARS and gimple_bind_vars.
932 2016-10-11  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
934         * config/i386/znver1.md : Fix imov/imovx load type reservations.
936 2016-10-11  Eric Botcazou  <ebotcazou@adacore.com>
938         * config/sparc/sparc.opt (msubxc): New option.
939         * doc/invoke.texi (SPARC options): Document it and tidy up.
940         * doc/tm.texi.in (Condition Codes): Adjust SPARC example.
941         * doc/tm.texi: Regenerate.
942         * config/sparc/sparc-modes.def (CC_NOOV): Rename into...
943         (CCNZ): ...this.
944         (CCX_NOOV): Rename into...
945         (CCXNZ): ...this.
946         (CCC): New.
947         (CCXC): Likewise.
948         * config/sparc/predicates.m (fcc_register_operand): Simplify.
949         (fcc0_register_operand): Likewise.
950         (icc_register_operand): New.
951         (icc_or_fcc_register_operand): Simplify.
952         (nz_comparison_operator): New.
953         (c_comparison_operator): Likewise.
954         (noov_compare_operator): Rename into...
955         (icc_comparison_operator): ...this.  Use above predicates.
956         (noov_compare64_operator): Rename into...
957         (v9_comparison_operator): ...this and tidy up.
958         (fcc_comparison_operator): New.
959         (icc_or_fcc_comparison_operator): Likewise.
960         (v9_register_compare_operator): Rename info...
961         (v9_register_comparison_operator): ...this.
962         * config/sparc/sparc.c (TARGET_FIXED_CONDITION_CODE_REGS): Define.
963         (sparc_option_override): Remove redundant VIS masks and add MASK_SUBXC
964         for Niagara-7.
965         (sparc_fixed_condition_code_regs): New function.
966         (select_cc_mode): Remove ATTRIBUTE_UNUSED.  Adjust for CCNZ/CCXNZ
967         renaming and add support for CCC/CCXC.
968         (output_cbranch): Likewise.
969         (sparc_print_operand): Likewise.
970         (gen_v9_scc): Remove obsolete assertion.
971         (emit_scc_insn): Emit RTL directly for EQ and NE.  Add direct support
972         for EQ in DImode if TARGET_SUBXC.  Remove test on TARGET_VIS3 for GEU.
973         (output_cbcond): Remove bogus handling of CC modes.
974         (sparc_register_move_cost): Return 100 for NO_REGS.
975         * config/sparc/sparc.md (W): New mode iterator.
976         (length): Adjust for noov_compare64_operator renaming.
977         (cmpsi_sne): New instruction.
978         (cmpdi_sne): Likewise.
979         (seqdi_special): Delete.
980         (seqdi_special): Likewise.
981         (snesi<P:mode>_special): Likewise.
982         (snedi_special): Likewise.
983         (snedi_special_vis3): Likewise.
984         (snesi patterns): Use W iterator.
985         (snedi patterns): Likewise.  Add TARGET_SUBXC patterns.
986         (sltu patterns): Likewise.
987         (sgeu patterns): Likewise.
988         (scc splitter): Do not split GEU in DImode if TARGET_SUBXC.
989         (normal_branch): Use icc_comparison_operator predicate.
990         (inverted_branch): Likewise.
991         (cbcond_sp32): Use comparison_operator predicate.
992         (cbcond_sp64): Likewise.
993         (normal_int_branch_sp64): Adjust for renaming
994         (inverted_int_branch_sp64): Likewise.
995         (mov<I:mode>_cc_reg_sp64): Likewise.
996         (movsf_cc_reg_sp6): Likewise.
997         (movdf_cc_reg_sp64): Likewise.
998         (movtf_cc_reg_hq_sp64): Likewise.
999         (movtf_cc_reg_sp64): Likewise.
1000         (mov<I:mode>_cc_v9): Use icc_or_fcc_comparison_operator predicate.
1001         (movsf_cc_v9): Likewise.
1002         (movdf_cc_v9): Likewise.
1003         (movtf_cc_hq_v9): Likewise.
1004         (movtf_cc_v9): Likewise.
1005         (adddi3): Call gen_adddi3_sp32.
1006         (adddi3_insn_sp32): Rename to...
1007         (adddi3_sp32): ...this.  Accept only register_operand as operand #1
1008         and use CCCmode for the carry.
1009         (addx_extend_sp32): Use CCCmode for the carry.
1010         (addx_extend_sp64): Delete.
1011         (adddi3_extend_sp32): Use CCCmode for the carry.
1012         (cmp_plus patterns): Use CCNZ/CCXNZ mode and add C variants.
1013         (subdi3): Call gen_subdi3_sp32.
1014         (subdi3_insn_sp32): Rename to...
1015         (subdi3_sp32): ...this and use CCmode for the carry.
1016         (subx_extend_sp32): Use CCCmode for the carry.
1017         (subx_extend_sp64): Delete.
1018         (subdi3_extend_sp32): Use CCmode for the carry.
1019         (cmp_minus patterns): Use CCNZ/CCXNZ mode and add C variants.
1020         (negdi3): Call gen_negdi3_sp32.
1021         (negdi3_sp32): Use CCCmode for the carry.
1022         (cmp_neg patterns): Use CCNZ/CCXNZ mode and add C variants.
1023         (cmp_nz_ashift_1): Use CCNZ mode.
1024         (cmp_nz_set_ashift_1): Likewise.
1025         (ctrapsi4): Use comparison_operator predicate.
1026         (ctrapdi4): Likewise.
1027         (trapsi_insn): Use icc_comparison_operator predicate.
1028         (trapdi_insn): Likewise.
1029         (edge8 patterns): Use CCNZmode.
1030         (edge16 patterns): Likewise.
1031         (edge32 patterns): Likewise.
1033 2016-10-11  Eric Botcazou  <ebotcazou@adacore.com>
1035         * config/visium/visium-modes.def (CC_NOOV): Rename into...
1036         (CCNZ): ...this.
1037         (CC_BTST): Rename into...
1038         (CCC): ...this.
1039         * config/visium/predicates.md (real_add_operand): New.
1040         (visium_btst_operator): Rename into...
1041         (visium_equality_comparison_operator): ...this.
1042         (visium_noov_operator): Rename into...
1043         (visium_nz_comparison_operator): ...this.
1044         (visium_c_comparison_operator): New.
1045         (visium_branch_operator): Adjust and deal with all CC modes.
1046         * config/visium/visium.c (visium_adjust_cost): Adjust.
1047         (visium_split_double_add): Use the *_set_carry patterns.
1048         (visium_select_cc_mode): Add support for CCC mode and adjust.
1049         (output_cbranch): Adjust and use the carry-based operators for
1050         floating-point comparisons.
1051         * config/visium/visium.md (flags_subst_arith): Adjust.
1052         (addsi3_insn_set_carry): New instruction.
1053         (subsi3_insn_set_carry): Likewise.
1054         (negsi2_insn_set_carry): Likewise.
1055         (btst): Adjust.
1056         (cmp<mode>_sne): Likewise.
1057         (cbranch<mode>4): Use ordered_comparison_operator.
1058         (cbranch<mode>4_insn): Likewise.
1059         (cbranchsi4_btst_insn): Adjust.
1061 2016-10-11  Tom de Vries  <tom@codesourcery.com>
1063         PR middle-end/77558
1064         * builtins.c (std_canonical_va_list_type): Remove RECORD_TYPE
1065         special-casing.
1067 2016-10-11  Eric Botcazou  <ebotcazou@adacore.com>
1069         * tree.h (build_complex_type): Add second parameter with default.
1070         * tree.c (build_complex_type): Add NAMED second parameter and adjust
1071         recursive call.  Create a TYPE_DECL only if NAMED is true.
1072         (build_common_tree_nodes): Pass true in calls to build_complex_type.
1074 2016-10-11  Georg-Johann Lay  <avr@gjlay.de>
1076         New avr-passes.def to register AVR specific passes.
1078         * config/avr/avr-passes.def: New file.
1079         * config/avr/t-avr (PASSES_EXTRA): Add avr-passes.def.
1080         * config/avr/avr-protos.h (gcc::context, rtl_opt_pass): Declare.
1081         (make_avr_pass_recompute_note): New proto.
1082         * config/avr/avr.c (make_avr_pass_recompute_notes): New function.
1083         (avr_pass_recompute_notes): Use anonymous namespace.
1084         (avr_register_passes): Remove function...
1085         (avr_option_override): ...and its call.
1087 2016-10-11  Robert Suchanek  <robert.suchanek@imgtec.com>
1089         * config/mips/mips-cpus.def: Replace PTF_AVOID_BRANCHLIKELY with
1090         PTF_AVOID_BRANCHLIKELY_ALWAYS for generic architecture and with
1091         PTF_AVOID_BRANCHLIKELY_SPEED for others.
1092         (mips2, mips3, mips4): Add PTF_AVOID_BRANCHLIKELY_SIZE to tune
1093         flags.
1094         * config/mips/mips.c (mips_option_override): Enable the branch
1095         likely depending on the tune flags and optimization level.
1096         * config/mips/mips.h (PTF_AVOID_BRANCHLIKELY): Remove.
1097         (PTF_AVOID_BRANCHLIKELY_SPEED): Define.
1098         (PTF_AVOID_BRANCHLIKELY_SIZE): Likewise.
1099         (PTF_AVOID_BRANCHLIKELY_ALWAYS): Likewise.
1101 2016-10-11  Richard Biener  <rguenther@suse.de>
1103         * lto-streamer-out.c (collect_block_tree_leafs): New helper.
1104         (output_function): Properly stream the whole block tree.
1105         * lto-streamer-in.c (input_function): Likewise.
1107 2016-10-11  Marek Polacek  <polacek@redhat.com>
1109         * Makefile.in (C_COMMON_OBJS): Add c-family/c-warn.o.
1111 2016-10-11  Kugan Vivekanandarajah  <kuganv@linaro.org>
1113         * tree-vrp.c (evrp_dom_walker::try_add_new_range): New.
1114         (evrp_dom_walker::before_dom_children): Infer and push new value
1115         ranges for x in y < x.
1117 2016-10-10  Joseph Myers  <joseph@codesourcery.com>
1119         PR target/77586
1120         * config/ia64/ia64.c (ia64_libgcc_floating_mode_supported_p)
1121         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
1122         * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Likewise.
1123         * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Likewise.
1124         * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
1125         (IA64_NO_LIBGCC_TFMODE): Likewise.
1127 2016-10-11  Kugan Vivekanandarajah  <kuganv@linaro.org>
1129         * tree-vrp.c (vrp_intersect_ranges_1): Allocate bitmap before
1130           copying.
1132 2016-10-10  Andreas Tobler  <andreast@gcc.gnu.org>
1134         * config.gcc: Add aarch64-*-freebsd* support.
1135         * config.host: Likewise.
1136         * config/aarch64/aarch64-freebsd.h: New file.
1137         * config/aarch64/t-aarch64-freebsd: Ditto.
1139 2016-10-10  Jeff Law  <law@redhat.com>
1141         PR tree-optimization/71947
1142         * tree-ssa-dom.c (cprop_into_stmt): Avoid replacing A with B, then
1143         B with A within a single statement.
1145 2016-10-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1147         PR tree-optimization/77824
1148         * gimple-ssa-strength-reduction.c (stmt_cost): Explicitly return
1149         zero cost for copies.
1150         (find_candidates_dom_walker::before_dom_children): Replace
1151         MODIFY_EXPR with SSA_NAME.
1152         (replace_mult_candidate): Likewise.
1153         (replace_profitable_candidates): Likewise.
1155 2016-10-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1157         * config/s390/s390.h: Wrap more macros args in brackets and fix
1159 2016-10-10  Georg-Johann Lay  <avr@gjlay.de>
1161         * config/avr/gen-avr-mmcu-texi.c (string.h): Include.
1163 2016-10-10  Andreas Schwab  <schwab@suse.de>
1165         PR target/77738
1166         * config/ia64/ia64.md ("doloop_end"): Reject if mode of loop
1167         pseudo is not DImode.
1169 2016-10-10  Claudiu Zissulescu  <claziss@synopsys.com>
1171         * common/config/arc/arc-common.c (arc_option_optimization_table):
1172         Remove compact casesi option.
1173         * config/arc/arc.c (arc_override_options): Use compact casesi
1174         option only for pre-ARCv2 cores.
1175         * doc/invoke.texi (mcompact-casesi): Update text.
1177 2016-10-09  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
1179         * config/rs6000/rs6000.h (TARGET_EFFICIENT_OVERLAPPING_UNALIGNED):
1180         Add macro to say we can efficiently handle overlapping unaligned
1181         loads.
1182         * config/rs6000/rs6000.c (expand_block_compare): Avoid generating
1183         poor code for processors older than p8.
1185 2016-10-09  Eric Botcazou  <ebotcazou@adacore.com>
1187         * gen-pass-instances.awk: Remove GNUism.
1189 2016-10-09  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
1191         * ipa-prop.c (ipcp_transform_function): Set fields m_vr and bits to
1192         NULL of (*ipcp_transformations)][node->uid].
1194 2016-10-09  John David Anglin  <danglin@gcc.gnu.org>
1196         * config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
1197         (MALLOC_ABI_ALIGNMENT): Define.
1199 2016-10-09  Jakub Jelinek  <jakub@redhat.com>
1201         * tree-ssa.c (target_for_debug_bind, verify_phi_args,
1202         ssa_undefined_value_p, maybe_optimize_var): Use VAR_P and/or
1203         VAR_OR_FUNCTION_DECL_P macros.
1204         * tree-chkp.c (chkp_register_var_initializer, chkp_make_static_bounds,
1205         chkp_get_bounds_for_decl_addr, chkp_parse_array_and_component_ref,
1206         chkp_find_bounds_1): Likewise.
1207         * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Likewise.
1208         * hsa-gen.c (get_symbol_for_decl): Likewise.
1209         * cgraphunit.c (check_global_declaration, analyze_functions,
1210         handle_alias_pairs, thunk_adjust, cgraph_node::expand_thunk):
1211         Likewise.
1212         * gimple-fold.c (can_refer_decl_in_current_unit_p,
1213         canonicalize_constructor_val, gimple_get_virt_method_for_vtable):
1214         Likewise.
1215         * tree.c (set_decl_section_name, copy_node_stat,
1216         need_assembler_name_p, free_lang_data_in_decl, find_decls_types_r,
1217         merge_dllimport_decl_attributes, handle_dll_attribute,
1218         decl_init_priority_insert, auto_var_in_fn_p, array_at_struct_end_p,
1219         verify_type): Likewise.
1220         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior,
1221         find_explicit_erroneous_behavior): Likewise.
1222         * sdbout.c (sdbout_toplevel_data, sdbout_late_global_decl): Likewise.
1223         * ipa.c (process_references): Likewise.
1224         * tree-chkp-opt.c (chkp_get_check_result): Likewise.
1225         * varasm.c (get_block_for_decl, use_blocks_for_decl_p, make_decl_rtl,
1226         notice_global_symbol, assemble_variable, mark_decl_referenced,
1227         build_constant_desc, output_constant_def_contents, do_assemble_alias,
1228         make_decl_one_only, default_section_type_flags,
1229         categorize_decl_for_section, default_encode_section_info): Likewise.
1230         * trans-mem.c (requires_barrier): Likewise.
1231         * gimple-expr.c (mark_addressable): Likewise.
1232         * cfgexpand.c (add_scope_conflicts_1, expand_one_var,
1233         expand_used_vars_for_block, clear_tree_used, stack_protect_decl_p,
1234         expand_debug_expr): Likewise.
1235         * tree-dump.c (dequeue_and_dump): Likewise.
1236         * ubsan.c (instrument_bool_enum_load): Likewise.
1237         * tree-pretty-print.c (print_declaration): Likewise.
1238         * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
1239         * tree-ssa-uninit.c (warn_uninitialized_vars): Likewise.
1240         * asan.c (asan_protect_global, instrument_derefs): Likewise.
1241         * tree-into-ssa.c (rewrite_stmt, maybe_register_def,
1242         pass_build_ssa::execute): Likewise.
1243         * var-tracking.c (var_debug_decl, track_expr_p): Likewise.
1244         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost, split_address_cost):
1245         Likewise.
1246         * ipa-split.c (test_nonssa_use, consider_split, mark_nonssa_use):
1247         Likewise.
1248         * tree-inline.c (insert_debug_decl_map, remap_ssa_name,
1249         can_be_nonlocal, remap_decls, copy_debug_stmt,
1250         initialize_inlined_parameters, add_local_variables,
1251         reset_debug_binding, replace_locals_op): Likewise.
1252         * dse.c (can_escape): Likewise.
1253         * ipa-devirt.c (compare_virtual_tables, referenced_from_vtable_p):
1254         Likewise.
1255         * tree-diagnostic.c (default_tree_printer): Likewise.
1256         * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
1257         unpack_ts_decl_with_vis_value_fields,
1258         lto_input_ts_decl_common_tree_pointers): Likewise.
1259         * builtins.c (builtin_save_expr, fold_builtin_expect,
1260         readonly_data_expr): Likewise.
1261         * tree-ssa-structalias.c (new_var_info, get_constraint_for_ssa_var,
1262         create_variable_info_for, set_uids_in_ptset, visit_loadstore):
1263         Likewise.
1264         * gimple-streamer-out.c (output_gimple_stmt): Likewise.
1265         * gimplify.c (force_constant_size, gimplify_bind_expr,
1266         gimplify_decl_expr, gimplify_var_or_parm_decl,
1267         gimplify_compound_lval, gimplify_init_constructor,
1268         gimplify_modify_expr, gimplify_asm_expr, gimplify_oacc_declare,
1269         gimplify_type_sizes): Likewise.
1270         * cgraphbuild.c (record_reference, record_type_list, mark_address,
1271         mark_load, mark_store, pass_build_cgraph_edges::execute): Likewise.
1272         * tree-ssa-live.c (mark_all_vars_used_1, remove_unused_scope_block_p,
1273         remove_unused_locals): Likewise.
1274         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p, ptrs_compare_unequal,
1275         ref_maybe_used_by_call_p_1, call_may_clobber_ref_p_1): Likewise.
1276         * function.c (instantiate_expr, instantiate_decls_1,
1277         setjmp_vars_warning, add_local_decl): Likewise.
1278         * alias.c (ao_ref_from_mem, get_alias_set, compare_base_symbol_refs):
1279         Likewise.
1280         * tree-stdarg.c (find_va_list_reference, va_list_counter_struct_op,
1281         va_list_ptr_read, va_list_ptr_write, check_all_va_list_escapes,
1282         optimize_va_list_gpr_fpr_size): Likewise.
1283         * tree-nrv.c (pass_nrv::execute): Likewise.
1284         * tsan.c (instrument_expr): Likewise.
1285         * tree-ssa-dce.c (remove_dead_stmt): Likewise.
1286         * vtable-verify.c (verify_bb_vtables): Likewise.
1287         * tree-dfa.c (ssa_default_def, set_ssa_default_def,
1288         get_ref_base_and_extent): Likewise.
1289         * toplev.c (wrapup_global_declaration_1, wrapup_global_declaration_2):
1290         Likewise.
1291         * tree-sra.c (static bool constant_decl_p, find_var_candidates,
1292         analyze_all_variable_accesses): Likewise.
1293         * tree-nested.c (get_nonlocal_debug_decl,
1294         convert_nonlocal_omp_clauses, note_nonlocal_vla_type,
1295         note_nonlocal_block_vlas, convert_nonlocal_reference_stmt,
1296         get_local_debug_decl, convert_local_omp_clauses,
1297         convert_local_reference_stmt, nesting_copy_decl, remap_vla_decls):
1298         Likewise.
1299         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Likewise.
1300         * stmt.c (decl_overlaps_hard_reg_set_p): Likewise.
1301         * dbxout.c (dbxout_late_global_decl, dbxout_type_fields,
1302         dbxout_symbol, dbxout_common_check): Likewise.
1303         * expr.c (expand_assignment, expand_expr_real_2, expand_expr_real_1,
1304         string_constant): Likewise.
1305         * hsa.c (hsa_get_declaration_name): Likewise.
1306         * passes.c (rest_of_decl_compilation): Likewise.
1307         * tree-ssanames.c (make_ssa_name_fn): Likewise.
1308         * tree-streamer-out.c (pack_ts_decl_common_value_fields,
1309         pack_ts_decl_with_vis_value_fields,
1310         write_ts_decl_common_tree_pointers): Likewise.
1311         * stor-layout.c (place_field): Likewise.
1312         * symtab.c (symtab_node::maybe_create_reference,
1313         symtab_node::verify_base, symtab_node::make_decl_local,
1314         symtab_node::copy_visibility_from,
1315         symtab_node::can_increase_alignment_p): Likewise.
1316         * dwarf2out.c (add_var_loc_to_decl, tls_mem_loc_descriptor,
1317         decl_by_reference_p, reference_to_unused, rtl_for_decl_location,
1318         fortran_common, add_location_or_const_value_attribute,
1319         add_scalar_info, add_linkage_name, set_block_abstract_flags,
1320         local_function_static, gen_variable_die, dwarf2out_late_global_decl,
1321         optimize_one_addr_into_implicit_ptr,
1322         optimize_location_into_implicit_ptr): Likewise.
1323         * gimple-low.c (record_vars_into): Likewise.
1324         * ipa-visibility.c (update_vtable_references): Likewise.
1325         * tree-ssa-address.c (fixed_address_object_p, copy_ref_info):
1326         Likewise.
1327         * lto-streamer-out.c (tree_is_indexable, get_symbol_initial_value,
1328         DFS::DFS_write_tree_body, write_symbol): Likewise.
1329         * langhooks.c (lhd_warn_unused_global_decl,
1330         lhd_set_decl_assembler_name): Likewise.
1331         * attribs.c (decl_attributes): Likewise.
1332         * except.c (output_ttype): Likewise.
1333         * varpool.c (varpool_node::get_create, ctor_for_folding,
1334         varpool_node::assemble_decl, varpool_node::create_alias): Likewise.
1335         * fold-const.c (fold_unary_loc): Likewise.
1336         * ipa-prop.c (ipa_compute_jump_functions_for_edge,
1337         ipa_find_agg_cst_from_init): Likewise.
1338         * omp-low.c (expand_omp_regimplify_p, expand_omp_taskreg,
1339         expand_omp_target, lower_omp_regimplify_p,
1340         grid_reg_assignment_to_local_var_p, grid_remap_prebody_decls,
1341         find_link_var_op): Likewise.
1342         * tree-chrec.c (chrec_contains_symbols): Likewise.
1343         * tree-cfg.c (verify_address, verify_expr, verify_expr_location_1,
1344         gimple_duplicate_bb, move_stmt_op, replace_block_vars_by_duplicates,
1345         execute_fixup_cfg): Likewise.
1347         PR tree-optimization/77901
1348         * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Only optimize
1349         if ranges[i].exp is SSA_NAME when looking for >= and only when
1350         ranges[i].exp is NULL or SSA_NAME when looking for the other
1351         comparison.
1353 2016-10-09  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
1355         * ipa-cp.c (ipcp_alignment_lattice): Remove.
1356         (ipcp_param_lattices): Remove field alignment.
1357         (print_all_lattices): Remove call to ipcp_alignment_lattice::print.
1358         (set_all_contains_variable): Remove call to
1359         ipcp_alignment_lattice::set_to_bottom.
1360         (initialize_node_lattices): Likewise.
1361         (propagate_alignment_accross_jump_function): Remove.
1362         (propagate_constants_accross_call): Remove call to
1363         propagate_alignment_accross_jump_function.
1364         (ipcp_store_alignment_results): Remove.
1365         (ipcp_driver): Remove call to ipcp_store_alignment_results.
1366         (propagate_bits_accross_jump_function): Handle ancestor jump function.
1367         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Remove
1368         pretty-printing of alignment jump function.
1369         (ipa_set_jf_unknown): Remove assignment to jfunc->alignment.known.
1370         (ipa_compute_jump_functions_for_edge): Adjust ipa_bits jump function for
1371         alignments and remove computing ipa_alignment jump function.
1372         (ipa_node_params_t::duplicate): Remove copying of src_trans->alignments.
1373         (ipa_write_jump_functions): Remove streaming for ipa_alignment.
1374         (ipa_read_jump_function): Remove reading of ipa_alignment.
1375         (write_ipcp_transformation_info): Remove streaming for alignment
1376         propagation summary.
1377         (read_ipcp_transformation_info): Remove reading of alignment
1378         propagation summary.
1379         (ipcp_update_alignments): Remove.
1380         (ipcp_update_bits): Adjust to set alignment for parameters of pointer
1381         type.
1382         (ipcp_transform_function): Remove call to ipcp_update_alignments()
1383         and remove assignment to (*ipcp_transformations)[node->uid].alignments.
1384         * ipa-prop.h (ipa_alignment): Remove.
1385         (ipa_jump_func): Remove field alignment.
1386         (ipcp_transformation_summary): Remove field alignments.
1387         * doc/invoke.texi: Mark fipa-cp-alignment as obsolete.
1388         * opts.c (default_options_table): Remove entry for fipa-cp-alignment.
1389         (enable_fdo_optimizations): Remove checking for fipa-cp-alignment.
1391 2016-10-08  Eric Botcazou  <ebotcazou@adacore.com>
1393         * config/sparc/sparc.h (FIXED_REGISTERS): Add %icc.
1395         * config/visium/visium.c (visium_expand_int_cstore): Revert latest
1396         change.
1397         (visium_expand_fp_cstore): Likewise.
1399 2016-10-08  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
1401         * diagnostic-core.h (warning_at_rich_loc_n): Declare.
1402         * diagnostic.c (warning_at_rich_loc_n): New function.
1403         (diagnostic_n_impl_richloc): Likewise.
1404         (diagnostic_n_impl): Move most of the function to
1405         diagnostic_n_impl_richloc and call it.
1407 2016-10-08  Jakub Jelinek  <jakub@redhat.com>
1409         * gen-pass-instances.awk: Rewritten.
1410         * Makefile.in (pass-instances.def): Depend on $(PASSES_EXTRA), pass
1411         $(PASSES_EXTRA) after passes.def to the script.
1412         * config/i386/t-i386 (PASSES_EXTRA): Add i386-passes.def.
1413         * config/i386/i386-passes.def: New file.
1414         * config/i386/i386-protos.h (make_pass_insert_vzeroupper,
1415         make_pass_stv): Declare.
1416         * config/i386/i386.c (pass_stv::pass_stv): Initialize timode_p to
1417         false.
1418         (pass_stv::gate): Depending on timode_p member require TARGET_64BIT
1419         or !TARGET_64BIT.
1420         (pass_stv::clone, pass_stv::set_pass_param): New methods.
1421         (pass_stv::timode_p): New non-static data member.
1422         (ix86_option_override): Don't register passes here.
1424         * doc/invoke.texi: Document accepting Else, fallthrough.
1426         * doc/invoke.texi (-Wimplicit-fallthrough): Document FALLTHRU comment
1427         style changes.
1429         * doc/invoke.texi (-Wimplicit-fallthrough): Document the accepted
1430         FALLTHRU comment styles.
1432 2016-10-07  Andrew Pinski  <apinski@cavium.com>
1434         * config/aarch64/aarch64-arches.def (AARCH64_ARCH): #undef at the end.
1435         * config/aarch64/aarch64-cores.def (AARCH64_CORE): Likewise.
1436         * config/aarch64/aarch64-fusion-pairs.def (AARCH64_FUSION_PAIR):
1437         Likewise.
1438         * config/aarch64/aarch64-option-extensions.def (AARCH64_OPT_EXTENSION):
1439         Likewise.
1440         * config/aarch64/aarch64-tuning-flags.def (AARCH64_EXTRA_TUNING_OPTION):
1441         Likewise.
1442         * config/aarch64/aarch64-opts.h (AARCH64_CORE): Don't #undef here.
1443         (AARCH64_ARCH): Likewise.
1444         * common/config/aarch64/aarch64-common.c (AARCH64_OPT_EXTENSION):
1445         Likewise.
1446         (AARCH64_CORE): Likewise.
1447         (AARCH64_ARCH): Likewise.
1448         * config/aarch64/aarch64-protos.h (AARCH64_FUSION_PAIR): Likewise.
1449         (AARCH64_EXTRA_TUNING_OPTION): Likewise.
1450         * config/aarch64/aarch64.c (AARCH64_FUION_PAIR): Likewise.
1451         (AARCH64_EXTRA_TUNING_OPTION): Likewise.
1452         (AARCH64_ARCH): Likewise.
1453         (AARCH64_CORE): Likewise.
1454         * config/aarch64/aarch64.h (AARCH64_CORE): Likewise.
1455         * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Likewise.
1456         (AARCH64_CORE): Likewise.
1457         (AARCH64_ARCH): Likewise.
1459 2016-10-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
1461         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Split
1462         -mfloat128 into -mfloat128-type that enables the IEEE 128-bit
1463         floating point type infrastructre, and -mfloat128 that enables the
1464         keyword.  Define __FLOAT128__ if -mfloat128, and __FLOAT128_TYPE__
1465         if -mfloat128-type.  Define __ibm128 to be long double by default.
1466         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print whether
1467         the IEEE 128-bit floating point type infrastructure should
1468         automatically be enabled.
1469         (rs6000_init_hard_regno_mode_ok): Switch to use -mfloat128-type
1470         instead of -mfloat128 to enable KFmode.
1471         (rs6000_option_override_internal): Split the option -mfloat128
1472         into -mfloat128-type and -mfloat128.  On Linux PowerPC 64-bit
1473         systems, automatically set -mfloat128-type, but don't enable it on
1474         other operating systems.  Move setting the long double size and
1475         IEEE quad support before the IEEE 128-bit floating point changes.
1476         (rs6000_init_builtins): Do not create a unique type for __ibm128
1477         if long double is IBM extended double, instead rely on __ibm128
1478         being defined as 'long double'.  If -mfloat128-type and not
1479         -mfloat128, create the KFmode type with an undocumented __ieee128
1480         keyword.
1481         (rs6000_init_libfuncs): Use -mfloat128-type instead of
1482         -mfloat128 for tests about the types, but keep tests for
1483         -mfloat128 to enable the keyword support.
1484         (rs6000_complex_function_value): Likewise.
1485         (rs6000_scalar_mode_supported_p): Likewise.
1486         (rs6000_floatn_mode): Likewise.
1487         (rs6000_c_mode_for_suffix): Likewise.
1488         (rs6000_opt_masks): Add -mfloat128-type.
1489         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add support for
1490         -mfloat128-type being split from -mfloat128.  Add
1491         -mfloat128-hardware, which was missing.
1492         * config/rs6000/rs6000.opt (-mfloat128): Split -mfloat128 into
1493         -mfloat128 and -mfloat128-type:
1494         (-mfloat128-type): Likewise.
1495         * config/rs6000/linux64.h (TARGET_FLOAT128_ENABLE_TYPE): Define so
1496         that 64-bit Linux systems with enable -mfloat128-type by default
1497         on VSX systems.
1498         * config/rs6000/rs6000.h (TARGET_FLOAT128_ENABLE_TYPE): Likewise.
1499         (FLOAT128_VECTOR_P): Switch IEEE 128-bit floating points to use
1500         -mfloat128-type instead of -mfloat128.
1501         (FLOAT128_2REG_P): Likewise.
1502         (MASK_FLOAT128_TYPE): Likewise.
1503         (ALTIVEC_ARG_MAX_RETURN): Likewise.
1504         (RS6000_BTM_FLOAT128): Likewise.
1505         (TARGET_FLOAT128): Poison old identifiers.
1506         (OPTION_MASK_FLOAT128): Likewise.
1507         (MASK_FLOAT128): Likewise.
1508         * config/rs6000/rs6000.md (FP): Likewise.
1509         (FLOAT128): Likewise.
1510         (fix_trunc<mode>di2): Likewise.
1511         (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
1512         (floatdi<mode>2): Likewise.
1513         (floatuns<SDI:mode><IEEE128:mode>2): Likewise.
1514         (neg<mode>2, FLOAT128 iterator): Likewise.
1515         (abs<mode>2, FLOAT128 iterator): Likewise.
1516         (ieee_128bit_negative_zero): Likewise.
1517         (ieee_128bit_vsx_neg<mode>2): Likewise.
1518         (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
1519         (ieee_128bit_vsx_abs<mode>2): Likewise.
1520         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
1521         (ieee_128bit_vsx_nabs<mode>2): Likewise.
1522         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
1523         (extendiftf2): Likewise.
1524         (extendifkf2): Likewise.
1525         (extendtfkf2): Likewise.
1526         (trunciftf2): Likewise.
1527         (truncifkf2): Likewise.
1528         (trunckftf2): Likewise.
1529         (trunctfif2): Likewise.
1530         (extendkftf2): Likewise.
1531         (trunctfkf2): Likewise.
1533 2016-10-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1535         * simplify-rtx.c (simplify_immed_subreg): Zero-initialize tmp array
1536         before merging in bytes to pass down to real_from_target.
1538 2016-10-07  Richard Biener  <rguenther@suse.de>
1540         * tree-ssa-propagate.c (replace_phi_args_in): Remove no longer
1541         required hack.
1542         (substitute_and_fold_dom_walker::before_dom_children):
1543         Substitute and fold before pass specific folding to avoid
1544         feeding that with SSA names that will be later released.
1545         * tree-ssa-ccp.c (get_value_for_expr): Guard for new SSA names
1546         introduced by folding and visited by evaluate_stmt called during
1547         ccp_fold_stmt.
1548         (likely_value): Likewise.
1549         (evaluate_stmt): Likewise.
1550         * tree-vrp.c (simplify_truth_ops_using_ranges): Fold modified stmt.
1551         (simplify_div_or_mod_using_ranges): Likewise.
1552         (simplify_min_or_max_using_ranges): Likewise.
1553         (simplify_abs_using_ranges): Likewise.
1554         (simplify_conversion_using_ranges): Likewise.
1555         (simplify_float_conversion_using_ranges): Likewise.
1556         (simplify_stmt_using_ranges): Likewise.
1558 2016-10-07  Marek Polacek  <polacek@redhat.com>
1560         * gimplify.c (should_warn_for_implicit_fallthrough): Check for
1561         FALLTHROUGH_LABEL_P here...
1562         (warn_implicit_fallthrough_r): ...not here.
1564 2016-10-07  Bernd Schmidt  <bschmidt@redhat.com>
1566         PR tree-optimization/77880
1567         * expr.c (by_pieces_ninsns): Use unsigned HOST_WIDE_INT where
1568         necessary.
1570 2016-10-07  Marek Polacek  <polacek@redhat.com>
1572         PR c++/77803
1573         * gimplify.c (last_stmt_in_scope): Add check for FALLTHROUGH ().
1575 2016-10-07  Richard Biener  <rguenther@suse.de>
1577         * bitmap.h: Document constraints on bitmap modification while
1578         iterating over it.
1580 2016-10-07  Richard Biener  <rguenther@suse.de>
1582         * bitmap.c (bitmap_elem_to_freelist): Set indx to -1.
1583         * bitmap.h (bmp_iter_set): When advancing to the next element
1584         check that we didn't remove the current one.
1585         (bmp_iter_and): Likewise.
1586         (bmp_iter_and_compl): Likewise.
1587         * tree-ssa.c (release_defs_bitset): Do not remove worklist bit
1588         we currently iterate on but keep a one-level queue.
1589         * sched-deps.c (remove_from_deps): Do not clear current bit
1590         but keep a one-level queue.
1592 2016-10-07  Jakub Jelinek  <jakub@redhat.com>
1594         PR tree-optimization/77664
1595         * tree-ssa-reassoc.c (update_range_test): Also clear low and high
1596         for the other ranges.
1597         (optimize_range_tests_diff): Fix up formatting.
1598         (optimize_range_tests_var_bound): New function.
1599         (optimize_range_tests): Use it.
1601 2016-10-07  Martin Liska  <mliska@suse.cz>
1603         * coverage.c (build_gcov_exit_decl): Fix priority what
1604         should be really 99.
1606 2016-10-07  Richard Biener  <rguenther@suse.de>
1608         * gimple-low.c (lower_gimple_bind): Clear DECL_CHAIN of
1609         vars in gimple_bind_vars but not in BLOCK_VARS.
1611 2016-10-07  Richard Biener  <rguenther@suse.de>
1613         PR tree-optimization/77879
1614         * tree-ssa-structalias.c (handle_const_call): Properly handle
1615         NRV return slots.
1616         (handle_pure_call): Likewise.
1618 2016-10-06  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
1620         * config/rs6000/rs6000.c (rs6000_elf_asm_out_constructor)
1621         (rs6000_elf_asm_out_destructor): increase size of buf to avoid
1622         possible overflow.
1624 2016-10-06  Andrew Pinski  <apinski@cavium.com>
1626         * config/aarch64/aarch64-cores.def: Add a comment before each
1627         set of cores.
1629 2016-10-06  Kugan Vivekanandarajah  <kuganv@linaro.org>
1631         PR tree-optimization/77862
1632         * tree-vrp.c (add_equivalence): Use get_value_range so that
1633         num_vr_values is checked before accessing vr_values.
1635 2016-10-06  Kugan Vivekanandarajah  <kuganv@linaro.org>
1637         * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
1638           POINTER_TYPE_P.
1640 2016-10-05  Jeff Law  <law@redhat.com>
1642         PR tree-optimization/71661
1643         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Handle case when
1644         removal of a forwarder exposes a new natural loop.
1646 2016-10-06  Uros Bizjak  <ubizjak@gmail.com>
1648         * config/i386/sse.md (andnot<mode>3): Add FALLTHRU comments.
1649         Introduce ssesuffix variable.
1650         (<mask_codefor><code><mode>3<mask_name>): Ditto.
1651         (*<code><mode>3): Ditto.
1653 2016-10-06  Jan Hubicka  <hubicka@ucw.cz>
1655         * postreload.c (reload_cse_simplify): Skip also USE when detecting
1656         noop move.
1658 2016-10-06  Richard Biener  <rguenther@suse.de>
1660         PR tree-optimization/77855
1661         * tree-ssa-pre.c (prune_clobbered_mems): Queue exprs to remove
1662         instead of removing the current item while iterating over the set
1663         which is not safe.
1665 2016-10-06  James Clarke  <jrtc27@jrtc27.com>
1666             Eric Botcazou  <ebotcazou@adacore.com>
1668         PR target/77759
1669         * config/sparc/sparc.c (classify_data_t): Remove int_regs field.
1670         (classify_registers): Don't set it
1671         (function_arg_slotno): Don't initialize and test it.  Tidy up.
1673 2016-10-06  Richard Biener  <rguenther@suse.de>
1675         PR tree-optimization/77839
1676         * tree-ssa-sccvn.c (set_ssa_val_to): Forbid value -> constant value
1677         lattice transition.
1679 2016-10-06  Martin Liska  <mliska@suse.cz>
1681         * gcc.c: Set -fprofile-update=atomic when profiling is
1682         enabled and -pthread is set.  Warn when one combines
1683         -pthread and -fprofile-update=single for an app using
1684         profiling code.
1686 2016-10-06  Martin Liska  <mliska@suse.cz>
1688         PR bootstrap/77788
1689         * expmed.h (mul_highpart_cost_ptr): Add an gcc_assert.
1690         * gimple-ssa-strength-reduction.c (slsr_process_cast):
1691         Initialize a pointer to NULL.
1692         (slsr_process_copy): Likewise.
1693         * input.c (location_get_source_line): Likewise.
1694         * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
1696 2016-10-05  Andrew Senkevich  <andrew.senkevich@intel.com>
1698         * common/config/i386/i386-common.c (OPTION_MASK_ISA_PCOMMIT_UNSET,
1699         OPTION_MASK_ISA_PCOMMIT_SET): Deleted definitions.
1700         (ix86_handle_option): Deleted handle of OPT_mpcommit.
1701         * config.gcc: Deleted pcommitintrin.h
1702         * config/i386/pcommitintrin.h: Deleted file.
1703         * config/i386/cpuid.h (bit_PCOMMIT): Deleted.
1704         * config/i386/driver-i386.c (host_detect_local_cpu): Deleted pcommit
1705         detection.
1706         * config/i386/i386-c.c (ix86_target_macros_internal): Deleted define
1707         __PCOMMIT__.
1708         * config/i386/i386.c (ix86_target_string): Deleted -mpcommit.
1709         (PTA_PCOMMIT): Deleted define.
1710         (ix86_option_override_internal): Deleted handle of option.
1711         (ix86_valid_target_attribute_inner_p): Deleted pcommit.
1712         * config/i386/i386-builtin.def (IX86_BUILTIN_PCOMMIT,
1713         __builtin_ia32_pcommit): Deleted.
1714         * config/i386/i386.h (TARGET_PCOMMIT, TARGET_PCOMMIT_P): Deleted.
1715         * config/i386/i386.md (unspecv): Deleted UNSPECV_PCOMMIT.
1716         (pcommit): Deleted instruction.
1717         * config/i386/i386.opt: Mention -mpcommit deprecation.
1718         * config/i386/x86intrin.h: Deleted inclusion of pcommitintrin.h.
1720 2016-10-05  Uros Bizjak  <ubizjak@gmail.com>
1722         PR target/77874
1723         * config/i386/sse.md (<mask_codefor><code><mode>3<mask_name>):
1724         Remove wrong assert.
1725         (<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>:
1726         Use <round_constraint> as operand 1 constraint.
1728 2016-10-05  Jakub Jelinek  <jakub@redhat.com>
1730         PR sanitizer/66343
1731         * ubsan.c (ubsan_create_data): Call initialize_sanitizer_builtins here.
1732         (ubsan_instrument_float_cast): And not here.
1734         PR sanitizer/66343
1735         * ubsan.c (ubsan_ids): New GTY(()) array.
1736         (ubsan_type_descriptor, ubsan_create_data): Use ubsan_ids
1737         instead of static local counters.
1739 2016-10-05  Martin Sebor  <msebor@redhat.com>
1741         PR bootstrap/77819
1742         * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define macro.
1743         * config/linux.c (gnu_libc_printf_pointer_format): Remove.
1744         * targhooks.c [DEFAULT_LIBC == LIBC_UCLIBC) && SINGLE_LIBC]
1745         (default_printf_pointer_format): Define function.
1746         * targhooks.c (linux_printf_pointer_format): Define new function.
1747         * targhooks.h (linux_printf_pointer_format): Declare.
1748         (gnu_libc_printf_pointer_format): Remove declaration.
1750 2016-10-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1752         * fold-const.c (native_encode_real): Fix logic for selecting offset
1753         to write to when BYTES_BIG_ENDIAN.
1755 2016-10-05  Wilco Dijkstra  <wdijkstr@arm.com>
1757         * builtins.c (fold_builtin_strchr): Remove function.
1758         (fold_builtin_strrchr): Likewise.
1759         (fold_builtin2): Remove strchr, index, strrchr, rindex cases.
1760         * gimple-fold.c (target_char_cst_p): New function.
1761         (gimple_fold_builtin_strchr) Add more foldings.
1762         (gimple_fold_builtin): Add index, strrchr, rindex cases.
1764 2016-10-05  Richard Biener  <rguenther@suse.de>
1766         PR middle-end/77863
1767         * genmatch.c (capture_info::walk_c_expr): Diagnose unknown
1768         capture ids in c-exprs.
1770 2016-10-05  Richard Biener  <rguenther@suse.de>
1772         PR middle-end/77826
1773         * genmatch.c (dt_operand::gen_match_op): Amend operand_equal_p
1774         with types_match for GIMPLE code gen to handle type mismatched
1775         constants properly.
1776         (dt_operand::gen): Adjust.
1777         * match.pd ((X /[ex] A) * A -> X): Properly handle converted
1778         and constant A.
1780 2016-10-05  Richard Biener  <rguenther@suse.de>
1782         * match.pd (copysign(x, CST) -> [-]abs (x)): New pattern.
1784 2016-10-05  Richard Biener  <rguenther@suse.de>
1786         PR middle-end/77842
1787         * genmatch.c (parser::parse_c_expr): Handle premature EOF.
1789 2016-10-05  Pierre-Marie de Rodat  <derodat@adacore.com>
1791         * dwarf2out.c (dwarf2out_imported_module_or_decl): Move DWARF
1792         version check to protect only DW_TAG_imported_module generation.
1794 2016-10-05  Richard Biener  <rguenther@suse.de>
1796         PR middle-end/55152
1797         * match.pd (min(a,-a) -> -abs(a)): New pattern.
1799 2016-10-04  Ian Lance Taylor  <iant@golang.org>
1801         * explow.c (allocate_dynamic_stack_space): Call
1802         do_pending_stack_adjust before handling flag_split_stack.
1804 2016-10-04  David Malcolm  <dmalcolm@redhat.com>
1806         * genattrtab.c (make_internal_attr): Supply dummy column number to
1807         file_location ctor.
1808         (main): Likewise.
1809         * genoutput.c (init_insn_for_nothing): Likewise.
1810         * gensupport.c (add_define_attr): Likewise.
1811         * read-md.c (message_at_1): Print column number.
1812         (fatal_with_file_and_line): Likewise.
1813         (rtx_reader::read_char): Track column numbers.
1814         (rtx_reader::unread_char): Likewise.
1815         (rtx_reader::rtx_reader): Initialize m_read_md_colno.
1816         (rtx_reader::handle_include): Stash and restore m_read_md_colno.
1817         (rtx_reader::handle_file): Initialize m_read_md_colno.
1818         (rtx_reader::get_current_location): Supply column number to
1819         file_location ctor.
1820         * read-md.h (struct file_location): Add field "colno".
1821         (file_location::file_location): Likewise.
1822         (rtx_reader::get_colno): New accessor.
1823         (rtx_reader::m_read_md_colno): New field.
1824         (rtx_reader::m_last_line_colno): New field.
1826 2016-10-04  Jakub Jelinek  <jakub@redhat.com>
1828         * doc/extend.texi (Java Exceptions): Remove.
1829         (java_interface): Remove.
1831 2016-10-04  Doug Gilmore  <doug.gilmore@imgtec.com>
1833         PR tree-optimization/77808
1834         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Check base_addr
1835         and addr are different before copying points-to information.
1837 2016-10-04  Uros Bizjak  <ubizjak@gmail.com>
1839         * config/i386/x86-tune.def (X86_TUNE_VECTORIZE_DOUBLE): Remove.
1840         * config/i386/i386.h (TARGET_VECTORIZE_DOUBLE): Remove.
1841         * config/i386/i386.c (ix86_add_stmt_cost): Use TARGET_BONNEL instead
1842         of !TARGET_VECTORIZE_DOUBLE when penalizing DFmode vector ops.
1844 2016-10-04  Richard Biener  <rguenther@suse.de>
1846         PR tree-optimization/77399
1847         * tree-ssa-forwprop.c (simplify_vector_constructor): Properly
1848         verify the target can convert.
1850 2016-10-04  Richard Biener  <rguenther@suse.de>
1852         PR middle-end/77833
1853         * explow.c (plus_constant): Verify the mode of the constant
1854         pool offset before calling plus_constant.
1856 2016-10-04  Richard Biener  <rguenther@suse.de>
1858         PR middle-end/77407
1859         * match.pd (X / abs (X) -> X < 0 ? -1 : 1): Drop vector
1860         type support, mark with :C.
1861         (X / -X -> -1): Mark with :C.
1863 2016-10-04  Jakub Jelinek  <jakub@redhat.com>
1865         * defaults.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Remove.
1866         * system.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Poison.
1867         * doc/tm.texi.in (TARGET_USE_JCR_SECTION): Remove.
1868         * doc/tm.texi: Regenerated.
1869         * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Remove.
1870         * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Remove.
1871         * config/darwin.h (JCR_SECTION_NAME): Remove.
1872         * config/pa/pa64-hpux.h (JCR_SECTION_NAME): Remove.
1873         * config/rs6000/aix71.h (TARGET_USE_JCR_SECTION): Remove.
1874         * config/rs6000/aix51.h (TARGET_USE_JCR_SECTION): Remove.
1875         * config/rs6000/aix52.h (TARGET_USE_JCR_SECTION): Remove.
1876         * config/rs6000/aix53.h (TARGET_USE_JCR_SECTION): Remove.
1877         * config/rs6000/aix61.h (TARGET_USE_JCR_SECTION): Remove.
1879 2016-10-03  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
1881         * ipa-cp.c (propagate_bits_accross_jump_function): Introduce space
1882         between "because" and "param" in dump message in call to fprintf.
1884 2016-10-03  Jeff Law  <law@redhat.com>
1886         PR tree-optimization/71550
1887         PR tree-optimization/71403
1888         * tree-ssa-threadbackward.c: Include tree-vectorizer.h
1889         (profitable_jump_thread_path): Also return boolean indicating if
1890         the realized path will create an irreducible loop.
1891         Remove loop depth tests from 71403.
1892         (fsm_find_control_statement_thread_paths): Remove loop depth tests
1893         from 71403.  If threading will create an irreducible loop, then
1894         throw away loop iteration and related information.
1896 2016-10-03  Uros Bizjak  <ubizjak@gmail.com>
1898         * configure.ac (strict_warn): Merge -Wmissing-format-attribute and
1899         -Woverloaded-virtual checks for warning options.
1900         * configure: Regenerate.
1902 2016-10-03  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1904         PR preprocessor/77699
1905         * input.c (maybe_grow): Don't allocate one byte extra headroom.
1906         (get_next_line): Return false on error.
1907         (read_next_line): Removed, use get_next_line instead.
1908         (read_line_num): Don't copy the line.
1909         (location_get_source_line): Don't use static data.
1910         (selftest::test_reading_source_line): Add more test cases.
1912 2016-10-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1914         Revert
1915         2016-09-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1917         * ifcvt.c (noce_try_avoid_const_materialization): New function.
1918         (noce_process_if_block): Use it.
1920 2016-10-03  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1922         * doc/invoke.texi: Update -Wint-in-bool-context.
1924 2016-10-02  Jakub Jelinek  <jakub@redhat.com>
1926         * dwarf2out.c (output_fde, output_call_frame_info,
1927         dwarf2out_do_cfi_startproc, set_indirect_string,
1928         gen_internal_sym, output_die, output_line_info): Use
1929         MAX_ARTIFICIAL_LABEL_BYTES as char array sizes for
1930         ASM_GENERATE_INTERNAL_LABEL output.
1932 2016-10-01  Richard Biener  <rguenther@suse.de>
1934         PR middle-end/77798
1935         * genmatch.c (get_operand_type): Add operand position arg
1936         and handle COND_EXPR comparison operand with fixed boolean_type_node.
1937         (expr::gen_transform): Adjust.
1938         (dt_simplify::gen_1): Likewise.
1940 2016-10-01  Jakub Jelinek  <jakub@redhat.com>
1942         * config/i386/sse.md (<mask_codefor><code><mode>): Add FALLTHRU
1943         comments.  Simplify asserts, remove unnecessary conditions.
1944         Formatting fixes.
1945         (*<code><mode>3): Likewise.
1947 2016-09-30  Jakub Jelinek  <jakub@redhat.com>
1949         * doc/invoke.texi (-Wregister): Document.
1951 2016-09-30  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1953         * configure.ac: Split CHECKING_P into CHECKING_P and
1954         ENABLE_EXTRA_CHECKING.
1955         * configure: Regenerated.
1956         * config.in: Adjust commment of CHECKING_P.  Add ENABLE_EXTRA_CHECKING.
1957         * common.opt (flag_checking): Use CHECKING_P and ENABLE_EXTRA_CHECKING.
1959 2016-09-30  Prasad Ghangal  <prasad.ghangal@gmail.com>
1961         PR other/31566
1962         * gcc.c (process_command): For @filename handling, output
1963         the correct name if the file does not exist.
1965 2016-09-30  Marek Polacek  <polacek@redhat.com>
1967         * config/aarch64/aarch64-simd.md: Adjust fall through comments.
1968         * config/alpha/predicates.md: Likewise.
1970 2016-09-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1972         * ifcvt.c (noce_try_avoid_const_materialization): New function.
1973         (noce_process_if_block): Use it.
1975 2016-09-30  Martin Liska  <mliska@suse.cz>
1977         * doc/invoke.texi: Document asan-use-after-return that
1978         it's disabled by default in runtime.
1980 2016-09-30  Richard Biener  <rguenther@suse.de>
1982         * tree-vrp.c (intersect_ranges): If we failed to handle
1983         the intersection choose a constant singleton range if available.
1985 2016-09-30  Richard Biener  <rguenther@suse.de>
1987         PR tree-optimization/77399
1988         * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
1989         float <-> int conversions.
1991 2016-09-30  Alan Modra  <amodra@gmail.com>
1993         * config/rs6000/rs6000.c (rs6000_opt_vars): Revert last change.
1995 2016-09-29  Uros Bizjak  <ubizjak@gmail.com>
1997         * config/i386/driver-i386.c (host_detect_local_cpu): Check maximum
1998         ext_level before calling CPUID with 0x80000008.
1999         Simplify xgetbv checks.
2001 2016-09-29  David Malcolm  <dmalcolm@redhat.com>
2003         * Makefile.in (OBJS): Add print-rtl-function.o.
2004         * print-rtl-function.c: New file.
2005         * print-rtl.h (print_rtx_function): New decl.
2007 2016-09-29  Uros Bizjak  <ubizjak@gmail.com>
2009         PR target/77756
2010         * config/i386/cpuid.h (__get_cpuid_count): New.
2011         (__get_cpuid): Rename __level to __leaf.
2013 2016-09-29  Marek Polacek  <polacek@redhat.com>
2015         * genattrtab.c (write_attr_case): Also emit FALLTHRU marker.
2017 2016-09-29  Bernd Schmidt  <bschmidt@redhat.com>
2019         * builtins.c (expand_builtin_memcmp): don't swap args unless
2020         result is only being compared with zero.
2022 2016-09-29  Marek Polacek  <polacek@redhat.com>
2024         * dwarf2out.c (loc_descriptor): Add fall through comment.
2025         (add_const_value_attribute): Likewise.
2027 2016-09-29  Matthew Wahab  <matthew.wahab@arm.com>
2029         * config/arm/arm.md (*arm_movsi_insn): Replace "t2" arch attribute
2030         with "v6t2".  Move "arch" attribute above "pool_range".
2031         * config/arm/vfp.md (*arm_movhi_vfp): Replace "t2" arch attribute
2032         with "v6t2".
2033         (*thumb2_movhi_vfp): Likewise.
2034         (*arm_movhi_fp16): Likewise.
2035         (*thumb2_movhi_fp16): Likewise.
2036         (*arm_movsi_vfp): Remove "arch" attribute.
2037         (*thumb2_movsi_vfp): Likewise.
2039 2016-09-29  Martin Liska  <mliska@suse.cz>
2041         * doc/extend.texi: Remove limitation of Objective C for
2042         __attribute__((constructor)) and __attribute__((destructor)).
2044 2016-09-29  Richard Biener  <rguenther@suse.de>
2046         PR tree-optimization/77768
2047         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
2048         Handle stores to readonly memory when removing redundant stores.
2050 2016-09-29  Richard Biener  <rguenther@suse.de>
2052         PR middle-end/77407
2053         * match.pd: Add X / abs (X) -> X < 0 ? -1 : 1 and
2054         X / -X -> -1 simplifications.
2056 2016-09-29  Richard Biener  <rguenther@suse.de>
2058         PR middle-end/55152
2059         * match.pd: Add max(a,-a) -> abs(a) pattern.
2060         * tree-ssa-phiopt.c (minmax_replacement): Disable for
2061         HONOR_SIGNED_ZEROS types.
2063 2016-09-29  James Greenhalgh  <james.greenhalgh@arm.com>
2065         * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Remove.
2066         * system.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Poison.
2068 2016-09-29  Richard Biener  <rguenther@suse.de>
2070         * tree-vrp.c (set_defs_to_varying): New helper avoiding
2071         writing to vr_const_varying.
2072         (vrp_initialize): Call it.
2073         (vrp_visit_stmt): Likewise.
2074         (evrp_dom_walker::before_dom_children): Likewise.
2076 2016-09-29  Richard Biener  <rguenther@suse.de>
2078         * tree-vect-stmts.c (vectorizable_load): Avoid emitting vector
2079         constructors with vector elements.
2081 2016-09-29  Richard Biener  <rguenther@suse.de>
2083         PR tree-optimization/77768
2084         * tree-ssa-sccvn.c (visit_reference_op_store): Properly deal
2085         with stores to a place we know has a constant value.
2087 2016-09-29  Alan Modra  <amodra@gmail.com>
2089         * config/rs6000/sysv4.opt (mgnu-attribute): New option.
2090         * doc/invoke.texi: Document it.
2091         * config/rs6000/rs6000.c (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): Define.
2092         (rs6000_passes_float): Comment.
2093         (rs6000_passes_long_double): New static var.
2094         (call_ABI_of_interest): Return false unless rs6000_gnu_attr is set.
2095         (init_cumulative_args): Set up to emit fp .gnu_attribute for
2096         ELF 64-bit ABIs as well as 32-bit ELF.  Correct rs6000_passes_float
2097         to include fp values returned in vectors.
2098         Set rs6000_passes_long_double.
2099         (rs6000_function_arg_advance_1): Likewise for function args.
2100         (rs6000_elf_file_end): Emit fp .gnu_attribute for ELF 64-bit ABIs,
2101         and SPE.  Emit long double tag value too.
2102         (rs6000_opt_vars): Add gnu-attr.
2103         * configure.ac (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): New ppc32 test.
2104         * configure: Regenerate.
2105         * config.in: Regenerate.
2107 2016-09-28  Jakub Jelinek  <jakub@redhat.com>
2109         * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Use x > 0 instead
2110         of 0 < x.
2111         (format_floating, format_string, format_directive,
2112         get_destination_size, pass_sprintf_length::handle_gimple_call):
2113         Likewise.
2115 2016-09-28  Jakub Jelinek  <jakub@redhat.com>
2117         * gimple-ssa-sprintf.c: Fix comment formatting.
2118         (format_integer): Use is_gimple_assign.
2119         (pass_sprintf_length::handle_gimple_call): Use gimple_call_builtin_p
2120         and gimple_call_fndecl.  Reorder case BUILT_IN_SPRINTF_CHK.  Fix up
2121         BUILT_IN_SNPRINTF_CHK comment.  Replace "to to" with "to" in comment.
2122         (pass_sprintf_length::execute): Use is_gimple_call.
2124 2016-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
2126         * gimple-fold.c (gimple_fold_builtin): After failing to fold
2127         strchr, also try the generic folding.
2129 2016-09-28  Martin Sebor  <msebor@redhat.com>
2131         PR c/77762
2132         * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call):
2133         Fix typos.
2135 2016-09-28  Martin Sebor  <msebor@redhat.com>
2137         PR middle-end/77683
2138         * gimple-ssa-sprintf.c (format_integer): Fail gracefully when
2139         length modifier is not expected.
2140         (format_floating): Ignore l length modifier and fail gracefuly
2141         when it isn't one of the other expected ones.
2143 2016-09-28  Martin Sebor  <msebor@redhat.com>
2145         PR bootstrap/77753
2146         * varasm.c (assemble_addr_to_section): Increase local buffer size.
2148 2016-09-27  Richard Biener  <rguenther@suse.de>
2150         * dwarf2out.c (cu_die_list): New global.
2151         (dwarf2out_finish): Walk cu_die_list instead of limbo DIEs.  Add
2152         main_comp_unit_die to cu_die_list if we created it.
2153         Move break_out_includes ...
2154         (dwarf2out_early_finish): ... here.  Push created CU DIEs onto
2155         the cu_die_list.
2157 2016-09-28  Richard Biener  <rguenther@suse.de>
2159         * dwarf2out.c (struct die_struct): Add removed flag.
2160         (lookup_type_die): If the DIE is marked as removed, clear
2161         TYPE_SYMTAB_DIE and return NULL.
2162         (lookup_decl_die): If the DIE is marked as removed, remove it
2163         from the hash and return NULL.
2164         (mark_removed): New helper.
2165         (prune_unused_types_prune): Call it for removed DIEs.
2166         (gen_subprogram_die): Move the premark_used_types call to after
2167         DIEs for the functions scopes are generated.
2168         (process_scope_var): Do not re-create pruned types or type decls.
2169         Make sure to also re-parent type decls.
2170         (dwarf2out_finish): Move unused type pruning and debug_types
2171         handling ...
2172         (dwarf2out_early_finish): ... here.
2174 2016-09-29  Claudiu Zissulescu  <claziss@synopsys.com>
2176         * config/arc/arc-c.c: New file.
2177         * config/arc/arc-c.def: Likewise.
2178         * config/arc/t-arc: Likewise.
2179         * config.gcc: Include arc-c.o as c and cpp object.
2180         * config/arc/arc-protos.h (arc_cpu_cpp_builtins): Add prototype.
2181         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Use
2182         arc_cpu_cpp_builtins.
2184 2016-09-29  Claudiu Zissulescu  <claziss@synopsys.com>
2186         * config/arc/arc.md (*rotrsi3_cnt1): New pattern.
2187         (*ashlsi2_cnt1, *lshrsi3_cnt1, *ashrsi3_cnt1): Likewise.
2189 2016-09-28  Nathan Sidwell  <nathan@acm.org>
2191         * gimple-pretty-print.c (dump_gimple_call_args): Simplify "' "
2192         printing.
2194 2016-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
2196         PR tree-optimization/61056
2197         * gimple-fold.c (gimple_fold_builtin_strchr):
2198         New function to optimize strchr (s, 0) to strlen.
2199         (gimple_fold_builtin): Add BUILT_IN_STRCHR case.
2201 2016-09-27  Robin Dapp  <rdapp@linux.vnet.ibm.com>
2203         PR tree-optimization/77724
2204         * tree-vect-loop-manip.c (create_intersect_range_checks_index):
2205         Add tree_fits_shwi_p check.
2207 2016-09-27  Jakub Jelinek  <jakub@redhat.com>
2209         * auto-inc-dec.c (try_merge): Remove break after return.
2210         * cselib.c (autoinc_split): Likewise.
2211         * explow.c (promote_mode): Likewise.
2212         * fixed-value.c (fixed_arithmetic): Likewise.
2213         * hsa.c (hsa_internal_fn::get_arity): Likewise.
2214         * rtlanal.c (modified_between_p, modified_in_p): Likewise.
2215         * trans-mem.c (get_attrs_for): Likewise.
2216         * tree-if-conv.c (if_convertible_stmt_p): Likewise.
2217         * tree-vrp.c (simplify_stmt_using_ranges): Likewise.
2218         * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Likewise.
2219         * config/aarch64/aarch64.c (aarch64_get_condition_code_1): Likewise.
2220         * config/c6x/c6x.c (c6x_get_unit_specifier): Likewise.
2221         * config/cr16/cr16.c (legitimate_pic_operand_p): Likewise.
2222         * config/cris/cris.c (cris_op_str): Likewise.
2223         * config/mn10300/mn10300.c (cc_flags_for_code): Likewise.
2224         * config/tilepro/tilepro.c (tilepro_emit_setcc_internal_di): Likewise.
2226 2016-09-27  Nathan Sidwell  <nathan@codesourcery.com>
2228         * internal-fn.h (IFN_UNIQUE_CODES, IFN_GOACC_LOOP_CODES,
2229         IFN_GOACC_REDUCTION_CODES): New.
2230         (enum ifn_unique_kind, enum ifn_goacc_loop_kind, enum
2231         ifn_goacc_reduction_kind): Use them.
2232         * gimple-pretty-print.c (dump_gimple_call_args): Decode first arg
2233         of internal functions, when applicable.
2235 2016-09-27  Maciej W. Rozycki  <macro@imgtec.com>
2237         * config/mips/constraints.md (d): Fix documentation.
2238         * doc/md.texi (Machine Constraints): Update accordingly.
2240 2016-09-27  Richard Biener  <rguenther@suse.de>
2242         * dwarf2out.c (dwarf2out_init): Move text_section_line_info,
2243         cur_line_info_table initialization ...
2244         (dwarf2out_assembly_start): ... here.
2246 2016-09-27  Matthew Wahab  <matthew.wahab@arm.com>
2248         * config/arm/arm.md (*arm_movsi_insn): Add "arch" attribute.
2249         * config/arm/vfp.md (*arm_movhi_vfp): Likewise.
2250         (*thumb2_movhi_vfp): Likewise.
2251         (*arm_movhi_fp16): Remove predication operand from VMOV.F16
2252         template.  Expand predicable attribute to mark VMOV.F16 as not
2253         predicable.  Add "arch" attribute.
2254         (*thumb2_movhi_fp16): Likewise.
2255         (*arm_movsi_vfp): Break a long line.  Add "arch" attribute.
2256         (*thumb2_movsi_vfp): Add "arch" attribute.
2258 2016-09-27  David Edelsohn  <dje.gcc@gmail.com>
2260         * config/rs6000/rs6000.c (rs6000_output_symbol): Don't modify
2261         VAR_DECL string.
2263 2016-09-27  Marek Polacek  <polacek@redhat.com>
2265         * config/ia64/ia64.c (ia64_print_operand): Adjust fall through
2266         comment.
2268         * config/c6x/c6x.h: Adjust fall through comment.
2269         * config/sh/sh.c (final_prescan_insn): Likewise.
2270         * config/visium/visium.c (visium_expand_int_cstore): Likewise.
2271         (visium_expand_fp_cstore): Likewise.
2273 2016-09-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2275         * config/arm/arm.c (const_ok_for_op): Use "Fall through" comment form
2276         expected by -Wimplicit-fallthrough.
2277         (thumb1_size_rtx_costs): Likewise.
2278         (thumb2_reorg): Likewise.
2279         (tls_mentioned_p): Add "Fall through" comment.
2280         (thumb2_reorg): Likewise.
2281         * config/arm/arm-builtins.c (arm_expand_neon_args): Use "Fall through"
2282         comment form expected by -Wimplicit-fallthrough.
2284 2016-09-27  Martin Liska  <mliska@suse.cz>
2286         PR gcov-profile/46266
2287         * input.h (RESERVED_LOCATION_P): New macro.
2288         * profile.c (branch_prob): Use RESERVED_LOCATION_P and
2289         instread of comparison with UNKNOWN_LOCATION.
2291 2016-09-27  Richard Biener  <rguenther@suse.de>
2293         PR tree-optimization/77745
2294         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
2295         When removing redundant stores make sure to check compatibility
2296         of the TBAA state for downstream accesses.
2297         * tree-ssa-sccvn.c (visit_reference_op_store): Likewise for when
2298         value-numbering virtual operands for store matches.
2300 2016-09-27  Oleg Endo  <olegendo@gcc.gnu.org>
2302         PR target/51244
2303         * config/sh/sh.c (sh_rtx_costs): Fix return value of SET of movt and
2304         movrt patterns.  Match them before anything else in the SET case.
2306 2016-09-27  Martin Liska  <mliska@suse.cz>
2308         PR gcov-profile/7970
2309         PR gcov-profile/16855
2310         PR gcov-profile/44779
2311         * coverage.c (build_gcov_exit_decl): New function.
2312         (coverage_obj_init): Call the function and generate __gcov_exit
2313         destructor.
2314         * doc/gcov.texi: Document when __gcov_exit function is called.
2316 2016-09-27  Marek Polacek  <polacek@redhat.com>
2318         PR bootstrap/77751
2319         * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
2320         insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Use
2321         -Wno-error instead of -Wno-implicit-fallthrough.
2323 2016-09-27  Martin Liska  <mliska@suse.cz>
2325         PR bootstrap/77749
2326         * gcov-counter.def: Remove GCOV_COUNTER_V_DELTA.
2328 2016-09-27  Jakub Jelinek  <jakub@redhat.com>
2330         * combine.c (simplify_comparison): Add canonical FALLTHROUGH comments.
2331         * config/i386/i386.c (ix86_dep_by_shift_count_body): Add FALLTHROUGH
2332         comments.  Remove break after return.
2333         (ix86_fp_compare_code_to_integer, has_dispatch,
2334         ix86_simd_clone_usable): Remove break after return.
2336 2016-09-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2338         PR rlt-optimization/77714
2339         * lra-eliminations.c (eliminate_regs_in_insn): Avoid alias on
2340         REG_EQUAL note.
2342 2016-09-27  Kugan Vivekanandarajah  <kuganv@linaro.org>
2344         PR ipa/77677
2345         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Use
2346         extract_range_from_unary_expr to convert value_range.
2347         * tree-vrp.c (extract_range_from_unary_expr_1): Rename to.
2348         (extract_range_from_unary_expr): This.
2349         * tree-vrp.h (extract_range_from_unary_expr): Declare.
2351 2016-09-27  Segher Boessenkool  <segher@kernel.crashing.org>
2353         * config/rs6000/rs6000.md (movcc_internal1): Disparage using CTR or LR.
2355 2016-09-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2357         * config/i386/i386.c (ix86_print_operand)
2358         [HAVE_AS_IX86_CMOV_SUN_SYNTAX]: Add gcc_fallthrough.
2359         * config/sparc/sparc.c (check_pic): Add fallthrough comment.
2360         (epilogue_renumber): Likewise.
2362 2016-09-26  Kugan Vivekanandarajah  <kuganv@linaro.org>
2364         PR middle-end/77719
2365         * tree-ssa-reassoc.c (make_new_ssa_for_def): Use gimple_get_lhs
2366         to get lhs instead of gimple_assign_lhs as stmt can be builtins too.
2368 2016-09-26  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2370         * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
2371         is_mm_consume, is_mm_acquire, is_mm_release, is_mm_acq_rel,
2372         is_mm_seq_cst, is_mm_sync): Move to ...
2373         * memmodel.h: This.  New file.
2374         * builtins.c: Include memmodel.h.
2375         * optabs.c: Likewise.
2376         * tsan.c: Likewise.
2377         * config/aarch64/aarch64.c: Likewise.
2378         * config/alpha/alpha.c: Likewise.
2379         * config/arm/arm.c: Likewise.
2380         * config/i386/i386.c: Likewise.
2381         * config/ia64/ia64.c: Likewise.
2382         * config/mips/mips.c: Likewise.
2383         * config/rs6000/rs6000.c: Likewise.
2384         * config/sparc/sparc.c: Likewise.
2385         * genconditions.c: Include memmodel.h in generated file.
2386         * genemit.c: Likewise.
2387         * genoutput.c: Likewise.
2388         * genpeep.c: Likewise.
2389         * genpreds.c: Likewise.
2390         * genrecog.c: Likewise.
2392 2016-09-26  David Malcolm  <dmalcolm@redhat.com>
2394         * read-rtl.c (read_rtx_code): Rename local "i" to "idx", and use
2395         "c" instead when parsing characters.  Move operand parsing into...
2396         (read_rtx_operand): ...this new function, renaming "i" to "idx",
2397         and tightening the scope of various locals.
2399 2016-09-26  Liu Hao  <lh_mouse@126.com>
2401         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Fix typo.
2403 2016-09-26  Marek Polacek  <polacek@redhat.com>
2405         * system.h: Use __has_attribute to check whether the fallthrough
2406         attribute is supported.
2408 2016-09-26  Marek Polacek  <polacek@redhat.com>
2410         * ipa-inline-analysis.c (find_foldable_builtin_expect): Use
2411         gimple_call_internal_p.
2412         * ipa-split.c (find_return_bb): Likewise.
2413         (execute_split_functions): Likewise.
2414         * omp-low.c (dump_oacc_loop_part): Likewise.
2415         (oacc_loop_xform_head_tail): Likewise.
2416         * predict.c (predict_loops): Likewise.
2417         * sanopt.c (pass_sanopt::execute): Likewise.
2418         * tree-cfg.c (get_abnormal_succ_dispatcher): Likewise.
2419         * tree-parloops.c (oacc_entry_exit_ok_1): Likewise.
2420         * tree-stdarg.c (gimple_call_ifn_va_arg_p): Remove function.
2421         (expand_ifn_va_arg_1): Use gimple_call_internal_p.
2422         (expand_ifn_va_arg): Likewise.
2423         * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
2424         (optimize_mask_stores): Likewise.
2425         * tree-vect-stmts.c (vect_simd_lane_linear): Likewise.
2426         (vect_transform_stmt): Likewise.
2427         * tree-vectorizer.c (vect_loop_vectorized_call): Likewise.
2428         * tsan.c (instrument_memory_accesses): Likewise.
2430 2016-09-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2431             Alexander Monakov  <amonakov@ispras.ru>
2433         * regrename.c (rename_chains): Check
2434         HARD_FRAME_POINTER_IS_FRAME_POINTER rather than
2435         HARD_FRAME_POINTER_REGNUM when picking unavailable registers.
2436         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
2438 2016-09-26  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2440         * config/s390/s390.c (s390_rtx_costs): Add /* fallthrough */.
2441         (s390_sched_score): Likewise.
2443 2016-09-26  Martin Liska  <mliska@suse.cz>
2445         * doc/gcov.texi: Update program output of gcov tool.
2447 2016-09-26  Martin Liska  <mliska@suse.cz>
2449         PR gcov-profile/23332
2450         * profile.c (instrument_values): Do not handle HIST_TYPE_CONST_DELTA.
2451         * tree-profile.c (gimple_gen_const_delta_profiler): Remove.
2452         * value-prof.c (dump_histogram_value): Do not handle
2453         HIST_TYPE_CONST_DELTA.
2454         (stream_in_histogram_value): Likewise.
2455         (gimple_find_values_to_profile): Likewise.
2456         * value-prof.h (enum hist_type): Likewise.
2458 2016-09-26  Martin Liska  <mliska@suse.cz>
2460         * common.opt: Exclude SANITIZE_UNREACHABLE and SANITIZE_RETURN
2461         from default sanitize recover values.
2462         * doc/invoke.texi: Fix documentation related to -fsanitize=leak,
2463         -fsanitize=address, -fsanitize=thread and -fsanitize-recover.
2464         * flag-types.h: Replace couple of 1 << x to 1UL << x, make it
2465         consistent.
2466         * opts.c (finish_options): Do a generic loop over options
2467         that can be recovered.
2468         (parse_sanitizer_options): Exclude SANITIZE_UNREACHABLE and
2469         SANITIZE_RETURN.
2470         (common_handle_option): Likewise.
2471         * opts.h: Declare can_recover to sanitizer_opts_s.
2473 2016-09-26  Andre Vieira  <andre.simoesdiasvieira@arm.com>
2475         * target.def(elf_flags_numeric): Change documentation to present tense.
2476         * doc/tm.texi: Regenerate.
2478 2016-09-26  Marek Polacek  <polacek@redhat.com>
2480         PR c/7652
2481         * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
2482         insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Add
2483         -Wno-switch-fallthrough.
2484         * builtins.c (expand_builtin_int_roundingfn_2): Add gcc_fallthrough.
2485         (expand_builtin): Likewise.
2486         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass): Likewise.
2487         * convert.c (convert_to_real_1): Likewise.
2488         (convert_to_integer_1): Likewise.
2489         * final.c (output_alternate_entry_point): Likewise.
2490         * genattrtab.c (make_canonical): Likewise.
2491         (write_test_expr): Likewise.
2492         * genpreds.c (validate_exp): Likewise.
2493         * gimple-ssa-strength-reduction.c
2494         (find_candidates_dom_walker::before_dom_children): Likewise.
2495         * godump.c (go_format_type): Likewise.
2496         * reload1.c (elimination_effects): Likewise.
2497         * resource.c (mark_referenced_resources): Likewise.
2498         (mark_set_resources): Likewise.
2499         * tree-ssa-loop-ivopts.c (find_deriving_biv_for_expr): Likewise.
2500         * varasm.c (output_addressed_constants): Likewise.
2502 2016-09-26  Marek Polacek  <polacek@redhat.com>
2504         PR c/7652
2505         * common.opt (Wimplicit-fallthrough): New option.
2506         * doc/extend.texi: Document statement attributes and the fallthrough
2507         attribute.
2508         * doc/invoke.texi: Document -Wimplicit-fallthrough.
2509         * gimple.h (gimple_call_internal_p): New function.
2510         * gimplify.c (struct gimplify_ctx): Add in_switch_expr.
2511         (struct label_entry): New struct.
2512         (find_label_entry): New function.
2513         (case_label_p): New function.
2514         (collect_fallthrough_labels): New function.
2515         (last_stmt_in_scope): New function.
2516         (should_warn_for_implicit_fallthrough): New function.
2517         (warn_implicit_fallthrough_r): New function.
2518         (maybe_warn_implicit_fallthrough): New function.
2519         (expand_FALLTHROUGH_r): New function.
2520         (expand_FALLTHROUGH): New function.
2521         (gimplify_switch_expr): Call maybe_warn_implicit_fallthrough and
2522         expand_FALLTHROUGH for the innermost GIMPLE_SWITCH.
2523         (gimplify_label_expr): New function.
2524         (gimplify_case_label_expr): Set location.
2525         (gimplify_expr): Call gimplify_label_expr.
2526         * internal-fn.c (expand_FALLTHROUGH): New function.
2527         * internal-fn.def (FALLTHROUGH): New internal function.
2528         * langhooks.c (lang_GNU_OBJC): New function.
2529         * langhooks.h (lang_GNU_OBJC): Declare.
2530         * system.h (gcc_fallthrough): Define.
2531         * tree-core.h: Add FALLTHROUGH_LABEL_P comment.
2532         * tree.h (FALLTHROUGH_LABEL_P): Define.
2534 2016-09-26  Richard Biener  <rguenther@suse.de>
2536         * dwarf2out.c (stripattributes): Remove unused function.
2537         (DEBUG_NORM_MACINFO_SECTION): Rename to DEBUG_MACINFO_SECTION.
2538         Push dwarf_split_debug_info handling into init_sections_and_labels.
2539         (DEBUG_NORM_MACRO_SECTION): Likewise to DEBUG_MACRO_SECTION.
2540         (DEBUG_MACRO_SECTION_FLAGS): Remove.
2541         (debug_macinfo_section_name): New global.
2542         (output_macinfo): Use debug_macinfo_section_name.
2543         (init_sections_and_labels): Split out section and label generation
2544         from dwarf2out_init.  Set debug_macinfo_section_name.
2545         (dwarf2out_init): Move text section label generation and emission
2546         to ...
2547         (dwarf2out_assembly_start): ... here.
2548         (dwarf2out_finish): Call init_sections_and_labels before DWARF
2549         output starts.
2551 2016-09-26  Richard Biener  <rguenther@suse.de>
2553         PR debug/77692
2554         * cgraphunit.c (analyze_functions): Before early removing
2555         global vars calls the late_global_decl debug handler mark
2556         the variable as readonly.
2558 2016-09-25  Oleg Endo  <olegendo@gcc.gnu.org>
2560         PR target/51244
2561         * config/sh/sh.c (sh_movt_set_dest, sh_movrt_set_dest): Add overloads.
2562         (sh_rtx_costs): Handle SET of movt and movrt patterns.
2563         * cnofig/sh/sh-protos.h (sh_movt_set_dest, sh_movrt_set_dest): Forward
2564         declare new overloads.
2565         * config/sh/sh.md (*cset_zero): Add variant that takes a treg_set_expr
2566         operand.
2568 2016-09-24  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
2570         * config/rs6000/rs6000.c (expand_block_compare, do_load_for_compare):
2571         Change TARGET_LITTLE_ENDIAN to !BYTES_BIG_ENDIAN.
2573 2016-09-24  David Edelsohn  <dje.gcc@gmail.com>
2575         * configure.ac (gcc_cv_as_aix_dwloc): Fix typo in assembly fragment.
2576         * configure: Regenerate.
2578 2016-09-24  Marek Polacek  <polacek@redhat.com>
2580         PR c/77490
2581         * doc/invoke.texi: Document -Wbool-operation.
2583 2016-09-23  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
2585         * config/rs6000/rs6000.md (cmpmemsi): New define_expand.
2586         * config/rs6000/rs6000.c (expand_block_compare): New function used by
2587         cmpmemsi pattern to do builtin expansion of memcmp ().
2588         (compute_current_alignment): Add helper function for
2589         expand_block_compare used to compute alignment as the compare proceeds.
2590         (select_block_compare_mode): Used by expand_block_compare to select
2591         the mode used for reading the next chunk of bytes in the compare.
2592         (do_load_for_compare): Used by expand_block_compare to emit the load
2593         insns for the compare.
2594         (rs6000_emit_dot_insn): Moved this function to avoid a forward
2595         reference from expand_block_compare ().
2596         * config/rs6000/rs6000-protos.h (expand_block_compare): Add a
2597         prototype for this function.
2598         * config/rs6000/rs6000.opt (mblock-compare-inline-limit): Add a new
2599         target option for controlling how much code inline expansion of
2600         memcmp() will be allowed to generate.
2602 2016-09-23  Jakub Jelinek  <jakub@redhat.com>
2604         * hooks.c (hook_bool_bool_false, hook_bool_bool_gcc_optionsp_false,
2605         hook_bool_mode_false, hook_bool_mode_true,
2606         hook_bool_mode_const_rtx_false, hook_bool_mode_const_rtx_true,
2607         hook_bool_mode_rtx_false, hook_bool_mode_rtx_true,
2608         hook_bool_const_rtx_insn_const_rtx_insn_true,
2609         hook_bool_mode_uhwi_false, hook_void_FILEptr_constcharptr,
2610         hook_bool_FILEptr_rtx_false, hook_bool_gsiptr_false,
2611         hook_bool_const_tree_hwi_hwi_const_tree_false,
2612         hook_bool_const_tree_hwi_hwi_const_tree_true,
2613         default_can_output_mi_thunk_no_vcall, hook_int_uint_mode_1,
2614         hook_int_const_tree_0, hook_int_const_tree_const_tree_1,
2615         hook_int_rtx_0, hook_int_rtx_bool_0, hook_void_tree,
2616         hook_void_constcharptr, hook_void_tree_treeptr, hook_void_int_int,
2617         hook_bool_tree_false, hook_bool_const_tree_false, hook_bool_tree_true,
2618         hook_bool_const_tree_true, hook_bool_tree_tree_false,
2619         hook_bool_tree_tree_true, hook_bool_tree_bool_false,
2620         hook_bool_rtx_insn_true, hook_bool_rtx_false,
2621         hook_bool_uintp_uintp_false,
2622         hook_bool_rtx_mode_int_int_intp_bool_false, hook_rtx_rtx_null,
2623         hook_rtx_tree_int_null, hook_uint_mode_0,
2624         hook_constcharptr_const_tree_null, hook_tree_tree_int_treep_bool_null,
2625         hook_tree_tree_tree_null, hook_tree_tree_tree_tree_null,
2626         hook_constcharptr_const_rtx_insn_null,
2627         hook_constcharptr_const_tree_const_tree_null,
2628         hook_constcharptr_int_const_tree_null,
2629         hook_constcharptr_int_const_tree_const_tree_null,
2630         hook_tree_const_tree_null, hook_bool_rtx_insn_int_false,
2631         hook_void_rtx_insn_int, hook_void_gcc_optionsp): For arguments with
2632         ATTRIBUTE_UNUSED, remove parameter name as well as ATTRIBUTE_UNUSED.
2634         * vec.h (vNULL): Extend comment to say = vNULL initialization
2635         isn't needed for static vars.
2637         * sel-sched-ir.c (sel_global_bb_info, sel_region_bb_info,
2638         loop_nests, s_i_d, last_added_blocks): Remove unnecessary
2639         = vNULL initialization of file scope vec.
2640         * passes.c (pass_tab, enabled_pass_uid_range_tab,
2641         disabled_pass_uid_range_tab): Likewise.
2642         * haifa-sched.c (sched_luids, h_i_d): Likewise.
2643         * tree-chkp-opt.c (check_infos): Likewise.
2644         * sel-sched.c (vec_av_set, vec_temp_moveop_nops): Likewise.
2646         * vec.h (vnull::operator vec): Add constexpr keyword for
2647         C++11 and later.
2649 2016-09-23  Doug Gilmore  <doug.gilmore@imgtec.com>
2651         PR tree-optimization/77654
2652         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Add call
2653         to duplicate_ssa_name_ptr_info.
2655 2016-09-23  David Malcolm  <dmalcolm@redhat.com>
2657         PR preprocessor/77672
2658         * input.c (selftest::test_lexer_string_locations_simple): Update
2659         test to expect location information of the terminator character
2660         at the location of the final closing quote.
2661         (selftest::test_lexer_string_locations_hex): Likewise.
2662         (selftest::test_lexer_string_locations_oct): Likewise.
2663         (selftest::test_lexer_string_locations_letter_escape_1): Likewise.
2664         (selftest::test_lexer_string_locations_letter_escape_2): Likewise.
2665         (selftest::test_lexer_string_locations_ucn4): Likewise.
2666         (selftest::test_lexer_string_locations_ucn8): Likewise.
2667         (selftest::test_lexer_string_locations_u8): Likewise.
2668         (selftest::test_lexer_string_locations_utf8_source): Likewise.
2669         (selftest::test_lexer_string_locations_concatenation_1): Likewise.
2670         (selftest::test_lexer_string_locations_concatenation_2): Likewise.
2671         (selftest::test_lexer_string_locations_concatenation_3): Likewise.
2672         (selftest::test_lexer_string_locations_macro): Likewise.
2673         (selftest::test_lexer_string_locations_long_line): Likewise.
2675 2016-09-23  Richard Biener  <rguenther@suse.de>
2677         * tree-ssa-sccvn.c (visit_reference_op_call): Value number
2678         virtual definition to virtual use if the call devirtualizes
2679         to a const or pure function.
2680         (visit_use): Also visit calls we can devirtualize to a
2681         const or pure function.
2683 2016-09-23  Richard Biener  <rguenther@suse.de>
2685         PR tree-optimization/77697
2686         * tree-ssa-forwprop.c (defcodefor_name): Remove bogus code,
2687         signal error if we have sth ternary or unhandled.
2689 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
2691         * config/arm/arm_neon.h (vabd_f16): New.
2692         (vabdq_f16): New.
2693         (vabs_f16): New.
2694         (vabsq_f16): New.
2695         (vadd_f16): New.
2696         (vaddq_f16): New.
2697         (vcage_f16): New.
2698         (vcageq_f16): New.
2699         (vcagt_f16): New.
2700         (vcagtq_f16): New.
2701         (vcale_f16): New.
2702         (vcaleq_f16): New.
2703         (vcalt_f16): New.
2704         (vcaltq_f16): New.
2705         (vceq_f16): New.
2706         (vceqq_f16): New.
2707         (vceqz_f16): New.
2708         (vceqzq_f16): New.
2709         (vcge_f16): New.
2710         (vcgeq_f16): New.
2711         (vcgez_f16): New.
2712         (vcgezq_f16): New.
2713         (vcgt_f16): New.
2714         (vcgtq_f16): New.
2715         (vcgtz_f16): New.
2716         (vcgtzq_f16): New.
2717         (vcle_f16): New.
2718         (vcleq_f16): New.
2719         (vclez_f16): New.
2720         (vclezq_f16): New.
2721         (vclt_f16): New.
2722         (vcltq_f16): New.
2723         (vcltz_f16): New.
2724         (vcltzq_f16): New.
2725         (vcvt_f16_s16): New.
2726         (vcvt_f16_u16): New.
2727         (vcvt_s16_f16): New.
2728         (vcvt_u16_f16): New.
2729         (vcvtq_f16_s16): New.
2730         (vcvtq_f16_u16): New.
2731         (vcvtq_s16_f16): New.
2732         (vcvtq_u16_f16): New.
2733         (vcvta_s16_f16): New.
2734         (vcvta_u16_f16): New.
2735         (vcvtaq_s16_f16): New.
2736         (vcvtaq_u16_f16): New.
2737         (vcvtm_s16_f16): New.
2738         (vcvtm_u16_f16): New.
2739         (vcvtmq_s16_f16): New.
2740         (vcvtmq_u16_f16): New.
2741         (vcvtn_s16_f16): New.
2742         (vcvtn_u16_f16): New.
2743         (vcvtnq_s16_f16): New.
2744         (vcvtnq_u16_f16): New.
2745         (vcvtp_s16_f16): New.
2746         (vcvtp_u16_f16): New.
2747         (vcvtpq_s16_f16): New.
2748         (vcvtpq_u16_f16): New.
2749         (vcvt_n_f16_s16): New.
2750         (vcvt_n_f16_u16): New.
2751         (vcvtq_n_f16_s16): New.
2752         (vcvtq_n_f16_u16): New.
2753         (vcvt_n_s16_f16): New.
2754         (vcvt_n_u16_f16): New.
2755         (vcvtq_n_s16_f16): New.
2756         (vcvtq_n_u16_f16): New.
2757         (vfma_f16): New.
2758         (vfmaq_f16): New.
2759         (vfms_f16): New.
2760         (vfmsq_f16): New.
2761         (vmax_f16): New.
2762         (vmaxq_f16): New.
2763         (vmaxnm_f16): New.
2764         (vmaxnmq_f16): New.
2765         (vmin_f16): New.
2766         (vminq_f16): New.
2767         (vminnm_f16): New.
2768         (vminnmq_f16): New.
2769         (vmul_f16): New.
2770         (vmul_lane_f16): New.
2771         (vmul_n_f16): New.
2772         (vmulq_f16): New.
2773         (vmulq_lane_f16): New.
2774         (vmulq_n_f16): New.
2775         (vneg_f16): New.
2776         (vnegq_f16): New.
2777         (vpadd_f16): New.
2778         (vpmax_f16): New.
2779         (vpmin_f16): New.
2780         (vrecpe_f16): New.
2781         (vrecpeq_f16): New.
2782         (vrnd_f16): New.
2783         (vrndq_f16): New.
2784         (vrnda_f16): New.
2785         (vrndaq_f16): New.
2786         (vrndm_f16): New.
2787         (vrndmq_f16): New.
2788         (vrndn_f16): New.
2789         (vrndnq_f16): New.
2790         (vrndp_f16): New.
2791         (vrndpq_f16): New.
2792         (vrndx_f16): New.
2793         (vrndxq_f16): New.
2794         (vrsqrte_f16): New.
2795         (vrsqrteq_f16): New.
2796         (vrecps_f16): New.
2797         (vrecpsq_f16): New.
2798         (vrsqrts_f16): New.
2799         (vrsqrtsq_f16): New.
2800         (vsub_f16): New.
2801         (vsubq_f16): New.
2803 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
2805         * config.gcc (extra_headers): Add arm_fp16.h
2806         * config/arm/arm_fp16.h: New.
2807         * config/arm/arm_neon.h: Include "arm_fp16.h".
2809 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
2811         * config/arm/arm_neon_builtins.def (vadd): New (v8hf, v4hf
2812         variants).
2813         (vmulf): New (v8hf, v4hf variants).
2814         (vfma): New (v8hf, v4hf variants).
2815         (vfms): New (v8hf, v4hf variants).
2816         (vsub): New (v8hf, v4hf variants).
2817         (vcage): New (v8hf, v4hf variants).
2818         (vcagt): New (v8hf, v4hf variants).
2819         (vcale): New (v8hf, v4hf variants).
2820         (vcalt): New (v8hf, v4hf variants).
2821         (vceq): New (v8hf, v4hf variants).
2822         (vcgt): New (v8hf, v4hf variants).
2823         (vcge): New (v8hf, v4hf variants).
2824         (vcle): New (v8hf, v4hf variants).
2825         (vclt): New (v8hf, v4hf variants).
2826         (vceqz): New (v8hf, v4hf variants).
2827         (vcgez): New (v8hf, v4hf variants).
2828         (vcgtz): New (v8hf, v4hf variants).
2829         (vcltz): New (v8hf, v4hf variants).
2830         (vclez): New (v8hf, v4hf variants).
2831         (vabd): New (v8hf, v4hf variants).
2832         (vmaxf): New (v8hf, v4hf variants).
2833         (vmaxnm): New (v8hf, v4hf variants).
2834         (vminf): New (v8hf, v4hf variants).
2835         (vminnm): New (v8hf, v4hf variants).
2836         (vpmaxf): New (v4hf variant).
2837         (vpminf): New (v4hf variant).
2838         (vpadd): New (v4hf variant).
2839         (vrecps): New (v8hf, v4hf variants).
2840         (vrsqrts): New (v8hf, v4hf variants).
2841         (vabs): New (v8hf, v4hf variants).
2842         (vneg): New (v8hf, v4hf variants).
2843         (vrecpe): New (v8hf, v4hf variants).
2844         (vrnd): New (v8hf, v4hf variants).
2845         (vrnda): New (v8hf, v4hf variants).
2846         (vrndm): New (v8hf, v4hf variants).
2847         (vrndn): New (v8hf, v4hf variants).
2848         (vrndp): New (v8hf, v4hf variants).
2849         (vrndx): New (v8hf, v4hf variants).
2850         (vrsqrte): New (v8hf, v4hf variants).
2851         (vmul_lane): Add v4hf and v8hf variants.
2852         (vmul_n): Add v4hf and v8hf variants.
2853         (vext): New (v8hf, v4hf variants).
2854         (vcvts): New (v8hi, v4hi variants).
2855         (vcvts): New (v8hf, v4hf variants).
2856         (vcvtu): New (v8hi, v4hi variants).
2857         (vcvtu): New (v8hf, v4hf variants).
2858         (vcvts_n): New (v8hf, v4hf variants).
2859         (vcvtu_n): New (v8hi, v4hi variants).
2860         (vcvts_n): New (v8hi, v4hi variants).
2861         (vcvtu_n): New (v8hf, v4hf variants).
2862         (vbsl): New (v8hf, v4hf variants).
2863         (vcvtas): New (v8hf, v4hf variants).
2864         (vcvtau): New (v8hf, v4hf variants).
2865         (vcvtms): New (v8hf, v4hf variants).
2866         (vcvtmu): New (v8hf, v4hf variants).
2867         (vcvtns): New (v8hf, v4hf variants).
2868         (vcvtnu): New (v8hf, v4hf variants).
2869         (vcvtps): New (v8hf, v4hf variants).
2870         (vcvtpu): New (v8hf, v4hf variants).
2872 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
2874         * config/arm/arm-builtins.c (hf_UP): New.
2875         (si_UP): New.
2876         (vfp_builtin_data): New.  Update comment.
2877         (enum arm_builtins): Include "arm_vfp_builtins.def".
2878         (ARM_BUILTIN_VFP_PATTERN_START): New.
2879         (arm_init_vfp_builtins): New.
2880         (arm_init_builtins): Add arm_init_vfp_builtins.
2881         (arm_expand_vfp_builtin): New.
2882         (arm_expand_builtins): Update for arm_expand_vfp_builtin.  Fix
2883         long line.
2884         * config/arm/arm_vfp_builtins.def: New file.
2885         * config/arm/t-arm (arm.o): Add arm_vfp_builtins.def.
2886         (arm-builtins.o): Likewise.
2888 2016-09-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
2890         PR ipa/77677
2891         * ipa-cp.c (propagate_vr_accross_jump_function): Drop TREE_OVERFLOW
2892         from constant while creating value range.
2894 2016-09-23  Renlin Li  <renlin.li@arm.com>
2896         * ira.c (ira): Move ira_use_lra_p initialization code to ...
2897         (ira_init_once): Here.
2899 2016-09-23  Uros Bizjak  <ubizjak@gmail.com>
2900             Jakub Jelinek  <jakub@redhat.com>
2902         * hooks.h (hook_uint_uintp_false): Rename to...
2903         (hook_bool_uint_uintp_false): ... this.
2904         * hooks.c (hook_uint_uintp_false): Rename to...
2905         (hook_bool_uint_uintp_false): ... this.
2906         * target.def (elf_flags_numeric): Use hook_bool_uint_uintp_false
2907         instead of hook_uint_uintp_false.
2909 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
2911         * config/arm/arm-builtins.c (arm_init_neon_builtin): New.
2912         (arm_init_builtins): Move body of a loop to the standalone
2913         function arm_init_neon_builtin.
2914         (arm_expand_neon_builtin_1): New.  Update comment.  Function body
2915         moved from arm_neon_builtin with some white-space fixes.
2916         (arm_expand_neon_builtin): Move code into the standalone function
2917         arm_expand_neon_builtin_1.
2919 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
2921         * config/arm/iterators.md (VCVTHI): New.
2922         (NEON_VCMP): Add UNSPEC_VCLT and UNSPEC_VCLE.  Fix a long line.
2923         (NEON_VAGLTE): New.
2924         (VFM_LANE_AS): New.
2925         (VH_CVTTO): New.
2926         (V_reg): Add HF, V4HF and V8HF.  Fix white-space.
2927         (V_HALF): Add V4HF.  Fix white-space.
2928         (V_if_elem): Add HF, V4HF and V8HF.  Fix white-space.
2929         (V_s_elem): Likewise.
2930         (V_sz_elem): Fix white-space.
2931         (V_elem_ch): Likewise.
2932         (VH_elem_ch): New.
2933         (scalar_mul_constraint): Add V8HF and V4HF.
2934         (Is_float_mode): Fix white-space.
2935         (Is_d_reg): Add V4HF and V8HF.  Fix white-space.
2936         (q): Add HF.  Fix white-space.
2937         (float_sup): New.
2938         (float_SUP): New.
2939         (cmp_op_unsp): Add UNSPEC_VCALE and UNSPEC_VCALT.
2940         (neon_vfm_lane_as): New.
2941         * config/arm/neon.md (add<mode>3_fp16): New.
2942         (sub<mode>3_fp16): New.
2943         (mul<mode>3add<mode>_neon): New.
2944         (fma<VH:mode>4_intrinsic): New.
2945         (fmsub<VCVTF:mode>4_intrinsic): Fix white-space.
2946         (fmsub<VH:mode>4_intrinsic): New.
2947         (<absneg_str><mode>2): New.
2948         (neon_v<absneg_str><mode>): New.
2949         (neon_v<fp16_rnd_str><mode>): New.
2950         (neon_vrsqrte<mode>): New.
2951         (neon_vpaddv4hf): New.
2952         (neon_vadd<mode>): New.
2953         (neon_vsub<mode>): New.
2954         (neon_vmulf<mode>): New.
2955         (neon_vfma<VH:mode>): New.
2956         (neon_vfms<VH:mode>): New.
2957         (neon_vc<cmp_op><mode>): New.
2958         (neon_vc<cmp_op><mode>_fp16insn): New
2959         (neon_vc<cmp_op_unsp><mode>_fp16insn_unspec): New.
2960         (neon_vca<cmp_op><mode>): New.
2961         (neon_vca<cmp_op><mode>_fp16insn): New.
2962         (neon_vca<cmp_op_unsp><mode>_fp16insn_unspec): New.
2963         (neon_vc<cmp_op>z<mode>): New.
2964         (neon_vabd<mode>): New.
2965         (neon_v<maxmin>f<mode>): New.
2966         (neon_vp<maxmin>fv4hf: New.
2967         (neon_<fmaxmin_op><mode>): New.
2968         (neon_vrecps<mode>): New.
2969         (neon_vrsqrts<mode>): New.
2970         (neon_vrecpe<mode>): New (VH variant).
2971         (neon_vdup_lane<mode>_internal): New.
2972         (neon_vdup_lane<mode>): New.
2973         (neon_vcvt<sup><mode>): New (VCVTHI variant).
2974         (neon_vcvt<sup><mode>): New (VH variant).
2975         (neon_vcvt<sup>_n<mode>): New (VH variant).
2976         (neon_vcvt<sup>_n<mode>): New (VCVTHI variant).
2977         (neon_vcvt<vcvth_op><sup><mode>): New.
2978         (neon_vmul_lane<mode>): New.
2979         (neon_vmul_n<mode>): New.
2980         * config/arm/unspecs.md (UNSPEC_VCALE): New
2981         (UNSPEC_VCALT): New.
2982         (UNSPEC_VFMA_LANE): New.
2983         (UNSPECS_VFMS_LANE): New.
2985 2016-09-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2987         * config/s390/s390.md ("*extzv<mode>_zEC12", "*extzv<mode>_z10")
2988         ("*extzv<mode><clobbercc_or_nocc>"):
2989         Correct a typo in a comment.
2990         Merged patterns.
2991         ("*insv<mode>_zEC12", "*insv<mode>_z10")
2992         ("*insv<mode><clobbercc_or_nocc>"): Ditto.
2993         ("*insv<mode>_zEC12_appendbitsleft")
2994         ("*insv<mode><clobbercc_or_nocc>_appendbitsleft")
2995         ("*insv<mode>_z10_appendbitsleft"): Ditto.
2996         ("*insv<mode>_zEC12_noshift", "*insv<mode>_z10_noshift")
2997         ("*insv<mode><clobbercc_or_nocc>_noshift"): Ditto.
2998         Provide pattern with operands switched.
2999         ("*pre_z10_extv<mode>"):
3000         Use new subst patterns.
3001         ("*extzvdi<clobbercc_or_nocc>_lshiftrt", "*<risbg_n>_ior_and_sr_ze")
3002         ("*extvsidi<clobbercc_or_nocc>", "*<risbg_n>_and_subregdi_rotr")
3003         ("*<risbg_n>_and_subregdi_rotl", "*<risbg_n>_di_and_rot")
3004         ("*insv_z10_noshift_cc", "*insv_z10_noshift_cconly")
3005         ("*<risbg_n>_<mode>_ior_and_lshiftrt")
3006         ("*<risbg_n>_sidi_ior_and_lshiftrt")
3007         ("*trunc_sidi_and_subreg_lshrt<clobbercc_or_nocc>"):
3008         New patterns.
3009         ("*extzv_<mode>_sll", "*extzv_<mode>_srl")
3010         ("*extzv_<mode>_srl<clobbercc_or_nocc>")
3011         ("*extzv_<mode>_sll<clobbercc_or_nocc>"): Renamed patterns, use risbgn
3012         on zEC12.
3013         ("SINT"): New mode_iterator with SI, HI, QI.
3014         * config/s390/subst.md ("clobbercc_or_nocc_subst", "z10_or_zEC12_cond")
3015         ("clobbercc_or_nocc", "risbg_n"): New constructs for risbg pattern
3016         duplication.
3018 2016-09-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
3020         * config/s390/predicates.md ("contiguous_bitmask_operand"): Adapt to
3021         new interface of s390_contiguous_bitmask_p.
3022         ("contiguous_bitmask_nowrap_operand"): New predicate.
3023         ("*anddi3_cc", "*anddi3_cconly", "*anddi3"): Replace NxxDq with NxxDw.
3024         * config/s390/constraints.md ("NxxDw", "NxxSq"): Adapt to new interface
3025         of s390_contiguous_bitmask_p.
3026         ("NxxDw"): Rename NxxDq constraint to NxxDw.
3027         ("NxxSw"): New constraint.
3028         * config/s390/s390.md ("*andsi3_zarch"): Enable bitmask wraparound.
3029         * config/s390/s390-protos.h (s390_contiguous_bitmask_p): Updated
3030         interface.
3031         (s390_contiguous_bitmask_nowrap_p): Export.
3032         * config/s390/s390.c (s390_contiguous_bitmask_nowrap_p): New name of
3033         former s390_contiguous_bitmask_p.
3034         (s390_contiguous_bitmask_p): Use s390_contiguous_bitmask_nowrap_p to
3035         detect contiguous bit ranges with wraparound.  Change signature to
3036         return START and END position instead of POS and LENGTH.
3037         (s390_contiguous_bitmask_vector_p): Remove extra code for continous bit
3038         ranges with wraparound.
3039         (s390_extzv_shift_ok): Use s390_contiguous_bitmask_nowrap_p.
3040         (s390_contiguous_bitmask_vector_p,s390_extzv_shift_ok,print_operand):
3041         Adapt to new signature of s390_contiguous_bitmask_p.
3043 2016-09-23  Bin Cheng  <bin.cheng@arm.com>
3045         * tree-vect-loop-manip.c (create_intersect_range_checks_index): New.
3046         (create_intersect_range_checks): New.
3047         (vect_create_cond_for_alias_checks): Call above function.
3049 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
3051         * config/arm/iterators.md (Code iterators): Fix some white-space
3052         in the comments.
3053         (GLTE): New.
3054         (ABSNEG): New
3055         (FCVT): Moved from vfp.md.
3056         (VCVT_HF_US_N): New.
3057         (VCVT_SI_US_N): New.
3058         (VCVT_HF_US): New.
3059         (VCVTH_US): New.
3060         (FP16_RND): New.
3061         (absneg_str): New.
3062         (FCVTI32typename): Moved from vfp.md.
3063         (sup): Add UNSPEC_VCVTA_S, UNSPEC_VCVTA_U, UNSPEC_VCVTM_S,
3064         UNSPEC_VCVTM_U, UNSPEC_VCVTN_S, UNSPEC_VCVTN_U, UNSPEC_VCVTP_S,
3065         UNSPEC_VCVTP_U, UNSPEC_VCVT_HF_S_N, UNSPEC_VCVT_HF_U_N,
3066         UNSPEC_VCVT_SI_S_N, UNSPEC_VCVT_SI_U_N,  UNSPEC_VCVTH_S_N,
3067         UNSPEC_VCVTH_U_N, UNSPEC_VCVTH_S and UNSPEC_VCVTH_U.
3068         (vcvth_op): New.
3069         (fp16_rnd_str): New.
3070         (fp16_rnd_insn): New.
3071         * config/arm/unspecs.md (UNSPEC_VCVT_HF_S_N): New.
3072         (UNSPEC_VCVT_HF_U_N): New.
3073         (UNSPEC_VCVT_SI_S_N): New.
3074         (UNSPEC_VCVT_SI_U_N): New.
3075         (UNSPEC_VCVTH_S): New.
3076         (UNSPEC_VCVTH_U): New.
3077         (UNSPEC_VCVTA_S): New.
3078         (UNSPEC_VCVTA_U): New.
3079         (UNSPEC_VCVTM_S): New.
3080         (UNSPEC_VCVTM_U): New.
3081         (UNSPEC_VCVTN_S): New.
3082         (UNSPEC_VCVTN_U): New.
3083         (UNSPEC_VCVTP_S): New.
3084         (UNSPEC_VCVTP_U): New.
3085         (UNSPEC_VCVTP_S): New.
3086         (UNSPEC_VCVTP_U): New.
3087         (UNSPEC_VRND): New.
3088         (UNSPEC_VRNDA): New.
3089         (UNSPEC_VRNDI): New.
3090         (UNSPEC_VRNDM): New.
3091         (UNSPEC_VRNDN): New.
3092         (UNSPEC_VRNDP): New.
3093         (UNSPEC_VRNDX): New.
3094         * config/arm/vfp.md (<absneg_str>hf2): New.
3095         (neon_vabshf): New.
3096         (neon_v<fp16_rnd_str>hf): New.
3097         (neon_vrndihf): New.
3098         (addhf3): New.
3099         (subhf3): New.
3100         (divhf3): New.
3101         (mulhf3): New.
3102         (*mulsf3neghf_vfp): New.
3103         (*negmulhf3_vfp): New.
3104         (*mulsf3addhf_vfp): New.
3105         (*mulhf3subhf_vfp): New.
3106         (*mulhf3neghfaddhf_vfp): New.
3107         (*mulhf3neghfsubhf_vfp): New.
3108         (fmahf4): New.
3109         (neon_vfmahf): New.
3110         (fmsubhf4_fp16): New.
3111         (neon_vfmshf): New.
3112         (*fnmsubhf4): New.
3113         (*fnmaddhf4): New.
3114         (neon_vsqrthf): New.
3115         (neon_vrsqrtshf): New.
3116         (FCVT): Move to iterators.md.
3117         (FCVTI32typename): Likewise.
3118         (neon_vcvth<sup>hf): New.
3119         (neon_vcvth<sup>si): New.
3120         (neon_vcvth<sup>_nhf_unspec): New.
3121         (neon_vcvth<sup>_nhf): New.
3122         (neon_vcvth<sup>_nsi_unspec): New.
3123         (neon_vcvth<sup>_nsi): New.
3124         (neon_vcvt<vcvth_op>h<sup>si): New.
3125         (neon_<fmaxmin_op>hf): New.
3127 2016-09-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
3129         * config/s390/s390.md (bitoff, bitoff_plus): Neq mode attributes.
3130         ("*extzv<mode>_zEC12", "*insv<mode>_zEC12", "*insv<mode>_z10")
3131         ("*insv<mode>_zEC12_appendbitsleft")
3132         ("*insv<mode>_z10_appendbitsleft", "*r<noxa>sbg_<mode>_sll")
3133         ("*r<noxa>sbg_<mode>_srl"): Use new attributes.
3135 2016-09-23  Jakub Jelinek  <jakub@redhat.com>
3137         * ipa-cp.c (ipcp_store_vr_results): Avoid static local var zero.
3138         * sreal.h (sreal::min, sreal::max): Avoid static local vars,
3139         construct values without normalization.
3140         * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't initialize
3141         static local lhs_ops to vNULL.
3143 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
3144             Jiong Wang <jiong.wang@arm.com>
3146         * config/arm/arm.c (coproc_secondary_reload_class): Make HFmode
3147         available when FP16 instructions are available.
3148         (output_move_vfp): Add support for 16-bit data moves.
3149         (arm_validize_comparison): Fix some white-space.  Support HFmode
3150         by conversion to SFmode.
3151         * config/arm/arm.md (truncdfhf2): Fix a comment.
3152         (extendhfdf2): Likewise.
3153         (cstorehf4): New.
3154         (movsicc): Fix some white-space.
3155         (movhfcc): New.
3156         (movsfcc): Fix some white-space.
3157         (*cmovhf): New.
3158         * config/arm/vfp.md (*arm_movhi_vfp): Disable when VFP FP16
3159         instructions are available.
3160         (*thumb2_movhi_vfp): Likewise.
3161         (*arm_movhi_fp16): New.
3162         (*thumb2_movhi_fp16): New.
3163         (*movhf_vfp_fp16): New.
3164         (*movhf_vfp_neon): Disable when VFP FP16 instructions are available.
3165         (*movhf_vfp): Likewise.
3166         (extendhfsf2): Enable when VFP FP16 instructions are available.
3167         (truncsfhf2):  Enable when VFP FP16 instructions are available.
3169 2016-09-23  Martin Liska  <mliska@suse.cz>
3171         * config/s390/vx-builtins.md: Replace 'adress' with 'address'.
3173 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
3175         * config/arm/arm.c (arm_evpc_neon_vuzp): Add support for V8HF and
3176         V4HF modes.
3177         (arm_evpc_neon_vtrn): Likewise.
3178         (arm_evpc_neon_vrev): Likewise.
3179         (arm_evpc_neon_vext): Likewise.
3180         * config/arm/arm_neon.h (vbsl_f16): New.
3181         (vbslq_f16): New.
3182         (vdup_n_f16): New.
3183         (vdupq_n_f16): New.
3184         (vdup_lane_f16): New.
3185         (vdupq_lane_f16): New.
3186         (vext_f16): New.
3187         (vextq_f16): New.
3188         (vmov_n_f16): New.
3189         (vmovq_n_f16): New.
3190         (vrev64_f16): New.
3191         (vrev64q_f16): New.
3192         (vtrn_f16): New.
3193         (vtrnq_f16): New.
3194         (vuzp_f16): New.
3195         (vuzpq_f16): New.
3196         (vzip_f16): New.
3197         (vzipq_f16): New.
3198         * config/arm/arm_neon_buillins.def (vdup_n): New (v8hf, v4hf variants).
3199         (vdup_lane): New (v8hf, v4hf variants).
3200         (vext): New (v8hf, v4hf variants).
3201         (vbsl): New (v8hf, v4hf variants).
3202         * config/arm/iterators.md (VDQWH): New.
3203         (VH): New.
3204         (V_double_vector_mode): Add V8HF and V4HF.  Fix white-space.
3205         (Scalar_mul_8_16): Fix white-space.
3206         (Is_d_reg): Add V4HF and V8HF.
3207         * config/arm/neon.md (neon_vdup_lane<mode>_internal): New.
3208         (neon_vdup_lane<mode>): New.
3209         (neon_vtrn<mode>_internal): Replace VDQW with VDQWH.
3210         (*neon_vtrn<mode>_insn): Likewise.
3211         (neon_vzip<mode>_internal): Likewise. Also fix white-space.
3212         (*neon_vzip<mode>_insn): Likewise
3213         (neon_vuzp<mode>_internal): Likewise.
3214         (*neon_vuzp<mode>_insn): Likewise
3215         * config/arm/vec-common.md (vec_perm_const<mode>): New.
3217 2016-09-23  Jiong Wang  <jiong.wang@arm.com>
3218             Matthew Wahab  <matthew.wahab@arm.com>
3220         * config/arm/arm.c (output_move_vfp): Weaken assert to allow HImode.
3221         (arm_hard_regno_mode_ok): Allow HImode values in VFP registers.
3222         * config/arm/arm.md (*movhi_bytes): Disable when VFP registers are
3223         available.  Also fix some white-space.
3224         * config/arm/vfp.md (*arm_movhi_vfp): New.
3225         (*thumb2_movhi_vfp): New.
3227 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
3229         * config/arm/arm-c.c (arm_cpu_builtins): Define
3230         "__ARM_FEATURE_FP16_SCALAR_ARITHMETIC" and
3231         "__ARM_FEATURE_FP16_VECTOR_ARITHMETIC".
3233 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
3235         * doc/sourcebuild.texi (ARM-specific attributes): Add anchor for
3236         arm_v8_1a_neon_ok.  Add entries for arm_v8_2a_fp16_scalar_ok,
3237         arm_v8_2a_fp16_scalar_hw, arm_v8_2a_fp16_neon_ok and
3238         arm_v8_2a_fp16_neon_hw.
3239         (Add options): Add entries for arm_v8_1a_neon, arm_v8_2a_scalar,
3240         arm_v8_2a_neon.
3242 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
3244         * doc/sourcebuild.texi (ARM-specific attributes): Add entries for
3245         arm_fp16_alternative_ok and arm_fp16_none_ok.
3247 2016-09-23  Martin Liska  <mliska@suse.cz>
3249         * ipa-icf.c (sem_variable::merge): Replace adress with address.
3251 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
3253         * config/arm/arm-arches.def ("armv8.1-a"): Add FL_CRC32.
3254         ("armv8.2-a"): New.
3255         ("armv8.2-a+fp16"): New.
3256         * config/arm/arm-protos.h (FL2_ARCH8_2): New.
3257         (FL2_FP16INST): New.
3258         (FL2_FOR_ARCH8_2A): New.
3259         * config/arm/arm-tables.opt: Regenerate.
3260         * config/arm/arm.c (arm_arch8_2): New.
3261         (arm_fp16_inst): New.
3262         (arm_option_override): Set arm_arch8_2 and arm_fp16_inst.  Check
3263         for incompatible fp16-format settings.
3264         * config/arm/arm.h (TARGET_VFP_FP16INST): New.
3265         (TARGET_NEON_FP16INST): New.
3266         (arm_arch8_2): Declare.
3267         (arm_fp16_inst): Declare.
3268         * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for
3269         march=armv8.2-a and march=armv8.2-a+fp16.
3270         * config/arm/t-aprofile (Arch Matches): Add entries for armv8.2-a
3271         and armv8.2-a+fp16.
3272         * doc/invoke.texi (ARM Options): Add "-march=armv8.1-a",
3273         "-march=armv8.2-a" and "-march=armv8.2-a+fp16".
3275 2016-09-23  Martin Liska  <mliska@suse.cz>
3277         * doc/extend.texi: Remove fused-madd from i386 target options.
3279 2016-09-23  Martin Liska  <mliska@suse.cz>
3281         * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
3282         Handle movbe.
3284 2016-09-23  Martin Liska  <mliska@suse.cz>
3286         * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
3287         Handle crc32.
3289 2016-09-23  Martin Liska  <mliska@suse.cz>
3291         PR target/71652
3292         * config/i386/i386.c (ix86_option_override_internal): Change
3293         signature and return false when there's an error related to
3294         arch string.
3295         (release_options_strings): New function.
3296         (ix86_valid_target_attribute_tree): Call the function.
3298 2016-09-23  Jakub Jelinek  <jakub@redhat.com>
3300         * hsa-gen.c (hsa_op_immed::hsa_op_immed Use CONSTRUCTOR_NELTS (...)
3301         instead of vec_safe_length (CONSTRUCTOR_ELTS (...)).
3302         (gen_hsa_ctor_assignment): Likewise.
3303         * print-tree.c (print_node): Likewise.
3304         * tree-dump.c (dequeue_and_dump): Likewise.
3305         * tree-sra.c (sra_modify_constructor_assign): Likewise.
3306         * expr.c (store_constructor): Likewise.
3307         * fold-const.c (operand_equal_p): Likewise.
3308         * tree-pretty-print.c (dump_generic_node): Likewise.
3309         * hsa-brig.c (hsa_op_immed::emit_to_buffer): Likewise.
3310         * ipa-icf-gimple.c (func_checker::compare_operand): Likewise.
3312 2016-09-23  Richard Biener  <rguenther@suse.de>
3314         * hooks.h (hook_uint_uintp_false): Declare.
3316 2016-09-22  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
3318         * config/avr/avr.c (avr_rtx_costs_1): Handle DImode MULT.
3319         (avr_address_cost): Replace 61 with MAX_LD_OFFSET(mode).
3321 2016-09-22  Martin Sebor  <msebor@redhat.com>
3323         PR target/77676
3324         * gimple-ssa-sprintf.c (target_int_min, target_int_max): Use
3325         HOST_BITS_PER_WIDE_INT, make a static local variable auto.
3326         (target_int_min): Correct computation.
3327         (format_integer): Use long long as the argument for the ll length
3328         modifier.
3329         (format_floating): Use target_int_max().
3330         (get_string_length): Same.
3331         (format_string): Avoid setting the bounded flag for strings
3332         of unknown length.
3333         (try_substitute_return_value): Avoid setting range info when
3334         the result isn't bounded.
3335         * varasm.c (assemble_name): Increase buffer size.
3337 2016-09-22  Andre Vieira  <andre.simoesdiasvieira@arm.com>
3338             Terry Guo  <terry.guo@arm.com>
3340         * target.def (elf_flags_numeric): New target hook.
3341         * targhooks.h (default_asm_elf_flags_numeric): New.
3342         * varasm.c (default_asm_elf_flags_numeric): New.
3343         (default_elf_asm_named_section): Use new target hook.
3344         * config/arm/arm.opt (mpure-code): New.
3345         * config/arm/arm.h (SECTION_ARM_PURECODE): New.
3346         * config/arm/arm.c (arm_asm_init_sections): Add section
3347         attribute to default text section if -mpure-code.
3348         (arm_option_check_internal): Diagnose use of option with
3349         non supported targets and/or options.
3350         (arm_asm_elf_flags_numeric): New.
3351         (arm_function_section): New.
3352         (arm_elf_section_type_flags): New.
3353         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Disable
3354         for -mpure-code.
3355         * gcc/doc/texi (TARGET_ASM_ELF_FLAGS_NUMERIC): New.
3356         * gcc/doc/texi.in (TARGET_ASM_ELF_FLAGS_NUMERIC): Likewise.
3358 2016-09-22  Jan Hubicka  <hubicka@ucw.cz>
3360         * regcprop.c (copyprop_hardreg_forward_1): Remove noop moves.
3362 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3364         * emit-rtl.c (next_cc0_user): Make argument type rtx_insn *.
3365         * rtl.h: Adjust prototype.
3367 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3369         * emit-rtl.c (next_active_insn): Change argument type to rtx_insn *.
3370         (prev_active_insn): Likewise.
3371         (active_insn_p): Likewise.
3372         * rtl.h: Adjust prototypes.
3373         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
3374         * config/arc/arc.md: Likewise.
3375         * config/pa/pa.c (branch_to_delay_slot_p): Likewise.
3376         (branch_needs_nop_p): Likewise.
3377         (use_skip_p): Likewise.
3378         * config/sh/sh.c (gen_block_redirect): Likewise.
3379         (split_branches): Likewise.
3380         * reorg.c (optimize_skip): Likewise.
3381         (fill_simple_delay_slots): Likewise.
3382         (fill_slots_from_thread): Likewise.
3383         (relax_delay_slots): Likewise.
3384         * resource.c (mark_target_live_regs): Likewise.
3386 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3388         * config/cris/cris.c (cris_asm_output_case_end): Change argument
3389         type to rtx_insn *.
3390         * emit-rtl.c (next_nonnote_nondebug_insn): Likewise.
3391         (prev_nonnote_nondebug_insn): Likewise.
3392         * config/cris/cris-protos.h: Adjust prototype.
3393         * rtl.h: Likewise.
3394         * jump.c (rtx_renumbered_equal_p): Adjust.
3396 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3398         * emit-rtl.c (prev_real_insn): Change argument type to rtx_insn *.
3399         * rtl.h: Adjust prototype.
3400         * config/sh/sh.md: Adjust.
3401         * dwarf2out.c (add_var_loc_to_decl): Likewise.
3403 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3405         * emit-rtl.c (next_nondebug_insn): Change argument type to rtx_insn *.
3406         (prev_nondebug_insn): Likewise.
3407         * loop-doloop.c (doloop_condition_get): Likewise.
3408         * rtl.h: Adjust prototype.
3409         * cfgloop.h: Likewise.
3411 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3413         * emit-rtl.c (next_nonnote_insn): Change argument type to rtx_insn *.
3414         (prev_nonnote_insn): Likewise.
3415         * jump.c (reversed_comparison_code_parts): Likewise.
3416         (reversed_comparison): Likewise.
3417         * rtl.h: Adjust prototypes.
3418         * config/arc/arc.md: Adjust.
3419         * cse.c (find_comparison_args): Likewise.
3420         * reorg.c (redundant_insn): Change return type to rtx_insn *.
3421         (fix_reg_dead_note): Change argument type to rtx_insn *.
3422         (delete_prior_computation): Likewise.
3423         (delete_computation): Likewise.
3424         (fill_slots_from_thread): Adjust.
3425         (relax_delay_slots): Likewise.
3426         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
3427         (simplify_relational_operation_1): Likewise.
3428         (simplify_ternary_operation): Likewise.
3430 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3432         * config/arc/arc-protos.h (arc_label_align): Change type of
3433         variables from rtx to rtx_insn *.
3434         * config/arc/arc.c (arc_label_align): Likewise.
3435         * config/arm/arm.c (any_sibcall_could_use_r3): Likewise.
3436         * config/bfin/bfin.c (workaround_speculation): Likewise.
3437         * config/c6x/c6x.c (find_next_cycle_insn): Likewise.
3438         (find_last_same_clock): Likewise.
3439         (reorg_split_calls): Likewise.
3440         * config/cris/cris-protos.h (cris_cc0_user_requires_cmp): Likewise.
3441         * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise.
3442         * config/h8300/h8300-protos.h (same_cmp_preceding_p): Likewise.
3443         (same_cmp_following_p): Likewise.
3444         * config/h8300/h8300.c (same_cmp_preceding_p): Likewise.
3445         (same_cmp_following_p): Likwise.
3446         * config/m32r/m32r.c (m32r_expand_epilogue): Likewise.
3447         * config/nds32/nds32-protos.h (nds32_target_alignment): Likewise.
3448         * config/nds32/nds32.c (nds32_target_alignment): Likewise.
3449         * config/rl78/rl78.c (rl78_alloc_physical_registers_op2): Likewise.
3450         (rl78_alloc_physical_registers_cmp): Likewise.
3451         (rl78_alloc_physical_registers_umul): Likewise.
3452         (rl78_calculate_death_notes): Likewise.
3453         * config/s390/s390-protos.h (s390_label_align): Likewise.
3454         * config/s390/s390.c (s390_label_align): Likewise.
3455         * config/sh/sh.c (barrier_align): Likewise.
3456         * config/sparc/sparc-protos.h (emit_cbcond_nop): Likewise.
3457         * config/sparc/sparc.c (sparc_asm_function_epilogue): Likewise.
3458         (emit_cbcond_nop): Likewise.
3460 2016-09-22  Martin Liska  <mliska@suse.cz>
3462         PR ipa/77653
3463         * ipa-icf.c (sem_variable::merge): Yield merge operation if
3464         alias address matters, not necessarily address of original.
3466 2016-09-22  Richard Biener  <rguenther@suse.de>
3468         PR middle-end/77697
3469         * gimple-fold.c (fold_array_ctor_reference): Turn asserts into
3470         fold fails.
3472 2016-09-22  Richard Biener  <rguenther@suse.de>
3474         PR middle-end/77677
3475         * gimple-match-head.c (gimple_resimplify1): Drop TREE_OVERFLOW
3476         from constant folding results.
3477         (gimple_resimplify2): Likewise.
3478         (gimple_resimplify3): Likewise.
3480 2016-09-22  Richard Biener  <rguenther@suse.de>
3482         PR middle-end/77678
3483         * expr.c (expand_expr_real_1): Guard array access against negative
3484         offset.
3486 2016-09-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3488         * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN instead
3489         of MPFR_RNDN.
3490         (format_floating): Likewise.
3492 2016-09-22  Jakub Jelinek  <jakub@redhat.com>
3494         PR fortran/77665
3495         * tree-inline.c (remap_gimple_stmt): Set has_simduid_loops
3496         for all IFN_GOMP_SIMD_* internal fns, not just for
3497         IFN_GOMP_SIMD_ORDERED_*.
3499 2016-09-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
3501         PR target/77670
3502         * config/rs6000/predicates.md (invert_fpmask_comparison_operator):
3503         New predicate that matches the ISA 3.0 XSCMP{EQ,GT,GE}DP
3504         instructions when you want to invert the test.
3505         * config/rs6000/rs6000.md (fpmask<mode>): Use the arguments in the
3506         correct order for XXSEL.
3507         (mov<SFDF:mode><SFDF2:mode>cc_invert_p9): Define the inverted test
3508         for using XSCMP{EQ,GT,GE}DP.
3510 2016-09-21  David Malcolm  <dmalcolm@redhat.com>
3512         * genconstants.c (main): Introduce noop_reader and convert call
3513         to read_md_files to a method call.
3514         * genenums.c (main): Likewise.
3515         * genmddeps.c (main): Likewise.
3516         * genpreds.c (write_tm_constrs_h): Replace use of "in_fname" with
3517         rtx_reader_ptr->get_top_level_filename ().
3518         (write_tm_preds_h): Likewise.
3519         (write_insn_preds_c): Likewise.
3520         * gensupport.c (class gen_reader): New subclass of rtx_reader.
3521         (rtx_handle_directive): Convert to...
3522         (gen_reader::handle_unknown_directive): ...this.
3523         (init_rtx_reader_args_cb): Convert return type from bool to
3524         rtx_reader *.  Create a gen_reader instance, using it for the
3525         call to read_md_files.  Return it if no errors occur.
3526         (init_rtx_reader_args): Convert return type from bool to
3527         rtx_reader *.
3528         * gensupport.h (init_rtx_reader_args_cb): Likewise.
3529         (init_rtx_reader_args_cb): Likewise.
3530         * read-md.c (struct file_name_list): Move to class rtx_reader.
3531         (read_md_file): Delete in favor of rtx_reader::m_read_md_file.
3532         (read_md_filename): Delete in favor of
3533         rtx_reader::m_read_md_filename.
3534         (read_md_lineno): Delete in favor of rtx_reader::m_read_md_lineno.
3535         (in_fname): Delete in favor of rtx_reader::m_toplevel_fname.
3536         (base_dir): Delete in favor of rtx_reader::m_base_dir.
3537         (first_dir_md_include): Delete in favor of
3538         rtx_reader::m_first_dir_md_include.
3539         (last_dir_md_include_ptr): Delete in favor of
3540         rtx_reader::m_last_dir_md_include_ptr.
3541         (max_include_len): Delete.
3542         (rtx_reader_ptr): New.
3543         (fatal_with_file_and_line): Use get_filename and get_lineno
3544         accessors of rtx_reader_ptr.
3545         (require_char_ws): Likewise.
3546         (rtx_reader::read_char): New method, based on ::read_char.
3547         (rtx_reader::unread_char): New method, based on ::unread_char.
3548         (read_escape): Use get_filename and get_lineno accessors of
3549         rtx_reader_ptr.
3550         (read_braced_string): Use get_lineno accessor of rtx_reader_ptr.
3551         (read_string): Use get_filename and get_lineno accessors of
3552         rtx_reader_ptr.
3553         (rtx_reader::rtx_reader): New ctor.
3554         (rtx_reader::~rtx_reader): New dtor.
3555         (handle_include): Convert from a function to...
3556         (rtx_reader::handle_include): ...this method, converting
3557         handle_directive from a callback to a virtual function.
3558         (handle_file): Likewise, converting to...
3559         (rtx_reader::handle_file): ...this method.
3560         (handle_toplevel_file): Likewise, converting to...
3561         (rtx_reader::handle_toplevel_file): ...this method.
3562         (rtx_reader::get_current_location): New method.
3563         (parse_include): Convert from a function to...
3564         (rtx_reader::add_include_path): ...this method, dropping redundant
3565         update to unused max_include_len.
3566         (read_md_files): Convert from a function to...
3567         (rtx_reader::read_md_files): ...this method, converting
3568         handle_directive from a callback to a virtual function.
3569         (noop_reader::handle_unknown_directive): New method.
3570         * read-md.h (directive_handler_t): Delete this typedef.
3571         (in_fname): Delete.
3572         (read_md_file): Delete.
3573         (read_md_lineno): Delete.
3574         (read_md_filename): Delete.
3575         (class rtx_reader): New class.
3576         (rtx_reader_ptr): New decl.
3577         (class noop_reader): New subclass of rtx_reader.
3578         (read_char): Reimplement in terms of rtx_reader::read_char.
3579         (unread_char): Reimplement in terms of rtx_reader::unread_char.
3580         (read_md_files): Delete.
3581         * read-rtl.c (read_rtx_code): Update for deletion of globals
3582         read_md_filename and read_md_lineno.
3584 2016-09-21  Jason Merrill  <jason@redhat.com>
3586         * input.h (from_macro_definition_at): New.
3588 2016-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
3590         * doc/rtl.texi (JUMP_LABEL): Document RETURN and SIMPLE_RETURN values.
3592 2016-09-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3594         PR tree-optimization/77550
3595         * tree-vect-stmts.c (create_array_ref): Change parameters.
3596         (get_group_alias_ptr_type): New function.
3597         (vectorizable_store, vectorizable_load): Use get_group_alias_ptr_type.
3599 2016-09-21  Marek Polacek  <polacek@redhat.com>
3601         * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
3602         Add falls through comment.
3604 2016-09-21  Richard Biener  <rguenther@suse.de>
3606         * dwarf2out.c (remove_child_with_prev): Clear child->die_sib.
3607         (replace_child): Likewise.
3608         (remove_child_TAG): Adjust.
3609         (move_marked_base_types): Likewise.
3610         (prune_unused_types_prune): Clear die_sib of removed children.
3612 2016-09-21  Georg-Johann Lay  <avr@gjlay.de>
3614         PR target/77326
3615         * config/avr/avr.c (avr_notice_update_cc) [CC_NONE]: If insn
3616         touches some regs mentioned in cc_status, do CC_STATUS_INIT.
3618 2016-09-21  Richard Biener  <rguenther@suse.de>
3620         PR tree-optimization/77648
3621         * tree-ssa-structalias.c (process_constraint): Handle all DEREF
3622         with complex RHS.
3623         (make_transitive_closure_constraints): Adjust comment.
3624         (make_any_offset_constraints): New function.
3625         (handle_rhs_call): Make sure to first expand a pointer to all
3626         subfields before transitively closing it.
3627         (handle_const_call): Likewise.  Properly expand returned
3628         pointers as well.
3629         (handle_pure_call): Likewise.
3631 2016-09-21  Richard Biener  <rguenther@suse.de>
3632             Jakub Jelinek  <jakub@redhat.com>
3634         PR tree-optimization/77621
3635         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
3636         group at non-vectorizable stmts.
3638 2016-09-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
3640         PR tree-optimization/72835
3641         * tree-ssa-reassoc.c (make_new_ssa_for_def): New.
3642         (make_new_ssa_for_all_defs): Likewise.
3643         (zero_one_operation): Replace all SSA_NAMEs defined in the chain.
3645 2016-09-20  Martin Sebor  <msebor@redhat.com>
3647         PR middle-end/49905
3648         * Makefile.in (OBJS): Add gimple-ssa-sprintf.o.
3649         * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Redefine.
3650         * config/linux.c (gnu_libc_printf_pointer_format): New function.
3651         * config/sol2.h (TARGET_PRINTF_POINTER_FORMAT): Same.
3652         * config/sol2.c (solaris_printf_pointer_format): New function.
3653         * doc/invoke.texi (-Wformat-length, -fprintf-return-value): New
3654         options.
3655         * doc/tm.texi.in (TARGET_PRINTF_POINTER_FORMAT): Document.
3656         * doc/tm.texi: Regenerate.
3657         * gimple-fold.h (get_range_strlen): New function.
3658         (get_maxval_strlen): Declare existing function.
3659         * gimple-fold.c (get_range_strlen): Add arguments and compute both
3660         maximum and minimum.
3661          (get_range_strlen): Define overload.
3662         (get_maxval_strlen): Adjust.
3663         * gimple-ssa-sprintf.c: New file and pass.
3664         * passes.def (pass_sprintf_length): Add new pass.
3665         * targhooks.h (default_printf_pointer_format): Declare new function.
3666         (gnu_libc_printf_pointer_format): Same.
3667         (solaris_libc_printf_pointer_format): Same.
3668         * targhooks.c (default_printf_pointer_format): Define new function.
3669         * tree-pass.h (make_pass_sprintf_length): Declare new function.
3670         * print-tree.c: Increase buffer size.
3672 2016-09-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
3674         * tree-vrp.c (get_value_range): Teach PARM_DECL to use ipa-vrp results.
3676 2016-09-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
3678         * common.opt: New option -fipa-vrp.
3679         * ipa-cp.c (ipa_get_vr_lat): New.
3680         (ipcp_vr_lattice::print): Likewise.
3681         (print_all_lattices): Call ipcp_vr_lattice::print.
3682         (ipcp_vr_lattice::meet_with): New.
3683         (ipcp_vr_lattice::meet_with_1): Likewise.
3684         (ipcp_vr_lattice::top_p): Likewise.
3685         (ipcp_vr_lattice::bottom_p): Likewsie.
3686         (ipcp_vr_lattice::set_to_bottom): Likewise.
3687         (set_all_contains_variable): Call VR set_to_bottom.
3688         (initialize_node_lattices): Init VR lattices.
3689         (propagate_vr_accross_jump_function): New.
3690         (propagate_constants_accross_call): Call
3691         propagate_vr_accross_jump_function.
3692         (ipcp_store_vr_results): New.
3693         (ipcp_driver): Handle VR.
3694         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Handle VR.
3695         (ipa_set_jf_unknown): Likewise.
3696         (ipa_compute_jump_functions_for_edge): Likewise.
3697         (ipa_node_params_t::duplicate): Likewise.
3698         (ipa_write_jump_function): Likewise.
3699         (ipa_read_jump_function): Likewise.
3700         (write_ipcp_transformation_info): Likewise.
3701         (read_ipcp_transformation_info): Likewise.
3702         (ipcp_update_vr): New.
3703         (ipcp_transform_function): Handle VR.
3704         * ipa-prop.h (struct ipa_vr): New.
3705         * cgraph.c: Include tree-vrp.h.
3706         * cgraphunit.c: Likewise.
3707         * ipa-utils.c: Likewise.
3708         * ipa.c: Likewise.
3709         * opts.c: Likewise.
3710         * toplev.c: Likewise.
3711         * ipa-devirt.c: Likewise.
3712         * ipa-inline-transform.c: Likewise.
3713         * ipa-inline.c: Likewise.
3714         * ipa-profile.c: Likewise.
3716 2016-09-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
3718         * doc/invoke.texi: Document -fdump-tree-evrp.
3719         * passes.def: Define new pass_early_vrp.
3720         * timevar.def: Define new TV_TREE_EARLY_VRP.
3721         * tree-pass.h (make_pass_early_vrp): New.
3722         * tree-ssa-propagate.c: Make replace_uses_in non static.
3723         * tree-ssa-propagate.h: Export replace_uses_in.
3724         * tree-vrp.c (extract_range_for_var_from_comparison_expr): New.
3725         (extract_range_from_assert): Factor out
3726         extract_range_for_var_from_comparison_expr.
3727         (vrp_initialize_lattice): New.
3728         (vrp_initialize): Factor out vrp_initialize_lattice.
3729         (vrp_valueize): Fix it to reject complex value ranges.
3730         (vrp_free_lattice): New.
3731         (evrp_dom_walker::before_dom_children): Likewise.
3732         (evrp_dom_walker::after_dom_children): Likewise.
3733         (evrp_dom_walker::push_value_range): Likewise.
3734         (evrp_dom_walker::pop_value_range): Likewise.
3735         (execute_early_vrp): Likewise.
3736         (execute_vrp): Call vrp_initialize_lattice and vrp_free_lattice.
3737         (make_pass_early_vrp): New.
3739 2016-09-20  Uros Bizjak  <ubizjak@gmail.com>
3741         * config/i386/i386.md (mult->ashift peephole2s): Use pow2p_hwi
3742         instead of exact_log2.
3744 2016-09-20  Uros Bizjak  <ubizjak@gmail.com>
3746         PR target/77621
3747         * config/i386/i386.c (ix86_preferred_simd_mode) <case DFmode>:
3748         Don't return word_mode for !TARGET_VECTORIZE_DOUBLE.
3749         (ix86_add_stmt_cost): Penalize DFmode vector operations
3750         for !TARGET_VECTORIZE_DOUBLE.
3752 2016-09-20  Gerald Pfeifer  <gerald@pfeifer.com>
3754         * doc/invoke.texi (Warning Options): Simplify language.
3755         (Optimize Options): Complete sentence.
3757 2016-09-20  David Edelsohn  <dje.gcc@gmail.com>
3759         * dbxout.c (xcoff_debug_hooks):  Add filename parameter to
3760         early_finish hook.
3762 2016-09-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
3764         PR target/71395
3765         * config/rs6000/rs6000.c (rs6000_expand_vector_init): For V4SF
3766         inits on power8 and above, use the VMRGEW instruction instead of a
3767         permute.
3769         * config/rs6000/altivec.md (UNSPEC_VMRGEW_DIRECT): New unspec.
3770         (p8_vmrgew_v4sf_direct): New VMRGEW insn for V4SF floating
3771         initialization.
3773 2016-09-20  Tamar Christina  <tamar.christina@arm.com>
3775         * config/aarch64/arm_neon.h
3776         (vst2_s64, vst2_u64, vst2_f64, vst2_s8): Add missing attributes.
3777         (vst3_s64, vst3_u64, vst3_f64, vst3_s8): Likewise.
3778         (vst4_s64, vst4_u64, vst4_f64, vst4_s8): Likewise.
3780 2016-09-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3782         * config/var/vax.h (ELIMINABLE_REGS): Define.
3783         (INITIAL_ELIMINATION_OFFSET): Define.
3785 2016-09-20  Jakub Jelinek  <jakub@redhat.com>
3787         PR middle-end/77624
3788         * builtins.c (fold_builtin_atomic_always_lock_free): Only look through
3789         cast to void * if the cast is from some other pointer type.
3791 2016-09-20  Richard Biener  <rguenther@suse.de>
3793         PR tree-optimization/77646
3794         * tree-ssa-sccvn.c (visit_reference_op_call): Always value-number
3795         a VDEF.
3797 2016-09-20  Tamar Christina  <tamar.christina@arm.com>
3799         * config/aarch64/arm_neon.h: Add gnu_inline and artificial
3800         attributes to all inlined functions and make them extern.
3802 2016-09-20  Richard Biener  <rguenther@suse.de>
3804         * debug.h (gcc_debug_hooks): Add filename parameter to early_finish
3805         hook.
3806         * debug.c (do_nothing_debug_hooks): Adjust.
3807         * dbxout.c (dbx_debug_hooks): Likewise.
3808         * sdbout.c (sdb_debug_hooks): Likewise.
3809         * dwarf2out.c (dwarf2_lineno_debug_hooks): Likewise.
3810         (dwarf2out_finish): Move producer, filename and
3811         path annotation ...
3812         (dwarf2out_early_finish): ... here.  Remove in_lto_p special-casing.
3813         * cgraphunit.c (symbol_table::finalize_compilation_unit): Adjust.
3815 2016-09-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3817         PR c++/77434
3818         * doc/invoke.texi: Document -Wint-in-bool-context.
3820         PR middle-end/77421
3821         * dwarf2out.c (output_loc_operands): Fix an assertion.
3823 2016-09-19  Joseph Myers  <joseph@codesourcery.com>
3825         * ginclude/float.h [__STDC_WANT_IEC_60559_BFP_EXT__]
3826         (CR_DECIMAL_DIG): New macro.
3828 2016-09-19  Joseph Myers  <joseph@codesourcery.com>
3830         * ginclude/stddef.h (max_align_t) [__i386__]: Add __float128
3831         element.
3833 2016-09-19  Vladimir Makarov  <vmakarov@redhat.com>
3835         PR rtl-optimization/77416
3836         * lra-remat.c (operand_to_remat): Process hard coded insn
3837         registers.
3839 2016-09-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3841         * simplify-rtx.c (simplify_relational_operation_1): Add transformation
3842         (GTU (PLUS a C) (C - 1)) --> (LTU a -C).
3844 2016-09-19  Segher Boessenkool  <segher@kernel.crashing.org>
3846         * target.def (lra_p): Wordsmithing.
3847         * doc/tm.texi: Regenerate.
3849 2016-09-19  Jakub Jelinek  <jakub@redhat.com>
3850             Jan Hubicka  <jh@suse.cz>
3852         PR target/77587
3853         * cgraph.c (cgraph_node::rtl_info): Pass &avail to
3854         ultimate_alias_target call, return NULL if avail < AVAIL_AVAILABLE.
3855         Call ultimate_alias_target just once, not up to 4 times.
3857 2016-09-19  Richard Biener  <rguenther@suse.de>
3859         * dwarf2out.c (early_dwarf_finished): New global.
3860         (set_early_dwarf::set_early_dwarf): Assert early_dwarf_finished
3861         is false.
3862         (dwarf2out_early_finish): Set early_dwarf_finished at the end,
3863         if called from LTO exit early.
3864         (dwarf2out_late_global_decl): When being during the early
3865         debug phase do not add locations but only const value attributes.
3866         Adjust the way we generate early DIEs for LTO.
3868 2016-09-19  Richard Biener  <rguenther@suse.de>
3870         PR middle-end/77605
3871         * tree-data-ref.c (analyze_subscript_affine_affine): Use the
3872         proper niter to bound the loops.
3874 2016-09-19  Richard Biener  <rguenther@suse.de>
3876         PR tree-optimization/77514
3877         * tree-ssa-pre.c (create_expression_by_pieces): Optimize
3878         search for folded stmt.
3880 2016-09-17  Jan Hubicka  <hubicka@ucw.cz>
3882         * passes.def (pass_early_thread_jumps): Schedule after forwprop.
3883         * tree-pass.h (make_pass_early_thread_jumps): Declare.
3884         * tree-ssa-threadbackward.c (fsm_find_thread_path,
3885         fsm_find_thread_path, profitable_jump_thread_path,
3886         fsm_find_control_statement_thread_paths,
3887         find_jump_threads_backwards): Add speed_p parameter.
3888         (pass_data_early_thread_jumps): New pass.
3889         (make_pass_early_thread_jumps): New function.
3891 2016-09-17  Andreas Schwab  <schwab@suse.de>
3893         * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Add cast.
3894         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
3896 2016-09-16  Eric Botcazou  <ebotcazou@adacore.com>
3898         * recog.c (rest_of_handle_split_after_reload): Delete.
3899         (pass_split_after_reload::gate): New method.
3900         (pass_split_after_reload::execute): Call split_all_insns directly.
3902 2016-09-16  Jonathan Wakely  <jwakely@redhat.com>
3904         * doc/extend.texi (Integer Overflow Builtins): Fix type of out
3905         parameters for functions taking long long arguments.
3907 2016-09-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3909         PR target/77613
3910         * config/rs6000/rs6000.c (rtx_is_swappable_p): Add support for
3911         splat with truncate.
3913 2016-09-16  Jason Merrill  <jason@redhat.com>
3915         * hwint.h (least_bit_hwi, pow2_or_zerop, pow2p_hwi, ctz_or_zero):
3916         New.
3917         * hwint.c (exact_log2): Use pow2p_hwi.
3918         (ctz_hwi, ffs_hwi): Use least_bit_hwi.
3919         * alias.c (memrefs_conflict_p): Use pow2_or_zerop.
3920         * builtins.c (get_object_alignment_2, get_object_alignment)
3921         (get_pointer_alignment, fold_builtin_atomic_always_lock_free): Use
3922         least_bit_hwi.
3923         * calls.c (compute_argument_addresses, store_one_arg): Use
3924         least_bit_hwi.
3925         * cfgexpand.c (expand_one_stack_var_at): Use least_bit_hwi.
3926         * combine.c (force_to_mode): Use least_bit_hwi.
3927         (contains_muldiv, find_split_point, combine_simplify_rtx)
3928         (simplify_if_then_else, simplify_set, force_to_mode)
3929         (if_then_else_cond, simplify_and_const_int_1)
3930         (simplify_compare_const): Use pow2p_hwi.
3931         * cse.c (fold_rtx): Use pow2p_hwi.
3932         * emit-rtl.c (set_mem_attributes_minus_bitpos, adjust_address_1):
3933         Use least_bit_hwi.
3934         * expmed.c (synth_mult, expand_divmod): Use ctz_or_zero, ctz_hwi.
3935         (init_expmed_one_conv): Use pow2p_hwi.
3936         * expr.c (is_aligning_offset): Use pow2p_hwi.
3937         * fold-const.c (round_up_loc, round_down_loc): Use pow2_or_zerop.
3938         (fold_binary_loc): Use pow2p_hwi.
3939         * function.c (assign_parm_find_stack_rtl): Use least_bit_hwi.
3940         * gimple-fold.c (gimple_fold_builtin_memory_op): Use pow2p_hwi.
3941         * gimple-ssa-strength-reduction.c (replace_ref): Use least_bit_hwi.
3942         * hsa-gen.c (gen_hsa_addr_with_align, hsa_bitmemref_alignment):
3943         Use least_bit_hwi.
3944         * ifcvt.c (noce_try_store_flag_constants): Use pow2p_hwi.
3945         * ipa-cp.c (ipcp_alignment_lattice::meet_with_1): Use least_bit_hwi.
3946         * ipa-prop.c (ipa_modify_call_arguments): Use least_bit_hwi.
3947         * omp-low.c (oacc_loop_fixed_partitions)
3948         (oacc_loop_auto_partitions): Use least_bit_hwi.
3949         * rtlanal.c (nonzero_bits1): Use ctz_or_zero.
3950         * stor-layout.c (place_field): Use least_bit_hwi.
3951         * tree-pretty-print.c (dump_generic_node): Use pow2p_hwi.
3952         * tree-sra.c (build_ref_for_offset): Use least_bit_hwi.
3953         * tree-ssa-ccp.c (ccp_finalize): Use least_bit_hwi.
3954         * tree-ssa-math-opts.c (bswap_replace): Use least_bit_hwi.
3955         * tree-ssa-strlen.c (handle_builtin_memcmp): Use pow2p_hwi.
3956         * tree-vect-data-refs.c (vect_analyze_group_access_1)
3957         (vect_grouped_store_supported, vect_grouped_load_supported)
3958         (vect_permute_load_chain, vect_shift_permute_load_chain)
3959         (vect_transform_grouped_load): Use pow2p_hwi.
3960         * tree-vect-generic.c (expand_vector_divmod): Use ctz_or_zero.
3961         * tree-vect-patterns.c (vect_recog_divmod_pattern): Use ctz_or_zero.
3962         * tree-vect-stmts.c (vectorizable_mask_load_store): Use
3963         least_bit_hwi.
3964         * tsan.c (instrument_expr): Use least_bit_hwi.
3965         * var-tracking.c (negative_power_of_two_p): Use pow2_or_zerop.
3967 2016-09-16  Andreas Schwab  <schwab@suse.de>
3969         * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Use parameter
3970         OFFSET, not offset.
3971         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
3973 2016-09-16  Jakub Jelinek  <jakub@redhat.com>
3975         PR target/77526
3976         * combine.c (rest_of_handle_combine): If any edges have been purged,
3977         free dominators if available.
3979 2016-09-16  Jakub Jelinek  <jakub@redhat.com>
3980             Eric Botcazou  <ebotcazou@adacore.com>
3982         PR middle-end/77594
3983         * internal-fn.c (expand_arith_overflow) <case MINUS_EXPR>: Don't fall
3984         through into expand_addsub_overflow after expand_neg_overflow.
3986 2016-09-15  David Malcolm  <dmalcolm@redhat.com>
3988         * diagnostic-show-locus.c
3989         (selftest::test_fixit_insert_containing_newline): New function.
3990         (selftest::test_fixit_replace_containing_newline): New function.
3991         (selftest::diagnostic_show_locus_c_tests): Call the above.
3993 2016-09-15  Bin Cheng  <bin.cheng@arm.com>
3995         PR tree-optimization/77503
3996         * tree-vect-loop.c (vectorizable_reduction): Record reduction
3997         code for CONST_COND_REDUCTION at analysis stage and use it at
3998         transform stage.
3999         * tree-vectorizer.h (struct _stmt_vec_info): New field.
4000         (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): New macro.
4001         * tree-vect-stmts.c (new_stmt_vec_info): Initialize above new
4002         field.
4004 2016-09-15  Richard Biener  <rguenther@suse.de>
4006         PR middle-end/77544
4007         * fold-const.c (split_tree): Do not split constant ~X.
4009 2016-09-15  Jakub Jelinek  <jakub@redhat.com>
4011         PR rtl-optimization/77425
4012         * sched-int.h (sd_iterator_cond): Don't update it_ptr->linkp if list
4013         is NULL.
4015         PR middle-end/77475
4016         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Simplify,
4017         use %qs instead of %s where desirable, use argument instead of arg in
4018         the diagnostic wording, add list of supported strategies and
4019         spellcheck hint.
4020         (ix86_option_override_internal): Emit target("m...") instead of
4021         option("m...") in the diagnostic.  Use %qs instead of %s in invalid
4022         -march/-mtune option diagnostic.  Add list of supported arches/tunings
4023         and spellcheck hint.  Remove prefix, suffix and sw variables, use
4024         main_args_p ? "..." : "..." in diagnostics to make translation
4025         possible.
4027 2016-09-15  Richard Biener  <rguenther@suse.de>
4029         * dwarf2asm.h (dw2_asm_output_offset): Add overload with
4030         extra offset argument.
4031         * dwarf2asm.c (dw2_asm_output_offset): Implement that.
4032         * doc/tm.texi.in (ASM_OUTPUT_DWARF_OFFSET): Adjust documentation
4033         to reflect new offset parameter.
4034         * doc/tm.texi: Regenerate.
4035         * config/darwin.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
4036         * config/darwin-protos.h (darwin_asm_output_dwarf_delta): Add
4037         offset argument.
4038         (darwin_asm_output_dwarf_offset): Likewise.
4039         * config/darwin.c (darwin_asm_output_dwarf_delta): Add offset
4040         argument.
4041         (darwin_asm_output_dwarf_offset): Pass offset argument through.
4042         * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
4043         * config/i386/cygmin.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
4045 2016-09-15  Chung-Lin Tang  <cltang@codesourcery.com>
4047         PR fortran/72743
4048         * ipa-icf.c (set_alias_uids): New function.
4049         (sem_variable::merge): Use set_alias_uids to set DECL_PT_UID of
4050         all the merged variable's referring aliases.
4052 2016-09-15  Richard Biener  <rguenther@suse.de>
4054         PR tree-optimization/77514
4055         * tree-ssa-pre.c (create_expression_by_pieces): Handle garbage
4056         only forced_stmts sequence.
4058 2016-09-15  Kugan Vivekanandarajah  <kuganv@linaro.org>
4060         * tree-ssanames.h (FOR_EACH_SSA_NAME): New.
4061         * cfgexpand.c (update_alias_info_with_stack_vars): Use
4062         FOR_EACH_SSA_NAME to iterate over SSA variables.
4063         (pass_expand::execute): Likewise.
4064         * omp-simd-clone.c (ipa_simd_modify_function_body): Likewise.
4065         * tree-cfg.c (dump_function_to_file): Likewise.
4066         * tree-into-ssa.c (pass_build_ssa::execute): Likewise.
4067         (update_ssa): Likewise.
4068         * tree-ssa-alias.c (dump_alias_info): Likewise.
4069         * tree-ssa-ccp.c (ccp_finalize): Likewise.
4070         * tree-ssa-coalesce.c (build_ssa_conflict_graph): Likewise.
4071         (create_outofssa_var_map): Likewise.
4072         (coalesce_ssa_name): Likewise.
4073         * tree-ssa-operands.c (dump_immediate_uses): Likewise.
4074         * tree-ssa-pre.c (compute_avail): Likewise.
4075         * tree-ssa-sccvn.c (init_scc_vn): Likewise.
4076         (scc_vn_restore_ssa_info): Likewise.
4077         (free_scc_vn): Likwise.
4078         (run_scc_vn): Likewise.
4079         * tree-ssa-structalias.c (compute_points_to_sets): Likewise.
4080         * tree-ssa-ter.c (new_temp_expr_table): Likewise.
4081         * tree-ssa-copy.c (fini_copy_prop): Likewise.
4082         * tree-ssa.c (verify_ssa): Likewise.
4084 2016-09-14  Matthew Fortune  <matthew.fortune@imgtec.com>
4086         * config.gcc (mips*-mti-elf*, mips*-mti-linux*): Set mips32r2
4087         and mips64r2 as default 32-bit and 64-bit architectures.
4088         (mips*-img-elf*, mips*-img-linux*): Set mips32r6 and mips64r6
4089         as default 32-bit and 64-bit architectures.
4091 2016-09-14  Pat Haugen  <pthaugen@us.ibm.com>
4093         * loop-unroll.c (unroll_loop_runtime_iterations): Set probability
4094         of succ edge.
4096 2016-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
4098         * target.def (lra_p): Change commentary (for the manual) for the
4099         new default.
4100         * doc/tm.texi: Regenerate.
4102 2016-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
4104         * config/aarch64/aarch64.c (TARGET_LRA_P): Delete macro.
4105         * config/arm/arm.c (TARGET_LRA_P): Delete macro.
4106         * config/i386/i386.c (TARGET_LRA_P): Delete macro.
4107         * config/nds32/nds32.c (TARGET_LRA_P): Delete macro.
4109 2016-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
4111         * targhooks.c (default_lra_p): Return true instead of false.
4113 2016-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
4115         * config/alpha/alpha.c (TARGET_LRA_P): New macro, defined to
4116         hook_bool_void_false.
4117         * config/avr/avr.c: Ditto.
4118         * config/bfin/bfin.c: Ditto.
4119         * config/c6x/c6x.c: Ditto.
4120         * config/cr16/cr16.c: Ditto.
4121         * config/cris/cris.c: Ditto.
4122         * config/epiphany/epiphany.c: Ditto.
4123         * config/fr30/fr30.c: Ditto.
4124         * config/frv/frv.c: Ditto.
4125         * config/h8300/h8300.c: Ditto.
4126         * config/ia64/ia64.c: Ditto.
4127         * config/iq2000/iq2000.c: Ditto.
4128         * config/lm32/lm32.c: Ditto.
4129         * config/m32c/m32c.c: Ditto.
4130         * config/m32r/m32r.c: Ditto.
4131         * config/m68k/m68k.c: Ditto.
4132         * config/mcore/mcore.c: Ditto.
4133         * config/microblaze/microblaze.c: Ditto.
4134         * config/mmix/mmix.c: Ditto.
4135         * config/mn10300/mn10300.c: Ditto.
4136         * config/moxie/moxie.c: Ditto.
4137         * config/msp430/msp430.c: Ditto.
4138         * config/nios2/nios2.c: Ditto.
4139         * config/nvptx/nvptx.c: Ditto.
4140         * config/pa/pa.c: Ditto.
4141         * config/pdp11/pdp11.c: Ditto.
4142         * config/rl78/rl78.c: Ditto.
4143         * config/sparc/sparc.c: Ditto.
4144         * config/spu/spu.c: Ditto.
4145         * config/stormy16/stormy16.c: Ditto.
4146         * config/tilegx/tilegx.c: Ditto.
4147         * config/tilepro/tilepro.c: Ditto.
4148         * config/v850/v850.c: Ditto.
4149         * config/vax/vax.c: Ditto.
4150         * config/visium/visium.c: Ditto.
4151         * config/xtensa/xtensa.c: Ditto.
4153 2016-09-14  Jakub Jelinek  <jakub@redhat.com>
4155         PR sanitizer/68260
4156         * tsan.c: Include target.h.
4157         (enum tsan_atomic_action): Add bool_clear and bool_test_and_set.
4158         (BOOL_CLEAR, BOOL_TEST_AND_SET): Define.
4159         (tsan_atomic_table): Add BUILT_IN_ATOMIC_CLEAR and
4160         BUILT_IN_ATOMIC_TEST_AND_SET entries.
4161         (instrument_builtin_call): Handle bool_clear and bool_test_and_set.
4163 2016-09-14  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4164             Martin Liska  <mliska@suse.cz>
4166         PR middle-end/77574
4167         * predict.c (force_edge_cold): Add braces to a condition.
4169 2016-09-13  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4171         PR rtl-optimization/77289
4172         * lra-constraints.c (get_final_hard_regno): Removed.
4173         (get_hard_regno): Add new parameter final_p.
4174         (get_reg_class): Directly call lra_get_elimination_hard_regno.
4175         (operands_match_p): Adjust call to get_hard_regno.
4176         (uses_hard_regs_p): Likewise.
4177         (process_alt_operands): Likewise.
4179 2016-09-13  Joe Seymour  <joe.s@somniumtech.com>
4181         PR target/70713
4182         * config/msp430/msp430.c (msp430_start_function): Emit an error
4183         if a function is both weak and specifies an interrupt number.
4185 2016-09-13  Jakub Jelinek  <jakub@redhat.com>
4187         PR tree-optimization/77454
4188         * tree-ssa-dom.c (optimize_stmt): Set modified flag on stmt after
4189         changing GIMPLE_COND.  Move update_stmt_if_modified call after this.
4190         Formatting fix.
4192 2016-09-13  Tamar Christina  <tamar.christina@arm.com>
4194         * config/aarch64/aarch64-builtins.c
4195         (aarch64_init_simd_builtins): Fix builtin type signature printing.
4197 2016-09-13  Uros Bizjak  <ubizjak@gmail.com>
4199         * config/alpha/alpha.c (alpha_pass_by_reference): Pass un-named
4200         SFmode and SCmode arguments by reference.
4202 2016-09-13  David Malcolm  <dmalcolm@redhat.com>
4204         * diagnostic-show-locus.c (selftest::test_one_liner_fixit_insert):
4205         Rename to...
4206         (selftest::test_one_liner_fixit_insert_before): ...this, and update
4207         for renaming of add_fixit_insert to add_fixit_insert_before.
4208         (selftest::test_one_liner_fixit_insert_after): New function.
4209         (selftest::test_one_liner_fixit_validation_adhoc_locations):
4210         Update for renaming of add_fixit_insert to add_fixit_insert_before.
4211         (selftest::test_one_liner_many_fixits): Likewise.
4212         (selftest::test_diagnostic_show_locus_one_liner): Update for
4213         renaming, call new test function.
4214         (selftest::test_diagnostic_show_locus_fixit_lines): Update for
4215         renaming of add_fixit_insert to add_fixit_insert_before.
4216         (selftest::test_fixit_consolidation): Likewise.
4217         * diagnostic.c (selftest::test_print_parseable_fixits_insert):
4218         Likewise.
4219         * edit-context.c (selftest::test_applying_fixits_insert): Rename to...
4220         (selftest::test_applying_fixits_insert_before): ...this.
4221         (selftest::test_applying_fixits_insert): Update for renaming of
4222         add_fixit_insert to add_fixit_insert_before.
4223         (selftest::test_applying_fixits_insert_after): New function.
4224         (selftest::test_applying_fixits_insert_after_at_line_end): New
4225         function.
4226         (selftest::test_applying_fixits_insert_after_failure): New function.
4227         (selftest::test_applying_fixits_multiple): Update for renaming of
4228         add_fixit_insert to add_fixit_insert_before.
4229         (selftest::change_line): Likewise.
4230         (selftest::test_applying_fixits_unreadable_file): Likewise.
4231         (selftest::test_applying_fixits_line_out_of_range): Likewise.
4232         (selftest::test_applying_fixits_column_validation): Likewise.
4233         (selftest::test_applying_fixits_column_validation): Likewise.
4234         (selftest::edit_context_c_tests): Update for renamed test function;
4235         call new test functions.
4237 2016-09-13  Pat Haugen  <pthaugen@us.ibm.com>
4239         PR tree-optimization/77536
4240         PR rtl-optimization/68212
4241         * config/rs6000/rs6000.md (div->recip splitter): Remove
4242         optimize_insn_for_speed_p condition.
4244 2016-09-13  Maciej W. Rozycki  <macro@imgtec.com>
4246         * optabs.c (prepare_cmp_insn): Update documentation comment.
4248 2016-09-13  Jakub Jelinek  <jakub@redhat.com>
4249             Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4251         PR middle-end/77475
4252         * opts.h (candidates_list_and_hint): Declare.
4253         * opts-common.c (candidates_list_and_hint): New function.
4254         (cmdline_handle_error): Use it.
4256 2016-09-12  David Malcolm  <dmalcolm@redhat.com>
4258         * edit-context.c (edited_line::get_len): New accessor.
4259         (edited_file::print_diff): Split out hunk-printing into...
4260         (edited_file::print_diff_hunk): New method.
4261         (edited_file::print_diff_line): New method.
4263 2016-09-12  Andrew Pinski  <apinski@cavium.com>
4265         * config/aarch64/aarch64-tuning-flags.def (SLOW_UNALIGNED_LDPW):
4266         New tuning option.
4267         * config/aarch64/aarch64.c (thunderx_tunings): Enable
4268         AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW.
4269         (aarch64_operands_ok_for_ldpstp): Return false if
4270         AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW and the mode
4271         was SImode and the alignment is less than 8 byte.
4272         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
4274 2016-09-12  Orlando Arias  <oarias@knights.ucf.edu>
4276         PR target/77570
4277         * config/msp430/msp430.md (delay_cycles_32x): Fix pushm/popm.
4279 2016-09-12  Marek Polacek  <polacek@redhat.com>
4281         * doc/extend.texi: Use lowercase "boolean".
4282         * doc/invoke.texi: Likewise.
4283         * doc/md.texi: Likewise.
4284         * target.def: Likewise.
4285         * doc/tm.texi: Regenerated.
4287 2016-09-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4289         PR middle-end/77426
4290         * expmed.c (synth_mult): Delete duplicate mode check.
4292 2016-09-10  Tom de Vries  <tom@codesourcery.com>
4294         PR C/71602
4295         * builtins.c (std_canonical_va_list_type): Strictly return non-null for
4296         va_list type only.
4297         * config/i386/i386.c (ix86_canonical_va_list_type): Same.
4298         * gimplify.c (gimplify_va_arg_expr): Handle &va_list.
4300 2016-09-09  Peter Bergner  <bergner@vnet.ibm.com>
4302         PR rtl-optimization/77289
4303         * lra-constraints.c (get_final_hard_regno): Add support for non hard
4304         register numbers.  Remove support for subregs.
4305         (get_hard_regno): Use SUBREG_P.  Don't call get_final_hard_regno().
4306         (get_reg_class): Delete removed get_final_hard_regno() argument.
4307         (uses_hard_regs_p): Call get_final_hard_regno().
4309 2016-09-09  Martin Sebor  <msebor@redhat.com>
4311         PR c/77520
4312         PR c/77521
4313         * pretty-print.c (pp_quoted_string): New function.
4314         (pp_format): Call it for %c and %s directives.
4316 2016-09-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4318         * doc/tm.texi.in (INITIAL_FRAME_POINTER_OFFSET): Remove.
4319         (ELIMINABLE_REGS, TARGET_CAN_ELIMINATE,
4320         INITIAL_ELIMINATION_OFFSET) : Update documentation.
4321         * target.def (frame_pointer_required, can_eliminate): Likewise.
4322         * doc/tm.texi: Regenerated.
4323         * builtins.c (expand_builtin_setjmp_receiver): Remove #ifdef
4324         ELIMINABLE_REGS.
4325         * df-scan.c (df_hard_reg_init): Likewise.
4326         * ira.c (ira_setup_eliminable_regset): Likewise.
4327         * lra-eliminations.c (reg_eliminate_1, (update_reg_eliminate,
4328         init_elim_table): Likewise.
4329         * reload1.c (reg_eliminate_1, verify_initial_elim_offsets,
4330         set_initial_elim_offsets, update_eliminables,
4331         init_elim_table): Likewise.
4332         * rtlanal.c (get_initial_register_offset): Likewise.
4333         * config/ft32/ft32.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
4334         * config/m32r/m32r.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
4335         * config/moxie/moxie.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
4336         * config/vax/vax.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
4337         * config/fr30/fr30.h: Fix comment.
4338         * config/frv/frv.c: Likewise.
4339         * config/frv/frv.h: Likewise.
4340         * config/ft32/ft32.h: Likewise.
4341         * config/visium/visium.h: Likewise.
4342         * config/pa/pa64-linux.h: Likewise.
4343         * config/v850/v850.h: Likewise.
4344         * config/cris/cris.c: Likewise.
4345         * config/ia64/ia64.h: Likewise.
4346         * config/moxie/moxie.h: Likewise.
4347         * config/m32r/m32r.h: Likewise.
4349 2016-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4351         PR target/77267
4352         * config.in: Regenerate.
4353         * config/i386/linux-common.h (MPX_LD_AS_NEEDED_GUARD_PUSH):
4354         New macro.
4355         (MPX_LD_AS_NEEDED_GUARD_PUSH): Ditto.
4356         (LIBMPXWRAPPERS_SPEC): Remove "--no-whole-archive" from
4357         static-libmpxwrappers case.
4358         (LIBMPX_SPEC): Add guards with MPX_LD_AS_NEEDED_GUARD_PUSH and
4359         MPX_LD_AS_NEEDED_GUARD_POP.
4360         * configure: Regenerate.
4361         * configure.ac (HAVE_LD_PUSHPOPSTATE_SUPPORT): New variable.
4362         defined if linker support "--push-state"/"--pop-state".
4364 2016-09-09  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4366         * doc/cpp.texi (__*_WIDTH__): Small wording fixes.
4368 2016-09-09  Joseph Myers  <joseph@codesourcery.com>
4370         * doc/cpp.texi (__SCHAR_WIDTH__, __SHRT_WIDTH__, __INT_WIDTH__)
4371         (__LONG_WIDTH__, __LONG_LONG_WIDTH__, __PTRDIFF_WIDTH__)
4372         (__SIG_ATOMIC_WIDTH__, __SIZE_WIDTH__, __WCHAR_WIDTH__)
4373         (__WINT_WIDTH__, __INT_LEAST8_WIDTH__, __INT_LEAST16_WIDTH__)
4374         (__INT_LEAST32_WIDTH__, __INT_LEAST64_WIDTH__)
4375         (__INT_FAST8_WIDTH__, __INT_FAST16_WIDTH__, __INT_FAST32_WIDTH__)
4376         (__INT_FAST64_WIDTH__, __INTPTR_WIDTH__, __INTMAX_WIDTH__):
4377         Document.
4378         * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Define
4379         width macros from TS 18661-1.
4380         * glimits.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Likewise.
4382 2016-09-08  Jakub Jelinek  <jakub@redhat.com>
4384         PR fortran/77516
4385         * omp-low.c (lower_rec_simd_input_clauses): Use max_vf for non-positive
4386         OMP_CLAUSE_SAFELEN_EXPR.
4388 2016-09-07  David Malcolm  <dmalcolm@redhat.com>
4390         * Makefile.in (OBJS): Add substring-locations.o.
4391         * langhooks-def.h (class substring_loc): New forward decl.
4392         (lhd_get_substring_location): New decl.
4393         (LANG_HOOKS_GET_SUBSTRING_LOCATION): New macro.
4394         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_GET_SUBSTRING_LOCATION.
4395         * langhooks.c (lhd_get_substring_location): New function.
4396         * langhooks.h (class substring_loc): New forward decl.
4397         (struct lang_hooks): Add field get_substring_location.
4398         * substring-locations.c: New file, taking definition of
4399         format_warning_va and format_warning_at_substring from
4400         c-family/c-format.c, making them non-static.
4401         * substring-locations.h (class substring_loc): Move class here
4402         from c-family/c-common.h.  Add and rewrite comments.
4403         (format_warning_va): New decl.
4404         (format_warning_at_substring): New decl.
4405         (get_source_location_for_substring): Add comment.
4407 2016-09-07  Eric Gallager  <egall@gwmail.gwu.edu>
4409         * config/i386/i386.c: Add 'U' suffix to processor feature bits
4410         to avoid -Wnarrowing warning.
4411         * config/i386/x86-tune.def: Likewise for DEF_TUNE selector bitmasks.
4412         * opts.c: Likewise for SANITIZER_OPT bitmasks.
4414 2016-09-07  Wilco Dijkstra  <wdijkstr@arm.com>
4416         * config/aarch64/aarch64.c (aarch64_legitimize_address):
4417         Avoid use of base_offset if offset already in range.
4419 2016-09-07  Kaz Kojima  <kkojima@gcc.gnu.org>
4421         * config/sh/sh-protos.h (struct sh_atomic_model,
4422         selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
4423         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
4424         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Move to...
4425         * config/sh/sh.h (struct sh_atomic_model,
4426         selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
4427         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
4428         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): ...here.
4429         Guard with __cplusplus.
4431 2016-09-06  Jakub Jelinek  <jakub@redhat.com>
4433         PR target/69255
4434         * config/i386/i386.c (ix86_expand_builtin): For builtin with
4435         unsupported or unknown ISA, use expand_call.
4437 2016-09-06  Martin Liska  <mliska@suse.cz>
4439         PR gcov-profile/77378
4440         PR gcov-profile/77466
4441         * tree-profile.c (tree_profiling): Detect whether target can use
4442         -fprofile-update=atomic.
4444 2016-09-06  Richard Biener  <rguenther@suse.de>
4446         PR tree-optimization/77479
4447         * tree-vrp.c (update_value_range): Extend overflow handling to
4448         VARYING.
4450 2016-09-05  Jakub Jelinek  <jakub@redhat.com>
4452         PR target/77476
4453         * config/i386/i386.md (isa): Add x64_avx512bw.
4454         (*zero_extendsidi2): For alternative 11 use x64_avx512bw isa.
4455         (kmov_isa): New mode attr.
4456         (zero_extend<mode>di2): Use <kmov_isa> isa for the last alternative.
4457         (*zero_extend<mode>si2): Likewise.
4458         (*zero_extendqihi2): Use avx512dq isa for the last alternative.
4460 2016-09-05  Gerald Pfeifer  <gerald@pfeifer.com>
4462         * doc/invoke.texi (SPU Options): nops -> NOPs.
4463         (x86 Options): Ditto.
4465 2016-09-05  Jakub Jelinek  <jakub@redhat.com>
4467         PR middle-end/77475
4468         * toplev.c (process_options): Temporarily set input_location
4469         to UNKNOWN_LOCATION around targetm.target_option.override () call.
4471 2016-09-05  Uros Bizjak  <ubizjak@gmail.com>
4473         PR rtl-optimization/77452
4474         * explow.c (plus_constant) <case MEM>: Extract scalar constant from
4475         inner-mode reference to a CONST_VECTOR constant in the constant pool.
4477 2016-09-05  Marek Polacek  <polacek@redhat.com>
4479         PR c/77423
4480         * doc/invoke.texi: Update -Wlogical-not-parentheses documentation.
4482 2016-09-05  Jakub Jelinek  <jakub@redhat.com>
4484         PR other/77421
4485         * gensupport.c (alter_output_for_subst_insn): Remove redundant
4486         *insn_out == '*' test.  Don't copy unnecessary to yet another
4487         memory buffer, and don't leak it.
4489         PR rtl-optimization/77425
4490         * ipa-devirt.c (get_odr_type): Set val->id unconditionally.
4492 2016-09-03  Kirill Yukhin  <kirill.yukhin@intel.com>
4494         * ubsan.c (ubsan_use_new_style_p): Fix check for empty string.
4496 2016-09-02  David Malcolm  <dmalcolm@redhat.com>
4498         * common.opt (fdiagnostics-generate-patch): New option.
4499         * diagnostic.c: Include "edit-context.h".
4500         (diagnostic_initialize): Initialize context->edit_context_ptr.
4501         (diagnostic_finish): Delete context->edit_context_ptr.
4502         (diagnostic_report_diagnostic): Add fix-it hints from the
4503         diagnostic to context->edit_context_ptr, if any.
4504         * diagnostic.h (class edit_context): Add forward decl.
4505         (struct diagnostic_context): Add field "edit_context_ptr".
4506         * doc/invoke.texi (Diagnostic Message Formatting Options): Add
4507         -fdiagnostics-generate-patch.
4508         (-fdiagnostics-generate-patch): New item.
4509         * toplev.c: Include "edit-context.h".
4510         (process_options): Set global_dc->edit_context_ptr to a new
4511         edit_context if the options need one.
4512         (toplev::main): Handle -fdiagnostics-generate-patch by using
4513         global_dc->edit_context_ptr.
4515 2016-09-02  Jakub Jelinek  <jakub@redhat.com>
4517         PR c/65467
4518         * gimplify.c (gimplify_adjust_omp_clauses_1): Diagnose implicit
4519         map and firstprivate clauses on target construct for _Atomic
4520         qualified decls.
4521         (gimplify_adjust_omp_clauses): Diagnose explicit firstprivate clauses
4522         on target construct for _Atomic qualified decls.
4523         * omp-low.c (use_pointer_for_field): Return true for _Atomic qualified
4524         decls.
4525         * omp-simd-clone.c (simd_clone_clauses_extract): Warn and give up for
4526         _Atomic qualified arguments not mentioned in uniform clause.
4528 2016-09-02  David Malcolm  <dmalcolm@redhat.com>
4530         * Makefile.in (OBJS-libcommon): Add edit-context.o.
4531         * diagnostic-color.c (color_dict): Add "diff-filename",
4532         "diff-hunk", "diff-delete", and "diff-insert".
4533         (parse_gcc_colors): Update default value of GCC_COLORS in comment
4534         to reflect above changes.
4535         * doc/invoke.texi (-fdiagnostics-color): Update description of
4536         default GCC_COLORS, and of the supported capabilities.
4537         * edit-context.c: New file.
4538         * edit-context.h: New file.
4539         * input.c (struct fcache): Add field "missing_trailing_newline".
4540         (diagnostics_file_cache_forcibly_evict_file): Initialize it to
4541         true.
4542         (add_file_to_cache_tab): Likewise.
4543         (fcache::fcache): Likewise.
4544         (get_next_line): Update c->missing_trailing_newline.
4545         (location_missing_trailing_newline): New function.
4546         * input.h (location_missing_trailing_newline): New decl.
4547         * selftest-run-tests.c (selftest::run_tests): Call
4548         edit_context_c_tests.
4549         * selftest.h (edit_context_c_tests): New decl.
4551 2016-09-02  Jakub Jelinek  <jakub@redhat.com>
4552             Richard Biener  <rguenth@suse.de>
4554         PR tree-optimization/77444
4555         * tree-ssa-loop-ivopts.c (cand_value_at): For pointers use sizetype
4556         as steptype, remove redundant initialization.
4558 2016-09-02  Jakub Jelinek  <jakub@redhat.com>
4560         PR sanitizer/77396
4561         * sanopt.c: Include gimple-ssa.h, tree-phinodes.h and ssa-iterators.h.
4562         (sanopt_optimize_walker): Optimize away
4563         __asan_before_dynamic_init (...) followed by
4564         __asan_after_dynamic_init () without intervening memory loads/stores.
4565         * ipa-pure-const.c (special_builtin_state): Handle
4566         BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT and
4567         BUILT_IN_ASAN_AFTER_DYNAMIC_INIT.
4569 2016-09-02  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
4571         * cfg.c (free_original_copy_tables): Replace second assignment of
4572         bb_copy = NULL by bb_original = NULL.
4574 2016-09-02  Jakub Jelinek  <jakub@redhat.com>
4576         PR other/77421
4577         * config/i386/i386.c (ix86_expanded_args_builtin): Remove redundant
4578         assignment added in r216794.
4580 2016-09-02  David Malcolm  <dmalcolm@redhat.com>
4582         * Makefile.in (OBJS): Add typed-splay-tree.o.
4583         * selftest-run-tests.c (selftest::run_tests): Call
4584         typed_splay_tree_c_tests.
4585         * selftest.h (typed_splay_tree_c_tests): New decl.
4586         * typed-splay-tree.c: New file.
4587         * typed-splay-tree.h (typed_splay_tree::foreach_fn): New typedef.
4588         (typed_splay_tree::max): New method.
4589         (typed_splay_tree::min): New method.
4590         (typed_splay_tree::foreach): New method.
4591         (typed_splay_tree::closure): New struct.
4592         (typed_splay_tree::inner_foreach_fn): New function.
4594 2016-09-02  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
4596         * ipa-cp.c (ipcp_store_bits_results): Change option name from
4597         -fipa-cp-bit to -fipa-bit-cp.
4599 2016-09-01  Martin Sebor  <msebor@redhat.com>
4601         PR tree-optimization/71831
4602         * tree-object-size.h: Return bool instead of the size and add
4603         argument for the size.
4604         * tree-object-size.c (compute_object_offset): Update signature.
4605         (addr_object_size): Same.
4606         (compute_builtin_object_size): Return bool instead of the size
4607         and add argument for the size.  Handle POINTER_PLUS_EXPR when
4608         optimization is disabled.
4609         (expr_object_size): Adjust.
4610         (plus_stmt_object_size): Adjust.
4611         (pass_object_sizes::execute): Adjust.
4612         * builtins.c (fold_builtin_object_size): Adjust.
4613         * doc/extend.texi (Object Size Checking): Update.
4614         * ubsan.c (instrument_object_size): Adjust.
4616 2016-09-01  Martin Sebor  <msebor@redhat.com>
4618         * genmatch.c (parser::parse_expr): Increase buffer size to guarantee
4619         it fits the output of the formatted function regardless of its
4620         arguments.
4621         * gcc/genmodes.c (parser::parse_expr): Same.
4622         * gimplify.c (gimplify_asm_expr): Same.
4623         * passes.c (pass_manager::register_one_dump_file): Same.
4624         * print-tree.c (print_node): Same.
4626 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
4628         * config/rs6000/altivec.md: Use VSCR_REGNO instead of 110 throughout.
4630 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
4632         * config/rs6000/altivec.md: Use VRSAVE_REGNO instead of 109 throughout.
4634 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
4636         * config/rs6000/altivec.md: Use CR6_REGNO instead of 74 throughout.
4637         * config/rs6000/vector.md: Ditto.
4638         * config/rs6000/vsx.md: Ditto.
4640 2016-09-01  Eric Botcazou  <ebotcazou@adacore.com>
4642         * ipa-inline-analysis.c (param_change_prob): Get to the base object
4643         first in all cases.
4645 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
4647         * config/rs6000/rs6000.md (*restore_gpregs_<mode>_r11,
4648         *restore_gpregs_<mode>_r12, *restore_gpregs_<mode>_r1,
4649         *return_and_restore_gpregs_<mode>_r11,
4650         *return_and_restore_gpregs_<mode>_r12,
4651         *return_and_restore_gpregs_<mode>_r1,
4652         *return_and_restore_fpregs_<mode>_r11,
4653         *return_and_restore_fpregs_<mode>_r12,
4654         *return_and_restore_fpregs_<mode>_r1): Use the hard register LR_REGNO
4655         directly instead of via the "l" constraint.  Renumber operands.
4656         Fix whitespace.
4658 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
4660         * config/rs6000/altivec.md (*save_world, *save_vregs_<mode>_r11,
4661         save_vregs_<mode>_r12, *restore_vregs_<mode>_r11,
4662         *restore_vregs_<mode>_r12): Use LR_REGNO instead of 65.
4663         * config/rs6000/darwin.md (load_macho_picbase, load_macho_picbase_si,
4664         load_macho_picbase_di, *call_indirect_nonlocal_darwin64,
4665         *call_nonlocal_darwin64, *call_value_indirect_nonlocal_darwin64,
4666         *call_value_nonlocal_darwin64, reload_macho_picbase,
4667         reload_macho_picbase_si, reload_macho_picbase_di): Ditto.
4668         * config/rs6000/rs6000.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Ditto.
4669         * config/rs6000/rs6000.md (*save_gpregs_<mode>_r11,
4670         *save_gpregs_<mode>_r12, *save_gpregs_<mode>_r1,
4671         *save_fpregs_<mode>_r11, *save_fpregs_<mode>_r12,
4672         *save_fpregs_<mode>_r1): Ditto.
4673         * config/rs6000/spe.md (*save_gpregs_spe, *restore_gpregs_spe,
4674         *return_and_restore_gpregs_spe): Ditto.
4676 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
4678         * config/rs6000/rs6000.md
4679         (define_insn "*return_and_restore_fpregs_aix_<mode>_r11"): Delete
4680         the use of the link register.
4681         (define_insn "*return_and_restore_fpregs_aix_<mode>_r1"): Ditto.
4683 2016-09-01  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4684             Michael Meissner  <meissner@linux.vnet.ibm.com>
4686         PR target/72827
4687         * config/rs6000/rs6000.c (rs6000_legitimize_address): Avoid
4688         reg+reg addressing for TImode.
4689         (rs6000_legitimate_address_p): Only allow register indirect
4690         addressing for TImode, even without TARGET_QUAD_MEMORY.
4692 2016-09-01  Richard Biener  <rguenther@suse.de>
4694         PR middle-end/77436
4695         * tree-chrec.c (tree_fold_binomial): Use widest_int, properly
4696         check whether the result fits the desired result type.
4698 2016-09-01  Nathan Sidwell  <nathan@acm.org>
4700         * config/nvptx/nvptx.md (cbranch<mode>4): Op 2 can be const.
4702 2016-09-01  Wilco Dijkstra  <wdijkstr@arm.com>
4704         * config/aarch64/aarch64.c (aarch64_legitimize_address_displacement):
4705         New function.
4706         (TARGET_LEGITIMIZE_ADDRESS_DISPLACEMENT): Define.
4708 2016-09-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4710         * config/aarch64/aarch64.md (*ands<mode>_compare0): New pattern.
4711         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_NZmode
4712         for comparisons of integer ZERO_EXTEND against zero.
4714 2016-09-01  Eric Botcazou  <ebotcazou@adacore.com>
4716         * config/i386/i386.c (ix86_option_override_internal): Also disable the
4717         STV pass if -mstackrealign is enabled.
4719 2016-08-31  Ilya Verbin  <iverbin@gmail.com>
4721         * config/i386/driver-i386.c (host_detect_local_cpu): Fix detection of
4722         AVX512IFMA.
4724 2016-08-31  David Malcolm  <dmalcolm@redhat.com>
4726         * diagnostic-show-locus.c (class layout): Add field m_fixit_hints.
4727         (layout_range::intersects_line_p): New method.
4728         (test_range_contains_point_for_single_point): Rename to...
4729         (test_layout_range_for_single_point): ...this, and add testing
4730         for layout_range::intersects_line_p.
4731         (test_range_contains_point_for_single_line): Rename to...
4732         (test_layout_range_for_single_line): ...this,  and add testing
4733         for layout_range::intersects_line_p.
4734         (test_range_contains_point_for_multiple_lines): Rename to...
4735         (test_layout_range_for_multiple_lines): ...this,  and add testing
4736         for layout_range::intersects_line_p.
4737         (layout::layout): Populate m_fixit_hints.
4738         (layout::get_expanded_location): Handle the case of a line-span
4739         for a fix-it hint.
4740         (layout::validate_fixit_hint_p): New method.
4741         (get_line_span_for_fixit_hint): New function.
4742         (layout::calculate_line_spans): Add spans for fixit-hints.
4743         (layout::should_print_annotation_line_p): New method.
4744         (layout::print_any_fixits): Drop param "richloc", instead using
4745         validated fixits in m_fixit_hints.  Add "const" to hint pointers.
4746         (diagnostic_show_locus): Avoid printing blank annotation lines.
4747         (selftest::test_diagnostic_context::test_diagnostic_context):
4748         Initialize show_column and start_span.
4749         (selftest::test_diagnostic_context::start_span_cb): New static
4750         function.
4751         (selftest::test_diagnostic_show_locus_fixit_lines): New function.
4752         (selftest::diagnostic_show_locus_c_tests): Update for function
4753         renamings.  Call test_diagnostic_show_locus_fixit_lines.
4755 2016-08-31  Marc Glisse  <marc.glisse@inria.fr>
4757         PR tree-optimization/73714
4758         * match.pd (a * (1 << b)): Revert change from 2016-05-23.
4760 2016-08-31  David Malcolm  <dmalcolm@redhat.com>
4762         * selftest.c: Move "namespace selftest {" to top of file,
4763         removing explicit "selftest::" qualifiers throughout.
4765 2016-08-31  Marc Glisse  <marc.glisse@inria.fr>
4767         * config/i386/avx512fintrin.h (__m512_u, __m512i_u, __m512d_u):
4768         New types.
4769         (_mm512_loadu_pd, _mm512_storeu_pd, _mm512_loadu_ps,
4770         _mm512_storeu_ps, _mm512_loadu_si512, _mm512_storeu_si512):
4771         Replace builtin with vector extension.
4772         * config/i386/avxintrin.h (__m256_u, __m256i_u, __m256d_u):
4773         New types.
4774         (_mm256_loadu_pd, _mm256_storeu_pd, _mm256_loadu_ps,
4775         _mm256_storeu_ps, _mm256_loadu_si256, _mm256_storeu_si256):
4776         Replace builtin with vector extension.
4777         * config/i386/emmintrin.h (__m128i_u, __m128d_u): New types.
4778         (_mm_loadu_pd, _mm_storeu_pd, _mm_loadu_si128, _mm_storeu_si128):
4779         Replace builtin with vector extension.
4780         * config/i386/xmmintrin.h (__m128_u): New type.
4781         (_mm_loadu_ps, _mm_storeu_ps): Replace builtin with vector extension.
4782         (_mm_load_ps, _mm_store_ps): Simplify.
4784 2016-08-31  Eric Botcazou  <ebotcazou@adacore.com>
4786         * config/arm/arm.c (thumb1_size_rtx_costs) <SET>: Add missing guard.
4788 2016-08-30  David Malcolm  <dmalcolm@redhat.com>
4790         * diagnostic-show-locus.c (colorizer::begin_state): Support more
4791         than 3 ranges per diagnostic by alternating between color 1 and
4792         color 2.
4793         (layout::layout): Replace use of rich_location::MAX_RANGES
4794         with richloc->get_num_locations ().
4795         (layout::calculate_line_spans): Replace use of
4796         rich_location::MAX_RANGES with m_layout_ranges.length ().
4797         (layout::print_annotation_line): Handle arbitrary numbers of
4798         ranges in caret-printing by defaulting to '^'.
4799         (selftest::test_one_liner_many_fixits): New function.
4800         (test_diagnostic_show_locus_one_liner): Call it.
4801         * diagnostic.c (diagnostic_initialize): Update for renaming
4802         of rich_location::MAX_RANGES to
4803         rich_location::STATICALLY_ALLOCATED_RANGES.
4804         * diagnostic.h (struct diagnostic_context): Likewise.
4806 2016-08-30  David Malcolm  <dmalcolm@redhat.com>
4808         * selftest.c (selftest::named_temp_file::named_temp_file): New
4809         ctor.
4810         (selftest::temp_source_file::~temp_source_file): Move to...
4811         (selftest::named_temp_file::~named_temp_file): ...here.
4812         (selftest::test_named_temp_file): New function.
4813         (selftest::selftest_c_tests): Call test_named_temp_file.
4814         * selftest.h (class named_temp_file): New class.
4815         (class temp_source_file): Convert to a subclass of named_temp_file.
4817 2016-08-30  Segher Boessenkool  <segher@kernel.crashing.org>
4819         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Do not emit
4820         USEs of LR_REGNO in returns and sibcalls.
4821         (rs6000_output_mi_thunk): Similar.
4822         (rs6000_sibcall_aix): Similar.
4823         * config/rs6000/rs6000.md (sibcall, sibcall_value, sibcall_local32,
4824         sibcall_local64, sibcall_value_local32, sibcall_value_local64,
4825         sibcall_nonlocal_sysv<mode>, sibcall_value_nonlocal_sysv<mode>):
4826         Remove the USE of LR_REGNO from the patterns as well.  Delete an
4827         obsolete comment.
4828         (return_internal_<mode>): Delete.
4830 2016-08-30  Tamar Christina  <tamar.christina@arm.com>
4832         * gcc/config/aarch64/aarch64-simd.md
4833         (aarch64_ld2<mode>_dreg_le): New.
4834         (aarch64_ld2<mode>_dreg_be): New.
4835         (aarch64_ld2<mode>_dreg): Removed.
4836         (aarch64_ld3<mode>_dreg_le): New.
4837         (aarch64_ld3<mode>_dreg_be): New.
4838         (aarch64_ld3<mode>_dreg): Removed.
4839         (aarch64_ld4<mode>_dreg_le): New.
4840         (aarch64_ld4<mode>_dreg_be): New.
4841         (aarch64_ld4<mode>_dreg): Removed.
4842         (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Wrapper around _le, _be.
4844 2016-08-30  David Malcolm  <dmalcolm@redhat.com>
4846         * diagnostic-show-locus.c (test_one_liner_fixit_insert): Remove
4847         redundant location param.
4848         (test_one_liner_fixit_remove): Likewise.
4849         (test_one_liner_fixit_replace): Likewise.
4850         (test_one_liner_fixit_replace_equal_secondary_range): Likewise.
4851         * gcc-rich-location.c
4852         (gcc_rich_location::add_fixit_misspelled_id): Eliminate call to
4853         get_range_from_loc.  Drop overload taking a const char *.
4854         * gcc-rich-location.h
4855         (gcc_rich_location::add_fixit_misspelled_id): Drop overload taking
4856         a const char *.
4858 2016-08-30  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4860         * config/linux.c (linux_libc_has_function): Return true on musl.
4862 2016-08-30  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4864         * config.gcc (*-*-*musl*): Disable gnu-indirect-function.
4866 2016-08-30  Eric Botcazou  <ebotcazou@adacore.com>
4868         * postreload-gcse.c (bb_has_well_behaved_predecessors): Tweak criterion
4869         used for abnormal egdes.
4871 2016-08-30  Jakub Jelinek  <jakub@redhat.com>
4873         PR tree-optimization/72866
4874         * tree-vect-patterns.c (search_type_for_mask): Turn into
4875         a small wrapper, move all code to ...
4876         (search_type_for_mask_1): ... this new function.  Add caching
4877         and adjust recursive calls.
4879         PR debug/77363
4880         * dwarf2out.c (modified_type_die): Use lookup_type_die (type)
4881         instead of lookup_type_die (type_main_variant (type)) even for array
4882         types.
4884         PR middle-end/77377
4885         * simplify-rtx.c (avoid_constant_pool_reference): For out of bounds
4886         constant pool reference return x instead of c.
4888 2016-08-29  Segher Boessenkool  <segher@kernel.crashing.org>
4890         * config/rs6000/rs6000.h (CALL_REALLY_USED_REGISTERS): Do not
4891         include MQ.
4893 2016-08-29  David Malcolm  <dmalcolm@redhat.com>
4895         * input.c
4896         (selftest::test_make_location_nonpure_range_endpoints): Fix
4897         header comment.
4899 2016-08-29  David Malcolm  <dmalcolm@redhat.com>
4901         * diagnostic-show-locus.c
4902         (selftest::test_one_liner_fixit_validation_adhoc_locations): New
4903         function.
4904         (selftest::test_diagnostic_show_locus_one_liner): Call it.
4905         * input.c (get_pure_location): Move to libcpp/line-map.c.
4906         * input.h (get_pure_location): Convert decl to an inline function
4907         calling implementation in libcpp.
4909 2016-08-29  Uros Bizjak  <ubizjak@gmail.com>
4911         PR target/77403
4912         * config/i386/sse.md (vec_set_lo_<mode><mask_name>): Fix assembler
4913         template for intel asm dialect.
4914         (vec_set_hi_<mode><mask_name>): Ditto.
4916 2016-08-29  David Malcolm  <dmalcolm@redhat.com>
4918         * selftest.h (selftest::fail): Add ATTRIBUTE_NORETURN.
4919         (selftest::fail_formatted): Likewise.
4921 2016-08-29  David Malcolm  <dmalcolm@redhat.com>
4923         * input.c (make_location): Call get_start and get_finish
4924         on the endpoints to avoid storing packed ranges or ad-hoc
4925         ranges in them.
4926         (selftest::test_make_location_nonpure_range_endpoints): New function.
4927         (selftest::input_c_tests): Call it.
4928         * input.h (get_start): New inline function.
4930 2016-08-29  Tom de Vries  <tom@codesourcery.com>
4932         PR c/77398
4933         * gimplify.c (gimplify_va_arg_expr): Replace first argument type error
4934         with assert.
4936 2016-08-29  Eric Botcazou  <ebotcazou@adacore.com>
4938         * Makefile.in (gcov-iov.h): Add dummy recipe.
4940 2016-08-29  Nathan Sidwell  <nathan@acm.org>
4942         * config/nvptx/nvptx.c: #include tree-vrp.h.
4944 2016-08-28  Eric Botcazou  <ebotcazou@adacore.com>
4946         PR target/77324
4947         * config/sparc/sparc.c (sparc_legitimate_address_p): Accept special
4948         HIGH+LO construct during reload.
4950 2016-08-28  Tom de Vries  <tom@codesourcery.com>
4952         PR lto/70955
4953         * config/i386/i386.c (ix86_build_builtin_va_list_64): Tag type with
4954         'sysv_abi va_list' attribute.
4955         (ix86_build_builtin_va_list): Tag type with 'ms_abi va_list' attribute.
4956         (ix86_canonical_va_list_type): Handle 'sysv_abi/ms_abi va_list'
4957         attributes.
4959 2016-08-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4961         * emit-rtl.h (struct rtl_data): Make stack_slot_list a vector.
4962         * emit-rtl.c (unshare_all_rtl_1): Adjust.
4963         (unshare_all_rtl_again): Likewise.
4964         * function.c (assign_stack_local_1): Likewise.
4965         (assign_stack_temp_for_type): Likewise.
4967 2016-08-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4969         * cfgbuild.c (make_edges): Adjust.
4970         * cfgrtl.c (can_delete_label_p): Likewise.
4971         * dwarf2cfi.c (create_trace_edges): Likewise.
4972         * except.c (sjlj_emit_dispatch_table): Likewise.
4973         * function.h (struct expr_status): make x_forced_labels a vector.
4974         * jump.c (rebuild_jump_labels_1): Adjust.
4975         * reload1.c (set_initial_label_offsets): Likewise.
4976         * stmt.c (force_label_rtx): Likewise.
4977         (expand_label): Likewise.
4979 2016-08-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4981         * haifa-sched.c (fix_recovery_deps): Make ready_list a vector.
4983 2016-08-27  Patrick Palka  <ppalka@gcc.gnu.org>
4985         PR tree-optimization/71077
4986         PR tree-optimization/68542
4987         * fold-const.c (fold_relational_const): Fix folding of
4988         VECTOR_CST comparisons that have a scalar boolean result type.
4989         (selftest::test_vector_folding): New static function.
4990         (selftest::fold_const_c_tests): Call it.
4992 2016-08-27  Gerald Pfeifer  <gerald@pfeifer.com>
4994         * doc/extend.texi (SPU Built-in Functions): Remove stale
4995         references to material formerly at IBM and Sony.
4997 2016-08-26  David Edelsohn  <dje.gcc@gmail.com>
4999         PR target/77349
5000         * config/rs6000/xcoff.h (DWARF_OFFSET_SIZE): Define as PTR_SIZE.
5002 2016-08-26  David Malcolm  <dmalcolm@redhat.com>
5004         * diagnostic-show-locus.c
5005         (selftest::test_fixit_consolidation): New function.
5006         (selftest::diagnostic_show_locus_c_tests): Call it.
5007         * gcc-rich-location.h (gcc_rich_location): Eliminate unused
5008         constructor based on source_range.
5010 2016-08-26  David Malcolm  <dmalcolm@redhat.com>
5012         * diagnostic-color.c (color_dict): Add "fixit-insert" and
5013         "fixit-delete".
5014         (parse_gcc_colors): Update description of default GCC_COLORS.
5015         * diagnostic-show-locus.c (colorizer::set_fixit_hint): Delete.
5016         (colorizer::set_fixit_insert): New method.
5017         (colorizer::set_fixit_delete): New method.
5018         (colorizer::get_color_by_name): New method.
5019         (colorizer::STATE_FIXIT_INSERT): New constant.
5020         (colorizer::STATE_FIXIT_DELETE): New constant.
5021         (class colorizer): Drop "_cs" suffix from fields.  Delete "_ce"
5022         fields in favor of new field "m_stop_color".  Add fields
5023         "m_fixit_insert" and "m_fixit_delete".
5024         (colorizer::colorizer): Update for above changes.  Replace
5025         colorize_start calls with calls to get_color_by_name.
5026         (colorizer::begin_state): Handle STATE_FIXIT_INSERT and
5027         STATE_FIXIT_DELETE.  Update for field renamings.
5028         (colorizer::finish_state): Simplify by using m_stop_color,
5029         rather than multiple identical "*_ce" fields.
5030         (colorizer::get_color_by_name): New method.
5031         (layout::print_any_fixits): Print insertions and replacements
5032         using the "fixit-insert" color, and deletions using the
5033         "fixit-delete" color.
5034         * doc/invoke.texi (-fdiagnostics-color): Update description of
5035         default GCC_COLORS, and of the supported capabilities.
5037 2016-08-26  Max Filippov  <jcmvbkbc@gmail.com>
5039         * config/xtensa/xtensa.c (xtensa_expand_prologue): Update
5040         current_function_static_stack_size variable with the static
5041         stack frame size of the current function when
5042         flag_stack_usage_info is enabled.
5044 2016-08-26  Nathan Sidwell  <nathan@acm.org>
5046         * ipa-inline-analysis.c (inline_write_summary): Remove unnecessary
5047         assignment inside if condition.
5049 2016-08-26  Richard Biener  <rguenther@suse.de>
5051         PR tree-optimization/69047
5052         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle general bitfield
5053         extracts similar to what FRE does.
5054         (non_rewritable_mem_ref_base): Likewise.
5056 2016-08-26  Joseph Myers  <joseph@codesourcery.com>
5058         * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p)
5059         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
5060         * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
5061         * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
5062         * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE):
5063         Likewise.
5064         * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
5065         * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
5066         * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
5067         * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Likewise.
5068         * config/i386/vxworks.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
5070 2016-08-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5072         PR target/70473
5073         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_muld): Reduce
5074         reservation duration to 15 cycles.
5075         (cortex_a8_vfp_macs): Likewise.
5076         (cortex_a8_vfp_macd): Likewise.
5077         (cortex_a8_vfp_divs): Likewise.
5078         (cortex_a8_vfp_divd): Likewise.
5080 2016-08-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5082         * config/arm/arm.c (arm_sets_movw_movt_fusible_p): New function.
5083         (aarch_macro_fusion_pair_p): Use above to avoid early return.
5085 2016-08-26  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
5086             Martin Jambhor  <mjambor@suse.cz>
5088         * common.opt: New option -fipa-bit-cp.
5089         * doc/invoke.texi: Document -fipa-bit-cp.
5090         * opts.c (default_options_table): Add entry for -fipa-bit-cp.
5091         (enable_fdo_optimizations): Check for flag_ipa_bit_cp.
5092         * tree-ssa-ccp.h: New header file.
5093         * tree-ssa-ccp.c: Include tree-ssa-ccp.h
5094         (bit_value_binop_1): Change to bit_value_binop_1 and export it.
5095         Replace all occurences of tree parameter by two new params: signop, int.
5096         (bit_value_unop_1): Change to bit_value_unop and export it.
5097         Replace all occurences of tree parameter by two new params: signop,
5098         int.
5099         (bit_value_binop): Change call from bit_value_binop_1 to
5100         bit_value_binop.
5101         (bit_value_assume_aligned): Likewise.
5102         (bit_value_unop): Change call from bit_value_unop_1 to bit_value_unop.
5103         (do_ssa_ccp): Pass nonzero_p || flag_ipa_cp_bit instead of nonzero_p
5104         to ccp_finalize.
5105         (ccp_finalize): Skip processing if val->mask == 0.
5106         * ipa-cp.c: Include tree-ssa-ccp.h
5107         (ipcp_bits_lattice): New class.
5108         (ipcp_param_lattice (bits_lattice): New member.
5109         (print_all_lattices): Call ipcp_bits_lattice::print.
5110         (set_all_contains_variable): Call ipcp_bits_lattice::set_to_bottom.
5111         (initialize_node_lattices): Likewise.
5112         (propagate_bits_accross_jump_function): New function.
5113         (propagate_constants_accross_call): Call
5114         propagate_bits_accross_jump_function.
5115         (ipcp_propagate_stage): Store parameter types when in_lto_p is true.
5116         (ipcp_store_bits_results): New function.
5117         (ipcp_driver): Call ipcp_store_bits_results.
5118         * ipa-prop.h (ipa_bits): New struct.
5119         (ipa_jump_func): Add new member bits of type ipa_bits.
5120         (ipa_param_descriptor): Change decl to decl_or_type.
5121         (ipa_get_param): Change decl to decl_or_type and assert on
5122         PARM_DECL.
5123         (ipa_get_type): New function.
5124         (ipcp_transformation_summary): New member bits.
5125         * ipa-prop.c (ipa_get_param_decl_index_1): s/decl/decl_or_type.
5126         (ipa_populate_param_decls): Likewise.
5127         (ipa_dump_param): Likewise.
5128         (ipa_print_node_jump_functions_for_edge): Pretty-print ipa_bits jump
5129         function.
5130         (ipa_set_jf_unknown): Set ipa_bits::known to false.
5131         (ipa_compute_jump_functions_for_edge): Compute jump function for bits
5132         propagation.
5133         (ipa_node_params_t::duplicate): Copy src->bits into dst->bits.
5134         (ipa_write_jump_function): Add streaming for ipa_bits.
5135         (ipa_read_jump_function): Add support for reading streamed ipa_bits.
5136         (write_ipcp_transformation_info): Add streaming for ipa_bits
5137         summary for ltrans.
5138         (read_ipcp_transfomration_info): Add support for reading streamed
5139         ipa_bits.
5140         (ipcp_update_bits): New function.
5141         (ipcp_transform_function): Call ipcp_update_bits.
5143 2016-08-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5145         * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Update.
5146         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Update.
5148 2016-08-25  David Edelsohn  <dje.gcc@gmail.com>
5150         * multiple_target.c (pass_data_dispatcher_calls): Fix typo.
5152 2016-08-25  Richard Biener  <rguenther@suse.de>
5154         * dwarf2out.c (gen_remaining_tmpl_value_param_die_attributes):
5155         Only add locations in late dwarf.
5156         (gen_scheduled_generic_parms_dies): Do not set early dwarf here.
5157         (dwarf2out_early_finish): But do it here.
5159 2016-08-24  Michael Collison  <michael.collison@linaro.org>
5160             Michael Collison  <michael.collison@arm.com>
5162         * config/arm/arm-modes.def: Add new condition code mode CC_V
5163         to represent the overflow bit.
5164         * config/arm/arm.c (maybe_get_arm_condition_code):
5165         Add support for CC_Vmode.
5166         (arm_gen_unlikely_cbranch): New function to generate common
5167         rtl conditional branches for overflow patterns.
5168         * config/arm/arm-protos.h: Add prototype for
5169         arm_gen_unlikely_cbranch.
5170         * config/arm/arm.md (addv<mode>4, add<mode>3_compareV,
5171         addsi3_compareV_upper): New patterns to support signed
5172         builtin overflow add operations.
5173         (uaddv<mode>4, add<mode>3_compareC, addsi3_compareV_upper):
5174         New patterns to support unsigned builtin add overflow operations.
5175         (subv<mode>4, sub<mode>3_compare1): New patterns to support signed
5176         builtin overflow subtract operations,
5177         (usubv<mode>4): New patterns to support unsigned builtin subtract
5178         overflow operations.
5179         (negvsi3, negvdi3, negdi2_compare, negsi2_carryin_compare): New patterns
5180         to support builtin overflow negate operations.
5182 2016-08-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5184         Revert
5185         2016-08-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
5187         * explow.c (get_dynamic_stack_size): Take known alignment of stack
5188         pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
5189         needed.
5191 2016-08-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5193         * doc/fragments.texi (MULTILIB_REUSE): Mention that only options in
5194         MULTILIB_OPTIONS should be used.  Small wording fixes.
5195         * genmultilib: Memorize set of all option combinations in
5196         combination_space.  Detect if RHS of MULTILIB_REUSE uses an option not
5197         found in MULTILIB_OPTIONS by checking if option set is listed in
5198         combination_space.  Output new and existing error message to stderr.
5200 2016-08-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5202         * config/arm/t-aprofile (MULTILIB_MATCHES): Add mapping for
5203         -mcpu=cortex-a7, -mfpu=neon-fp16, -mfpu=fpv5-d16 and -mfpu=fp-armv8.
5204         Fix typo in -mfpu=vfpv3-d16-fp16 mapping.
5205         (MULTILIB_REUSE): Remove reuse rules for option set including
5206         -mfpu=fp-armv8 and -mfpu=vfpv4
5208 2016-08-24  Sebastian Huber  <sebastian.huber@embedded-brains.de>
5210         * config/arm/t-rtems: Add vfp multilib.
5212 2016-08-23  Ian Lance Taylor  <iant@golang.org>
5214         * config/s390/s390.c (s390_asm_file_start): Call
5215         default_file_start.
5217 2016-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
5219         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Set
5220         initialization of all 0's to the 0 constant, instead of directly
5221         generating XOR.  Add support for V4SImode vector initialization on
5222         64-bit systems with direct move, and rework the ISA 3.0 V4SImode
5223         initialization.  Change variables used in V4SFmode vector
5224         intialization.  For V4SFmode vector splat on ISA 3.0, make sure
5225         any memory addresses are in index form.  Add support for using
5226         VSPLTH/VSPLTB to initialize vector short and vector char vectors
5227         with all of the same element.
5228         (regno_or_subregno): New helper function to return a register
5229         number for either REG or SUBREG.
5230         (rs6000_adjust_vec_address): Do not generate ADDI <reg>,R0,<num>.
5231         Use regno_or_subregno where possible.
5232         (rs6000_split_v4si_init_di_reg): New helper function to build up a
5233         DImode value from two SImode values in order to generate V4SImode
5234         vector initialization on 64-bit systems with direct move.
5235         (rs6000_split_v4si_init): Split up the insns for a V4SImode vector
5236         initialization.
5237         (rtx_is_swappable_p): V4SImode vector initialization insn is not
5238         swappable.
5239         * config/rs6000/rs6000-protos.h (rs6000_split_v4si_init): Add
5240         declaration.
5241         * config/rs6000/vsx.md (VSX_SPLAT_I): New mode iterators and
5242         attributes to initialize V8HImode and V16QImode vectors with the
5243         same element.
5244         (VSX_SPLAT_COUNT): Likewise.
5245         (VSX_SPLAT_SUFFIX): Likewise.
5246         (UNSPEC_VSX_VEC_INIT): New unspec.
5247         (vsx_concat_v2sf): Eliminate using 'preferred' register classes.
5248         Allow SFmode values to come from Altivec registers.
5249         (vsx_init_v4si): New insn/split for V4SImode vector initialization
5250         on 64-bit systems with direct move.
5251         (vsx_splat_<mode>, VSX_W iterator): Rework V4SImode and V4SFmode
5252         vector initializations, to allow V4SImode vector initializations
5253         on 64-bit systems with direct move.
5254         (vsx_splat_v4si): Likewise.
5255         (vsx_splat_v4si_di): Likewise.
5256         (vsx_splat_v4sf): Likewise.
5257         (vsx_splat_v4sf_internal): Likewise.
5258         (vsx_xxspltw_<mode>, VSX_W iterator): Eliminate using 'preferred'
5259         register classes.
5260         (vsx_xxspltw_<mode>_direct, VSX_W iterator): Likewise.
5261         (vsx_vsplt<VSX_SPLAT_SUFFIX>_di): New insns to support
5262         initializing V8HImode and V16QImode vectors with the same
5263         element.
5264         * config/rs6000/rs6000.h (TARGET_DIRECT_MOVE_64BIT): Disallow
5265         optimization if -maltivec=be.
5267 2016-08-23  Christophe Lyon  <christophe.lyon@linaro.org>
5269         * config/arm/arm.md (arm_movqi_insn): Swap predicable_short_it
5270         attribute for alternatives 3 and 4.
5272 2016-08-23  David Malcolm  <dmalcolm@redhat.com>
5274         * selftest.c (selftest::assert_str_contains): New function.
5275         (selftest::test_assertions): Verify ASSERT_STR_CONTAINS.
5276         * selftest.h (selftest::assert_str_contains): New decl.
5277         (ASSERT_STR_CONTAINS): New macro.
5279 2016-08-23  Richard Biener  <rguenther@suse.de>
5281         PR tree-optimization/77286
5282         * tree-vect-loop.c (vect_analyze_loop_form_1): Do not modify
5283         the CFG here.
5284         (vect_transform_loop): Split exit edges of loop and scalar
5285         loop if required and at the appropriate time.
5287 2016-08-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
5289         * explow.c (get_dynamic_stack_size): Take known alignment of stack
5290         pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
5291         needed.
5292         Correct a typo in a comment.
5294 2016-08-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
5296         * config/s390/s390.md ("*andc_split"): New splitter for and with
5297         complement.
5299 2016-08-23  Richard Biener  <rguenther@suse.de>
5301         PR tree-optimization/27336
5302         * tree-vrp.c (infer_value_range): Handle stmts that can throw
5303         by looking for a non-EH edge.
5304         (process_assert_insertions_for): Likewise.
5306 2016-08-23  Richard Biener  <rguenther@suse.de>
5308         PR middle-end/77305
5309         * statistics.c (statistics_counter_event): Robustify against
5310         NULL current_pass.
5312 2016-08-23  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
5314         * config/i386/i386.c (processor_alias_table): Enable PTA_PRFCHW
5315         for targets amdfam10 and barcelona.
5317 2016-08-22  Uros Bizjak  <ubizjak@gmail.com>
5319         * config/i386/i386.md (*zero_extendsidi2): Add (*r,*k) alternative.
5320         (zero_extend<mode>di2): Ditto.
5321         (*zero_extend<mode>si2): Ditto.
5322         (*zero_extendqihi2): Ditto.
5324 2016-08-22  Joseph Myers  <joseph@codesourcery.com>
5326         PR middle-end/77269
5327         * builtins.c (fold_builtin_classify): Use builtin_decl_explicit
5328         (BUILT_IN_SIGNBIT) to expand __builtin_isinf_sign.
5330 2016-08-22  Patrick Palka  <ppalka@gcc.gnu.org>
5332         * print-tree.c (print_node) [VECTOR_CST]: Coalesce the output of
5333         identical consecutive elements.
5334         [SSA_NAME]: Print the name's def stmt on its own line.  When printing
5335         the node's def stmt, avoid printing an unwanted trailing newline by
5336         replacing the call to print_gimple_stmt() with its inlined body and
5337         adjusting it to not set pp_needs_newline and to call pp_flush()
5338         instead of pp_newline_and_flush().
5340 2016-08-22  Joseph Myers  <joseph@codesourcery.com>
5342         * tree.h (CASE_FLT_FN_FLOATN_NX, float16_type_node)
5343         (float32_type_node, float64_type_node, float32x_type_node)
5344         (float128x_type_node): New macros.
5345         * builtin-types.def (BT_FLOAT16, BT_FLOAT32, BT_FLOAT64)
5346         (BT_FLOAT128, BT_FLOAT32X, BT_FLOAT64X, BT_FLOAT128X)
5347         (BT_FN_FLOAT16, BT_FN_FLOAT32, BT_FN_FLOAT64, BT_FN_FLOAT128)
5348         (BT_FN_FLOAT32X, BT_FN_FLOAT64X, BT_FN_FLOAT128X)
5349         (BT_FN_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32)
5350         (BT_FN_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128)
5351         (BT_FN_FLOAT32X_FLOAT32X, BT_FN_FLOAT64X_FLOAT64X)
5352         (BT_FN_FLOAT128X_FLOAT128X, BT_FN_FLOAT16_CONST_STRING)
5353         (BT_FN_FLOAT32_CONST_STRING, BT_FN_FLOAT64_CONST_STRING)
5354         (BT_FN_FLOAT128_CONST_STRING, BT_FN_FLOAT32X_CONST_STRING)
5355         (BT_FN_FLOAT64X_CONST_STRING, BT_FN_FLOAT128X_CONST_STRING)
5356         (BT_FN_FLOAT16_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32_FLOAT32)
5357         (BT_FN_FLOAT64_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128_FLOAT128)
5358         (BT_FN_FLOAT32X_FLOAT32X_FLOAT32X)
5359         (BT_FN_FLOAT64X_FLOAT64X_FLOAT64X)
5360         (BT_FN_FLOAT128X_FLOAT128X_FLOAT128X): New type definitions.
5361         * builtins.def (DEF_GCC_FLOATN_NX_BUILTINS): New macro.
5362         (copysign, fabs, huge_val, inf, nan, nans): Use it.
5363         * builtins.c (expand_builtin): Use CASE_FLT_FN_FLOATN_NX for fabs
5364         and copysign.
5365         (fold_builtin_0): Use CASE_FLT_FN_FLOATN_NX for inf and huge_val.
5366         (fold_builtin_1): Use CASE_FLT_FN_FLOATN_NX for fabs.
5367         * doc/extend.texi (Other Builtins): Document these built-in
5368         functions.
5369         * fold-const-call.c (fold_const_call): Use CASE_FLT_FN_FLOATN_NX
5370         for nan and nans.
5372 2016-08-22  Gerald Pfeifer  <gerald@pfeifer.com>
5374         * doc/install.texi (Binaries): www.opencsw.org now uses https.
5376 2016-08-22  Richard Biener  <rguenther@suse.de>
5378         * tree-ssa-forwprop.c (pass_forwprop::execute): Use RPO order.
5380 2016-08-21  Uros Bizjak  <ubizjak@gmail.com>
5382         PR target/77270
5383         * config/i386/i386.md (prefetch): When TARGET_PRFCHW or
5384         TARGET_PREFETCHWT1 are disabled, emit 3dNOW! write prefetches for
5385         non-SSE2 athlons only, otherwise prefer SSE prefetches.
5387 2016-08-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
5389         * tree-vrp.c (vrp_visit_assignment_or_call): Changed to Return VR.
5390         (vrp_visit_cond_stmt): Just sets TAKEN_EDGE_P.
5391         (vrp_visit_switch_stmt): Likewise.
5392         (extract_range_from_stmt): Factored out from vrp_visit_stmt.
5393         (extract_range_from_phi_node): Factored out from vrp_visit_phi_stmt.
5394         (vrp_visit_stmt): Use extract_range_from_stmt.
5395         (vrp_visit_phi_node): Use extract_range_from_phi_node.
5397 2016-08-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
5399         * Makefile.in: Add tree-vrp.h to GTFILES.
5400         * gengtype.c (open_base_files): Add tree-vrp.h.
5401         * asan.c: Add tree-vrp.h which now has the definition value_range_type.
5402         * builtins.c: Likewise.
5403         * fold-const.c: Likewise.
5404         * gimple-builder.c: Likewise.
5405         * gimple-laddress.c: Likewise.
5406         * hsa-gen.c: Likewise.
5407         * internal-fn.c: Likewise.
5408         * ssa.h: Likewise.
5409         * targhooks.c: Liewise,
5410         * tree-ssa-address.c: Likewise.
5411         * tree-ssanames.h (value_range_type: Move to tree-vrp.h.
5412         * tree-vrp.c (struct value_range): Move to tree-vrp.h
5413         * tree-vrp.h: New file.
5415 2016-08-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
5417         PR tree-optimization/61839
5418         * tree-vrp.c (two_valued_val_range_p): New.
5419         (simplify_stmt_using_ranges): Convert CST BINOP VAR where VAR is
5420         two-valued to VAR == VAL1 ? (CST BINOP VAL1) : (CST BINOP VAL2).
5421         Also Convert VAR BINOP CST where VAR is two-valued to
5422         VAR == VAL1 ? (VAL1 BINOP CST) : (VAL2 BINOP CST).
5424 2016-08-19  David Malcolm  <dmalcolm@redhat.com>
5426         * diagnostic-show-locus.c
5427         (layout::annotation_line_showed_range_p): New method.
5428         (layout::print_any_fixits): Remove case fixit_hint::REMOVE.
5429         Reimplement case fixit_hint::REPLACE to cover removals, and
5430         replacements where the range of the replacement isn't one
5431         of the ranges in the rich_location.
5432         (test_one_liner_fixit_replace): Likewise.
5433         (selftest::test_one_liner_fixit_replace_non_equal_range): New
5434         function.
5435         (selftest::test_one_liner_fixit_replace_equal_secondary_range):
5436         New function.
5437         (selftest::test_diagnostic_show_locus_one_liner): Call the new
5438         functions.
5439         * diagnostic.c (print_parseable_fixits): Remove case
5440         fixit_hint::REMOVE.
5442 2016-08-19  Uros Bizjak  <ubizjak@gmail.com>
5444         PR target/77270
5445         * config/i386/i386.c (ix86_option_override_internal): Remove
5446         PTA_PRFCHW from entries that also have PTA_3DNOW flag.
5447         Enable SSE prefetch also for TARGET_PREFETCHWT1.
5448         Do not try to enable TARGET_PRFCHW ISA flag here.
5449         * config/i386/i386.md (prefetch): Enable also for TARGET_3DNOW.
5450         Rewrite expander function body.
5451         (*prefetch_3dnow): Enable for TARGET_3DNOW and TARGET_PREFETCHWT1.
5453 2016-08-19  Joseph Myers  <joseph@codesourcery.com>
5455         PR c/32187
5456         * tree-core.h (TI_COMPLEX_FLOAT16_TYPE)
5457         (TI_COMPLEX_FLOATN_NX_TYPE_FIRST, TI_COMPLEX_FLOAT32_TYPE)
5458         (TI_COMPLEX_FLOAT64_TYPE, TI_COMPLEX_FLOAT128_TYPE)
5459         (TI_COMPLEX_FLOAT32X_TYPE, TI_COMPLEX_FLOAT64X_TYPE)
5460         (TI_COMPLEX_FLOAT128X_TYPE, TI_FLOAT16_TYPE, TI_FLOATN_TYPE_FIRST)
5461         (TI_FLOATN_NX_TYPE_FIRST, TI_FLOAT32_TYPE, TI_FLOAT64_TYPE)
5462         (TI_FLOAT128_TYPE, TI_FLOATN_TYPE_LAST, TI_FLOAT32X_TYPE)
5463         (TI_FLOATNX_TYPE_FIRST, TI_FLOAT64X_TYPE, TI_FLOAT128X_TYPE)
5464         (TI_FLOATNX_TYPE_LAST, TI_FLOATN_NX_TYPE_LAST): New enum
5465         tree_index values.
5466         (NUM_FLOATN_TYPES, NUM_FLOATNX_TYPES, NUM_FLOATN_NX_TYPES): New
5467         macros.
5468         (struct floatn_type_info): New structure type.
5469         (floatn_nx_types): New variable declaration.
5470         * tree.h (FLOATN_TYPE_NODE, FLOATN_NX_TYPE_NODE)
5471         (FLOATNX_TYPE_NODE, float128_type_node, float64x_type_node)
5472         (COMPLEX_FLOATN_NX_TYPE_NODE): New macros.
5473         * tree.c (floatn_nx_types): New variable.
5474         (build_common_tree_nodes): Initialize _FloatN, _FloatNx and
5475         corresponding complex types.
5476         * target.def (floatn_mode): New hook.
5477         * targhooks.c: Include "real.h".
5478         (default_floatn_mode): New function.
5479         * targhooks.h (default_floatn_mode): New prototype.
5480         * doc/extend.texi (Floating Types): Document _FloatN and _FloatNx
5481         types.
5482         * doc/sourcebuild.texi (float@var{n}, float@var{n}x): Document new
5483         effective-target and dg-add-options keywords.
5484         (float@var{n}_runtime, float@var{n}x_runtime, floatn_nx_runtime):
5485         Document new effective-target keywords.
5486         * doc/tm.texi.in (TARGET_FLOATN_MODE): New @hook.
5487         * doc/tm.texi: Regenerate.
5488         * ginclude/float.h (LDBL_DECIMAL_DIG): Define to
5489         __LDBL_DECIMAL_DIG__, not __DECIMAL_DIG__.
5490         [__STDC_WANT_IEC_60559_TYPES_EXT__]: Define macros from TS
5491         18661-3.
5492         * real.h (struct real_format): Add field ieee_bits.
5493         * real.c (ieee_single_format, mips_single_format)
5494         (motorola_single_format, spu_single_format, ieee_double_format)
5495         (mips_double_format, motorola_double_format)
5496         (ieee_extended_motorola_format, ieee_extended_intel_96_format)
5497         (ieee_extended_intel_128_format)
5498         (ieee_extended_intel_96_round_53_format, ibm_extended_format)
5499         (mips_extended_format, ieee_quad_format, mips_quad_format)
5500         (vax_f_format, vax_d_format, vax_g_format, decimal_single_format)
5501         (decimal_double_format, decimal_quad_format, ieee_half_format)
5502         (arm_half_format, real_internal_format: Initialize ieee_bits
5503         field.
5504         * config/i386/i386.c (ix86_init_builtin_types): Do not initialize
5505         float128_type_node.  Set float80_type_node to float64x_type_node
5506         if appropriate and long_double_type_node not appropriate.
5507         * config/ia64/ia64.c (ia64_init_builtins): Likewise.
5508         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format):
5509         Initialize ieee_bits field.
5510         * config/rs6000/rs6000.c (TARGET_FLOATN_MODE): New macro.
5511         (rs6000_init_builtins): Set ieee128_float_type_node to
5512         float128_type_node.
5513         (rs6000_floatn_mode): New function.
5515 2016-08-19  Jakub Jelinek  <jakub@redhat.com>
5517         * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
5518         _rdseed64_step): Uglify argument names and/or local variable names
5519         in inline functions.
5520         * config/i386/rtmintrin.h (_xabort): Likewise.
5521         * config/i386/avx512vlintrin.h (_mm256_ternarylogic_epi64,
5522         _mm256_mask_ternarylogic_epi64, _mm256_maskz_ternarylogic_epi64,
5523         _mm256_ternarylogic_epi32, _mm256_mask_ternarylogic_epi32,
5524         _mm256_maskz_ternarylogic_epi32, _mm_ternarylogic_epi64,
5525         _mm_mask_ternarylogic_epi64, _mm_maskz_ternarylogic_epi64,
5526         _mm_ternarylogic_epi32, _mm_mask_ternarylogic_epi32,
5527         _mm_maskz_ternarylogic_epi32): Likewise.
5528         * config/i386/lwpintrin.h (__llwpcb, __lwpval32, __lwpval64,
5529         __lwpins32, __lwpins64): Likewise.
5530         * config/i386/avx2intrin.h (_mm_i32gather_pd, _mm_mask_i32gather_pd,
5531         _mm256_i32gather_pd, _mm256_mask_i32gather_pd, _mm_i64gather_pd,
5532         _mm_mask_i64gather_pd, _mm256_i64gather_pd, _mm256_mask_i64gather_pd,
5533         _mm_i32gather_ps, _mm_mask_i32gather_ps, _mm256_i32gather_ps,
5534         _mm256_mask_i32gather_ps, _mm_i64gather_ps, _mm_mask_i64gather_ps,
5535         _mm256_i64gather_ps, _mm256_mask_i64gather_ps, _mm_i32gather_epi64,
5536         _mm_mask_i32gather_epi64, _mm256_i32gather_epi64,
5537         _mm256_mask_i32gather_epi64, _mm_i64gather_epi64,
5538         _mm_mask_i64gather_epi64, _mm256_i64gather_epi64,
5539         _mm256_mask_i64gather_epi64, _mm_i32gather_epi32,
5540         _mm_mask_i32gather_epi32, _mm256_i32gather_epi32,
5541         _mm256_mask_i32gather_epi32, _mm_i64gather_epi32,
5542         _mm_mask_i64gather_epi32, _mm256_i64gather_epi32,
5543         _mm256_mask_i64gather_epi32): Likewise.
5544         * config/i386/pmm_malloc.h (_mm_malloc, _mm_free): Likewise.
5545         * config/i386/ia32intrin.h (__writeeflags): Likewise.
5546         * config/i386/pkuintrin.h (_wrpkru): Likewise.
5547         * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd,
5548         _mm512_mask_prefetch_i32gather_ps, _mm512_mask_prefetch_i64gather_pd,
5549         _mm512_mask_prefetch_i64gather_ps, _mm512_prefetch_i32scatter_pd,
5550         _mm512_prefetch_i32scatter_ps, _mm512_mask_prefetch_i32scatter_pd,
5551         _mm512_mask_prefetch_i32scatter_ps, _mm512_prefetch_i64scatter_pd,
5552         _mm512_prefetch_i64scatter_ps, _mm512_mask_prefetch_i64scatter_pd,
5553         _mm512_mask_prefetch_i64scatter_ps): Likewise.
5554         * config/i386/gmm_malloc.h (_mm_malloc, _mm_free): Likewise.
5555         * config/i386/avx512fintrin.h (_mm512_ternarylogic_epi64,
5556         _mm512_mask_ternarylogic_epi64, _mm512_maskz_ternarylogic_epi64,
5557         _mm512_ternarylogic_epi32, _mm512_mask_ternarylogic_epi32,
5558         _mm512_maskz_ternarylogic_epi32, _mm512_i32gather_ps,
5559         _mm512_mask_i32gather_ps, _mm512_i32gather_pd, _mm512_i64gather_ps,
5560         _mm512_i64gather_pd, _mm512_i32gather_epi32, _mm512_i32gather_epi64,
5561         _mm512_i64gather_epi32, _mm512_i64gather_epi64): Likewise.
5563         * config/i386/fxsrintrin.h (_fxsave): Remove return keyword in inlines
5564         returning void.
5565         (_fxrstor, _fxsave64, _fxrstor64): Likewise.
5566         * config/i386/xsaveintrin.h (_xsave, _xrstor, _xsave64, _xrstor64):
5567         Likewise.
5568         * config/i386/xsaveoptintrin.h (_xsaveopt, _xsaveopt64): Likewise.
5569         * config/i386/pkuintrin.h (_wrpkru): Likewise.  Add space after
5570         function name.
5571         (_rdpkru_u32): Add space after function name.
5573         * config/i386/t-i386 (i386-c.o): Don't depend on
5574         i386-builtin-types.inc.
5575         (i386.o): Depend on i386-builtin-types.inc.
5577 2016-08-19  Matthew Wahab  <matthew.wahab@arm.com>
5579         PR target/77281
5580         * config/arm/arm.c (neon_valid_immediate): Delete declaration.
5581         Use const_vec_duplicate to check for duplicated elements.
5583 2016-08-19  Richard Biener  <rguenther@suse.de>
5585         PR tree-optimization/77290
5586         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
5587         Fix flag_tree_parallelize_loops check.
5589 2016-08-19  Richard Biener  <rguenther@suse.de>
5591         * match.pd (x | 0 -> x): Add.
5593 2016-08-19  Richard Biener  <rguenther@suse.de>
5595         PR tree-optimization/77286
5596         * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
5597         Deal with virtual PHIs being out-of-order.
5599 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
5601         * doc/invoke.texi (fverbose-asm): Note that source code lines
5602         are emitted, and provide an example.
5603         * final.c (asm_show_source): New function.
5604         (final_scan_insn): Call asm_show_source.
5606 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
5608         * diagnostic-show-locus.c (colorizer::colorizer): Replace diagnostic
5609         param with diagnostic_kind.
5610         (class colorizer): Similarly replace field m_diagnostic with
5611         m_diagnostic_kind.
5612         (colorizer::colorizer): Replace diagnostic
5613         param with diagnostic_kind.
5614         (colorizer::begin_state): Update for above field change.
5615         (layout::layout): Replace diagnostic param with rich_location *
5616         and diagnostic_kind.
5617         (diagnostic_show_locus): Replace diagnostic param with richloc
5618         and diagnostic_kind.
5619         (class selftest::test_diagnostic_context): New class.
5620         (selftest::test_diagnostic_show_locus_unknown_location): New
5621         function.
5622         (selftest::test_one_liner_simple_caret): New function.
5623         (selftest::test_one_liner_caret_and_range): New function.
5624         (selftest::test_one_liner_multiple_carets_and_ranges): New
5625         function.
5626         (selftest::test_one_liner_fixit_remove): New function.
5627         (selftest::test_one_liner_fixit_replace): New function.
5628         (selftest::test_diagnostic_show_locus_one_liner): New function.
5629         (selftest::diagnostic_show_locus_c_tests): Call the new test
5630         functions.
5631         * diagnostic.c (diagnostic_initialize): Initialize
5632         colorize_source_p, show_ruler_p and parseable_fixits_p.
5633         (default_diagnostic_finalizer): Update for change to
5634         diagnostic_show_locus.
5635         (diagnostic_append_note): Likewise.
5636         * diagnostic.h (diagnostic_show_locus): Replace
5637         const diagnostic_info * param with location * and diagnostic_t.
5639 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
5641         * input.c (saved_line_table): New global.
5642         (class selftest::temp_line_table): Rename to line_table_test and
5643         move declaration to selftest.h, and drop field m_old_line_table.
5644         (selftest::temp_line_table::temp_line_table): Rename ctor to...
5645         (selftest::line_table_test::line_table_test): ...this.  Add a
5646         default ctor.  Store current value of line_table within
5647         saved_line_table.
5648         (selftest::temp_line_table::~temp_line_table): Rename dtor to...
5649         (selftest::line_table_test::~line_table_test): ...this, and
5650         restore line_table from the saved_line_table, rather than
5651         m_old_line_table.
5652         (selftest::test_accessing_ordinary_linemaps): Update for above
5653         renaming.
5654         (selftest::test_lexer): Likewise.
5655         (struct selftest::lexer_test): Likewise.
5656         (selftest::lexer_test::lexer_test): Likewise.
5657         (selftest::input_c_tests): Move the looping over test cases from
5658         here into...
5659         (selftest::for_each_line_table_case): New function.
5660         * input.h (saved_line_table): New decl.
5661         * selftest.h (struct selftest::line_table_case): New forward decl.
5662         (class selftest::line_table_test): New class, moved here from
5663         selftest::temp_line_table in input.c, and renamed.
5664         (selftest::for_each_line_table_case): New decl.
5666 2015-08-18  H.J. Lu  <hongjiu.lu@intel.com>
5668         PR target/72839
5669         * config/i386/i386.c (lakemont_cost): Set MOVE_RATIO to 17.
5671 2016-08-18  Chung-Lin Tang  <cltang@codesourcery.com>
5673         PR middle-end/70895
5674         * gimplify.c (omp_add_variable): Adjust/add variable mapping on
5675         enclosing parallel construct for reduction variables on OpenACC loop
5676         directives.
5678 2016-08-18  Pierre-Marie de Rodat  <derodat@adacore.com>
5680         * dwarf2out.c (copy_dwarf_procedure): Remove obsolete comment.
5681         (new_dwarf_proc_die): Emit DW_TAG_dwarf_procedure DIEs even for
5682         -gdwarf-3.
5683         (function_to_dwarf_procedure): Update comment.
5685 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
5687         * input.c (diagnostics_file_cache_forcibly_evict_file): New
5688         function.
5689         * input.h (diagnostics_file_cache_forcibly_evict_file): New
5690         declaration.
5691         * selftest.c (selftest::temp_source_file::~temp_source_file):
5692         Evict m_filename from the diagnostic file cache.
5694 2016-08-18  Richard Biener  <rguenther@suse.de>
5696         * tree-pass.h (make_pass_materialize_all_clones): Declare.
5697         * ipa.c (pass_data_materialize_all_clones, pass_materialize_all_clones,
5698         make_pass_materialize_all_clones): New simple IPA pass encapsulating
5699         clone materialization.
5700         * passes.def (all_late_ipa_passes): Start with
5701         pass_materialize_all_clones.
5702         * cgraphunit.c (symbol_table::compile): Remove call to
5703         materialize_all_clones.
5704         * tree-into-ssa.c: Include statistics.h.
5705         (update_ssa): Count number of times we do incremental/rewrite
5706         SSA update.
5708 2016-08-18  Richard Biener  <rguenther@suse.de>
5710         PR tree-optimization/77282
5711         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
5712         When doing auto-parallelizing also prevent use of PHIs that
5713         carry dependences across loop backedges.
5715 2016-08-18  Tamar Christina  <tamar.christina@arm.com>
5716             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5718         * varasm.c (default_use_anchors_for_symbol_p): Reject too large decls.
5720 2016-08-18  Richard Biener  <rguenther@suse.de>
5722         * ssa-iterators.h (ssa_vuse_operand): New inline.
5723         * tree-if-conv.c (ifc_temp_var): Update virtual operand.
5724         (predicate_all_scalar_phis): Use remove_phi_node to remove
5725         phi nodes predicated.  Delay removing virtual PHIs.
5726         (predicate_mem_writes): Update virtual operands.
5727         (combine_blocks): Likewise.  Propagate out remaining virtual PHIs.
5728         (tree_if_conversion): Do not rewrite virtual SSA form.
5729         * tree-phinodes.c (release_phi_node): Make static.
5730         * tree-phinodes.h (release_phi_node): Remove.
5732 2016-08-18  Jakub Jelinek  <jakub@redhat.com>
5734         * config/i386/i386.c (enum ix86_builtins): Remove IX86_BUILTIN_*
5735         codes that appear in bdesc_* arrays, instead include i386-builtin.def
5736         twice to define those.
5737         (bdesc_comi, bdesc_pcmpestr, bdesc_pcmpistr, bdesc_special_args,
5738         bdesc_args, bdesc_round_args, bdesc_mpx, bdesc_mpx_const,
5739         bdesc_multi_arg): Define by including i386-builtin.def the third time.
5740         * config/i386/i386-builtin.def: New file.
5742 2016-08-17  David Malcolm  <dmalcolm@redhat.com>
5744         * input.c (get_source_range_for_char): Rename to...
5745         (selftest::get_source_range_for_char): ...this, and move within
5746         the #if CHECKING_P guard.
5747         (get_num_source_ranges_for_substring): Rename to...
5748         (selftest::get_num_source_ranges_for_substring): ...this, move
5749         within the #if CHECKING_P guard, and make static.
5750         (selftest::assert_num_substring_ranges): Initialize
5751         actual_num_ranges.
5753 2016-08-18  Alan Modra  <amodra@gmail.com>
5755         PR rtl-optimization/72771
5756         * reload.c (find_reloads): Don't assume that a subreg mem is OK
5757         when find_reloads_toplev returns address_reloaded==-1.
5758         (alternative_allows_const_pool_ref): Update comment.
5760 2015-08-17  Alan Hayward  <alan.hayward@arm.com>
5762         PR tree-optimization/71752
5763         * tree-vect-loop.c (vectorizable_reduction): Keep SLP operand ordering.
5764         * tree-vect-slp.c (vect_get_slp_defs): Handle null operands.
5766 2016-08-17  Jakub Jelinek  <jakub@redhat.com>
5768         * gimple-fold.c (gimple_fold_call): Use gimple_call_noreturn_p
5769         instead of testing ECF_NORETURN bit in gimple_call_flags.
5770         * tree-cfg.c (make_edges_bb, execute_fixup_cfg): Likewise.
5771         * predict.c (tree_bb_level_predictions): Likewise.
5772         * gimple-low.c (gimple_stmt_may_fallthru): Likewise.
5774         PR middle-end/77259
5775         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): If
5776         turning a call into __builtin_unreachable-like noreturn call, adjust
5777         gimple_call_set_fntype.
5778         * tree-cfgcleanup.c (fixup_noreturn_call): Remove lhs also if
5779         gimple_call_fntype has void return type.
5781 2016-08-17  Chung-Lin Tang  <cltang@codesourcery.com>
5783         * omp-low.c (lower_oacc_reductions): Adjust variable lookup to use
5784         maybe_lookup_decl, to handle nested acc loop directives.
5786 2016-08-17  Richard Biener  <rguenther@suse.de>
5788         PR tree-optimization/76490
5789         * tree-vrp.c (update_value_range): Preserve overflow infinities
5790         when intersecting with ranges from get_range_info.
5791         (operand_less_p): Handle overflow infinities correctly.
5792         (value_range_constant_singleton): Use vrp_operand_equal_p
5793         to handle overflow max/min correctly.
5794         (vrp_valueize): Likewise.
5795         (union_ranges): Likewise.
5796         (intersect_ranges): Likewise.
5797         (vrp_visit_phi_node): Improve iteration limitation to only
5798         apply when we'll possibly re-visit the PHI via a changed argument
5799         on the backedge.
5801 2016-08-17  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5803         * config/arm/t-aprofile (MULTILIB_EXCEPTIONS): Rewrite into ...
5804         (MULTILIB_REQUIRED): This by specifying multilib needing to be built
5805         rather than those that should not be built.
5807 2016-08-17  Stanislaw Halik  <sthalik@misaki.pl>
5809         PR target/66488
5810         * config/i386/xm-mingw32.h (HOST_BITS_PER_PTR): Define if __x86_64__.
5812 2016-08-17  Richard Biener  <rguenther@suse.de>
5814         * tree-ssa.c: Include tree-cfg.h and tree-dfa.h.
5815         (verify_vssa): New function verifying virtual SSA form.
5816         (verify_ssa): Call it.
5817         * tree-ssa-loop-manip.c (slpeel_update_phi_nodes_for_guard2):
5818         Do not apply loop-closed SSA handling to virtuals.
5819         * ssa-iterators.h (op_iter_init): Handle GIMPLE_TRANSACTION.
5820         * tree-into-ssa.c (prepare_use_sites_for): Skip virtual SSA names
5821         when rewriting their symbol.
5822         (prepare_def_site_for): Likewise.
5823         * tree-chkp-opt.c (chkp_reduce_bounds_lifetime): Clear virtual
5824         operands of moved stmts.
5826 2016-08-17  Richard Biener  <rguenther@suse.de>
5828         PR tree-optimization/23855
5829         * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h.
5830         (tree_unswitch_outer_loop): Iterate find_loop_guard as long as we
5831         find guards to hoist.  Do not update SSA form but rewrite virtuals
5832         into loop closed SSA.
5833         (find_loop_guard): Adjust to skip already hoisted guards.  Do
5834         not mark virtuals for renaming or update SSA form.
5836 2016-08-17  Martin Liska  <mliska@suse.cz>
5838         * coverage.c (get_gcov_type): Replace GCOV_TYPE_SIZE with
5839         a LONG_LONG_TYPE_SIZE comparison.
5840         * gcov-io.h: Remove macro definitions.
5841         * tree-profile.c (gimple_gen_edge_profiler): Replace usage
5842         of GCOV_TYPE_ATOMIC_FETCH_ADD with a LONG_LONG_TYPE_SIZE
5843         comparison.
5845 2016-08-16  Jakub Jelinek  <jakub@redhat.com>
5847         * config/i386/i386.c (enum ix86_builtins): Reorder enumerators, so
5848         that builtins not mentioned in bdesc_* arrays come first, then
5849         the ones mentioned in bdesc_* arrays in the order they appear in
5850         the arrays in between IX86_BUILTIN__BDESC_*_FIRST and
5851         IX86_BUILTIN__BDESC_*_LAST enumerator.
5852         (bdesc_mpx): Fix up a comment typo.
5853         (bdesc_multi_arg): Remove __builtin_ia32_vpcomne[bwdq] and
5854         __builtin_ia32_vpcomneu[bwdq] builtins.
5855         (BDESC_VERIFY, BDESC_VERIFYS): Define.
5856         (ix86_init_mmx_sse_builtins, ix86_init_mpx_builtins): Verify
5857         enum ix86_builtins ordering.
5858         (ix86_expand_builtin): Use enum ix86_builtins ordering assumption
5859         for direct bdesc_* array member access instead of searching all the
5860         arrays until an fcode match is found.
5862 2016-08-16  Uros Bizjak  <ubizjak@gmail.com>
5864         * config/i386/i386.md (*ashl<mode>3_mask): Rewrite define_insn
5865         pattern as define_insn_and_split.  Split insn before reload to
5866         ashl<mode>3_1.
5867         (*<shift_insn><mode>3_mask): Ditto.  Split insn before reload to
5868         <shift_insn><mode>3_1.
5869         (*<rotate_insn><mode>3_mask): Ditto.  Split insn before reload to
5870         <rotate_insn><mode>3_1.
5872 2016-08-16  David Malcolm  <dmalcolm@redhat.com>
5874         PR c/72857
5875         * input.c (get_source_range_for_substring): Rename to...
5876         (get_source_location_for_substring): ...this, adding param
5877         "caret_idx", and converting output param from source_range * to
5878         location_t *.
5879         (get_source_range_for_char): New function.
5880         (get_num_source_ranges_for_substring): Update comment to reflect
5881         above renaming.
5882         (assert_char_at_range): Update to use get_source_range_for_char
5883         rather than get_source_range_for_substring.
5884         (test_lexer_string_locations_concatenation_2): Likewise.
5885         * substring-locations.h (get_source_range_for_substring): Rename
5886         to...
5887         (get_source_location_for_substring): ...this, and adding param
5888         "caret_idx", and converting output param from source_range * to
5889         location_t *.
5891 2016-08-16  David Malcolm  <dmalcolm@redhat.com>
5893         * input.c (class selftest::temp_source_file): Move to
5894         selftest.h.
5895         (selftest::temp_source_file::temp_source_file): Move to
5896         selftest.c.
5897         (selftest::temp_source_file::~temp_source_file): Likewise.
5898         * selftest.c (selftest::temp_source_file::temp_source_file): Move
5899         here from input.c.
5900         (selftest::temp_source_file::~temp_source_file): Likewise.
5901         * selftest.h (class selftest::temp_source_file): Move here from
5902         input.c
5904 2016-08-16  Jakub Jelinek  <jakub@redhat.com>
5906         PR target/71910
5907         * tree-cfg.c (execute_fixup_cfg): Add node variable, use it.  Before
5908         inlining, add cgraph edge for the added __builtin_unreachable call.
5910         PR middle-end/67485
5911         * expmed.c (expand_mult_const): Change val_so_far's type to UHWI,
5912         only cast it to SHWI for the final comparison.
5914 2016-08-16  Martin Liska  <mliska@suse.cz>
5916         PR gcov-profile/36412
5917         * doc/gcov.texi: Document --hash-filenames(-x).
5918         * gcov.c (print_usage): Add the option.
5919         (process_args): Process the option, sort options alphabetically.
5920         (md5sum_to_hex): New function.
5921         (make_gcov_file_name): Do the md5sum and append it to a
5922         filename.
5924 2016-08-16  Bin Cheng  <bin.cheng@arm.com>
5926         PR tree-optimization/69848
5927         * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Invert NE
5928         and swtich operands to avoid additional NOT instruction.
5929         (vcond<v_cmp_mixed><mode>): Ditto.
5930         (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
5932 2016-08-16  Eric Botcazou  <ebotcazou@adacore.com>
5934         * doc/install.texi (*-*-solaris2*): Adjust latest change.
5936 2016-08-16  Richard Biener  <rguenther@suse.de>
5938         PR tree-optimization/76783
5939         * tree-ssa-propagate.c (ssa_prop_init): Use RPO order.  Clear
5940         BB visited flags at start.
5942 2016-08-16  Bin Cheng  <bin.cheng@arm.com>
5944         PR tree-optimization/72817
5945         PR tree-optimization/73450
5946         * tree-ssa-loop-niter.c (number_of_iterations_ne): Check
5947         multiple_of_p for adjusted IV.base.
5949 2016-08-15  Uros Bizjak  <ubizjak@gmail.com>
5951         PR target/72867
5952         * config/i386/sse.md (<code><mode>3<mask_name><round_saeonly_name>):
5953         Emit ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>
5954         for !flag_finite_math_only or flag_signed_zeros.
5955         (*<code><mode>3<mask_name><round_saeonly_name>): Rename from
5956         *<code><mode>3_finite<mask_name><round_saeonly_name>.  Do not
5957         depend on flag_finite_math_only.
5958         (ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>):
5959         New insn pattern.
5960         (*<code><mode>3<mask_name><round_saeonly_name>): Remove.
5961         (*ieee_smin<mode>3): Ditto.
5962         (*ieee_smax<mode>3): Ditto.
5963         * config/i386/mmx.md (mmx_<code>v2sf3): Emit
5964         mmx_ieee_<ieee_maxmin>v2sf3 for !flag_finite_math_only or
5965         flag_signed_zeros.
5966         (*mmx_<code>v2sf3): Rename from *mmx_<code>v2sf3_finite.  Do not
5967         depend on flag_finite_math_only.
5968         (mmx_ieee_<ieee_maxmin>v2sf3): New insn pattern.
5969         (*mmx_<code>v2sf3): Remove.
5970         * config/i386/subst.md (round_saeonly_mask_arg3): New subst attribute.
5971         * config/i386/i386.c (ix86_expand_sse_fp_mimnax): Check
5972         flag_signed_zeros instead of !flag_unsafe_math_optimizations.
5974 2016-08-15  Segher Boessenkool  <segher@kernel.crashing.org>
5976         PR rtl-optimization/73650
5977         * lra-constraints.c (simple_move_p): If the insn is multiple_sets
5978         it is not a simple move.
5980 2016-08-15  Martin Liska  <mliska@suse.cz>
5982         PR driver/72765
5983         * gcc.c (do_spec_1): Call save_string with the right size.
5984         (save_string): Do an assert about string we copy.
5986 2016-08-15  Richard Biener  <rguenther@suse.de>
5988         * ree.c (rest_of_handle_ree): Remove redundant timevar push/pop.
5989         * config/i386/i386.c (pass_data_insert_vzeroupper): Account to
5990         TV_MACH_DEP.
5991         (pass_data_stv): Likewise.
5993 2016-08-15  Richard Biener  <rguenther@suse.de>
5995         PR tree-optimization/73434
5996         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Preserve
5997         TBAA info on the base when forwarding a non-invariant address.
5999 2016-08-15  Jakub Jelinek  <jakub@redhat.com>
6001         * dwarf2out.c (struct checksum_attributes): Add
6002         at_string_length_bit_size and at_string_length_byte_size fields.
6003         (collect_checksum_attributes): Handle DW_AT_string_length_bit_size
6004         and DW_AT_string_length_byte_size.
6005         (die_checksum_ordered): Handle at_string_length_bit_size and
6006         at_string_length_byte_size.
6007         (gen_array_type_die): For dwarf_version >= 5 emit
6008         DW_AT_string_length_byte_size instead of DW_AT_byte_size.
6009         (adjust_string_types): For dwarf_version >= 5 remove
6010         DW_AT_string_length_byte_size instead of DW_AT_byte_size.
6011         (resolve_addr): Likewise.
6013         PR debug/71906
6014         * dwarf2out.c (string_types): New variable.
6015         (gen_array_type_die): Change early_dwarf handling of
6016         DW_AT_string_length, create DW_OP_call4 referencing the
6017         length var temporarily.  Handle parameters that are pointers
6018         to string length.
6019         (adjust_string_types): New function.
6020         (gen_subprogram_die): Temporarily set string_types to local var,
6021         call adjust_string_types if needed.
6022         (non_dwarf_expression, copy_deref_exprloc, optimize_string_length):
6023         New functions.
6024         (resolve_addr): Adjust DW_AT_string_length if it is DW_OP_call4.
6026 2016-08-15  Eric Botcazou  <ebotcazou@adacore.com>
6028         * doc/install.texi (*-*-solaris2*): Fix version number and document
6029         requirement on GNU make for building libjava with the Solaris linker.
6031 2016-08-15  Martin Liska  <mliska@suse.cz>
6032             Jakub Jelinek  <jakub@redhat.com>
6034         PR tree-optimization/72824
6035         * tree-loop-distribution.c (const_with_all_bytes_same)
6036         <case VECTOR_CST>: Fix a typo.
6038 2016-08-14  Uros Bizjak  <ubizjak@gmail.com>
6040         PR target/76342
6041         * config/i386/avx512fintrin.h (_mm512_undefined_epi32):
6042         Renamed from _mm512_undefined_si512.
6043         (_mm_undefined_si512): New definition.
6045 2016-08-13  Richard Biener  <rguenther@suse.de>
6047         * tree-ssa-forwprop.c (pass_forwprop::execute): Propagate
6048         into PHIs and update the lattice for its def.
6050 2016-08-12  Jakub Jelinek  <jakub@redhat.com>
6052         PR c/71512
6053         * ubsan.c (instrument_si_overflow): Pass true instead of false
6054         to gsi_replace.
6055         (pass_ubsan::execute): Call gimple_purge_dead_eh_edges at the end
6056         of bbs.  Return TODO_cleanup_cfg if any returned true.
6058 2016-08-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
6060         * config/rs6000/vsx.md (vsx_concat_<mode>): Add support for the
6061         ISA 3.0 MTVSRDD instruction.
6062         (vsx_splat_<mode>): Change cpu type of MTVSRDD instruction to
6063         vecperm.
6065 2016-08-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6067         PR tree-optimization/71083
6068         * tree-predcom.c (ref_at_iteration): Use a COMPONENT_REF for the
6069         bitfield access when possible.
6071 2016-08-12  Patrick Palka  <ppalka@gcc.gnu.org>
6073         PR middle-end/71654
6074         * match.pd ((T)A CMP (T)B -> A CMP B): Allow (T)A to be a
6075         sign-changing cast from a shorter unsigned type to a wider
6076         signed type.
6078 2016-08-12  Jakub Jelinek  <jakub@redhat.com>
6080         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm,
6081         vec_extract_hi_<mode>_mask, vec_extract_lo_<mode>_mask,
6082         vec_extract_hi_<mode>_mask): Use Yk constraint instead of k.
6084 2016-08-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6086         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
6087         Correct costs for vec_construct.
6089 2016-08-12  Bin Cheng  <bin.cheng@arm.com>
6091         PR tree-optimization/69848
6092         * tree-vectorizer.h (enum vect_def_type): New condition reduction
6093         type CONST_COND_REDUCTION.
6094         * tree-vect-loop.c (vectorizable_reduction): Support new condition
6095         reudction type CONST_COND_REDUCTION.
6097 2016-08-12  Richard Biener  <rguenther@suse.de>
6099         PR tree-optimization/57326
6100         * tree-ssa-pre.c (fully_constant_expression): Handle simplification
6101         returning an SSA name.
6102         (phi_translate_1): When fully_constant_expression returns a NAME
6103         make sure we have a leader for it.
6105 2016-08-12  Martin Liska  <mliska@suse.cz>
6106             Adam Fineman  <afineman@afineman.com>
6108         * gcov.c (process_file): Create .gcov file when .gcda
6109         file is missing.
6111 2016-08-12  Marek Polacek  <polacek@redhat.com>
6113         PR c/7652
6114         * alias.c (find_base_value): Adjust fall through comment.
6115         * cfgexpand.c (expand_debug_expr): Likewise.
6116         * combine.c (find_split_point): Likewise.
6117         (expand_compound_operation): Likewise.  Add FALLTHRU.
6118         (make_compound_operation): Adjust fall through comment.
6119         (canon_reg_for_combine): Add FALLTHRU.
6120         (force_to_mode): Adjust fall through comment.
6121         (simplify_shift_const_1): Likewise.
6122         (simplify_comparison): Likewise.
6123         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Add
6124         FALLTHRU.
6125         * config/aarch64/predicates.md: Likewise.
6126         * config/i386/i386.c (function_arg_advance_32): Likewise.
6127         (ix86_gimplify_va_arg): Likewise.
6128         (print_reg): Likewise.
6129         (ix86_print_operand): Likewise.
6130         (ix86_build_const_vector): Likewise.
6131         (ix86_expand_branch): Likewise.
6132         (ix86_sched_init_global): Adjust fall through comment.
6133         (ix86_expand_args_builtin): Add FALLTHRU.
6134         (ix86_expand_builtin): Likewise.
6135         (ix86_expand_vector_init_one_var): Likewise.
6136         * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
6137         (rs6000_adjust_cost): Likewise.
6138         (insn_must_be_first_in_group): Likewise.
6139         * config/rs6000/rs6000.md: Likewise.  Adjust fall through comment.
6140         * dbxout.c (dbxout_symbol): Adjust fall through comment.
6141         * df-scan.c (df_uses_record): Likewise.
6142         * dojump.c (do_jump): Add FALLTHRU.
6143         * dwarf2out.c (mem_loc_descriptor): Likewise.  Adjust fall through
6144         comment.
6145         (resolve_args_picking_1): Adjust fall through comment.
6146         (loc_list_from_tree_1): Likewise.
6147         * expmed.c (make_tree): Likewise.
6148         * expr.c (expand_expr_real_2): Add FALLTHRU.
6149         (expand_expr_real_1): Likewise.  Adjust fall through comment.
6150         * fold-const.c (const_binop): Adjust fall through comment.
6151         (fold_truth_not_expr): Likewise.
6152         (fold_cond_expr_with_comparison): Add FALLTHRU.
6153         (fold_binary_loc): Likewise.
6154         (contains_label_1): Adjust fall through comment.
6155         (multiple_of_p): Likewise.
6156         * gcov-tool.c (process_args): Add FALLTHRU.
6157         * genattrtab.c (check_attr_test): Likewise.
6158         (write_test_expr): Likewise.
6159         * genconfig.c (walk_insn_part): Likewise.
6160         * genpreds.c (validate_exp): Adjust fall through comment.
6161         (needs_variable): Likewise.
6162         * gensupport.c (get_alternatives_number): Add FALLTHRU.
6163         (subst_dup): Likewise.
6164         * gimple-pretty-print.c (dump_gimple_assign): Likewise.
6165         * gimplify.c (gimplify_addr_expr): Adjust fall through comment.
6166         (gimplify_scan_omp_clauses): Add FALLTHRU.
6167         (goa_stabilize_expr): Likewise.
6168         * graphite-isl-ast-to-gimple.c (substitute_ssa_name): Adjust fall
6169         through comment.
6170         * hsa-gen.c (get_address_from_value): Likewise.
6171         * ipa-icf.c (sem_function::hash_stmt): Likewise.
6172         * ira.c (ira_setup_alts): Add FALLTHRU.
6173         * lra-eliminations.c (lra_eliminate_regs_1): Adjust fall through
6174         comment.
6175         * lto-streamer-out.c (lto_output_tree_ref): Add FALLTHRU.
6176         * opts.c (common_handle_option): Likewise.
6177         * read-rtl.c (read_rtx_code): Likewise.
6178         * real.c (round_for_format): Likewise.
6179         * recog.c (asm_operand_ok): Likewise.
6180         * reginfo.c (reg_scan_mark_refs): Adjust fall through comment.
6181         * reload1.c (set_label_offsets): Likewise.
6182         (eliminate_regs_1): Likewise.
6183         (reload_reg_reaches_end_p): Likewise.
6184         * rtlanal.c (commutative_operand_precedence): Add FALLTHRU.
6185         (rtx_cost): Likewise.
6186         * sched-rgn.c (is_exception_free): Likewise.
6187         * simplify-rtx.c (simplify_rtx): Adjust fall through comment.
6188         * stor-layout.c (int_mode_for_mode): Likewise.
6189         * toplev.c (print_to_asm_out_file): Likewise.
6190         (print_to_stderr): Likewise.
6191         * tree-cfg.c (gimple_verify_flow_info): Likewise.
6192         * tree-chrec.c (chrec_fold_plus_1): Add FALLTHRU.
6193         (chrec_fold_multiply): Likewise.
6194         (evolution_function_is_invariant_rec_p): Likewise.
6195         (for_each_scev_op): Likewise.
6196         * tree-data-ref.c (siv_subscript_p): Likewise.
6197         (get_references_in_stmt): Likewise.
6198         * tree.c (find_placeholder_in_expr): Adjust fall through comment.
6199         (substitute_in_expr): Likewise.
6200         (type_cache_hasher::equal): Likewise.
6201         (walk_type_fields): Likewise.
6202         * var-tracking.c (adjust_mems): Add FALLTHRU.
6203         (set_dv_changed): Adjust fall through comment.
6204         * varasm.c (default_function_section): Add FALLTHRU.
6206 2016-08-12  Marek Polacek  <polacek@redhat.com>
6208         PR c/7652
6209         * tree-complex.c (expand_complex_division): Add missing break.
6211 2016-08-12  Richard Biener  <rguenther@suse.de>
6213         * passes.c (execute_todo): Do not push/pop TV_TODO.
6214         (execute_one_ipa_transform_pass): Move timevar push/pop TODO execution.
6215         (execute_one_pass): Likewise.
6216         * common.opt (ftime-report-details): New switch.
6217         * doc/invoke.texi (ftime-report-details): Document.
6218         * timevar.h (timer::print_row): Adjust signature.
6219         (timer::all_zero): New static helper.
6220         (timer::child_map_t): New typedef.
6221         (timer::time_var_def): Add children field.
6222         * timevar.c (timer::named_items::print): Adjust.
6223         (timer::~timer): Free timevar recorded children.
6224         (timer::pop_internal): When -ftime-report-details record
6225         time spent in sub-timevars.
6226         (timer::print_row): Adjust.
6227         (timer::print): Print sub-timevar stats, use all_zero.
6228         * timevar.def (TV_TODO): Remove.
6230 2016-08-12  Richard Biener  <rguenther@suse.de>
6232         PR tree-optimization/72851
6233         * tree-ssa-propagate.c: Include cfganal.h.  Rewrite block and stmt
6234         worklists to use bitmaps indexed in execution order.
6235         (executable_blocks, cfg_blocks_num, cfg_blocks_tail, cfg_blocks_head,
6236         bb_in_list, interesting_ssa_edges, varying_ssa_edges): Remove.
6237         (cfg_blocks): Make a bitmap.
6238         (bb_to_cfg_order, cfg_order_to_bb, ssa_edge_worklist, uid_to_stmt):
6239         New globals.
6240         (cfg_blocks_empty_p): Adjust.
6241         (cfg_blocks_add): Likewise.
6242         (cfg_blocks_get): Likewise.
6243         (add_ssa_edge): Likewise.
6244         (add_control_edge): Likewise.
6245         (simulate_stmt): Likewise.
6246         (process_ssa_edge_worklist): Likewise.
6247         (simulate_block): Likewise.
6248         (ssa_prop_init): Compute PRE order and stmt UIDs.
6249         (ssa_prop_fini): Adjust.
6250         (ssa_propagate): Adjust.
6252 2016-08-12  Richard Biener  <rguenther@suse.de>
6254         * tree-vrp.c (vrp_visit_phi_node): Allow a last iteration if
6255         the currently executable edges have fixed ranges.  Always
6256         go through update_value_range.
6258 2016-08-12  Alexandre Oliva  <aoliva@redhat.com>
6260         PR debug/63240
6261         * langhooks-def.h
6262         (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Const_tree-ify.
6263         (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Likewise.
6264         (LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Set default.
6265         (LANG_HOOKS_DECLS): Add it.
6266         * langhooks.h (struct lang_hooks_for_decls): Add
6267         function_decl_defaulted.  Const_tree-ify
6268         function_decl_explicit_p and function_decl_deleted_p.
6269         * dwarf2out.c (gen_subprogram_die): Add DW_AT_defaulted
6270         attribute.  Add DW_AT_deleted instead of DW_AT_GNU_deleted,
6271         also at strict DWARF v5.
6273         PR debug/55641
6274         * dwarf2out.c (decl_quals): Don't map TREE_READONLY to
6275         TYPE_QUAL_CONST in reference-typed decls.
6277         PR debug/49366
6278         * dwarf2out.c (loc_list_from_tree_1): Expand some CONSTRUCTORs
6279         in DW_OP_pieces, just enough to handle pointers to member
6280         functions.
6281         (gen_remaining_tmpl_value_param_die_attribute): Use a location
6282         expression on DWARFv5 if a constant value doesn't work.
6284 2016-08-11  David Malcolm  <dmalcolm@redhat.com>
6286         * selftest-run-tests.c (selftest::run_tests): Call selftest_c_tests.
6287         * selftest.c (selftest::test_assertions): New function.
6288         (selftest::selftest_c_tests): New function.
6289         * selftest.h (selftest::selftest_c_tests): New declaration.
6291 2016-08-11  Richard Biener  <rguenther@suse.de>
6292             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6294         PR rtl-optimization/72855
6295         * df-core.c (df_verify): Turn off DF_VERIFY_SCHEDULED at end.
6297 2016-08-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6299         PR target/72863
6300         * vsx.md (vsx_load_<mode>): For P8LE, emit swaps at expand time.
6301         (vsx_store_<mode>): Likewise.
6303 2015-08-11  H.J. Lu  <hongjiu.lu@intel.com>
6305         * config/i386/i386.c (timode_scalar_to_vector_candidate_p): Allow
6306         TImode CONST_WIDE_INT store.
6307         (timode_scalar_chain::convert_insn): Handle CONST_WIDE_INT store.
6309 2015-08-11  H.J. Lu  <hongjiu.lu@intel.com>
6311         * config/i386/i386.h (MOVE_MAX_PIECES): Use TImode in 64-bit
6312         mode if unaligned SSE load and store are optimal.
6314 2016-08-11  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6316         PR tree-optimization/71083
6317         * tree-predcom.c (ref_at_iteration): Correctly align the
6318         reference type.
6320 2016-08-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6322         * config/s390/s390-builtin-types.def: Add INT128 types.
6323         * config/s390/s390-builtins.def: Add INT128 variants for the add
6324         sub low-level builtins dealing with TImode.
6325         * config/s390/s390.c (s390_expand_builtin): Allow mode conversions
6326         via subreg when expanding a builtin.
6327         * config/s390/s390.md: Remove UNSPEC_VEC_ADDC_U128,
6328         UNSPEC_VEC_SUB_U128, and UNSPEC_VEC_SUBC_U128 constants.
6329         Fix comment.
6330         * config/s390/vecintrin.h: Adjust builtin names accordingly.
6331         * config/s390/vx-builtins.md ("vec_add_u128"): Remove expander.
6332         ("vec_addc<mode>", "vec_addc_u128"): Merge to
6333         "vacc<bhfgq>_<mode>".
6334         ("vec_adde_u128"): Rename to "vacq". Change mode to TImode.
6335         ("vec_addec_u128"): Rename to "vacccq". Change mode to TImode.
6336         ("vec_subc<mode>", "vec_subc_u128"): Merge to
6337         "vscbi<bhfgq>_<mode>".
6338         ("vec_sube_u128"): Rename to "vsbiq". Change mode to TImode.
6339         ("vec_subec_u128"): Rename to "vsbcbiq". Change mode to TImode.
6341 2016-08-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6343         * config/s390/s390-builtins.def: Mark last operand of s390_vlvg*
6345 2016-08-11  Bin Cheng  <bin.cheng@arm.com>
6347         * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Delete
6348         unused declaration.
6349         (vcond<v_cmp_mixed><mode>): Ditto.
6350         (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
6352 2016-08-11  Bin Cheng  <bin.cheng@arm.com>
6354         * config/aarch64/aarch64-simd.md (vec_cmp<mode><v_cmp_result>): Init
6355         variable explicitly, also assert on it before use.
6357 2016-08-11  Richard Biener  <rguenther@suse.de>
6359         PR tree-optimization/72772
6360         * cfgloopmanip.c (create_preheader): Use split_edge if there
6361         is a single loop entry, avoiding degenerate PHIs.
6363 2016-08-11  Richard Biener  <rguenther@suse.de>
6365         * tree-ssa-threadbackward.c (pass_data_thread_jumps): Remove
6366         unconditional TODO_cleanup_cfg.
6367         (pass_thread_jumps::execute): Initialize loops, perform a CFG
6368         cleanup only if we threaded a jump.
6370 2016-08-11  Alan Modra  <amodra@gmail.com>
6372         PR target/71680
6373         * lra-constraints.c (simplify_operand_subreg): Allow subreg
6374         mode for mem when SLOW_UNALIGNED_ACCESS if inner mode is also
6375         slow.  Emit two reloads for slow mem case, first loading in
6376         fast innermode, then converting to required mode.
6378 2016-08-10  Kelvin Nilsen  <kelvin@gcc.gnu.org>
6380         * config/rs6000/altivec.h (vec_extract_exp): New macro.
6381         (vec_extract_sig): New macro.
6382         (vec_insert_exp): New macro.
6383         (vec_test_data_class): New macro.
6384         (scalar_extract_exp): New macro.
6385         (scalar_extract_sig): New macro.
6386         (scalar_insert_exp): New macro.
6387         (scalar_test_data_class): New macro.
6388         (scalar_test_neg): New macro.
6389         (scalar_cmp_exp_gt): New macro.
6390         (scalar_cmp_exp_lt): New macro.
6391         (scalar_cmp_exp_eq): New macro.
6392         (scalar_cmp_exp_unordered): New macro.
6393         * config/rs6000/predicates.md (u7bit_cint_operand): New predicate
6394         to enforce constraint that operand is a 7-bit unsigned literal.
6395         * config/rs6000/rs6000-builtin.def (BU_P9V_64BIT_VSX_1): New macro
6396         for power9 built-ins.
6397         (BU_P9V_VSX_2): Likewise.
6398         (BU_P9V_64BIT_VSX_2): Likewise.
6399         (VSEEDP): Add scalar extract exponent support.
6400         (VSEESP): Add scalar extract signature support.
6401         (VSTDCNDP): Add scalar test negative support.
6402         (VSTDCNSP): Likewise.
6403         (VSIEDP): Add scalar insert exponent support.
6404         (VSCEDPGT): Add scalar compare exponent greater than support.
6405         (VSCEDPLT): Add scalar compare exponent less than support.
6406         (VSCEDPEQ): Add scalar compare exponent test-for-equality support.
6407         (VSCEDPUO): Add scalar compare exponent test-for-unordered support.
6408         (VSTDCDP): Add scalar test data class support.
6409         (VSTDCSP): Likewise.
6410         (VSEEDP): Add overload support for scalar extract exponent
6411         operation.
6412         (VSESDP): Add overload support for scalar extract signature
6413         operation.
6414         (VSTDCN): Add overload support for scalar test negative
6415         operation.
6416         (VSTDCNDP): Add overload support for scalar test negative
6417         operation.
6418         (VSTDCNSP): Add overload support for scalar test negative
6419         operation.
6420         (VSIEDP): Add overload support for scalar insert exponent
6421         operation.
6422         (VSTDC): Add overload support for scalar test data class
6423         operation.
6424         (VSTDCDP): Add overload support for scalar test data class
6425         operation.
6426         (VSTDCSP): Add overload support for scalar test data class
6427         opreation.
6428         (VSCEDPGT): Add overload support for scalar compare exponent
6429         greater than operation.
6430         (VSCEDPLT): Add overload support for scalar compare exponent
6431         less than operation.
6432         (VSCEDPEQ): Add overload support for scalar compare exponent
6433         test-for-equality operation.
6434         (VSCEDPUO): Add overload support for scalar compare exponent
6435         test-for-unordered operation.
6436         (VEEDP): Add vector extract exponent support.
6437         (VEESP): Likewise.
6438         (VESDP): Add vector extract significand support.
6439         (VESSP): Likewise.
6440         (VIEDP): Add vector insert exponent support.
6441         (VIESP): Likewise.
6442         (VTDCDP): Add vector test data class support.
6443         (VTDCSP): Likewise.
6444         (VES): Add overload support for vector extract significand operation.
6445         (VESDP): Likewise.
6446         (VESSP): Likewise
6447         (VEE): Add overload support for vector extract exponent operation.
6448         (VEEDP): Likewise.
6449         (VEESP): Likewise.
6450         (VTDC): Add overload support for vector test data class operation.
6451         (VTDCDP): Likewise.
6452         (VTDCSP): Likewise.
6453         (VIE): Add overload support for vector insert exponent operation.
6454         (VIEDP): Likewise.
6455         (VIESP): Likewise.
6456         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
6457         overloaded binary floating point functions.
6458         (altivec_resolve_overloaded_builtin): Improve error messages to
6459         distinguish between functions not supported in the current
6460         compiler configuration and functions that were invoked with an
6461         invalid parameter combination, and include the built-in function
6462         name in both error messages.
6463         * config/rs6000/rs6000-protos.h (rs6000_overloaded_builtin_name):
6464         New prototype.
6465         * config/rs6000/rs6000.c (rs6000_overloaded_builtin_name): New
6466         function.
6467         (rs6000_expand_binop_builtin): Add check to enforce that argument
6468         2 of the test data class operations is a 7-bit unsigned literal.
6469         (rs6000_invalid_builtin): Add code to issue an error message if a
6470         built-in function that requires the power9_vector and -m32
6471         command-line options is compiled without these options.
6472         * config/rs6000/vsx.md (UNSPEC_VSX_SXEXPDP): New value.
6473         (UNSPEC_VSX_SXSIGDP): New value.
6474         (UNSPEC_VSX_SXSIGPDP): New value.
6475         (UNSPEC_VSX_SIEXPDP): New value.
6476         (UNSPEC_VSX_SCMPEXPDP): New value.
6477         (UNSPEC_VSX_STSTDC): New value.
6478         (UNSPEC_VSX_VXEXP): New value.
6479         (UNSPEC_VSX_VXSIG): New value.
6480         (UNSPEC_VSX_VIEXP): New value.
6481         (UNSPEC_VSX_VTSTDC): New value.
6482         (xsxexpdp): New insn for scalar extract exponent.
6483         (xsxsigdp): New insn for scalar extract significand.
6484         (xsiexpdp): New insn for scalar insert exponent.
6485         (xscmpexpdp_<code>): New expansion for scalar compare exponents.
6486         (*xscmpexpdp): New insn for scalar compare exponents.
6487         (xststdc<Fvsx): New expansion for both single- and
6488         double-precision scalar test data class operations.
6489         (xststdcneg<Fvsx>): New expansion for both single- and
6490         double-precision scalar test for negative value operations.
6491         (*xststdc<Fvsx>): New insn for scalar test data class
6492         operation.
6493         (xvxexp<VSs>): New insn for single- and double-precision
6494         vector extract exponent operation.
6495         (xvxsig<VSs>): New insn for single- and double-precision
6496         vector extract significand operation.
6497         (xviexp<VSs>): New insn for single- and double-precision
6498         vector insert exponent operation.
6499         (xvtstdc<VSs>): New insn for single- and double-precision
6500         vector test data class operation.
6501         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
6502         built-in functions to represent the Power9 binary floating-point
6503         support instructions.
6505 2016-08-10  bin cheng  <bin.cheng@arm.com>
6507         * doc/sourcebuild.texi (@item vect_cond_mixed): New item.
6509 2016-08-10  Alan Lawrence  <alan.lawrence@arm.com>
6510             Renlin Li  <renlin.li@arm.com>
6511             Bin Cheng  <bin.cheng@arm.com>
6513         * config/aarch64/iterators.md (V_cmp_mixed, v_cmp_mixed): New.
6514         * config/aarch64/aarch64-simd.md (<su><maxmin>v2di3): Call
6515         gen_vcondv2div2di instead of gen_aarch64_vcond_internalv2div2di.
6516         (aarch64_vcond_internal<mode><mode>): Delete pattern.
6517         (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): Ditto.
6518         (vcond<v_cmp_result><mode>): Ditto.
6519         (vcond<mode><mode>): Re-implement using vec_cmp and vcond_mask.
6520         (vcondu<mode><mode>): Ditto.
6521         (vcond<v_cmp_mixed><mode>): New pattern.
6522         (vcondu<mode><v_cmp_mixed>): New pattern.
6523         (aarch64_cmtst<mode>): Revise comment using aarch64_vcond instead
6524         of aarch64_vcond_internal.
6526 2016-08-10  Alan Lawrence  <alan.lawrence@arm.com>
6527             Renlin Li  <renlin.li@arm.com>
6528             Bin Cheng  <bin.cheng@arm.com>
6530         * config/aarch64/aarch64-simd.md (vec_cmp<mode><mode>): New pattern.
6531         (vec_cmp<mode><v_cmp_result>): New pattern.
6532         (vec_cmpu<mode><mode>): New pattern.
6533         (vcond_mask_<mode><v_cmp_result>): New pattern.
6535 2016-08-10  Yuri Rumyantsev  <ysrumyan@gmail.com>
6537         PR tree-optimization/71734
6538         * tree-ssa-loop-im.c (ref_indep_loop_p): Add new argument
6539         REF_LOOP, invoke ref_indep_loop_p_1.
6540         (outermost_indep_loop): Pass LOOP argumnet where REF was defined
6541         to ref_indep_loop_p.
6542         (ref_indep_loop_p_1): Fix commentary, add argument REF_LOOP,
6543         combine it with ref_indep_lopp_p_2, update SAFELEN if only REF
6544         is inside LOOP, do not cache dpendence value for loops with
6545         non-zero SAFELEN.
6546         (ref_indep_loop_p_2): Delete function.
6547         (can_sm_ref_p): Pass LOOP as additional argument to
6548         ref_indep_loop_p.
6550 2016-08-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
6552         PR target/72853
6553         * config/rs6000/rs6000.c (mem_operand_ds_form): Add check for op
6554         being an offsettable address.
6556 2016-08-10  Martin Liska  <mliska@suse.cz>
6558         PR gcov-profile/58306
6559         * tree-profile.c (gimple_init_edge_profiler): Create conditionally
6560         atomic variants of profile update functions.
6562 2016-08-10  Martin Liska  <mliska@suse.cz>
6564         Cherry picked (and modified) from google-4_7 branch
6565         2012-12-26  Rong Xu  <xur@google.com>
6566         * common.opt (fprofile-update): Add new flag.
6567         * coretypes.h: Define enum profile_update.
6568         * doc/invoke.texi: Document -fprofile-update.
6569         * gcov-io.h: Declare GCOV_TYPE_ATOMIC_FETCH_ADD and
6570         GCOV_TYPE_ATOMIC_FETCH_ADD_FN.
6571         * tree-profile.c (gimple_init_edge_profiler): Generate
6572         also atomic profiler update.
6573         (gimple_gen_edge_profiler): Likewise.
6575 2016-08-10  David Malcolm  <dmalcolm@redhat.com>
6577         * toplev.c (finalize): Set aux_info_file, asm_out_file, and
6578         stack_usage_file to NULL after fclose calls.
6580 2016-08-10  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
6582         PR target/71873
6583         * reload.c (push_reload): Compute subreg_in_class for
6584         subregs of constants and plus expressions. Remove special
6585         handling of SYMBOL_REFs.
6587 2016-08-10  Alan Modra  <amodra@gmail.com>
6589         PR target/71680
6590         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Return
6591         SImode for TARGET_E500_DOUBLE when given SImode.
6593 2016-08-09  David Wohlferd  <dw@LimeGreenSocks.com>
6595         * config/i3836/avx512fintrin.h (_mm512_cvtsepi64_epi32): Remove
6596         unused variable __O.
6598 2016-08-09  Martin Liska  <mliska@suse.cz>
6600         * doc/gcov.texi: Change _gcov_dump to __gcov_dump and
6601         _gcov_reset to __gcov_reset.
6602         * doc/gcov-tool.texi: Fix typo.
6604 2016-08-09  Martin Liska  <mliska@suse.cz>
6606         * value-prof.c (gimple_divmod_values_to_profile): Do not
6607         instrument MOD histogram if a value is not a SSA name.
6609 2016-08-09  Martin Liska  <mliska@suse.cz>
6611         * value-prof.c (dump_histogram_value): Swap pow2 and non-pow2
6612         values.
6614 2016-08-09  Renlin Li  <renlin.li@arm.com>
6616         PR middle-end/64971
6617         * calls.c (prepare_call_address): Convert funexp to Pmode when
6618         necessary.
6619         * config/aarch64/aarch64.md (sibcall): Remove fix for PR 64971.
6620         (sibcall_value): Likewise.
6622 2016-08-09  Marek Polacek  <polacek@redhat.com>
6624         PR c/7652
6625         * cselib.c (cselib_expand_value_rtx_1): Add return.
6626         * gengtype.c (dbgprint_count_type_at): Likewise.
6627         * hsa-gen.c (gen_hsa_insn_for_internal_fn_call): Likewise.
6628         * reg-stack.c (get_true_reg): Restructure to avoid fallthrough warning.
6630 2016-08-09  Martin Jambor  <mjambor@suse.cz>
6632         PR ipa/71981
6633         * ipa-polymorphic-call.c (get_dynamic_type): Bail out gracefully
6634         if instance is a MEM_REF.
6636 2016-08-09  Uros Bizjak  <ubizjak@gmail.com>
6638         PR target/72843
6639         * config/i386/i386.md (*movtf_internal): Use
6640         lra_in_progress || reload_completed instead of !can_create_pseudo_p
6641         in the insn constraint.
6642         (*movxf_internal): Ditto.
6643         (*movdf_internal): Ditto.
6644         (*movsf_internal): Ditto.
6646 2016-08-09  Bin Cheng  <bin.cheng@arm.com>
6648         PR tree-optimization/72772
6649         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
6650         for expanded base.
6652 2016-08-09  Bin Cheng  <bin.cheng@arm.com>
6654         PR tree-optimization/72772
6655         * tree-ssa-loop-niter.h (simplify_using_initial_conditions): Delete
6656         parameter STOP.
6657         * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Delete
6658         parameter STOP and update calls.  Move expand_simple_operations
6659         function call from here...
6660         (simplify_using_initial_conditions): ...to here.  Delete parameter
6661         STOP.
6662         (tree_simplify_using_condition): Delete parameter STOP.
6663         * tree-scalar-evolution.c (simple_iv_with_niters): Update call to
6664         simplify_using_initial_conditions.
6666 2016-08-09  Matthew Fortune  <matthew.fortune@imgtec.com>
6668         PR c/65345
6669         * config/mips/mips.c (mips_atomic_assign_expand_fenv):
6670         Use create_tmp_var_raw instead of create_tmp_var.
6672 2016-08-09  Richard Biener  <rguenther@suse.de>
6674         * tree-ssa-threadbackward.c (profitable_jump_thread_path):
6675         Treat same SSA names related.
6677 2016-08-09  Jakub Jelinek  <jakub@redhat.com>
6679         PR tree-optimization/72824
6680         * tree-loop-distribution.c (const_with_all_bytes_same): Verify
6681         real_zerop is not negative.
6683 2016-08-09  Richard Biener  <rguenther@suse.de>
6685         PR tree-optimization/71802
6686         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Make sure to catch
6687         all merge opportunities with the predecessor.
6689 2016-08-09  Richard Biener  <rguenther@suse.de>
6691         PR ipa/68273
6692         * ipa-prop.c (ipa_modify_formal_parameters): Build
6693         parameter types with natural alignment also for the
6694         over-aligned case.
6696 2016-08-08  Andi Kleen  <ak@linux.intel.com>
6698         * tree-vrp.c (get_single_symbol): Always initialize inv and neg.
6700 2016-08-08  David Malcolm  <dmalcolm@redhat.com>
6702         PR c/64955
6703         * langhooks-def.h (LANG_HOOKS_RUN_LANG_SELFTESTS): New default
6704         do-nothing langhook.
6705         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_RUN_LANG_SELFTESTS.
6706         * langhooks.h (struct lang_hooks): Add run_lang_selftests.
6707         * selftest-run-tests.c: Include "tree.h" and "langhooks.h".
6708         (selftest::run_tests): Call lang_hooks.run_lang_selftests.
6710 2016-08-08  David Malcolm  <dmalcolm@redhat.com>
6712         PR bootstrap/72844
6713         * input.c: Ensure that HAVE_ICONV is defined.
6715 2016-08-08  Jakub Jelinek  <jakub@redhat.com>
6717         PR middle-end/72781
6718         * omp-low.c (lower_lastprivate_clauses): Set TREE_NO_WARNING on the
6719         private vars for lastprivate and for linear iterator.
6721         PR middle-end/68762
6722         * omp-simd-clone.c: Include varasm.h.
6723         (simd_clone_create): Copy over DECL_COMDAT, DECL_WEAK, DECL_EXTERNAL,
6724         DECL_VISIBILITY, DECL_VISIBILITY_SPECIFIED, DECL_DLLIMPORT_P and for
6725         DECL_ONE_ONLY call make_decl_one_only.  Fix up spelling in comment and
6726         update function name.
6728 2016-07-29  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
6730         * config/avr/driver-avr.c (specfiles_doc_url): Remove.
6731         (avr_diagnose_devicespecs_error): Remove.
6732         (avr_devicespecs_file): Remove composing absolute path for specfile
6733         and its verbose info. Remove conditions to check specs-file,
6735 2016-08-08  Jakub Jelinek  <jakub@redhat.com>
6737         PR rtl-optimization/72821
6738         * lra-spills.c (regno_in_use_p): Don't use BLOCK_FOR_INSN on barriers,
6739         just return false for them.
6741 2016-08-08  Alan Modra  <amodra@gmail.com>
6743         PR target/72771
6744         * config/rs6000/rs6000.c (toc_relative_expr_p): Allow (lo_sum (high))
6745         toc refs created during reload.  Update function comment.
6747 2016-08-08  Alan Modra  <amodra@gmail.com>
6749         PR target/72802
6750         * config/rs6000/rs6000.md (mov<mode>_hardfloat): Sort
6751         alternatives.  Put loads first, then stores, and reg/reg moves
6752         within same class later.  Delete attr length.
6754 2016-08-08  Alan Modra  <amodra@gmail.com>
6756         PR target/72802
6757         * config/rs6000/rs6000.c (mem_operand_gpr): Remove vsx dform test.
6758         (mem_operand_ds_form): New predicate.
6759         * config/rs6000/rs6000-protos.h (mem_operand_ds_form): Declare.
6760         * config/rs6000/constraints.md (wY): Use mem_operand_df_form.
6761         * config/rs6000/predicates.md (offsettable_mem_14bit_operand): Delete.
6762         * config/rs6000/rs6000.md (f32_lm2, f32_sm2): Use wY for SF.
6763         (extendsfdf2_fpr): Replace o constraint with wY.
6765 2016-08-07  Jan Hubicka  <hubicka@ucw.cz>
6767         * tree-ssa-threadbackward.c: Include tree-inline.h
6768         (profitable_jump_thread_path): Use estimate_num_insns to estimate
6769         size of copied block; for cold paths reduce duplication.
6770         (find_jump_threads_backwards): Remove redundant tests.
6771         (pass_thread_jumps::gate): Enable for -Os.
6773 2016-08-07  Jakub Jelinek  <jakub@redhat.com>
6775         PR c/72816
6776         * stor-layout.c (layout_decl): Fix up formatting.
6777         (relayout_decl): Allow DECL to be FIELD_DECL.
6779 2016-08-07  Alan Modra  <amodra@gmail.com>
6781         * config/rs6000/rs6000.md (fix_trunc<mode>si2): Fix mode of reg.
6783 2016-08-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
6785         * data-streamer-in.c (streamer_read_wide_int): New.
6786         (streamer_read_widest_int): Renamed function.
6787         * data-streamer-out.c (streamer_write_wide_int): New
6788         (streamer_write_widest_int): Renamed function.
6789         * lto-streamer-in.c (streamer_read_wi): Renamed and moved to
6790         data-stream-in.c.
6791         (input_cfg): Call renamed function.
6792         * lto-streamer-out.c (streamer_write_wi): Renamed and moved to
6793         data-stream-out.c.
6794         (output_cfg): Call renamed function.
6795         * data-streamer.h: Add declarations.
6797 2016-08-08  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
6799         * tree-ssa-ccp.c (extend_mask): New param sgn.
6800         Remove ORing with wi::mask.
6801         (get_default_value): Adjust call to extend_mask to pass sign.
6802         (evaluate_stmt): Likewise.
6804 2016-08-06  Jakub Jelinek  <jakub@redhat.com>
6806         * gcov.c (handle_cycle): Use INTTYPE_MAXIMUM (int64_t) instead of
6807         INT64_MAX.
6809 2016-08-06  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
6811         * match.pd ((intptr_t) x eq/ne CST to x eq/ne (typeof x) cst): Disable
6812         transform if operand's type is pointer to function or method.
6814 2016-08-05  Patrick Palka  <ppalka@gcc.gnu.org>
6816         PR tree-optimization/18046
6817         * tree-ssa-threadedge.c: Include cfganal.h.
6818         (simplify_control_statement_condition): If simplifying a
6819         GIMPLE_SWITCH, replace the index operand of the GIMPLE_SWITCH
6820         with the dominating ASSERT_EXPR before handing it off to VRP.
6821         Mention that a CASE_LABEL_EXPR may be returned.
6822         (thread_around_empty_blocks): Adjust to handle
6823         simplify_control_statement_condition() returning a
6824         CASE_LABEL_EXPR.
6825         (thread_through_normal_block): Likewise.
6826         * tree-vrp.c (simplify_stmt_for_jump_threading): Simplify
6827         a switch statement by trying to determine which case label
6828         will be taken.
6830 2016-08-05  Vladimir Makarov  <vmakarov@redhat.com>
6832         PR rtl-optimization/69847
6833         * lra-constraints.c (process_invariant_for_inheritance): Save
6834         pattern instead of src.
6835         (remove_inheritance_pseudos): Use the pattern.  Add assert.
6837 2016-08-05  David Malcolm  <dmalcolm@redhat.com>
6839         * input.c (string_concat::string_concat): New constructor.
6840         (string_concat_db::string_concat_db): New constructor.
6841         (string_concat_db::record_string_concatenation): New method.
6842         (string_concat_db::get_string_concatenation): New method.
6843         (string_concat_db::get_key_loc): New method.
6844         (class auto_cpp_string_vec): New class.
6845         (get_substring_ranges_for_loc): New function.
6846         (get_source_range_for_substring): New function.
6847         (get_num_source_ranges_for_substring): New function.
6848         (class selftest::lexer_test_options): New class.
6849         (struct selftest::lexer_test): New struct.
6850         (class selftest::ebcdic_execution_charset): New class.
6851         (selftest::ebcdic_execution_charset::s_singleton): New variable.
6852         (selftest::lexer_test::lexer_test): New constructor.
6853         (selftest::lexer_test::~lexer_test): New destructor.
6854         (selftest::lexer_test::get_token): New method.
6855         (selftest::assert_char_at_range): New function.
6856         (ASSERT_CHAR_AT_RANGE): New macro.
6857         (selftest::assert_num_substring_ranges): New function.
6858         (ASSERT_NUM_SUBSTRING_RANGES): New macro.
6859         (selftest::assert_has_no_substring_ranges): New function.
6860         (ASSERT_HAS_NO_SUBSTRING_RANGES): New macro.
6861         (selftest::test_lexer_string_locations_simple): New function.
6862         (selftest::test_lexer_string_locations_ebcdic): New function.
6863         (selftest::test_lexer_string_locations_hex): New function.
6864         (selftest::test_lexer_string_locations_oct): New function.
6865         (selftest::test_lexer_string_locations_letter_escape_1): New function.
6866         (selftest::test_lexer_string_locations_letter_escape_2): New function.
6867         (selftest::test_lexer_string_locations_ucn4): New function.
6868         (selftest::test_lexer_string_locations_ucn8): New function.
6869         (selftest::uint32_from_big_endian): New function.
6870         (selftest::test_lexer_string_locations_wide_string): New function.
6871         (selftest::uint16_from_big_endian): New function.
6872         (selftest::test_lexer_string_locations_string16): New function.
6873         (selftest::test_lexer_string_locations_string32): New function.
6874         (selftest::test_lexer_string_locations_u8): New function.
6875         (selftest::test_lexer_string_locations_utf8_source): New function.
6876         (selftest::test_lexer_string_locations_concatenation_1): New
6877         function.
6878         (selftest::test_lexer_string_locations_concatenation_2): New
6879         function.
6880         (selftest::test_lexer_string_locations_concatenation_3): New
6881         function.
6882         (selftest::test_lexer_string_locations_macro): New function.
6883         (selftest::test_lexer_string_locations_stringified_macro_argument):
6884         New function.
6885         (selftest::test_lexer_string_locations_non_string): New function.
6886         (selftest::test_lexer_string_locations_long_line): New function.
6887         (selftest::test_lexer_char_constants): New function.
6888         (selftest::input_c_tests): Call the new test functions once per
6889         case within the line_table test matrix.
6890         * input.h (struct string_concat): New struct.
6891         (struct location_hash): New struct.
6892         (class string_concat_db): New class.
6893         * substring-locations.h: New header.
6895 2016-08-05  Patrick Palka  <ppalka@gcc.gnu.org>
6897         PR tree-optimization/72810
6898         * tree-vrp.c (simplify_switch_using_ranges): Avoid changing
6899         the type of the case labels when truncating.
6901 2016-08-05  James Greenhalgh  <james.greenhalgh@arm.com>
6903         PR Target/72819
6904         * config/aarch64/aarch64.h (aarch64_fp16_type_node): Declare.
6905         (aarch64_fp16_ptr_type_node): Likewise.
6906         * config/aarch64/aarch64-simd-builtins.c
6907         (aarch64_fp16_ptr_type_node): Define.
6908         (aarch64_init_fp16_types): New, refactored out of...
6909         (aarch64_init_builtins): ...here, update to call
6910         aarch64_init_fp16_types.
6911         * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Handle
6912         HFmode.
6913         (aapcs_vfp_sub_candidate): Likewise.
6915 2016-08-05  Martin Liska  <mliska@suse.cz>
6916             Joshua Cranmer  <Pidgeot18@gmail.com>
6918         * gcov.c (line_t::has_block): New function.
6919         (enum loop_type): New enum.
6920         (handle_cycle): New function.
6921         (unblock): Likewise.
6922         (circuit): Likewise.
6923         (get_cycles_count): Likewise.
6924         (accumulate_line_counts): Use new loop detection algorithm.
6926 2016-08-05  Martin Liska  <mliska@suse.cz>
6928         * gcov.c (output_intermediate_file): Rename
6929         function_info::line_next to next_file_fn.
6930         (process_file): Likewise.
6931         (read_graph_file): Likewise.
6932         (accumulate_line_counts): Likewise.
6933         (output_lines): Likewise.
6935 2016-08-05  Richard Biener  <rguenther@suse.de>
6937         * tree-ssa-threadupdate.c (thread_block_1): Remove unnecessary
6938         restriction on threading to a loop header.
6940 2016-08-05  Richard Biener  <rguenther@suse.de>
6942         * tree-cfgcleanup.c (tree_forwarder_block_p): Use bb_loop_header_p.
6943         * cfghooks.c (force_nonfallthru): If we ended up splitting a latch
6944         adjust loop info accordingly.
6946 2016-08-05  Kugan Vivekanandarajah  <kuganv@linaro.org>
6948         * tree-vrp.c (extract_range_basic): Check cfun->after_inlining
6949         before folding call to __builtin_constant_p with parameters to false.
6951 2016-08-05  Alan Modra  <amodra@gmail.com>
6953         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Delete
6954         code accidentally committed 2016-05-02 providing class when given
6955         NO_REGS.
6957 2016-08-04  Patrick Palka  <ppalka@gcc.gnu.org>
6959         * tree-vrp.c (simplify_switch_using_ranges): Try to truncate
6960         the case label ranges that partially overlap with OP's value
6961         range.
6963 2016-08-04  Uros Bizjak  <ubizjak@gmail.com>
6965         PR target/72805
6966         * config/i386/avx512fintrin.h (_mm512_cmp_epi32_mask) [!__OPTIMIZE__]:
6967         Cast builtin function result to __mmask16 instead of __mmask8.
6968         (_mm512_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
6969         (_mm512_mask_cmp_epi32_mask) [!__OPTIMIZE__]: Ditto.
6970         (_mm512_mask_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
6972 2016-08-04  David Malcolm  <dmalcolm@redhat.com>
6974         * selftest.h (ASSERT_TRUE): Reimplement in terms of...
6975         (ASSERT_TRUE_AT): New macro.
6976         (ASSERT_FALSE): Reimplement in terms of...
6977         (ASSERT_FALSE_AT): New macro.
6978         (ASSERT_STREQ_AT): Fix typo in comment.
6980 2016-08-04  Patrick Palka  <ppalka@gcc.gnu.org>
6982         * gimple.c (preprocess_case_label_vec_for_gimple): When the case
6983         labels are exhaustive, designate the label with the widest
6984         range to be the default label.
6986 2016-08-04  Andrew Pinski  <apinski@cavium.com>
6988         * config/aarch64/aarch64.c (thunderx_vector_cost): New variable.
6989         (thunderx_tunings): Use thunderx_vector_cost instead of
6990         generic_vector_cost.
6992 2016-08-04  Martin Liska  <mliska@suse.cz>
6994         * gcov.c (main): Fix GNU coding style.
6995         (output_intermediate_file): Likewise.
6996         (process_file): Likewise.
6997         (generate_results): Likewise.
6998         (release_structures): Likewise.
6999         (create_file_names): Likewise.
7000         (find_source): Likewise.
7001         (read_graph_file): Likewise.
7002         (find_exception_blocks): Likewise.
7003         (canonicalize_name): Likewise.
7004         (make_gcov_file_name): Likewise.
7005         (mangle_name): Likewise.
7006         (accumulate_line_counts): Likewise.
7007         (output_branch_count): Likewise.
7008         (read_line): Likewise.
7010 2016-08-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7012         PR rtl-optimization/71779
7013         * emit-rtl.c (set_reg_attrs_from_value): Only propagate REG_POINTER,
7014         if the value was sign-extended according to POINTERS_EXTEND_UNSIGNED
7015         or if it was truncated.
7017         PR rtl-optimization/70903
7018         * cse.c (cse_insn): If DEST is a paradoxical SUBREG, don't record DEST.
7020 2016-08-04  Kugan Vivekanandarajah  <kuganv@linaro.org>
7022         * tree-inline.c (remap_ssa_name): Check for POINTER_TYPE_P before
7023         accessing SSA_NAME_PTR_INFO.
7025 2016-08-04  Georg-Johann Lay  <avr@gjlay.de>
7027         PR 70677
7028         * common/config/avr/avr-common.c (avr_option_optimization_table)
7029         [OPT_LEVELS_ALL]: Turn off -fcaller-saves.
7031 2016-08-04  Georg-Johann Lay  <avr@gjlay.de>
7033         PR 55181
7034         * config/avr/avr.md: New pattern to work around do_store_flag
7035         generating shift instructions for bit extractions.
7037 2016-08-04  Kugan Vivekanandarajah  <kuganv@linaro.org>
7039         * tree-vrp.c (set_value_range): Use vrp_equiv_obstack with
7040         BITMAP_ALLOC.
7041         (add_equivalence): Likewise.
7042         (get_value_range): Allocate value range with vrp_value_range_pool.
7043         (vrp_initialize): Initialize vrp_equiv_obstack for equiv allocation.
7044         (vrp_finalize): Relase vrp_equiv_obstack and vrp_value_range_pool.
7046 2016-08-03  Peter Bergner  <bergner@vnet.ibm.com>
7048         * config/rs6000/rs6000.c (rs6000_option_override_internal): Make LRA
7049         the default for the rs6000 port.
7051 2016-08-03  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7053         PR middle-end/71876
7054         * calls.c (special_function_p): Remove special handling of
7055         "setjmp_syscall", "qsetjmp", "longjmp", "siglongjmp" and the
7056         prefix "__x".  Recognize "savectx", "vfork" and "getcontext" only
7057         without prefix.  Remove potentially unsafe ECF_LEAF and ECF_NORETURN.
7059 2016-08-03  Vladimir Makarov  <vmakarov@redhat.com>
7061         PR middle-end/72778
7062         * lra-spills.c (regno_in_use_p): Check bb and regno modification.
7063         Don't stop on regular insns.
7065 2016-08-03  Nathan Sidwell  <nathan@codesourcery.com>
7067         * config/nvptx/nvptx.c (nvptx_declare_function_name): Round frame
7068         size to DImode boundary.
7069         (nvptx_propagate): Likewise.
7071 2016-08-03  Alan Modra  <amodra@gmail.com>
7073         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Make scalar
7074         float access depend on TARGET_EFFICIENT_UNALIGNED_VSX.
7075         * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Renamed
7076         from -mefficient-unaligned-vector.  Note that this affects fp too.
7078 2016-08-03  Alan Modra  <amodra@gmail.com>
7080         * config/rs6000/rs6000.c (rs6000_rtx_costs): Make unaligned mem
7081         cost more.
7083 2016-08-03  Alan Modra  <amodra@gmail.com>
7085         * config/rs6000/rs6000.md (fix_trunc<mode>si2): Force source operand
7086         to a reg.  Localize vars.
7088 2016-08-03  Alan Modra  <amodra@gmail.com>
7090         * config/rs6000/rs6000.opt: Remove negatives from help strings
7091         and comments.
7093 2016-08-03  Alan Modra  <amodra@gmail.com>
7095         * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
7096         Delete duplicated code.
7098 2016-08-02  Vladimir Makarov  <vmakarov@redhat.com>
7100         PR middle-end/72778
7101         * lra-spills.c (regno_in_use_p): New.
7102         (lra_final_code_change): Use it.
7104 2016-08-02  Vladimir Makarov  <vmakarov@redhat.com>
7106         PR rtl-optimization/69847
7107         * lra-int.h (struct lra-reg): Use restore_rtx instead of
7108         restore_regno.
7109         (lra_rtx_hash): New.
7110         * lra.c (initialize_lra_reg_info_element): Use restore_rtx instead
7111         of restore_regno.
7112         (lra_rtx_hash): Rename and move lra-remat.c::rtx_hash.
7113         * lra-remat.c (rtx_hash): Rename and Move to lra.c.
7114         * lra-spills.c (lra_final_code_change): Don't delete insn when the
7115         next insn is USE with the same reg as the current insn source.
7116         * lra-constraints.c (curr_insn_transform): Use restore_rtx instead
7117         of restore_regno.
7118         (lra_constraints_init): Call initiate_invariants.
7119         (lra_constraints_finish): Call finish_invariants.
7120         (struct invariant, invariant_t, invariant_ptr_t): New.
7121         (const_invariant_ptr_t, invariants, invariants_pool): New.
7122         (invariant_table, invariant_hash, invariant_eq_p): New.
7123         (insert_invariant, initiate_invariants, finish_invariants): New.
7124         (clear_invariants, invalid_invariant_regs): New.
7125         (inherit_reload_reg, split_reg, fix_bb_live_info): Use restore_rtx
7126         instead of restore_regno.
7127         (invariant_p, process_invariant_for_inheritance): New.
7128         (inherit_in_ebb): Implement invariant inheritance.
7129         (lra_inheritance): Initialize and finalize invalid_invariant_regs.
7130         (remove_inheritance_pseudos): Implement undoing invariant
7131         inheritance.
7132         (undo_optional_reloads, lra_undo_inheritance): Use restore_rtx
7133         instead of restore_regno.
7134         * lra-assigns.c (regno_live_length): New.
7135         (reload_pseudo_compare_func): Use regno_live_length.
7136         (assign_by_spills): Use restore_rtx instead of restore_regno.
7137         (lra_assign): Ditto.  Initiate regno_live_length.
7139 2016-02-08  James Greenhalgh  <james.greenhalgh@arm.com>
7141         * config/aarch64/arm_neon.h (vminnm_f64): Add back missing 'f' from
7142         __builtin_aarch64_fmindf.
7144 2016-08-02  Bin Cheng  <bin.cheng@arm.com>
7146         PR tree-optimization/34114
7147         * tree-ssa-loop-niter.c (number_of_iterations_ne): Prove no-overflow
7148         information for more control IVs.
7150 2016-08-02  Bin Cheng  <bin.cheng@arm.com>
7152         PR tree-optimization/34114
7153         * fold-const.c (multiple_of_p): Improve MULT_EXPR, PLUS_EXPR,
7154         PLUS_EXPR case.  Handle SSA_NAME case.
7156 2016-08-02  Tamar Christina  <tamar.christina@arm.com>
7158         * config/aarch64/aarch64-simd-builtins.def
7159         (__builtin_aarch64_fmindf): Change BUILTIN_VDQF to BUILTIN_VDQF_DF.
7160         (__builtin_aarch64_fmaxdf): Likewise.
7161         (__builtin_aarch64_smin_nandf): Likewise.
7162         (__builtin_aarch64_smax_nandf): Likewise.
7163         * config/aarch64/aarch64-simd.md (<fmaxmin><mode>3): Remove.
7164         * config/aarch64/aarch64.md (<fmaxmin><mode>3): Rename to...
7165         (<fmaxmin><mode>3): ...this.
7166         * config/aarch64/arm_neon.h (vmaxnm_f64): New.
7167         (vminnm_f64): Likewise.
7168         (vmin_f64): Likewise.
7169         (vmax_f64): Likewise.
7170         * config/aarch64/iterators.md (FMAXMIN): Merge with...
7171         (FMAXMIN_UNS): ...this.
7172         (fmaxmin): Merged with
7173         (fmaxmin_op): ...this...
7174         (maxmin_uns_op): ...in to this.
7176 2016-08-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
7178         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
7179         Add support for vec_extract on vector float, vector int, vector
7180         short, and vector char vector types.
7181         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
7182         vector float, vector int, vector short, and vector char
7183         optimizations on 64-bit ISA 2.07 systems for both constant and
7184         variable element numbers.
7185         (rs6000_split_vec_extract_var): Likewise.
7186         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): Allow SFmode to be
7187         Altivec registers on ISA 2.07 and above.
7188         (vsx_extract_v4sf): Delete alternative that hard coded element 0,
7189         which never was matched due to the split occuring before register
7190         allocation (and the code would not have worked on little endian
7191         systems if it did match).  Allow extracts to go to the Altivec
7192         registers if ISA 2.07 (power8).  Change from using "" around the
7193         C++ code to using {}'s.
7194         (vsx_extract_v4sf_<mode>_load): New insn to optimize vector float
7195         vec_extracts when the vector is in memory.
7196         (vsx_extract_v4sf_var): New insn to optimize vector float
7197         vec_extracts when the element number is variable on 64-bit ISA
7198         2.07 systems.
7199         (vsx_extract_<mode>, VSX_EXTRACT_I iterator): Add optimizations
7200         for 64-bit ISA 2.07 as well as ISA 3.0.
7201         (vsx_extract_<mode>_p9, VSX_EXTRACT_I iterator): Likewise.
7202         (vsx_extract_<mode>_p8, VSX_EXTRACT_I iterator): Likewise.
7203         (vsx_extract_<mode>_load, VSX_EXTRACT_I iterator): New insn to
7204         optimize vector int, vector short, and vector char vec_extracts
7205         when the vector is in memory.
7206         (vsx_extract_<mode>_var, VSX_EXTRACT_I iterator): New insn to
7207         optimize vector int, vector short, and vector char vec_extracts
7208         when the element number is variable.
7210 2016-08-01  Georg-Johann Lay  <avr@gjlay.de>
7212         PR target/71948
7213         * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): Use a value that
7214         does not overlap with other symbol flags.
7216 2016-08-01  Wilco Dijkstra  <wdijkstr@arm.com>
7218         * config/aarch64/aarch64.h (aarch64_frame):
7219         Remove padding0 and hardfp_offset.  Add locals_offset,
7220         initial_adjust, callee_adjust, callee_offset and final_adjust.
7221         * config/aarch64/aarch64.c (aarch64_layout_frame):
7222         Remove unused padding0 and hardfp_offset initializations.
7223         Choose frame layout and set frame variables accordingly.
7224         Use INVALID_REGNUM instead of FIRST_PSEUDO_REGISTER.
7225         (aarch64_push_regs): Use INVALID_REGNUM, not FIRST_PSEUDO_REGISTER.
7226         (aarch64_pop_regs): Likewise.
7227         (aarch64_expand_prologue): Remove all decision code, just emit
7228         prolog according to frame variables.
7229         (aarch64_expand_epilogue): Remove all decision code, just emit
7230         epilog according to frame variables.
7231         (aarch64_initial_elimination_offset): Use offset to local/arg area.
7233 2015-08-01  H.J. Lu  <hongjiu.lu@intel.com>
7235         PR target/72748
7236         * config/i386/i386.c (timode_scalar_chain::convert_insn): Call
7237         fix_debug_reg_uses after changing source register mode to
7238         V1TImode if source register is undefined.
7240 2015-08-01  Alan Hayward  <alan.hayward@arm.com>
7242         PR tree-optimization/71818
7243         * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Don't advance IVs
7244         with non invariant evolutions
7246 2016-08-01  Georg-Johann Lay  <avr@gjlay.de>
7248         PR target/72767
7249         * config/avr/avr.md (length) [branch]: Correct insn length
7250         attribute for forward branches.
7252 2016-08-01  Georg-Johann Lay  <avr@gjlay.de>
7254         * doc/extend.texi (AVR Built-in Functions): Document
7255         __builtin_avr_nops.
7256         * config/avr/builtins.def (NOPS): New.
7257         * config/avr/avr.c (avr_expand_nops): New static function.
7258         (avr_expand_builtin): Use it to handle AVR_BUILTIN_NOPS.
7260 2016-08-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7262         * config/aarch64/aarch64.c (aarch64_classify_address): Use DImode when
7263         performing aarch64_offset_7bit_signed_scaled_p check for TImode LDP/STP
7264         addresses.
7266 2016-08-01  Virendra Pathak  <virendra.pathak@broadcom.com>
7268         * config/aarch64/aarch64.c (vulcan_tunings): Update
7269         vulcan L1 cache_line_size.
7271 2016-07-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
7273         * config/rs6000/rs6000-protos.h (rs6000_adjust_vec_address): New
7274         function that takes a vector memory address, a hard register, an
7275         element number and a temporary base register, and recreates an
7276         address that points to the appropriate element within the vector.
7277         * config/rs6000/rs6000.c (rs6000_adjust_vec_address): Likewise.
7278         (rs6000_split_vec_extract_var): Add support for the target of a
7279         vec_extract with variable element number being a scalar memory
7280         location.
7281         (rtx_is_swappable_p): VLSO insns (UNSPEC_VSX_VSLOW) are not
7282         swappable.
7283         * config/rs6000/vsx.md (vsx_extract_<mode>_load): Replace
7284         vsx_extract_<mode>_load insn with a new insn that optimizes
7285         storing either element to a memory location, using scratch
7286         registers to pick apart the vector and reconstruct the address.
7287         (vsx_extract_<P:mode>_<VSX_D:mode>_load): Likewise.
7288         (vsx_extract_<mode>_store): Rework alternatives to more correctly
7289         support Altivec registers.  Add support for ISA 3.0 Altivec d-form
7290         store instruction.
7291         (vsx_extract_<mode>_var): Add support for extracting a variable
7292         element number from memory.
7294 2016-07-29  Georg-Johann Lay  <avr@gjlay.de>
7296         * config/avr/avr.c (avr_out_compare): Use const0_rtx instead of 0
7297         when testing for compares against constants of the form 0xabab.
7299 2016-07-29  Bin Cheng  <bin.cheng@arm.com>
7301         PR tree-optimization/57558
7302         * tree-vect-loop-manip.c (vect_create_cond_for_niters_checks): New
7303         function.
7304         (vect_loop_versioning): Support versioning with niter assumptions.
7305         * tree-vect-loop.c (tree-ssa-loop.h): Include header file.
7306         (vect_get_loop_niters): New parameter.  Reimplement to support
7307         assumptions in loop niter info.
7308         (vect_analyze_loop_form_1, vect_analyze_loop_form): Ditto.
7309         (new_loop_vec_info): Init LOOP_VINFO_NITERS_ASSUMPTIONS.
7310         (vect_estimate_min_profitable_iters): Use LOOP_REQUIRES_VERSIONING.
7311         Support loop versioning for niters.
7312         * tree-vectorizer.c (tree-ssa-loop-niter.h): Include header file.
7313         (vect_free_loop_info_assumptions): New function.
7314         (vectorize_loops): Free loop niter info for loops with flag
7315         LOOP_F_ASSUMPTIONS set if vectorization failed.
7316         * tree-vectorizer.h (struct _loop_vec_info): New field
7317         num_iters_assumptions.
7318         (LOOP_VINFO_NITERS_ASSUMPTIONS): New macro.
7319         (LOOP_REQUIRES_VERSIONING_FOR_NITERS): New macro.
7320         (LOOP_REQUIRES_VERSIONING): New macro.
7321         (vect_free_loop_info_assumptions): New decl.
7323 2016-07-29  Bin Cheng  <bin.cheng@arm.com>
7325         * cfgloop.h (struct loop): New field constraints.
7326         (LOOP_C_INFINITE, LOOP_C_FINITE): New macros.
7327         (loop_constraint_set, loop_constraint_clr, loop_constraint_set_p): New
7328         functions.
7329         * cfgloop.c (alloc_loop): Initialize new field.
7330         * cfgloopmanip.c (copy_loop_info): Copy constraints.
7331         * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
7332         Adjust niter analysis wrto loop constraints.
7333         * doc/loop.texi (@node Number of iterations): Add description for loop
7334         constraints.
7336 2016-07-29  Marek Polacek  <polacek@redhat.com>
7338         PR c/7652
7339         * config/i386/i386.c (ix86_expand_args_builtin): Add break.
7340         (ix86_expand_round_builtin): Likewise.
7342 2016-07-29  Segher Boessenkool  <segher@kernel.crashing.org>
7343             Georg-Johann Lay  <avr@gjlay.de>
7345         PR rtl-optimization/71976
7346         * combine.c (get_last_value): Return 0 if the argument for which
7347         the function is called has a wider mode than the recorded value.
7349 2016-07-29  Marek Polacek  <polacek@redhat.com>
7351         PR c/7652
7352         * config/rs6000/rs6000.c (altivec_expand_ld_builtin): Add break.
7353         (altivec_expand_st_builtin): Likewise.
7355 2016-07-29  Georg-Johann Lay  <avr@gjlay.de>
7357         * config/avr/avr.md (addqi3) [cc]: Revert glitch in insn attribute
7358         introduced in r238381.
7360 2016-07-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
7362         PR middle-end/68217
7363         * tree-vrp.c (extract_range_from_binary_expr_1): In case of signed
7364         & sign-bit-CST, generate [-INF, 0] instead of [-INF, INF].
7366 2016-07-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
7368         * config/rs6000/rs6000-protos.h (rs6000_split_vec_extract_var):
7369         New declaration.
7370         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
7371         Add support for vec_extract of vector double or vector long having
7372         a variable element number on 64-bit ISA 2.07 systems or newer.
7373         * config/rs6000/rs6000.c (rs6000_expand_vector_extract):
7374         Likewise.
7375         (rs6000_split_vec_extract_var): New function to split a
7376         vec_extract built-in function with variable element number.
7377         (rtx_is_swappable_p): Variable vec_extracts and shifts are not
7378         swappable.
7379         * config/rs6000/vsx.md (UNSPEC_VSX_VSLO): New unspec.
7380         (UNSPEC_VSX_EXTRACT): Likewise.
7381         (vsx_extract_<mode>, VSX_D iterator): Fix constraints to allow
7382         direct move instructions to be generated on 64-bit ISA 2.07
7383         systems and newer, and to take advantage of the ISA 3.0 MFVSRLD
7384         instruction.
7385         (vsx_vslo_<mode>): New insn to do VSLO on V2DFmode and V2DImode
7386         arguments for vec_extract variable element.
7387         (vsx_extract_<mode>_var, VSX_D iterator): New insn to support
7388         vec_extract with variable element on V2DFmode and V2DImode
7389         vectors.
7390         * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): Remove
7391         -mupper-regs-df requirement, since it isn't needed.
7392         (TARGET_DIRECT_MOVE_64BIT): New macro to say whether we can
7393         do direct moves on 64-bit systems, which allows optimization of
7394         vec_extract on 64-bit ISA 2.07 systems and newer.
7396 2016-07-28  Kristina Martsenko  <kristina.martsenko@arm.com>
7397 2016-07-28  Wilco Dijkstra  <wdijkstr@arm.com>
7399          * config/aarch64/aarch64.md
7400         (zero_extend<SHORT:mode><GPI:mode>2_aarch64): Change output
7401         statement and type.
7402         (<optab>qihi2_aarch64): Likewise, and split into two.
7403         (extendqihi2_aarch64): New.
7404         (zero_extendqihi2_aarch64): New.
7405         * config/aarch64/iterators.md (ldrxt): Remove.
7406         * config/aarch64/aarch64.c (aarch64_rtx_costs): Change cost of
7407         uxtb/uxth.
7409 2016-07-28  Kristina Martsenko  <kristina.martsenko@arm.com>
7411         * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix cost of zero extend.
7413 2016-07-28  Wilco Dijkstra  <wdijkstr@arm.com>
7415         * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg): Rename.
7416         (aarch64_push_reg): New function to push 1 or 2 registers.
7417         (aarch64_pop_reg): New function to pop 1 or 2 registers.
7418         (aarch64_expand_prologue): Use aarch64_push_regs.
7419         (aarch64_expand_epilogue): Use aarch64_pop_regs.
7421 2016-07-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
7423         PR tree-optimization/71734
7424         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Pass value of safelen
7425         attribute instead of REF_LOOP and use it.
7426         (ref_indep_loop_p_2): Use SAFELEN argument instead of REF_LOOP and
7427         set it for Loops having non-zero safelen attribute.
7428         (ref_indep_loop_p): Pass zero as initial value for safelen.
7430 2016-07-28  Ilya Enkovich  <ilya.enkovich@intel.com>
7432         PR middle-end/72657
7433         PR target/72683
7434         * tree-chkp.c (chkp_retbnd_call_by_val): Check for instrumentation
7435         call using chkp_gimple_call_builtin_p.
7436         (chkp_copy_bounds_for_assign): Likewise.
7438 2016-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7440         * config/alpha/alpha.c (alpha_adjust_cost): Adjust.
7441         * config/arm/arm-protos.h (struct tune_params): Likewise.
7442         * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
7443         (cortex_a9_sched_adjust_cost): Likewise.
7444         (fa726te_sched_adjust_cost): Likewise.
7445         (arm_adjust_cost): Likewise.
7446         * config/bfin/bfin.c (bfin_adjust_cost): Likewise.
7447         * config/c6x/c6x.c (c6x_adjust_cost): Likewise.
7448         * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise.
7449         * config/i386/i386.c (ix86_adjust_cost): Likewise.
7450         * config/ia64/ia64.c: Likewise.
7451         * config/m68k/m68k.c: Likewise.
7452         * config/mep/mep.c (mep_adjust_cost): Likewise.
7453         * config/microblaze/microblaze.c (microblaze_adjust_cost):
7454         * Likewise.
7455         * config/mips/mips.c (mips_adjust_cost): Likewise.
7456         * config/mn10300/mn10300.c (mn10300_adjust_sched_cost):
7457         * Likewise.
7458         * config/pa/pa.c (pa_adjust_cost): Likewise.
7459         * config/rs6000/rs6000.c (rs6000_adjust_cost): Likewise.
7460         (rs6000_debug_adjust_cost): Likewise.
7461         * config/sh/sh.c (sh_adjust_cost): Likewise.
7462         * config/sparc/sparc.c (supersparc_adjust_cost): Likewise.
7463         (hypersparc_adjust_cost): Likewise.
7464         (sparc_adjust_cost): Likewise.
7465         * config/spu/spu.c (spu_sched_adjust_cost): Likewise.
7466         * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Likewise.
7467         * config/tilepro/tilepro.c (tilepro_sched_adjust_cost):
7468         * Likewise.
7469         * config/visium/visium.c (visium_adjust_cost): Likewise.
7470         * doc/tm.texi: Regenerate.
7471         * haifa-sched.c (dep_cost_1): Adjust.
7472         * target.def: Merge adjust_cost and adjust_cost_2.
7474 2016-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7476         * haifa-sched.c (add_to_speculative_block): Make twins a vector.
7478 2016-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7480         * store-motion.c (struct st_expr): Make pattern_regs a vector.
7481         (extract_mentioned_regs): Append to a vector instead of
7482         returning a rtx_expr_list.
7483         (st_expr_entry): Adjust.
7484         (free_st_expr_entry): Likewise.
7485         (store_ops_ok): Likewise.
7486         (store_killed_in_insn): Likewise.
7487         (find_moveable_store): Likewise.
7489 2016-07-28  Martin Liska  <mliska@suse.cz>
7491         PR gcov-profile/68025
7492         * tree-profile.c (tree_profiling): Respect
7493         no_profile_instrument_function attribute.
7494         * doc/extend.texi: Document no_profile_instrument_function
7495         attribute.
7497 2016-07-28  Martin Liska  <mliska@suse.cz>
7499         PR rtl-optimization/70944
7500         * combine.c (make_compound_operation):
7501         Do not allow make_compound_operation for vector mode
7503 2016-07-28  Kugan Vivekanandarajah  <kuganv@linaro.org>
7505         PR middle-end/71994
7506         * tree-ssa-reassoc.c (maybe_optimize_range_tests): Check tcc_comparison
7507          before calling get_ops.
7509 2016-07-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7511         * defaults.h (LOG2_BITS_PER_UNIT): Move from here...
7512         * tree.h (LOG2_BITS_PER_UNIT): ...to here.
7513         (BITS_PER_UNIT_LOG): Remove.
7514         (int_bit_position): Use LOG2_BITS_PER_UNIT instead of BITS_PER_UNIT_LOG.
7515         * expr.c (expand_assignment): Likewise.
7516         * stor-layout.c (initialize_sizetypes): Likewise.
7518 2016-07-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
7520         * config/rs6000/vector.md (vec_extract<mode>): Change the calling
7521         signature of rs6000_expand_vector_extract so that the element
7522         number is a RTX instead of a constant integer.
7523         * config/rs6000/rs6000-protos.h (rs6000_expand_vector_extract):
7524         Likewise.
7525         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Likewise.
7526         (altivec_expand_vec_ext_builtin): Likewise.
7527         * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Likewise.
7528         * config/rs6000/vsx.md (vsx_extract_<mode>): Fix spelling of the
7529         MFVSRLD instruction.
7531 2016-07-27  David Malcolm  <dmalcolm@redhat.com>
7533         * input.c (get_pure_location): Move here from tree.c.
7534         (make_location): Likewise.  Add header comment.
7535         (selftest::test_accessing_ordinary_linemaps): Verify
7536         pure_location_p, make_location, get_location_from_adhoc_loc and
7537         get_range_from_loc.
7538         * input.h (get_pure_location): Move declaration here from tree.h.
7539         (get_finish): Likewise for inline function.
7540         (make_location): Likewise for declaration.
7541         * tree.c (get_pure_location): Move to input.c.
7542         (make_location): Likewise.
7543         * tree.h (get_pure_location): Move declaration to tree.h.
7544         (get_finish): Likewise for inline function.
7545         (make_location): Likewise for declaration.
7547 2016-07-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
7549         PR middle-end/71078
7550         * match.pd (x / abs(x) -> copysign(1.0, x)): New pattern.
7552 2016-07-27  David Malcolm  <dmalcolm@redhat.com>
7554         * system.h (STATIC_ASSERT): Use static_assert if building
7555         with C++11 onwards.
7557 2016-07-27  Richard Biener  <rguenther@suse.de>
7559         PR tree-optimization/72517
7560         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
7561         Revert change to not compute read-read dependences.
7563 2016-07-27  Richard Biener  <rguenther@suse.de>
7565         * predict.c (set_even_probabilities): Make nedges unsigned.
7567 2016-07-27  Martin Liska  <mliska@suse.cz>
7569         * predict.c (set_even_probabilities): Handle unlikely edges.
7570         (combine_predictions_for_bb): Likewise.
7572 2016-07-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
7574         PR target/71869
7575         * config/rs6000/rs6000.c (rs6000_generate_compare): Rework
7576         __float128 support when we don't have hardware support, so that
7577         the IEEE built-in functions like isgreater, first call __unordkf3
7578         to make sure neither operand is a NaN, and if both operands are
7579         ordered, do the normal comparison.
7581 2016-07-26  Patrick Palka  <ppalka@gcc.gnu.org>
7583         * tree-vrp.c (dump_asserts_for): Print loc->expr instead of
7584         name.
7585         (extract_code_and_val_from_cond_with_ops): Verify that name is
7586         either cond_op0 or cond_op1.
7588 2016-07-26  Patrick Palka  <ppalka@gcc.gnu.org>
7590         PR tree-optimization/18046
7591         * genmodes.c (emit_mode_size_inline): Emit an assert that
7592         verifies that mode is a valid array index.
7593         (emit_mode_nuinits_inline): Likewise.
7594         (emit_mode_inner_inline): Likewise.
7595         (emit_mode_unit_size_inline): Likewise.
7596         (emit_mode_unit_precision_inline): Likewise.
7597         * tree-vrp.c: Include params.h.
7598         (find_switch_asserts): Register edge assertions for the default
7599         label which correspond to the anti-ranges of each case label.
7600         * params.def (PARAM_MAX_VRP_SWITCH_ASSERTIONS): New.
7601         * doc/invoke.texi: Document it.
7603 2016-07-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7605         * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove dead
7606         and unnecessary call to gimple_bb.
7608 2016-07-26  Richard Biener  <rguenther@suse.de>
7610         PR rtl-optimization/71984
7611         * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE and prepare
7612         for VOIDmode.
7614 2016-07-26  Richard Biener  <rguenther@suse.de>
7616         PR middle-end/72517
7617         * expmed.c (extract_bit_field_1): Constrain the vector mode
7618         with element size matching the extraction mode size when
7619         choosing a better vector mode to do the extraction from.
7621 2016-07-26  Richard Biener  <rguenther@suse.de>
7622             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
7624         PR middle-end/70920
7625         * match.pd ((intptr)x eq/ne CST to x eq/ne (typeof x) CST): New
7626         pattern.
7628 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7630         * tree-ssa-structalias.c (struct scc_info): Change types of
7631         members to auto_sbitmap and auto_vec.
7632         (scc_info::scc_info): New constructor.
7633         (scc_info::~scc_info): New destructor.
7634         (init_scc_info): Remove.
7635         (free_scc_info): Remove.
7636         (find_indirect_cycles): Adjust.
7637         (perform_var_substitution): Likewise.
7638         (free_var_substitution_info): Likewise.
7640 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7642         * tree-outof-ssa.c (struct elim_graph): Change type of members
7643         to auto_vec and auto_sbitmap.
7644         (elim_graph::elim_graph): New constructor.
7645         (delete_elim_graph): Remove.
7646         (expand_phi_nodes): Adjust.
7648 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7650         * tree-outof-ssa.c (struct elim_graph): Remove typedef.
7651         (new_elim_graph): Adjust.
7652         (clear_elim_graph): Likewise.
7653         (delete_elim_graph): Likewise.
7654         (elim_graph_size): Likewise.
7655         (elim_graph_add_node): Likewise.
7656         (elim_graph_add_edge): Likewise.
7657         (elim_graph_remove_succ_edge): Likewise.
7658         (eliminate_name): Likewise.
7659         (eliminate_build): Likewise.
7660         (elim_forward): Likewise.
7661         (elim_unvisited_predecessor): Likewise.
7662         (elim_backward): Likewise.
7663         (elim_create): Likewise.
7664         (eliminate_phi): Likewise.
7665         (expand_phi_nodes): Likewise.
7667 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7669         * bt-load.c (compute_out): Use auto_sbitmap class.
7670         (link_btr_uses): Likewise.
7671         * cfganal.c (mark_dfs_back_edges): Likewise.
7672         (post_order_compute): Likewise.
7673         (inverted_post_order_compute): Likewise.
7674         (pre_and_rev_post_order_compute_fn): Likewise.
7675         (single_pred_before_succ_order): Likewise.
7676         * cfgexpand.c (pass_expand::execute): Likewise.
7677         * cfgloop.c (verify_loop_structure): Likewise.
7678         * cfgloopmanip.c (fix_bb_placements): Likewise.
7679         (remove_path): Likewise.
7680         (update_dominators_in_loop): Likewise.
7681         * cfgrtl.c (break_superblocks): Likewise.
7682         * ddg.c (check_sccs): Likewise.
7683         (create_ddg_all_sccs): Likewise.
7684         * df-core.c (df_worklist_dataflow): Likewise.
7685         * dse.c (dse_step3): Likewise.
7686         * except.c (eh_region_outermost): Likewise.
7687         * function.c (thread_prologue_and_epilogue_insns): Likewise.
7688         * gcse.c (prune_expressions): Likewise.
7689         (prune_insertions_deletions): Likewise.
7690         * gimple-ssa-backprop.c (backprop::~backprop): Likewise.
7691         * graph.c (draw_cfg_nodes_no_loops): Likewise.
7692         * ira-lives.c (remove_some_program_points_and_update_live_ranges): Likewise.
7693         * lcm.c (compute_earliest): Likewise.
7694         (compute_farthest): Likewise.
7695         * loop-unroll.c (unroll_loop_constant_iterations): Likewise.
7696         (unroll_loop_runtime_iterations): Likewise.
7697         (unroll_loop_stupid): Likewise.
7698         * lower-subreg.c (decompose_multiword_subregs): Likewise.
7699         * lra-lives.c: Likewise.
7700         * lra.c (lra): Likewise.
7701         * modulo-sched.c (schedule_reg_moves): Likewise.
7702         (optimize_sc): Likewise.
7703         (get_sched_window): Likewise.
7704         (sms_schedule_by_order): Likewise.
7705         (check_nodes_order): Likewise.
7706         (order_nodes_of_sccs): Likewise.
7707         (order_nodes_in_scc): Likewise.
7708         * recog.c (split_all_insns): Likewise.
7709         * regcprop.c (pass_cprop_hardreg::execute): Likewise.
7710         * reload1.c (reload): Likewise.
7711         * sched-rgn.c (haifa_find_rgns): Likewise.
7712         (split_edges): Likewise.
7713         (compute_trg_info): Likewise.
7714         * sel-sched.c (init_seqno): Likewise.
7715         * store-motion.c (remove_reachable_equiv_notes): Likewise.
7716         * tree-into-ssa.c (update_ssa): Likewise.
7717         * tree-ssa-live.c (live_worklist): Likewise.
7718         * tree-ssa-loop-im.c (fill_always_executed_in): Likewise.
7719         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
7720         * Likewise.
7721         (try_peel_loop): Likewise.
7722         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
7723         * Likewise.
7724         * tree-ssa-pre.c (compute_antic): Likewise.
7725         * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
7726         * tree-stdarg.c (reachable_at_most_once): Likewise.
7727         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Likewise.
7728         * var-tracking.c (vt_find_locations): Likewise.
7730 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7732         * sbitmap.h (auto_sbitmap): New class.
7734 2016-07-26  Alan Modra  <amodra@gmail.com>
7736         PR target/72103
7737         * config/rs6000/rs6000.c (rs6000_secondary_reload): Initialize
7738         sri->t_icode.
7740 2016-07-25  David Malcolm  <dmalcolm@redhat.com>
7742         * input.c (selftest::temp_source_file::temp_source_file): Fix
7743         missing "%s" in fprintf.
7745 2016-07-25  John David Anglin  <danglin@gcc.gnu.org>
7747         PR middle-end/71732
7748         * cselib.c (cselib_process_insn): Invalidate argument slots for
7749         const/pure calls.
7751 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
7753         * config/aarch64/arm_neon.h (vfmah_lane_f16, vfmah_laneq_f16,
7754         vfmsh_lane_f16, vfmsh_laneq_f16, vmulh_lane_f16, vmulh_laneq_f16,
7755         vmulxh_lane_f16, vmulxh_laneq_f16): New.
7757 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
7759         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
7760         * config/aarch64/aarch64.md (fma, fnma): Support HF.
7761         * config/aarch64/arm_fp16.h (vfmah_f16, vfmsh_f16): New.
7763 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
7765         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
7766         * config/aarch64/aarch64.md (<FCVT_F2FIXED:fcvt_fixed_insn>hf<mode>3):
7767         New.
7768         (<FCVT_FIXED2F:fcvt_fixed_insn><mode>hf3): Likewise.
7769         (add<mode>3): Likewise.
7770         (sub<mode>3): Likewise.
7771         (mul<mode>3): Likewise.
7772         (div<mode>3): Likewise.
7773         (*div<mode>3): Likewise.
7774         (<fmaxmin><mode>3): Extend to HF.
7775         * config/aarch64/aarch64-simd.md (aarch64_rsqrts<mode>): Likewise.
7776         (fabd<mode>3): Likewise.
7777         (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_HSDF:mode>3): Likewise.
7778         (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_HSDI:mode>3): Likewise.
7779         (aarch64_fmulx<mode>): Likewise.
7780         (aarch64_fac<optab><mode>): Likewise.
7781         (aarch64_frecps<mode>): Likewise.
7782         (<FCVT_F2FIXED:fcvt_fixed_insn>hfhi3): New.
7783         (<FCVT_FIXED2F:fcvt_fixed_insn>hihf3): Likewise.
7784         * config/aarch64/iterators.md (VHSDF_SDF): Delete.
7785         (VSDQ_HSDI): Support HI.
7786         (fcvt_target, FCVT_TARGET): Likewise.
7787         * config/aarch64/arm_fp16.h (vaddh_f16, vsubh_f16, vabdh_f16,
7788         vcageh_f16, vcagth_f16, vcaleh_f16, vcalth_f16, vceqh_f16, vcgeh_f16,
7789         vcgth_f16, vcleh_f16, vclth_f16, vcvth_n_f16_s16, vcvth_n_f16_s32,
7790         vcvth_n_f16_s64, vcvth_n_f16_u16, vcvth_n_f16_u32, vcvth_n_f16_u64,
7791         vcvth_n_s16_f16, vcvth_n_s32_f16, vcvth_n_s64_f16, vcvth_n_u16_f16,
7792         vcvth_n_u32_f16, vcvth_n_u64_f16, vdivh_f16, vmaxh_f16, vmaxnmh_f16,
7793         vminh_f16, vminnmh_f16, vmulh_f16, vmulxh_f16, vrecpsh_f16,
7794         vrsqrtsh_f16): New.
7796 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
7798         * config.gcc (aarch64*-*-*): Install arm_fp16.h.
7799         * config/aarch64/aarch64-builtins.c (hi_UP): New.
7800         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
7801         * config/aarch64/aarch64-simd.md (aarch64_frsqrte<mode>): Extend to HF
7802         mode.
7803         (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
7804         (aarch64_cm<optab><mode>): Likewise.
7805         * config/aarch64/aarch64.md (<frint_pattern><mode>2): Likewise.
7806         (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Likewise.
7807         (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
7808         (sqrt<mode>2): Likewise.
7809         (*sqrt<mode>2): Likewise.
7810         (abs<mode>2): Likewise.
7811         (<optab><mode>hf2): New pattern for HF mode.
7812         (<optab>hihf2): Likewise.
7813         * config/aarch64/arm_neon.h: Include arm_fp16.h.
7814         * config/aarch64/iterators.md (GPF_F16, GPI_F16, VHSDF_HSDF): New.
7815         (w1, w2, v, s, q, Vmtype, V_cmp_result, fcvt_iesize, FCVT_IESIZE):
7816         Support HF mode.
7817         * config/aarch64/arm_fp16.h: New file.
7818         (vabsh_f16, vceqzh_f16, vcgezh_f16, vcgtzh_f16, vclezh_f16, vcltzh_f16,
7819         vcvth_f16_s16, vcvth_f16_s32, vcvth_f16_s64, vcvth_f16_u16,
7820         vcvth_f16_u32, vcvth_f16_u64, vcvth_s16_f16, vcvth_s32_f16,
7821         vcvth_s64_f16, vcvth_u16_f16, vcvth_u32_f16, vcvth_u64_f16,
7822         vcvtah_s16_f16, vcvtah_s32_f16, vcvtah_s64_f16, vcvtah_u16_f16,
7823         vcvtah_u32_f16, vcvtah_u64_f16, vcvtmh_s16_f16, vcvtmh_s32_f16,
7824         vcvtmh_s64_f16, vcvtmh_u16_f16, vcvtmh_u32_f16, vcvtmh_u64_f16,
7825         vcvtnh_s16_f16, vcvtnh_s32_f16, vcvtnh_s64_f16, vcvtnh_u16_f16,
7826         vcvtnh_u32_f16, vcvtnh_u64_f16, vcvtph_s16_f16, vcvtph_s32_f16,
7827         vcvtph_s64_f16, vcvtph_u16_f16, vcvtph_u32_f16, vcvtph_u64_f16,
7828         vnegh_f16, vrecpeh_f16, vrecpxh_f16, vrndh_f16, vrndah_f16, vrndih_f16,
7829         vrndmh_f16, vrndnh_f16, vrndph_f16, vrndxh_f16, vrsqrteh_f16,
7830         vsqrth_f16): New.
7832 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
7834         * config/aarch64/aarch64-simd-builtins.def (reduc_smax_scal_,
7835         reduc_smin_scal_): Use VDQIF_F16.
7836         (reduc_smax_nan_scal_, reduc_smin_nan_scal_): Use VHSDF.
7837         * config/aarch64/aarch64-simd.md (reduc_<maxmin_uns>_scal_<mode>):
7838         Use VHSDF.
7839         (aarch64_reduc_<maxmin_uns>_internal<mode>): Likewise.
7840         * config/aarch64/iterators.md (VDQIF_F16): New.
7841         (vp): Support HF modes.
7842         * config/aarch64/arm_neon.h (vmaxv_f16, vmaxvq_f16, vminv_f16,
7843         vminvq_f16, vmaxnmv_f16, vmaxnmvq_f16, vminnmv_f16, vminnmvq_f16): New.
7845 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
7847         * config/aarch64/aarch64-simd.md (*aarch64_mulx_elt_to_64v2df): Rename to
7848         "*aarch64_mulx_elt_from_dup<mode>".
7849         (*aarch64_mul3_elt<mode>): Update schedule type.
7850         (*aarch64_mul3_elt_from_dup<mode>): Likewise.
7851         (*aarch64_fma4_elt_from_dup<mode>): Likewise.
7852         (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
7853         * config/aarch64/iterators.md (VMUL): Supprt half precision float modes.
7854         (f, fp): Support HF modes.
7855         * config/aarch64/arm_neon.h (vfma_lane_f16, vfmaq_lane_f16,
7856         vfma_laneq_f16, vfmaq_laneq_f16, vfma_n_f16, vfmaq_n_f16, vfms_lane_f16,
7857         vfmsq_lane_f16, vfms_laneq_f16, vfmsq_laneq_f16, vfms_n_f16,
7858         vfmsq_n_f16, vmul_lane_f16, vmulq_lane_f16, vmul_laneq_f16,
7859         vmulq_laneq_f16, vmul_n_f16, vmulq_n_f16, vmulx_lane_f16,
7860         vmulxq_lane_f16, vmulx_laneq_f16, vmulxq_laneq_f16): New.
7862 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
7864         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
7865         * config/aarch64/aarch64-simd.md (fma<mode>4, fnma<mode>4): Extend to HF
7866         modes.
7867         * config/aarch64/arm_neon.h (vfma_f16, vfmaq_f16, vfms_f16,
7868         vfmsq_f16): New.
7870 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
7872         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
7873         * config/aarch64/aarch64-simd.md
7874         (aarch64_rsqrts<mode>): Extend to HF modes.
7875         (fabd<mode>3): Likewise.
7876         (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_SDF:mode>3): Likewise.
7877         (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_SDI:mode>3): Likewise.
7878         (aarch64_<maxmin_uns>p<mode>): Likewise.
7879         (<su><maxmin><mode>3): Likewise.
7880         (<maxmin_uns><mode>3): Likewise.
7881         (<fmaxmin><mode>3): Likewise.
7882         (aarch64_faddp<mode>): Likewise.
7883         (aarch64_fmulx<mode>): Likewise.
7884         (aarch64_frecps<mode>): Likewise.
7885         (*aarch64_fac<optab><mode>): Rename to aarch64_fac<optab><mode>.
7886         (add<mode>3): Extend to HF modes.
7887         (sub<mode>3): Likewise.
7888         (mul<mode>3): Likewise.
7889         (div<mode>3): Likewise.
7890         (*div<mode>3): Likewise.
7891         * config/aarch64/aarch64.c (aarch64_emit_approx_div): Return false for
7892         HF, V4HF and V8HF.
7893         * config/aarch64/iterators.md (VDQ_HSDI, VSDQ_HSDI): New mode iterator.
7894         * config/aarch64/arm_neon.h (vadd_f16, vaddq_f16, vabd_f16, vabdq_f16,
7895         vcage_f16, vcageq_f16, vcagt_f16, vcagtq_f16, vcale_f16, vcaleq_f16,
7896         vcalt_f16, vcaltq_f16, vceq_f16, vceqq_f16, vcge_f16, vcgeq_f16,
7897         vcgt_f16, vcgtq_f16, vcle_f16, vcleq_f16, vclt_f16, vcltq_f16,
7898         vcvt_n_f16_s16, vcvtq_n_f16_s16, vcvt_n_f16_u16, vcvtq_n_f16_u16,
7899         vcvt_n_s16_f16, vcvtq_n_s16_f16, vcvt_n_u16_f16, vcvtq_n_u16_f16,
7900         vdiv_f16, vdivq_f16, vdup_lane_f16, vdup_laneq_f16, vdupq_lane_f16,
7901         vdupq_laneq_f16, vdups_lane_f16, vdups_laneq_f16, vmax_f16, vmaxq_f16,
7902         vmaxnm_f16, vmaxnmq_f16, vmin_f16, vminq_f16, vminnm_f16, vminnmq_f16,
7903         vmul_f16, vmulq_f16, vmulx_f16, vmulxq_f16, vpadd_f16, vpaddq_f16,
7904         vpmax_f16, vpmaxq_f16, vpmaxnm_f16, vpmaxnmq_f16, vpmin_f16, vpminq_f16,
7905         vpminnm_f16, vpminnmq_f16, vrecps_f16, vrecpsq_f16, vrsqrts_f16,
7906         vrsqrtsq_f16, vsub_f16, vsubq_f16): New.
7908 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
7910         * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New.
7911         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
7912         * config/aarch64/aarch64-simd.md (aarch64_rsqrte<mode>): Extend to HF modes.
7913         (neg<mode>2): Likewise.
7914         (abs<mode>2): Likewise.
7915         (<frint_pattern><mode>2): Likewise.
7916         (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
7917         (<optab><VDQF:mode><fcvt_target>2): Likewise.
7918         (<fix_trunc_optab><VDQF:mode><fcvt_target>2): Likewise.
7919         (ftrunc<VDQF:mode>2): Likewise.
7920         (<optab><fcvt_target><VDQF:mode>2): Likewise.
7921         (sqrt<mode>2): Likewise.
7922         (*sqrt<mode>2): Likewise.
7923         (aarch64_frecpe<mode>): Likewise.
7924         (aarch64_cm<optab><mode>): Likewise.
7925         * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Return false for
7926         HF, V4HF and V8HF.
7927         * config/aarch64/iterators.md (VHSDF, VHSDF_DF, VHSDF_SDF): New.
7928         (VDQF_COND, fcvt_target, FCVT_TARGET, hcon): Extend mode attribute to HF modes.
7929         (stype): New.
7930         * config/aarch64/arm_neon.h (vdup_n_f16): New.
7931         (vdupq_n_f16): Likewise.
7932         (vld1_dup_f16): Use vdup_n_f16.
7933         (vld1q_dup_f16): Use vdupq_n_f16.
7934         (vabs_f16, vabsq_f16, vceqz_f16, vceqzq_f16, vcgez_f16, vcgezq_f16,
7935         vcgtz_f16, vcgtzq_f16, vclez_f16, vclezq_f16, vcltz_f16, vcltzq_f16,
7936         vcvt_f16_s16, vcvtq_f16_s16, vcvt_f16_u16, vcvtq_f16_u16, vcvt_s16_f16,
7937         vcvtq_s16_f16, vcvt_u16_f16, vcvtq_u16_f16, vcvta_s16_f16,
7938         vcvtaq_s16_f16, vcvta_u16_f16, vcvtaq_u16_f16, vcvtm_s16_f16,
7939         vcvtmq_s16_f16, vcvtm_u16_f16, vcvtmq_u16_f16, vcvtn_s16_f16,
7940         vcvtnq_s16_f16, vcvtn_u16_f16, vcvtnq_u16_f16, vcvtp_s16_f16,
7941         vcvtpq_s16_f16, vcvtp_u16_f16, vcvtpq_u16_f16, vneg_f16, vnegq_f16,
7942         vrecpe_f16, vrecpeq_f16, vrnd_f16, vrndq_f16, vrnda_f16, vrndaq_f16,
7943         vrndi_f16, vrndiq_f16, vrndm_f16, vrndmq_f16, vrndn_f16, vrndnq_f16,
7944         vrndp_f16, vrndpq_f16, vrndx_f16, vrndxq_f16, vrsqrte_f16, vrsqrteq_f16,
7945         vsqrt_f16, vsqrtq_f16): New.
7947 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
7949         * config/aarch64/aarch64-simd.md
7950         (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Use VALL_F16.
7951         (aarch64_ext<mode>): Likewise.
7952         (aarch64_rev<REVERSE:rev_op><mode>): Likewise.
7953         * config/aarch64/aarch64.c (aarch64_evpc_trn, aarch64_evpc_uzp,
7954         aarch64_evpc_zip, aarch64_evpc_ext, aarch64_evpc_rev): Support V4HFmode
7955         and V8HFmode.
7956         * config/aarch64/arm_neon.h (__INTERLEAVE_LIST): Support float16x4_t,
7957         float16x8_t.
7958         (__aarch64_vdup_lane_f16, __aarch64_vdup_laneq_f16,
7959         __aarch64_vdupq_lane_f16, __aarch64_vdupq_laneq_f16, vbsl_f16,
7960         vbslq_f16, vdup_n_f16, vdupq_n_f16, vdup_lane_f16, vdup_laneq_f16,
7961         vdupq_lane_f16, vdupq_laneq_f16, vduph_lane_f16, vduph_laneq_f16,
7962         vext_f16, vextq_f16, vmov_n_f16, vmovq_n_f16, vrev64_f16, vrev64q_f16,
7963         vtrn1_f16, vtrn1q_f16, vtrn2_f16, vtrn2q_f16, vtrn_f16, vtrnq_f16,
7964         vuzp1_f16, vuzp1q_f16, vuzp2_f16, vuzp2q_f16, vzip1_f16, vzip2q_f16):
7965         New.
7966         (vmov_n_f16): Reimplement using vdup_n_f16.
7967         (vmovq_n_f16): Reimplement using vdupq_n_f16..
7969 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
7971         * config/aarch64/aarch64.c (aarch64_add_constant): New parameter
7972         "frame_related_p".  Generate CFA annotation when it's necessary.
7973         (aarch64_expand_prologue): Use aarch64_add_constant.
7974         (aarch64_expand_epilogue): Likewise.
7975         (aarch64_output_mi_thunk): Pass "false" when calling
7976         aarch64_add_constant.
7978 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
7980         * config/aarch64/aarch64.c (aarch64_add_constant): Optimize instruction
7981         sequences.
7983 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
7985         * config/aarch64/aarch64.c (aarch64_add_constant): New parameter "mode".
7986         Use aarch64_internal_mov_immediate instead of aarch64_build_constant.
7987         (aarch64_output_mi_thunk): Pass Pmode when calling aarch64_add_constant.
7988         (aarch64_build_constant): Delete.
7990 2016-07-25  Alexander Monakov  <amonakov@ispras.ru>
7992         Revert
7993         2016-07-20  Alexander Monakov  <amonakov@ispras.ru>
7995         * config/nvptx/nvptx.c (nvptx_option_override): Do not set
7996         flag_toplevel_reorder.
7998 2016-07-25  Richard Biener  <rguenther@suse.de>
8000         * cgraph.c (cgraph_node::verify_node): Compare against builtin
8001         by using DECL_BUILT_IN_CLASS and DECL_FUNCTION_CODE.
8002         * tree-chkp.c (chkp_gimple_call_builtin_p): Likewise.
8003         * tree-streamer.h (streamer_handle_as_builtin_p): Remove.
8004         (streamer_get_builtin_tree): Likewise.
8005         (streamer_write_builtin): Likewise.
8006         * lto-streamer.h (LTO_builtin_decl): Remove.
8007         * lto-streamer-in.c (lto_read_tree_1): Remove assert.
8008         (lto_input_scc): Remove LTO_builtin_decl handling.
8009         (lto_input_tree_1): Liekwise.
8010         * lto-streamer-out.c (lto_output_tree_1): Remove special
8011         handling of builtins.
8012         (DFS::DFS): Likewise.
8013         * tree-streamer-in.c (streamer_get_builtin_tree): Remove.
8014         * tree-streamer-out.c (pack_ts_function_decl_value_fields): Remove
8015         assert.
8016         (streamer_write_builtin): Remove.
8018 2016-07-25  Martin Liska  <mliska@suse.cz>
8020         * lto-cgraph.c (input_symtab): Don't call get_working_sets
8021         if flag_auto_profile is set to true.
8023 2016-07-25  Martin Liska  <mliska@suse.cz>
8025         PR gcov-profile/71868
8026         * cfgloopanal.c (expected_loop_iterations_unbounded): When we
8027         have a function with multiple latches, count them all.
8029 2016-07-25  Martin Liska  <mliska@suse.cz>
8031         * tree-ssa-loop-niter.c (loop_only_exit_p): Release body array.
8033 2016-07-25  Martin Liska  <mliska@suse.cz>
8035         PR tree-optimization/71987
8036         * tree-ssa-reassoc.c (maybe_optimize_range_tests): Call get_ops
8037         just for SSA_NAMEs. Fix GNU coding style.
8039 2016-07-25  Martin Liska  <mliska@suse.cz>
8041         PR gcov-profile/64874
8042         * gcov-io.h: Update command about file format.
8043         * gcov-iov.c (main): Adapt the numbering scheme.
8045 2016-07-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
8047         PR middle-end/66726
8048         * tree-ssa-reassoc.c (optimize_vec_cond_expr): Handle tcc_compare stmt
8049         whose result is used in PHI.
8050         (final_range_test_p): Likewise.
8051         (maybe_optimize_range_tests): Likewise.
8053 2016-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
8055         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
8056         Reformat two multi-line strings.
8058 2016-07-22  Martin Sebor  <msebor@redhat.com>
8060         * doc/extend.texi (Compound Literals): Add '@' missed in last commit.
8062 2016-07-22  Martin Sebor  <msebor@redhat.com>
8064         PR c/71560
8065         * doc/extend.texi (Compound Literals): Correct and clarify.
8066         (Cast to Union): Same.
8068 2016-07-22  Kelvin Nilsen  <kelvin@gcc.gnu.org>
8070         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
8071         comments to explain why certain error messages make mention of
8072         undocumented options.
8073         (rs6000_invalid_builtin): Change error messages to replace mention
8074         of undocumented options with mention of the -mcpu=power9 option
8075         that enables those undocumented options.
8076         * config/rs6000/rs6000.h (MASK_FLOAT128): New macro.
8077         (RS6000_BTM_FLOAT128): Use the new MASK_FLOAT128 macro in the
8078         definition of this macro to correct an existing error.
8079         * config/rs6000/rs6000.opt: Add the Undocumented qualifier to the
8080         mpower9-fusion, mpower9-vector, mpower9-dform, and mmodulo entries.
8081         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Modify
8082         descriptions of built-in functions so that they depend on
8083         -mcpu=power9 instead of on the corresponding undocumented flags.
8084         * doc/invoke.texi (Option Summary):  Remove all mention of newly
8085         undocumented flags.
8086         (IBM RS/6000 and PowerPC Options): Likewise.
8087         * doc/md.texi (Constraints for Particuliar Machines): Remove all
8088         mention of newly undocumented flags.
8090 2016-07-22  Evgeny Stupachenko  <evstupac@gmail.com>
8092         * ipa-cp.c (determine_versionability): Do not create constprop clones,
8093         when target_clones attribute is set.
8095 2016-07-22  Bin Cheng  <bin.cheng@arm.com>
8097         * common.opt (funsafe-loop-optimizations): Mark ignore.
8098         * doc/invoke.texi (funsafe-loop-optimizations): Remove.
8099         * loop-iv.c (get_simple_loop_desc): Remove unsafe-loop-optimizations
8100         related code.
8101         * tree-ssa-loop-niter.c (finite_loop_p): Ditto.
8102         * config/bfin/bfin.c (bfin_can_use_doloop_p): Ditto.
8104 2016-07-22  Bin Cheng  <bin.cheng@arm.com>
8106         * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
8107         Parameter.
8108         * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
8109         Parameter.
8110         (number_of_iterations_exit): Warn missed loop optimization for
8111         possible infinite loops.
8113 2016-07-22  Segher Boessenkool  <segher@kernel.crashing.org>
8115         PR target/71216
8116         * config/rs6000/rs6000.c (rs6000_file_start): Fix condition for
8117         when to emit a ".machine" pseudo-op.
8119 2016-07-22  Martin Liska  <mliska@suse.cz>
8121         PR gcov-profile/69028
8122         PR gcov-profile/62047
8123         * coverage.c (coverage_compute_lineno_checksum): Do not
8124         calculate checksum for fns w/o xloc.file.
8125         (coverage_compute_profile_id): Likewise.
8127 2016-07-22  Georg-Johann Lay  <avr@gjlay.de>
8129         * config/avr/avr.c (TARGET_SECONDARY_RELOAD): Remove hook define...
8130         (avr_secondary_reload): ...and implementation.
8131         (avr_adjust_insn_length) [ADJUST_LEN_LPM]: Remove handling.
8132         * config/avr/avr.md (reload_in<mode>): Remove insns.
8133         (adjust_len) [lpm]: Remove insn attribute value.
8134         * config/avr/predicates.md (flash_operand): Remove insn predicate.
8136 2016-07-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
8138         PR middle-end/71876
8139         * builtin-attrs.def (ATTR_RT_NOTHROW_LEAF_LIST): New return twice
8140         attribute.
8141         * builtins.def (BUILT_IN_SETJMP): Use ATTR_RT_NOTHROW_LEAF_LIST here.
8142         * calls.c (special_function_p): Remove the special handling of the
8143         "__builtin_" prefix.
8145 2016-07-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
8147         PR middle-end/71876
8148         * calls.c (gimple_maybe_alloca_call_p): New function.  Return true
8149         if STMT may be an alloca call.
8150         (gimple_alloca_call_p, alloca_call_p): Return only true for the
8151         builtin alloca call.
8152         * calls.h (gimple_maybe_alloca_call_p): New function.
8153         * tree-inline.c (inline_forbidden_p_stmt): Use
8154         gimple_maybe_alloca_call_p here.
8156 2016-07-21  David Malcolm  <dmalcolm@redhat.com>
8158         * spellcheck-tree.c (best_macro_match::best_macro_match):
8159         Explictly specify the template arguments when invoking the base
8160         class constructor, to help older C++ compilers.
8162 2016-07-21  Jakub Jelinek  <jakub@redhat.com>
8164         PR sanitizer/71953
8165         * asan.c (asan_dynamic_init_call): Call asan_init_shadow_ptr_types
8166         before builtin_decl_implicit.
8168 2016-07-21  James Greenhalgh  <james.greenhalgh@arm.com>
8170         * optabs.c (emit_condiitonal_move): Short circuit for identical
8171         sources.
8173 2016-07-21  James Greenhalgh  <james.greenhalgh@arm.com>
8175         * ifcvt.c (noce_if_info): New fields: speed_p, original_cost,
8176         max_seq_cost.  Removed fields: then_cost, else_cost, branch_cost.
8177         (noce_conversion_profitable_p): New.
8178         (noce_try_store_flag_constants): Use it.
8179         (noce_try_addcc): Likewise.
8180         (noce_try_store_flag_mask): Likewise.
8181         (noce_try_cmove): Likewise.
8182         (noce_try_cmove_arith): Likewise.
8183         (bb_valid_for_noce_process_p): Add to the cost parameter rather than
8184         overwriting it.
8185         (noce_convert_multiple_sets): Move cost model to here, from...
8186         (bb_ok_for_noce_convert_multiple_sets) ...here.
8187         (noce_process_if_block): Update calls for above changes.
8188         (noce_find_if_block): Record new noce_if_info parameters.
8190 2016-07-21  James Greenhalgh  <james.greenhalgh@arm.com>
8192         * target.def (max_noce_ifcvt_seq_cost): New.
8193         * doc/tm.texi.in (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Document it.
8194         * doc/tm.texi: Regenerate.
8195         * targhooks.h (default_max_noce_ifcvt_seq_cost): New.
8196         * targhooks.c (default_max_noce_ifcvt_seq_cost): New.
8197         * params.def (PARAM_MAX_RTL_IF_CONVERSION_PREDICTABLE_COST): New.
8198         (PARAM_MAX_RTL_IF_CONVERSION_UNPREDICTABLE_COST): Likewise.
8199         * doc/invoke.texi: Document new params.
8201 2016-07-21  Richard Biener  <rguenther@suse.de>
8203         PR tree-optimization/71947
8204         * tree-vrp.c (extract_range_from_assert): Singleton symbolic
8205         ranges have useful limit_vr information.
8207 2016-07-21  Richard Biener  <rguenther@suse.de>
8209         * function-tests.c (build_trivial_generic_function): Set
8210         BLOCK_SUPERCONTEXT of DECL_INITIAL.
8211         * omp-low.c (create_omp_child_function): Likewise.
8212         (grid_expand_target_grid_body): Likewise.
8213         * cgraphunit.c (init_lowered_empty_function): Likewise.
8214         (cgraph_node::expand_thunk): Likewise.
8215         * tree-parloops.c (create_loop_fn): Likewise.
8216         * ipa.c (cgraph_build_static_cdtor_1): Likewise.
8218 2016-07-21  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
8220         * tree-ssa-strlen.c (strlen_dom_walker::before_dom_children): Fix typo
8221         in comment.
8223 2016-07-21  Georg-Johann Lay  <avr@gjlay.de>
8225         * config/avr/avr.md (any_extract, any_shiftrt): New code iterators.
8226         (*insv.extract, *insv.shiftrt, *insv.not-bit.0, *insv.not-bit.7)
8227         (*insv.xor-extract, *insv.xor1-bit.0): New insns.
8228         (adjust_len) [insv_notbit, insv_notbit_0, insv_notbit_7]: New
8229         values for insn attribute.
8230         * config/avr/avr.c (avr_out_insert_notbit): New function.
8231         (avr_adjust_insn_length): Handle ADJUST_LEN_INSV_NOTBIT,
8232         ADJUST_LEN_INSV_NOTBIT_0/_7.
8233         * config/avr/avr-protos.h (avr_out_insert_notbit): New proto.
8235 2016-07-21  Bin Cheng  <bin.cheng@arm.com>
8237         * tree-chrec.c (convert_affine_scev): New parameter.  Pass new arg.
8238         (chrec_convert_1, chrec_convert): Ditto.
8239         * tree-chrec.h (chrec_convert, convert_affine_scev): New parameter.
8240         * tree-scalar-evolution.c (interpret_rhs_expr): Pass new arg.
8241         * tree-vrp.c (adjust_range_with_scev): Ditto.
8242         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Ditto.
8243         (scev_var_range_cant_overflow): New function.
8244         (scev_probably_wraps_p): New parameter.  Call above function.
8245         * tree-ssa-loop-niter.h (scev_probably_wraps_p): New parameter.
8247 2016-07-21  Bin Cheng  <bin.cheng@arm.com>
8249         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Clean up
8250         by removing computation of may_be_zero.
8252 2016-07-21  Jakub Jelinek  <jakub@redhat.com>
8254         * tree-object-size.c (unknown): Use HOST_WIDE_INT_M1U instead of -1.
8256 2016-07-21  Andrew Sutton  <andrew.n.sutton@gmail.com>
8258         Improving concepts performance and diagnostics.
8259         * timevar.def (TV_CONSTRAINT_SAT, TV_CONSTRAINT_SUB): New time vars
8260         for constraint satisfaction and subsumption.
8261         * timevar.h (auto_timevar): New constructor that matches the push/pop
8262         pattern of usage in pt.c.
8264 2016-07-20  Uros Bizjak  <ubizjak@gmail.com>
8266         * hwint.h (HOST_WIDE_INT_0): New define.
8267         (HOST_WIDE_INT_0U): Ditto.
8268         * double-int.c: Use HOST_WIDE_INT_0 instead of (HOST_WIDE_INT) 0.
8269         * dse.c: Use HOST_WIDE_INT_0U instead of (unsigned HOST_WIDE_INT) 0.
8270         * simplify-rtx.c: Ditto.
8271         * tree-object-size.c: Ditto.
8273 2016-07-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8275         * config/s390/s390.c (s390_encode_section_info): Remove mode size
8276         check.
8278 2016-07-20  Uros Bizjak  <ubizjak@gmail.com>
8280         * cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0.
8281         * combine.c: Use HOST_WIDE_INT_M1U instead of
8282         ~(unsigned HOST_WIDE_INT) 0.
8283         * double-int.h: Ditto.
8284         * dse.c: Ditto.
8285         * dwarf2asm.c:Ditto.
8286         * expmed.c: Ditto.
8287         * genmodes.c: Ditto.
8288         * match.pd: Ditto.
8289         * read-rtl.c: Ditto.
8290         * tree-ssa-loop-ivopts.c: Ditto.
8291         * tree-ssa-loop-prefetch.c: Ditto.
8292         * tree-vect-generic.c: Ditto.
8293         * tree-vect-patterns.c: Ditto.
8294         * tree.c: Ditto.
8296 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
8298         * gcc/config/avr.c (avr_legitimize_address) [AVR_TINY]: Force
8299         constant addresses outside [0,0xc0] into a register.
8300         (avr_out_movhi_r_mr_reg_no_disp_tiny): Pass insn.  And handle
8301         cases where the base address register is unused after.
8302         (avr_out_movhi_r_mr_reg_disp_tiny): Same.
8303         (avr_out_movhi_mr_r_reg_disp_tiny): Same.
8304         (avr_out_store_psi_reg_disp_tiny): Same.
8306 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
8308         Implement attribute progmem on reduced Tiny cores by adding
8309         flash offset 0x4000 to respective symbols.
8311         PR target/71948
8312         * doc/extend.texi (AVR Variable Attributes) [progmem]: Add
8313         documentation how it works on reduced Tiny cores.
8314         (AVR Named Address Spaces): No support for reduced Tiny.
8315         * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): New macro.
8316         (avr_address_tiny_pm_p): New static function.
8317         (avr_print_operand_address) [AVR_TINY]: Add AVR_TINY_PM_OFFSET
8318         if the address is in progmem.
8319         (avr_assemble_integer): Same.
8320         (avr_encode_section_info) [AVR_TINY]: Set AVR_SYMBOL_FLAG_TINY_PM
8321         for symbol_ref in progmem.
8322         * config/avr/avr.h (AVR_TINY_PM_OFFSET): New macro.
8323         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it instead of
8324         magic 0x4000 when built-in def'ing __AVR_TINY_PM_BASE_ADDRESS__.
8326 2016-07-20  Patrick Palka  <ppalka@gcc.gnu.org>
8328         * configure.ac (thin_archive_support): New variable.  AC_SUBST it.
8329         * configure: Regenerate.
8330         * Makefile.in (THIN_ARCHIVE_SUPPORT): New variable.
8331         (USE_THIN_ARCHIVES): New variable.
8332         (libbackend.a): If USE_THIN_ARCHIVES then pass T to ar to build
8333         this archive as a thin archive.
8335 2016-07-20  David Malcolm  <dmalcolm@redhat.com>
8337         * diagnostic-show-locus.c (diagnostic_show_locus): If this is the
8338         same location as last time, don't skip if we have fix-it hints.
8339         Clarify the skipping logic by converting it from one "if" clause
8340         to repeated "if" clauses.
8341         * spellcheck-tree.c: Include "cpplib.h".
8342         (find_closest_macro_cpp_cb): Move here from c/c-decl.c.
8343         (best_macro_match::best_macro_match): New constructor.
8344         * spellcheck-tree.h (struct edit_distance_traits<cpp_hashnode *>):
8345         Move here from c/c-decl.c.
8346         (class best_macro_match): Move here from c/c-decl.c, converting
8347         from a typedef to a subclass, gaining a ctor.
8349 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
8351         * config/avr/avr-protos.h (avr_addr_space_supported_p): New prototype.
8352         * config/avr/avr.c (TARGET_ADDR_SPACE_DIAGNOSE_USAGE): New hook
8353         define...
8354         (avr_addr_space_diagnose_usage): ...and implementation.
8355         (avr_addr_space_supported_p): New function.
8356         (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Only
8357         report bad address space usage if that space is supported.
8358         (avr_insert_attributes): Same.  No more complain about unsupported
8359         address spaces.
8360         * config/avr/avr-c.c (tm_p.h): Include it.
8361         (avr_cpu_cpp_builtins): Only define addr-space related built-in
8362         macro if avr_addr_space_supported_p.
8364 2016-07-20  Alexander Monakov  <amonakov@ispras.ru>
8366         * config/nvptx/nvptx.c (nvptx_option_override): Do not set
8367         flag_toplevel_reorder.
8369 2016-07-20  David Malcolm  <dmalcolm@redhat.com>
8371         * gcc-rich-location.c
8372         (gcc_rich_location::add_fixit_misspelled_id): New overload, taking
8373         a const char *.
8374         * gcc-rich-location.h
8375         (gcc_rich_location::add_fixit_misspelled_id): Likewise.
8377 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
8379         * target.def (addr_space): Add new diagnose_usage to hook vector.
8380         * targhooks.c (default_addr_space_diagnose_usage): Add default
8381         implementation and...
8382         * targhooks.h (default_addr_space_diagnose_usage): ... its prototype.
8383         * c/c-parser.c (c_lex_one_token) [CPP_NAME]: If the token
8384         is some address space, call targetm.addr_space.diagnose_usage.
8385         * doc/tm.texi.in (Named Address Spaces): Add anchor for
8386         TARGET_ADDR_SPACE_DIAGNOSE_USAGE documentation.
8387         * doc/tm.texi: Regenerate.
8389 2016-07-20  Martin Liska  <mliska@suse.cz>
8391         PR middle-end/71898
8392         * graphite-isl-ast-to-gimple.c (later_of_the_two):
8393         Properly handly PHI stmts.
8395 2016-07-20  Bin Cheng  <bin.cheng@arm.com>
8397         PR tree-optimization/71503
8398         PR tree-optimization/71683
8399         * tree-if-conv.c (gen_phi_arg_condition): Record true predicate
8400         and break.
8402 2016-07-20  Martin Liska  <mliska@suse.cz>
8404         * doc/invoke.texi (-fipa-ra): Document when the option is
8405         disabled. Fix a typo.
8407 2016-07-20  Martin Liska  <mliska@suse.cz>
8409         * Makefile.in: Include fibonacci_heap.c
8410         * fibonacci_heap.c: New file.
8411         * fibonacci_heap.h (fibonacci_heap::insert): Use insert_node.
8412         (fibonacci_heap::union_with): Fix deletion of the second heap.
8413         * selftest-run-tests.c (selftest::run_tests): Incorporate
8414         fibonacci heap tests.
8415         * selftest.h: Declare fibonacci_heap_c_tests.
8417 2016-07-20  Martin Liska  <mliska@suse.cz>
8419         * selftest-run-tests.c (selftest::run_tests): New function.
8420         * selftest.h (sreal_c_tests): Declare.
8421         * sreal.c (sreal_verify_basics): New function.
8422         (verify_aritmetics): Likewise.
8423         (sreal_verify_arithmetics): Likewise.
8424         (verify_shifting): Likewise.
8425         (sreal_verify_shifting): Likewise.
8426         (void sreal_c_tests): Likewise.
8428 2016-07-19  Jakub Jelinek  <jakub@redhat.com>
8430         PR rtl-optimization/71916
8431         * cfgrtl.c (contains_no_active_insn_p): Return false also for
8432         bb which have a single succ fake edge.
8434 2016-07-19  Aldy Hernandez  <aldyh@redhat.com>
8436         PR debug/71855
8437         * dwarf2out.c (gen_subprogram_die): Only call
8438         gen_unspecified_parameters_die while dumping early dwarf.
8440 2016-07-19  Jakub Jelinek  <jakub@redhat.com>
8442         PR middle-end/71874
8443         * gimple-fold.c (fold_builtin_memory_op): Use
8444         get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
8446 2016-07-19  Uros Bizjak  <ubizjak@gmail.com>
8448         * builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1,
8449         HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1,
8450         HOST_WIDE_INT_M1 instead of (HOST_WIDE_INT) -1 and
8451         HOST_WIDE_INT_M1U instead of (unsigned HOST_WIDE_INT) -1.
8452         * combine.c: Ditto.
8453         * cse.c: Ditto.
8454         * dojump.c: Ditto.
8455         * double-int.c: Ditto.
8456         * dse.c: Ditto.
8457         * dwarf2out.c: Ditto.
8458         * expmed.c: Ditto.
8459         * expr.c: Ditto.
8460         * fold-const.c: Ditto.
8461         * function.c: Ditto.
8462         * fwprop.c: Ditto.
8463         * genmodes.c: Ditto.
8464         * hwint.c: Ditto.
8465         * hwint.h: Ditto.
8466         * ifcvt.c: Ditto.
8467         * loop-doloop.c: Ditto.
8468         * loop-invariant.c: Ditto.
8469         * loop-iv.c: Ditto.
8470         * match.pd: Ditto.
8471         * optabs.c: Ditto.
8472         * real.c: Ditto.
8473         * reload.c: Ditto.
8474         * rtlanal.c: Ditto.
8475         * simplify-rtx.c: Ditto.
8476         * stor-layout.c: Ditto.
8477         * toplev.c: Ditto.
8478         * tree-ssa-loop-ivopts.c: Ditto.
8479         * tree-vect-generic.c: Ditto.
8480         * tree-vect-patterns.c: Ditto.
8481         * tree.c: Ditto.
8482         * tree.h: Ditto.
8483         * ubsan.c: Ditto.
8484         * varasm.c: Ditto.
8485         * wide-int-print.cc: Ditto.
8486         * wide-int.cc: Ditto.
8487         * wide-int.h: Ditto.
8489 2016-07-19  David Malcolm  <dmalcolm@redhat.com>
8491         * selftest.c (selftest::assert_streq): Handle NULL values of
8492         val_actual and val_expected.
8494 2016-07-19  Martin Jambor  <mjambor@suse.cz>
8496         PR fortran/71688
8497         * trans-decl.c (gfc_generate_function_code): Use cgraph_get_create_node
8498         rather than cgraph_create_node to get a call graph node.
8500 2016-07-19  Richard Biener  <rguenther@suse.de>
8502         * gimple-fold.c (get_base_constructor): Add VIEW_CONVERT case,
8503         handle all tcc_constant bases and valueize SSA names.
8504         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Handle
8505         tcc_constant bases.
8507 2016-07-19  David Malcolm  <dmalcolm@redhat.com>
8509         * function-tests.c (selftest::verify_three_block_rtl_cfg): Verify
8510         the flags of the exit block and bb2, not just the entry block.
8512 2016-07-19  Richard Biener  <rguenther@suse.de>
8514         PR tree-optimization/71901
8515         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
8516         align member, group stuff with the bitfield.
8517         (vn_ref_op_align_unit): New inline.
8518         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): For ARRAY_REFs
8519         record element alignment and operand 3 unchanged.
8520         (ao_ref_init_from_vn_reference): Adjust.
8521         (valueize_refs_1): Likewise.
8522         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
8524 2016-07-19  Richard Biener  <rguenther@suse.de>
8526         PR tree-optimization/71908
8527         * tree-ssa-structalias.c (get_constraint_for_component_ref): Handle
8528         symbolic constants in a more reliable way.
8530 2016-07-19  Ilya Enkovich  <ilya.enkovich@intel.com>
8532         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Update
8533         comment.
8534         (vect_update_inits_of_drs): Likewise.
8535         (vect_create_cond_for_alias_checks): Likewise.
8536         * tree-vect-loop.c (vect_get_known_peeling_cost): Likewise.
8538 2016-07-19  Richard Biener  <rguenther@suse.de>
8540         PR lto/71907
8541         * lto-streamer-out.c (DFS::DFS_write_tree_body): For blocks
8542         with an abstract origin that is not an inlined function outer
8543         scope add a self-reference as abstract origin.
8544         * tree-streamer-out.c (write_ts_block_tree_pointers): Likewise.
8546 2016-07-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
8548         PR target/71493
8549         * config/rs6000/rs6000.c (rs6000_function_value): Fix
8550         unintentional System V.4 structure return breakage for structures
8551         with a single floating point element.
8553 2016-07-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
8555         PR tree-optimization/71734
8556         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Add REF_LOOP argument which
8557         contains REF, use it to check safelen, assume that safelen value
8558         must be greater 1, fix style.
8559         (ref_indep_loop_p_2): Add REF_LOOP argument.
8560         (ref_indep_loop_p): Pass LOOP as additional argument to
8561         ref_indep_loop_p_2.
8563 2016-07-18  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8565         * cfgexpand.c (expand_stack_vars): Implement synamic stack space
8566         allocation in the prologue.
8567         * explow.c (get_dynamic_stack_base): New function to return an address
8568         expression for the dynamic stack base.
8569         (get_dynamic_stack_size): New function to do the required dynamic stack
8570         space size calculations.
8571         (allocate_dynamic_stack_space): Use new functions.
8572         (align_dynamic_address): Move some code from
8573         allocate_dynamic_stack_space to new function.
8574         * explow.h (get_dynamic_stack_base, get_dynamic_stack_size): Export.
8576 2016-07-18  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8578         * config/s390/s390.c (s390_encode_section_info): Always set
8579         notaligned marker if mode size is 0 or no MEM_ALIGN info could be
8580         found.
8582 2016-07-18  Richard Biener  <rguenther@suse.de>
8584         PR tree-optimization/71893
8585         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Compensate
8586         for sizetype cast added by array_ref_element_size.
8587         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
8589 2016-07-16  John David Anglin  <danglin@gcc.gnu.org>
8591         * config/pa/pa.c (hppa_profile_hook): Allocate stack space for
8592         register parameters.  Remove code to initialize argument pointer
8593         on TARGET_64BIT.  Optimize call to _mcount when it can be reached
8594         using a pc-relative branch.  Cleanup conditional code.
8595         * config/pa/pa.md (call_mcount): New expander.
8596         (call_mcount_nonpic): New insn.
8597         (call_mcount_pic): New insn and split.
8598         (call_mcount_pic_post_reload): New insn.
8599         (call_mcount_64bit): New insn and split.
8600         (call_mcount_64bit_post_reload): New insn.
8602 2016-07-15  Georg-Johann Lay  <avr@gjlay.de>
8604         * config/avr/predicates.md (const_m255_to_m1_operand): New.
8605         * config/avr/constraints.md (Cn8, Ca1, Co1, Yx2): New constraints.
8606         * config/avr/avr.md (add<mode>3) <ALL1>: Fix set_vzn for +/-2.
8607         (*cmphi.zero-extend.0, *cmphi.zero-extend.1)
8608         (*usum_widenqihi3, *udiff_widenqihi3)
8609         (*addhi3_zero_extend.const): New combiner insns.
8610         (andqi3, iorqi3): Provide "l" (NO_LD_REGS) alternative if
8611         just 1 bit is affected.
8612         * config/avr/avr.c (avr_out_bitop) <QImode>: Don't access xop[3].
8613         (avr_out_compare) [EQ,NE]: Tweak comparing d-regs against -1.
8615 2016-07-15  Cesar Philippidis  <cesar@codesourcery.com>
8617         * omp-low.c (lower_omp_target): Mark data clauses with
8618         GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having
8619         zero-length subarrays.
8621 2016-07-15  Richard Biener  <rguenther@suse.de>
8623         PR tree-optimization/71881
8624         * tree-loop-distribution.c (destroy_loop): Remove blocks in
8625         reverse DOM order to make debug temp generation happy.
8627 2016-07-15  Richard Biener  <rguenther@suse.de>
8629         PR tree-optimization/71887
8630         * tree-ssa-phiopt.c (absorbing_element_p): Add rhs arg and
8631         verify it is not zero for division / modulo handling.
8632         (value_replacement): Adjust.
8634 2016-07-15  Virendra Pathak  <virendra.pathak@broadcom.com>
8635             Julian Brown  <julian@codesourcery.com>
8637         * config/aarch64/aarch64-cores.def: Update vulcan COSTS.
8638         * config/aarch64/aarch64-cost-tables.h
8639         (vulcan_extra_costs): New variable.
8640         * config/aarch64/aarch64.c
8641         (vulcan_addrcost_table): Likewise.
8642         (vulcan_regmove_cost): Likewise.
8643         (vulcan_vector_cost): Likewise.
8644         (vulcan_branch_cost): Likewise.
8645         (vulcan_tunings): Likewise.
8647 2016-07-15  Alexander Monakov  <amonakov@ispras.ru>
8649         * cgraphunit.c (cgraph_order_sort_kind): New entry ORDER_VAR_UNDEF.
8650         (output_in_order): Loop over undefined variables too.  Output them
8651         via assemble_undefined_decl.  Skip variables that correspond to hard
8652         registers or have value-exprs.
8653         * varpool.c (symbol_table::output_variables): Handle undefined
8654         variables together with defined ones.
8656 2016-07-15  Richard Biener  <rguenther@suse.de>
8658         * tree-ssa-pre.c (get_representative_for): Make sure to return
8659         the value number of SSA names.
8660         (phi_translate_1): get_representative_for cannot return NULL.
8661         (do_pre_regular_insertion): Remove redundant call to
8662         fully_constant_expression.
8663         (do_pre_partial_partial_insertion): Likewise.
8665 2016-07-15  Bin Cheng  <bin.cheng@arm.com>
8667         * tree-scalar-evolution.c (simple_iv_with_niters): New funcion.
8668         (derive_simple_iv_with_niters): New function.
8669         (simple_iv): Rewrite using simple_iv_with_niters.
8670         * tree-scalar-evolution.h (simple_iv_with_niters): New decl.
8671         * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
8672         function.
8673         (number_of_iterations_exit): Rewrite using above function.
8674         * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
8675         Decl.
8677 2016-07-15  Richard Biener  <rguenther@suse.de>
8679         * config/i386/i386.c (ix86_builtin_vectorization_cost): Adjust
8680         vec_construct cost.
8682 2016-07-14  Jakub Jelinek  <jakub@redhat.com>
8684         PR tree-optimization/71872
8685         * tree-data-ref.c (get_references_in_stmt): Ignore references
8686         with is_gimple_constant get_base_address.
8688 2016-07-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8690         * config/arm/arm.h (TARGET_HAVE_LDACQ): Enable for ARMv8-M Mainline.
8691         (TARGET_HAVE_LDACQD): New macro.
8692         * config/arm/sync.md (atomic_loaddi): Use TARGET_HAVE_LDACQD rather
8693         than TARGET_HAVE_LDACQ.
8694         (arm_load_acquire_exclusivedi): Likewise.
8695         (arm_store_release_exclusivedi): Likewise.
8697 2016-07-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8699         PR rtl-optimization/71878
8700         * lra-constraints.c (match_reload): Pass information about other
8701         output operands.  Create new unique register value if matching input
8702         operand shares same register value as output operand being considered.
8703         (curr_insn_transform): Record output operands already processed.
8705 2016-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8707         PR target/65951
8708         PR tree-optimization/70923
8709         * tree-vect-patterns.c: Include mult-synthesis.h.
8710         (target_supports_mult_synth_alg): New function.
8711         (synth_lshift_by_additions): Likewise.
8712         (apply_binop_and_append_stmt): Likewise.
8713         (vect_synth_mult_by_constant): Likewise.
8714         (target_has_vecop_for_code): Likewise.
8715         (vect_recog_mult_pattern): Use above functions to synthesize vector
8716         multiplication by integer constants.
8718 2016-07-14  Alan Modra  <amodra@gmail.com>
8720         * gcc/config/rs6000/altivec.md (altivec_mov<mode>): Disparage
8721         gpr alternatives.  Correct '*' placement on Y,r alternative.
8722         Add '*' on operand 1 of r,r alternative.
8724 2016-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8726         * expmed.c (mult_variant, choose_mult_variant): Move declaration to...
8727         * expmed.h: ... Here.
8729 2016-07-14  Jan Hubicka  <hubicka@ucw.cz>
8731         * gimple.h (stmt_can_terminate_bb_p): New function.
8732         * tree-cfg.c (need_fake_edge_p): Rename to ...
8733         (stmt_can_terminate_bb_p): ... this; return true if stmt can
8734         throw external; handle const and pure calls.
8735         * tree-ssa-loop-niter.c (loop_only_exit_p): Use it.
8737 2016-07-14  Richard Biener  <rguenther@suse.de>
8739         PR tree-optimization/71866
8740         * tree-ssa-pre.c (get_constant_for_value_id): Remove.
8741         (do_hoist_insertion): Avoid endless recursion when we
8742         didn't insert anything because we managed to simplify
8743         things down to a constant or SSA name.
8744         (fully_constant_expression): Re-write in terms of ...
8745         * tree-ssa-sccvn.h (vn_nary_simplify): ... this.  Declare.
8746         * tree-ssa-sccvn.c (vn_nary_simplify): New wrapper around
8747         vn_nary_build_or_lookup_1.
8748         (vn_nary_build_or_lookup_1): Added flag and renamed from ...
8749         (vn_nary_build_or_lookup): ... this which now wraps it.
8751 2016-07-14  Alan Modra  <amodra@gmail.com>
8753         PR target/71733
8754         * config/rs6000/rs6000.c (rs6000_option_override_internal): Deal
8755         with p9_vector override before power9-dform override.
8757 2016-07-13  Andi Kleen  <ak@linux.intel.com>
8759         * value-prof.c (gimple_value_profile_transformations): Don't run
8760         when auto_profile is on.
8762 2016-07-13  Andi Kleen  <ak@linux.intel.com>
8764         * auto-profile.c (update_inlined_ind_target,
8765         afdo_indirect_call): Print information to dump file.
8767 2016-07-13  Andrew Burgess  <andrew.burgess@embecosm.com>
8769         * genrecog.c (special_predicate_operand_p): New function.
8770         (predicate_name): Move function.
8771         (validate_pattern): Don't warn about missing mode for all
8772         define_special_predicate predicates.
8774 2016-07-13  Bin Cheng  <bin.cheng@arm.com>
8776         * tree-vect-data-refs.c (vect_no_alias_p): New function.
8777         (vect_prune_runtime_alias_test_list): Call vect_no_alias_p to
8778         resolve alias checks which are known at compilation time.
8779         Truncate vector LOOP_VINFO_MAY_ALIAS_DDRS(loop_vinfo) if all
8780         alias checks are resolved.  Move dump info for too many runtime
8781         alias checks to here...
8782         * tree-vect-loop.c (vect_analyze_loop_2): ...From here.
8784 2016-07-13  Richard Biener  <rguenther@suse.de>
8786         PR tree-optimization/24574
8787         * tree-ssa-phiopt.c (absorbing_element_p): Pass in argument
8788         position and add shift, rotate, divison and modulo support
8789         for left zero.
8790         (value_replacement): Pass in argument position to absorbing_element_p.
8792 2016-07-13  Ilya Enkovich  <ilya.enkovich@intel.com>
8794         PR ipa/71633
8795         * ipa-inline-transform.c (inline_call): Support
8796         instrumented thunks.
8798 2016-07-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8800         * config/arm/arm.h (TARGET_HAVE_CBZ): Define.
8801         (TARGET_IDIV): Set for all Thumb targets provided they have hardware
8802         divide feature.
8803         * config/arm/arm.md (divsi3): New unpredicable alternative for ARMv8-M
8804         Baseline.  Make initial alternative TARGET_32BIT only.
8805         (udivsi3): Likewise.
8806         * config/arm/thumb1.md (thumb1_cbz): New define_insn.
8807         * doc/sourcebuild.texi (arm_thumb1_cbz_ok): Document new effective
8808         target.
8810 2016-07-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8812         * config/arm/arm.h (TARGET_HAVE_MOVT): Include ARMv8-M as having MOVT.
8813         * config/arm/arm.c (arm_arch_name): (const_ok_for_op): Check MOVT/MOVW
8814         availability with TARGET_HAVE_MOVT.
8815         (thumb_legitimate_constant_p): Strip the high part of a label_ref.
8816         (thumb1_rtx_costs): Also return 0 if setting a half word constant and
8817         MOVW is available and replace (unsigned HOST_WIDE_INT) INTVAL by
8818         UINTVAL.
8819         (thumb1_size_rtx_costs): Make set of half word constant also cost 1
8820         extra instruction if MOVW is available.  Use a cost variable
8821         incremented by COSTS_N_INSNS (1) when the condition match rather than
8822         returning an arithmetic expression based on COSTS_N_INSNS.  Make
8823         constant with bottom half word zero cost 2 instruction if MOVW is
8824         available.
8825         * config/arm/arm.md (define_attr "arch"): Add v8mb.
8826         (define_attr "arch_enabled"): Set to yes if arch value is v8mb and
8827         target is ARMv8-M Baseline.
8828         (arm_movt): New unpredicable alternative for ARMv8-M Baseline.
8829         (arm_movtas_ze): Likewise.
8830         * config/arm/thumb1.md (thumb1_movdi_insn): Add ARMv8-M Baseline only
8831         alternative for constants satisfying j constraint.
8832         (thumb1_movsi_insn): Likewise.
8833         (movsi splitter for K alternative): Tighten condition to not trigger
8834         if movt is available and j constraint is satisfied.
8835         (Pe immediate splitter): Likewise.
8836         (thumb1_movhi_insn): Add ARMv8-M Baseline only alternative for
8837         constant fitting in an halfword to use MOVW.
8838         * doc/sourcebuild.texi (arm_thumb1_movt_ok): Document new ARM
8839         effective target.
8841 2016-07-13  Richard Biener  <rguenther@suse.de>
8843         PR middle-end/71104
8844         * gimplify.c (gimplify_modify_expr): Gimplify the RHS before
8845         gimplifying the LHS.  Make sure to gimplify a returning twice
8846         call LHS without using SSA names.
8848 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8850         * tree-data-ref.c (find_data_references_in_stmt): Remove
8851         unnecessary call to vec::release.
8852         (graphite_find_data_references_in_stmt): Likewise.
8853         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Likewise.
8854         * tree-vect-stmts.c (vectorizable_condition): Likewise.
8856 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8858         * cfgexpand.c (expand_used_vars): Make the type of a local
8859         variable auto_vec.
8860         * genmatch.c (lower_for): Likewise.
8861         * haifa-sched.c (haifa_sched_init): Likewise.
8862         (add_to_speculative_block): Likewise.
8863         (create_check_block_twin): Likewise.
8864         * predict.c (handle_missing_profiles): Likewise.
8865         * tree-data-ref.c (loop_nest_has_data_refs): Likewise.
8866         * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Likewise.
8867         * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
8868         Likewise.
8869         (maybe_lower_iteration_bound): Likewise.
8870         * tree-ssa-sccvn.c (DFS): Likewise.
8871         * tree-stdarg.c (reachable_at_most_once): Likewise.
8872         * tree-vect-stmts.c (vectorizable_conversion): Likewise.
8873         (vectorizable_store): Likewise.
8875 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8877         * tree-ssa-sccvn.c (sccvn_dom_walker::~sccvn_dom_walker): remove.
8878         (sccvn_dom_walker): make cond_stack an auto_vec.
8880 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8882         * ree.c (struct ext_state): Make type of members auto_vec.
8883         (find_and_remove_re): Adjust.
8885 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8887         * cfgexpand.c (struct stack_vars_data): Make type of fields
8888         auto_vec.
8889         (expand_used_vars): Adjust.
8891 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8893         * ipa.c (record_cdtor_fn): Adjust.
8894         (build_cdtor_fns): Likewise.
8895         (ipa_cdtor_merge): Make static_ctors and static_dtors local
8896         variables.
8898 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8900         * genextract.c (struct accum_extract): Add constructor and make
8901         members auto_vec.
8902         (gen_insn): Adjust.
8904 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8906         * tree.c (struct free_lang_data_d): Add constructor and change
8907         types of members to ones that automatically manage resources.
8908         (fld_worklist_push): Adjust.
8909         (find_decls_types): Likewise.
8910         (find_decls_types_in_eh_region): Likewise.
8911         (free_lang_data_in_cgraph): Stop manually creating and
8912         destroying members of free_lang_data_d.
8914 2016-07-13  Uros Bizjak  <ubizjak@gmail.com>
8916         PR rtl-optimization/68961
8917         * config/i386/sse.md (movsd/movhpd to movupd peephole2s): Add new
8918         peephole variant.  Use sse_reg_operand predicates.
8920 2016-07-12  Uros Bizjak  <ubizjak@gmail.com>
8922         * config/i386/predicates.md (x86_64_immediate_operand)
8923         <case CONST_INT>: Remove unneeded truncation to DImode.
8924         <case CONST>: Ditto.
8925         (x86_64_zext_immediate_operand) <case CONST>: Ditto.
8927 2016-07-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
8929         PR target/71805
8930         * config/rs6000/altivec.md (altivec_vperm_<mode>_internal):
8931         The xxperm and xxpermr instructions require that the 2nd input
8932         operand overlap with the output operand, and not the 1st.
8933         (altivec_vperm_v8hiv16qi): Likewise.
8934         (altivec_vperm_<mode>_uns_internal): Likewise.
8935         (altivec_vpermr_<mode>_internal): Likewise.
8936         (vperm_v8hiv4si): Likewise.
8937         (vperm_v16qiv8hi): Likewise.
8939 2016-07-12  Nathan Sidwell  <nathan@acm.org>
8941         * config/arm/arm.c (arm_option_override): Set MASK_SINGLE_PIC_BASE
8942         when -mno-pic-data-is-text-relative is in effect, by default.
8943         * doc/invoke.texi (mpic-data-is-text-relative): Document new
8944         behavior and clarify.
8946 2016-07-12  Martin Liska  <mliska@suse.cz>
8948         * params.def: Add avg-loop niter.
8949         * tree-ssa-loop-ivopts.c (avg_loop_niter): Use the param.
8950         * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
8951         * doc/invoke.texi: Document the new parameter.
8953 2016-07-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8955         PR middle-end/71700
8956         * expr.c (store_constructor): Mask sign-extended bits when widening
8957         sub-word constructor element at the start of a word.
8959 2016-07-12  Martin Liska  <mliska@suse.cz>
8961         * Makefile.in: Append rule for params-options.h.
8962         * params-options.h: New file.
8964 2016-07-12  Martin Liska  <mliska@suse.cz>
8966         * ira-build.c (mark_loops_for_removal): Properly iterate
8967         loops.
8969 2016-07-12  Steven Bosscher  <steven@gcc.gnu.org>
8970             Richard Biener  <rguenther@suse.de>
8972         PR tree-optimization/23286
8973         PR tree-optimization/70159
8974         * doc/invoke.texi: Document -fcode-hoisting.
8975         * common.opt (fcode-hoisting): New flag.
8976         * opts.c (default_options_table): Enable -fcode-hoisting at -O2+.
8977         * tree-ssa-pre.c (pre_stats): Add hoist_insert.
8978         (do_regular_insertion): Rename to ...
8979         (do_pre_regular_insertion): ... this and amend general comments
8980         on insertion strathegy.
8981         (do_partial_partial_insertion): Rename to ...
8982         (do_pre_partial_partial_insertion): ... this.
8983         (do_hoist_insertion): New function.
8984         (insert_aux): Take flags on whether to do PRE and/or hoist insertion
8985         and call do_hoist_insertion properly.
8986         (insert): Adjust.
8987         (pass_pre::gate): Enable also if -fcode-hoisting is enabled.
8988         (pass_pre::execute): Register hoist_insert stats.
8990 2016-07-12  Jakub Jelinek  <jakub@redhat.com>
8992         PR middle-end/71716
8993         * gimple-fold.c (optimize_atomic_compare_exchange_p): Return false
8994         for SCALAR_FLOAT_TYPE_P type of expected var, or if TYPE_PRECISION
8995         is different from mode's bitsize.  Small cleanup.
8997 2016-07-12  Richard Biener  <rguenther@suse.de>
8999         PR rtl-optimization/68961
9000         * fwprop.c (propagate_rtx): Allow SUBREGs of VEC_CONCAT and CONCAT
9001         to simplify to a non-constant.
9003 2016-07-11  Jakub Jelinek  <jakub@redhat.com>
9005         PR middle-end/71758
9006         * omp-low.c (expand_omp_target): Gimplify device.
9008         PR tree-optimization/71823
9009         * tree-vect-stmts.c (vectorizable_operation): Use vect_get_vec_defs
9010         to get vec_oprnds2 from op2.
9012 2016-07-11  Uros Bizjak  <ubizjak@gmail.com>
9014         * config/i386/predicates.md (x86_64_immediate_operand) <case CONST>:
9015         Hoist common subexpressions.
9016         (x86_64_zext_immediate_operand) <case CONST>: Ditto.
9018 2016-07-11  Pat Haugen  <pthaugen@us.ibm.com>
9020         PR target/71800
9021         * config/rs6000/rs6000.md (stfiwx): Change constraint to 'wu' to
9022         prevent generation of 'stxsiwx' on pre Power8 hardware.
9024 2016-07-11  David Malcolm  <dmalcolm@redhat.com>
9026         * input.c: Include cpplib.h.
9027         (selftest::temp_source_file): New class.
9028         (selftest::temp_source_file::temp_source_file): New ctor.
9029         (selftest::temp_source_file::~temp_source_file): New dtor.
9030         (selftest::should_have_column_data_p): New function.
9031         (selftest::test_should_have_column_data_p): New function.
9032         (selftest::temp_line_table): New class.
9033         (selftest::temp_line_table::temp_line_table): New ctor.
9034         (selftest::temp_line_table::~temp_line_table): New dtor.
9035         (selftest::test_accessing_ordinary_linemaps): Add case_ param; use
9036         it to create a temp_line_table.
9037         (selftest::assert_loceq): Only verify LOCATION_COLUMN for
9038         locations that are known to have column data.
9039         (selftest::line_table_case): New struct.
9040         (selftest::test_reading_source_line): Move tempfile handling
9041         to class temp_source_file.
9042         (ASSERT_TOKEN_AS_TEXT_EQ): New macro.
9043         (selftest::assert_token_loc_eq): New function.
9044         (ASSERT_TOKEN_LOC_EQ): New macro.
9045         (selftest::test_lexer): New function.
9046         (selftest::boundary_locations): New array.
9047         (selftest::input_c_tests): Call test_should_have_column_data_p.
9048         Loop over a test matrix of interesting values of location and
9049         default_range_bits, calling test_lexer on each case in the matrix.
9050         Move call to test_accessing_ordinary_linemaps into the matrix.
9051         * selftest.h (ASSERT_EQ): Reimplement in terms of...
9052         (ASSERT_EQ_AT): New macro.
9054 2016-07-11  H.J. Lu  <hongjiu.lu@intel.com>
9056         PR target/71801
9057         * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
9058         Don't convert TImode in debug insn.
9060 2016-07-11  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9062         Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG.
9063         * tree-core.h (tree_base::nothrow_flag): Adjust comment.
9064         (tree_type_common::lang_flag_7): New.
9065         (tree_type_common::spare): Reduce size.
9066         * tree.h (TYPE_ALIGN_OK): Remove.
9067         (TYPE_LANG_FLAG_7): New.
9068         (get_inner_reference): Adjust header.
9069         * print-tree.c (print_node): Adjust.
9070         * expr.c (get_inner_reference): Remove parameter keep_aligning.
9071         (get_bit_range, expand_assignment, expand_expr_addr_expr_1): Adjust
9072         calls to get_inner_reference.
9073         (expand_expr_real_1): Adjust call to get_inner_reference.  Remove
9074         handling of TYPE_ALIGN_OK.
9075         * builtins.c (get_object_alignment_2): Adjust call to
9076         get_inner_reference.  Remove handling of VIEW_CONVERT_EXPR.
9077         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove handling of
9078         TYPE_ALIGN_OK.
9079         * asan.c (instrument_derefs): Adjust calls to get_inner_reference.
9080         * cfgexpand.c (expand_debug_expr): Likewise.
9081         * dbxout.c (dbxout_expand_expr): Likewise.
9082         * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref,
9083         loc_list_from_tree, fortran_common): Likewise.
9084         * fold-const.c (optimize_bit_field_compare,
9085         decode_field_reference, fold_unary_loc, fold_comparison,
9086         split_address_to_core_and_offset): Likewise.
9087         * gimple-laddress.c (execute): Likewise.
9088         * gimple-ssa-strength-reduction.c (slsr_process_ref): Likewise.
9089         * gimplify.c (gimplify_scan_omp_clauses): Likewise.
9090         * hsa-gen.c (gen_hsa_addr): Likewise.
9091         * simplifx-rtx.c (delegitimize_mem_from_attrs): Likewise.
9092         * tsan.c (instrument_expr): Likewise.
9093         * ubsan.c (instrument_bool_enum_load, instrument_object_size): Likewise.
9094         * tree.c (verify_type_variant): Remove handling of TYPE_ALIGN_OK.
9095         * tree-affine.c (tree_to_aff_combination,
9096         get_inner_reference_aff): Adjust calls to get_inner_reference.
9097         * tree-data-ref.c (split_constant_offset_1,
9098         dr_analyze_innermost): Likewise.
9099         * tree-scalar-evolution.c (interpret_rhs_expr): Likewise.
9100         * tree-sra.c (ipa_sra_check_caller): Likewise.
9101         * tree-ssa-loop-ivopts.c (split_address_cost): Likewise.
9102         * tree-ssa-math-opts.c (find_bswap_or_nop_load,
9103         bswap_replace): Likewise.
9104         * tree-vect-data-refs.c (vect_check_gather,
9105         vect_analyze_data_refs): Likewise.
9106         * config/mips/mips.c (r10k_safe_mem_expr_p): Likewise.
9107         * config/pa/pa.c (pa_emit_move_sequence): Remove handling of
9108         TYPE_ALIGN_OK.
9110 2016-07-11  David Malcolm  <dmalcolm@redhat.com>
9112         * Makefile.in (selftest-valgrind): New phony target.
9113         * function-tests.c (selftest::build_cfg): Delete pass instances
9114         created by the test.
9115         (selftest::convert_to_ssa): Likewise.
9116         (selftest::test_expansion_to_rtl): Likewise.
9117         * tree-cfg.c (selftest::test_linear_chain): Release dominator
9118         vectors.
9119         (selftest::test_diamond): Likewise.
9121 2016-07-11  Richard Biener  <rguenther@suse.de>
9123         PR tree-optimization/71816
9124         * tree-ssa-pre.c (compute_avail): Adjust alignment of ref rather
9125         than replacing all of its operands.
9127 2016-07-11  Alan Modra  <amodra@gmail.com>
9129         * config/rs6000/rs6000.md (UNSPEC_DOLOOP): New unspec.
9130         (ctr<mode>): Add unspec.
9131         (ctr<mode>_internal*): Likewise.
9133 2016-07-08  James Bowman  <james.bowman@ftdichip.com>
9135         * config/ft32/ft32.c (ft32_elf_encode_section_info): New function.
9136         * config/ft32/ft32.h (ASM_OUTPUT_SYMBOL_REF): New function.
9138 2016-07-08  Vladimir Makarov  <vmakarov@redhat.com>
9140         PR rtl-optimization/71621
9141         * lra-constraints.c (process_alt_operands): Check combination of
9142         reg class and mode.
9144 2016-07-08  Jason Merrill  <jason@redhat.com>
9145             Richard Biener  <rguenther@suse.de>
9147         P0145: Refining Expression Order for C++.
9148         * gimplify.c (initial_rhs_predicate_for): New.
9149         (gimplfy_modify_expr): Gimplify RHS before LHS.
9151 2016-07-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9153         PR target/71297
9154         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
9155         Allow standard error handling to take over when a wrong number
9156         of arguments is presented to __builtin_vec_ld () or
9157         __builtin_vec_st ().
9159 2016-07-08  Jiong Wang  <jiong.wang@arm.com>
9161         * config/aarch64/aarch64-simd-builtins.def (smax): Remove float
9162         variants.
9163         (smin): Likewise.
9164         (fmax): New entry.
9165         (fmin): Likewise.
9166         * config/aarch64/arm_neon.h (vmaxnm_f32): Use
9167         __builtin_aarch64_fmaxv2sf.
9168         (vmaxnmq_f32): Likewise.
9169         (vmaxnmq_f64): Likewise.
9170         (vminnm_f32): Likewise.
9171         (vminnmq_f32): Likewise.
9172         (vminnmq_f64): Likewise.
9174 2016-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
9176         PR target/71806
9177         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Do not
9178         enable -mfloat128-hardware by default.
9179         (ISA_3_0_MASKS_IEEE): New macro to give all of the VSX options
9180         that IEEE 128-bit hardware support needs.
9181         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
9182         -mcpu=power9 -mfloat128, enable -mfloat128-hardware by default.
9183         Use ISA_3_0_MASKS_IEEE as the set of options that IEEE 128-bit
9184         floating point requires.
9185         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
9186         -mfloat128 and -mfloat128-hardware changes.
9188 2016-07-08  Alan Hayward  <alan.hayward@arm.com>
9190         PR tree-optimization/71667
9191         * tree-vect-loop.c (vectorizable_live_operation): ignore DEBUG stmts
9193 2016-07-08  Martin Liska  <mliska@suse.cz>
9195         PR middle-end/71606
9196         * fold-const.c (fold_convertible_p): As COMPLEX_TYPE
9197         folding produces SAVE_EXPRs, thus return false for the type.
9199 2016-07-07  Martin Liska  <mliska@suse.cz>
9201         * file-find.c (remove_prefix): New function.
9202         * file-find.h (remove_prefix): Declare the function.
9203         * gcc-ar.c (main): Skip a folder of the wrapper if
9204         a wrapped binary would point to the same file.
9206 2016-07-07  Jan Hubicka  <jh@suse.cz>
9208         * tree-scalar-evolution.c (iv_can_overflow_p): export.
9209         * tree-scalar-evolution.h (iv_can_overflow_p): Declare.
9210         * tree-ssa-loop-ivopts.c (alloc_iv): Use it.
9212 2016-07-07  Ilya Enkovich  <ilya.enkovich@intel.com>
9214         PR ipa/71624
9215         * ipa-inline-analysis.c (compute_inline_parameters): Set
9216         local.can_change_signature to false for intrumentation
9217         thunk callees.
9219 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
9221         * config/arm/arm.h (TARGET_USE_MOVT): Check MOVT/MOVW availability
9222         with TARGET_HAVE_MOVT.
9223         (TARGET_HAVE_MOVT): Define.
9224         * config/arm/arm.c (const_ok_for_op): Check MOVT/MOVW
9225         availability with TARGET_HAVE_MOVT.
9226         * config/arm/arm.md (arm_movt): Use TARGET_HAVE_MOVT to check MOVT
9227         availability.
9228         (addsi splitter): Use TARGET_THUMB && TARGET_HAVE_MOVT rather than
9229         TARGET_THUMB2.
9230         (symbol_refs movsi splitter): Remove TARGET_32BIT check.
9231         (arm_movtas_ze): Use TARGET_HAVE_MOVT to check MOVT availability.
9232         * config/arm/constraints.md (define_constraint "j"): Use
9233         TARGET_HAVE_MOVT to check MOVT availability.
9235 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
9237         * config/arm/arm-protos.h: Reindent FL_FOR_* macro definitions.
9239 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
9241         * config/arm/arm-arches.def (armv8-m.base): Define new architecture.
9242         (armv8-m.main): Likewise.
9243         (armv8-m.main+dsp): Likewise.
9244         * config/arm/arm-protos.h (FL_FOR_ARCH8M_BASE): Define.
9245         (FL_FOR_ARCH8M_MAIN): Likewise.
9246         * config/arm/arm-tables.opt: Regenerate.
9247         * config/arm/bpabi.h: Add armv8-m.base, armv8-m.main and
9248         armv8-m.main+dsp to BE8_LINK_SPEC.
9249         * config/arm/arm.h (TARGET_HAVE_LDACQ): Exclude ARMv8-M.
9250         (enum base_architecture): Add BASE_ARCH_8M_BASE and BASE_ARCH_8M_MAIN.
9251         * config/arm/arm.c (arm_arch_name): Increase size to work with ARMv8-M
9252         Baseline and Mainline.
9253         (arm_option_override_internal): Also disable arm_restrict_it when
9254         !arm_arch_notm.  Update comment for -munaligned-access to also cover
9255         ARMv8-M Baseline.
9256         (arm_file_start): Increase buffer size for printing architecture name.
9257         * doc/invoke.texi: Document architectures armv8-m.base, armv8-m.main
9258         and armv8-m.main+dsp.
9259         (mno-unaligned-access): Clarify that this is disabled by default for
9260         ARMv8-M Baseline architectures as well.
9262 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
9264         * config/arm/elf.h: Use __ARM_ARCH_ISA_THUMB and __ARM_ARCH_ISA_ARM to
9265         decide whether to prevent some libgcc routines being included for some
9266         multilibs rather than __ARM_ARCH_6M__ and add comment to indicate the
9267         link between this condition and the one in
9268         libgcc/config/arm/lib1func.S.
9270 2016-07-07  Richard Biener  <rguenther@suse.de>
9272         * tree-ssa-pre.c: Include alias.h.
9273         (compute_avail): If we have multiple VN_REFERENCEs with the
9274         same hashtable entry adjust that to make it a valid replacement
9275         for all of them with respect to alignment and aliasing
9276         when doing insertion.
9277         * tree-ssa-sccvn.h (vn_reference_operands_for_lookup): Declare.
9278         * tree-ssa-sccvn.c (vn_reference_operands_for_lookup): New function.
9280 2016-07-06  Segher Boessenkool  <segher@kernel.crashing.org>
9282         PR target/70098
9283         PR target/71763
9284         * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
9285         *ctr<mode>_internal5, *ctr<mode>_internal6): Add *wi to the output
9286         constraint.
9288 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9290         * var-tracking.c (struct adjust_mem_data): Make side_effects a vector.
9291         (adjust_mems): Adjust.
9292         (adjust_insn): Likewise.
9293         (prepare_call_arguments): Likewise.
9295 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9297         * gcse.c (struct ls_expr): Make stores field a vector.
9298         (ldst_entry): Adjust.
9299         (free_ldst_entry): Likewise.
9300         (print_ldst_list): Likewise.
9301         (compute_ld_motion_mems): Likewise.
9302         (update_ld_motion_stores): Likewise.
9304 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9306         * gcse.c (struct ls_expr): Remove loads field.
9307         (ldst_entry): Adjust.
9308         (free_ldst_entry): Likewise.
9309         (print_ldst_list): Likewise.
9310         (compute_ld_motion_mems): Likewise.
9312 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9314         * store-motion.c (struct st_expr): Make antic_stores a vector.
9315         (st_expr_entry): Adjust.
9316         (free_st_expr_entry): Likewise.
9317         (print_store_motion_mems): Likewise.
9318         (find_moveable_store): Likewise.
9319         (compute_store_table): Likewise.
9320         (remove_reachable_equiv_notes): Likewise.
9321         (replace_store_insn): Likewise.
9322         (build_store_vectors): Likewise.
9324 2016-07-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9326         * config/arm/driver-arm.c (arm_cpu_table): Add entries for cortex-a32,
9327         cortex-a35, cortex-a53, cortex-a57, cortex-a72, cortex-a73.
9329 2016-07-06  Yuri Rumyantsev  <ysrumyan@gmail.com>
9331         PR tree-optimization/71518
9332         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust
9333         misalign also for outer loops with negative step.
9335 2016-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
9337         * config/arm/cortex-a53.md: Use final_presence_set for in-order.
9338         (cortex_a53_shift): Add mov_shift.
9339         (cortex_a53_shift_reg): Add new reservation for register shifts.
9340         (cortex_a53_alu): Remove bfm.
9341         (cortex_a53_alu_shift): Add bfm, remove mov_shift.
9342         (cortex_a53_alu_extr): Add new reservation for EXTR.
9343         (bypasses): Improve bypass modelling.
9345 2016-07-06  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
9347         PR target/50739
9348         * config/avr/avr.c (avr_asm_select_section): Strip off
9349         SECTION_DECLARED from flags when calling get_section.
9351 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
9353         * tree-vectorizer.h (vect_memory_access_type): Add
9354         VMAT_INVARIANT, VMAT_CONTIGUOUS_DOWN and VMAT_CONTIGUOUS_REVERSED.
9355         * tree-vect-stmts.c (compare_step_with_zero): New function.
9356         (perm_mask_for_reverse): Move further up file.
9357         (get_group_load_store_type): Stick to VMAT_ELEMENTWISE if the
9358         step is negative.
9359         (get_negative_load_store_type): New function.
9360         (get_load_store_type): Call it.  Add an ncopies argument.
9361         (vectorizable_mask_load_store): Update call accordingly and
9362         remove tests for negative steps.
9363         (vectorizable_store, vectorizable_load): Likewise.  Handle new
9364         memory_access_types.
9366 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
9368         * tree-vectorizer.h (vect_memory_access_type): New enum.
9369         (_stmt_vec_info): Add a memory_access_type field.
9370         (STMT_VINFO_MEMORY_ACCESS_TYPE): New macro.
9371         (vect_model_store_cost): Take an access type instead of a boolean.
9372         (vect_model_load_cost): Likewise.
9373         * tree-vect-slp.c (vect_analyze_slp_cost_1): Update calls to
9374         vect_model_store_cost and vect_model_load_cost.
9375         * tree-vect-stmts.c (vec_load_store_type): New enum.
9376         (vect_model_store_cost): Take an access type instead of a
9377         store_lanes_p boolean.  Simplify tests.
9378         (vect_model_load_cost): Likewise, but for load_lanes_p.
9379         (get_group_load_store_type, get_load_store_type): New functions.
9380         (vectorizable_store): Use get_load_store_type.  Record the access
9381         type in STMT_VINFO_MEMORY_ACCESS_TYPE.
9382         (vectorizable_load): Likewise.
9383         (vectorizable_mask_load_store): Likewise.  Replace is_store
9384         variable with vls_type.
9386 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
9388         * tree-vectorizer.h (vect_grouped_load_supported): Add a
9389         single_element_p parameter.
9390         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
9391         Check the PR65518 case here rather than in vectorizable_load.
9392         * tree-vect-loop.c (vect_analyze_loop_2): Update call accordignly.
9393         * tree-vect-stmts.c (vectorizable_load): Likewise.
9395 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
9397         * tree-vectorizer.h (gather_scatter_info): New structure.
9398         (vect_check_gather_scatter): Return a bool rather than a decl.
9399         Replace return-by-pointer arguments with a single
9400         gather_scatter_info *.
9401         * tree-vect-data-refs.c (vect_check_gather_scatter): Likewise.
9402         (vect_analyze_data_refs): Update call accordingly.
9403         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
9404         (vectorizable_mask_load_store): Likewise.  Also record the
9405         offset dt and vectype in the gather_scatter_info.
9406         (vectorizable_store): Likewise.
9407         (vectorizable_load): Likewise.
9409 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
9411         * tree-vect-stmts.c (vect_model_store_cost): For non-SLP
9412         strided groups, use the cost of N scalar accesses instead
9413         of ncopies vector accesses.
9414         (vect_model_load_cost): Likewise.
9416 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
9418         * tree-vect-stmts.c (vect_cost_group_size): Delete.
9419         (vect_model_store_cost): Avoid calling it.  Use first_stmt_p
9420         variable to indicate when once-per-group costs are being used.
9421         (vect_model_load_cost): Likewise.  Fix comment and misindented code.
9423 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
9425         * tree-vect-stmts.c (vectorizable_load): Remove unnecessary
9426         peeling-for-gaps condition.
9428 2016-07-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9430         * config/s390/s390.c (s390_expand_vec_init): Force initializer
9431         element to register if it doesn't match general_operand.
9433 2016-07-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
9434             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9436         * config/rs6000/rs6000-protos.h (rs6000_split_signbit): New
9437         prototype.
9438         * config/rs6000/rs6000.c (rs6000_split_signbit): New function.
9439         * config/rs6000/rs6000.md (UNSPEC_SIGNBIT): New constant.
9440         (SIGNBIT): New mode iterator.
9441         (Fsignbit): New mode attribute.
9442         (signbit<mode>2): Change operand1 to match FLOAT128 instead of
9443         IBM128; dispatch to gen_signbit{kf,tf}2_dm for __float128
9444         when direct moves are available.
9445         (signbit<mode>2_dm): New define_insn_and_split).
9446         (signbit<mode>2_dm2): New define_insn.
9448 2016-07-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9450         PR rtl-optimization/71594
9451         * ifcvt.c (noce_convert_multiple_sets): Wrap new_val or old_val
9452         into subregs of appropriate mode before trying to emit a conditional
9453         move.
9455 2016-07-05  Jan Hubicka  <jh@suse.cz>
9457         * tree-scalar-evolution.c (iv_can_overflow_p): New function.
9458         (simple_iv): Use it.
9460 2016-07-05  Jan Hubicka  <jh@suse.cz>
9462         * tree-ssa-loop-niter.c (nowrap_type_p): Use ANY_INTEGRAL_TYPE_P.
9464 2016-07-05  Jiong Wang  <jiong.wang@arm.com>
9466         * lra-constraints.c (process_alt_operands): Don't add spilling cost for
9467         "offmemok".
9469 2016-07-05  Jan Hubicka  <jh@suse.cz>
9471         * tree-scalar-evoluiton.c (simple_iv): Use nowrap_type to check if
9472         IV can overflow.
9474 2016-07-05  Richard Biener  <rguenther@suse.de>
9476         * gimple-ssa-split-paths.c (find_block_to_duplicate_for_splitting_pa):
9477         Handle empty else block.
9478         (is_feasible_trace): Likewise.
9479         (split_paths): Likewise.
9481 2016-07-05  Richard Biener  <rguenther@suse.de>
9483         * tree-loop-distribution.c (distribute_loop): Fix issue with
9484         the cost model loop.
9486 2016-07-05  Christophe Lyon  <christophe.lyon@linaro.org>
9488         * config/arm/neon-testgen.ml: Delete.
9489         * config/arm/neon.ml: Delete.
9491 2016-07-04  Jakub Jelinek  <jakub@redhat.com>
9493         PR c++/71739
9494         * tree.c (attribute_value_equal): Use get_attribute_name instead of
9495         directly using TREE_PURPOSE.
9497 2016-07-04  Jiong Wang  <jiong.wang@arm.com>
9499         * config/aarch64/aarch64.h: Rename "ARMv8.1" to "ARMv8.1-A".
9500         * config/aarch64/aarch64_neon.h: Likewise.
9501         * config/aarch64/arm_neon.h: Likewise.
9502         * config/aarch64/atomics.md: Likewise.
9503         * config/aarch64/aarch64-simd-builtins.def: Likewise.
9504         * doc/invoke.texi: Likewise.
9506 2016-07-04  Dominik Vogt  <vogt@linux.vnet.ibm.com>
9508         * config/s390/s390.md: Add "z13" cpu_facility.
9509         ("*mov<mode>cc"): Add support for z13 instructions lochi and locghi.
9510         * config/s390/predicates.md ("loc_operand"): New predicate for "load on
9511         condition" type instructions.
9513 2016-07-04  Dominik Vogt  <vogt@linux.vnet.ibm.com>
9514             Jeff Law  <law@redhat.com>
9516         * explow.c (allocate_dynamic_stack_space): Simplify knowing that
9517         MUST_ALIGN was always true and extra_align ist always BITS_PER_UNIT.
9519 2016-07-04  Yuri Rumyantsev  <ysrumyan@gmail.com>
9521         * config/i386/i386.c (ix86_expand_vec_perm): Add handle one-operand
9522         permutation for TARGET_AVX512F.
9523         (ix86_expand_vec_one_operand_perm_avx512): New function.
9524         (expand_vec_perm_1): Invoke introduced function.
9525         * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
9526         it may be not valid after vectorization.
9528 2016-07-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9530         PR target/63874
9531         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix
9532         typo in comment.  Only force to memory if it is a weak
9533         external reference.
9535 2016-07-04  Matthew Wahab  <matthew.wahab@arm.com>
9536             Jiong Wang  <jiong.wang@arm.com>
9538         * config/aarch64/aarch64-arches.def: Add "armv8.2-a".
9539         * config/aarch64/aarch64.h (AARCH64_FL_V8_2): New.
9540         (AARCH64_FL_F16): New.
9541         (AARCH64_FL_FOR_ARCH8_2): New.
9542         (AARCH64_ISA_8_2): New.
9543         (AARCH64_ISA_F16): New.
9544         (TARGET_FP_F16INST): New.
9545         (TARGET_SIMD_F16INST): New.
9546         * config/aarch64/aarch64-option-extensions.def ("fp16"): New entry.
9547         ("fp"): Disabling "fp" also disables "fp16".
9548         * config/aarch64/aarch64-c.c (arch64_update_cpp_builtins):
9549         Conditionally define __ARM_FEATURE_FP16_SCALAR_ARITHMETIC
9550         and __ARM_FEATURE_FP16_VECTOR_ARITHMETIC.
9551         * doc/invoke.texi (AArch64 Options): Document "armv8.2-a" and "fp16".
9553 2016-07-04  Jan Beulich  <jbeulich@suse.com>
9555         * gcc.c (default_compilers["@c-header"]): Conditionalize "-o".
9557 2016-07-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
9559         PR target/71720
9560         * config/rs6000/vsx.md (vsx_splat_v4sf_internal): When splitting
9561         the insns, use an insn form that does not adjust the offset on
9562         little endian systems.
9564 2016-07-01  Jan Beulich  <jbeulich@suse.com>
9566         * varasm.c (get_variable_section): Validate initializer in
9567         named .bss-like sections.
9569 2016-07-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
9571         * config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
9572         Exchange the order of the second and third operands in the vpermr
9573         instruction tmeplate.
9575 2016-07-01  Peter Bergner  <bergner@vnet.ibm.com>
9577         PR target/71698
9578         * config/rs6000/rs6000.c (rs6000_secondary_reload_simple_move):
9579         Disallow TDmode values.
9581 2016-07-01  Alan Modra  <amodra@gmail.com>
9583         PR rtl-optimization/71709
9584         * ira-lives.c (find_call_crossed_cheap_reg): Exit loop on arg reg
9585         being set, not referenced.
9587 2016-07-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
9589         PR tree-optimization/70729
9590         * tree-vectorizer.c (adjust_simduid_builtins): Nullify safelen field
9591         of loop since it can be not valid after transformation.
9593 2016-07-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9595         * config/arm/arm.c (thumb_reload_in_hi): Delete.
9596         * config/arm/arm-protos.h (thumb_reload_in_hi): Delete prototype.
9598 2016-07-01  Eric Botcazou  <ebotcazou@adacore.com>
9600         * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
9601         for NULL decl.
9603 2016-06-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
9605         PR target/71677
9606         * config/rs6000/constraints.md (wY constraint): New constraint to
9607         match the requirements for the LXSD and STXSD instructions.
9608         * config/rs6000/predicates.md (offsettable_mem_14bit_operand): New
9609         predicate to match the requirements for the LXSD and STXSD
9610         instructions.
9611         * config/rs6000/rs6000.md (mov<mode>_hardfloat32, FMOVE64 case):
9612         Use constaint wY for LXSD/STXSD instructions instead of 'o' or 'Y'
9613         to make sure that the bottom 2 bits of offset are 0, the address
9614         form is offsettable, and no updating is done in the address mode.
9615         (mov<mode>_hardfloat64, FMOVE64 case): Likewise.
9616         (movdi_internal32): Likewise
9617         (movdi_internal64): Likewise.
9619 2016-06-30  Jakub Jelinek  <jakub@redhat.com>
9621         PR tree-optimization/71707
9622         * tree-ssa-strlen.c (get_stridx_plus_constant): Handle already present
9623         strinfo even for ADDR_EXPR ptr.
9625 2016-06-30  Kelvin Nilsen  <kelvin@gcc.gnu.org>
9627         * config/rs6000/altivec.md (darn_32): Change the condition to
9628         TARGET_P9_MISC instead of TARGET_MODULO.
9629         (darn_raw): Replace TARGET_MODULO with TARGET_P9_MISC in the
9630         condition expression.
9631         (darn): Replace TARGET_MODULO with TARGET_P9_MISC in the
9632         condition expression.
9633         * config/rs6000/dfp.md (UNSPEC_DTSTSFI): New unspec constant.
9634         (DFP_TEST): New code iterator.
9635         (dfptstsfi_<code>_mode>): New define_expand.
9636         (*dfp_sgnfcnc_<mode>): New define_insn.
9637         * config/rs6000/rs6000-builtin.def (BU_P9_MISC_0): Move this macro
9638         definition next to BU_P9_MISC_1 definition and change the MASK
9639         value to RS6000_BTM_P9_MISC.
9640         (BU_P9_MISC_1): Change the MASK value to RS6000_BTM_P9_MISC.
9641         (BU_P9_64BIT_MISC_0): Likewise.
9642         (BU_P9_DFP_MISC_0): New macro definition.
9643         (BU_P9_DFP_MISC_1): New macro definition.
9644         (BU_P9_DFP_MISC_2): New macro definition.
9645         (BU_P9_DFP_OVERLOAD_1): New macro definition.
9646         (BU_P9_DFP_OVERLOAD_2): New macro definition.
9647         (BU_P9_DFP_OVERLOAD_3): New macro definition.
9648         (TSTSFI_LT_DD): New BU_P9_DFP_MISC_2.
9649         (TSTSFI_LT_TD): Likewise.
9650         (TSTSFI_EQ_DD): Likewise.
9651         (TSTSFI_EQ_TD): Likewise.
9652         (TSTSFI_GT_DD): Likewise.
9653         (TSTSFI_GT_TD): Likewise.
9654         (TSTSFI_OV_DD): Likewise.
9655         (TSTSFI_OV_TD): Likewise.
9656         (TSTSFI_LT): New BU_P9_DFP_OVERLOAD_2.
9657         (TSTSFI_LT_DD): Likewise.
9658         (TSTSFI_LT_TD): Likewise.
9659         (TSTSFI_EQ): Likewise.
9660         (TSTSFI_EQ_DD): Likewise.
9661         (TSTSFI_EQ_TD): Likewise.
9662         (TSTSFI_GT): Likewise.
9663         (TSTSFI_GT_DD): Likewise.
9664         (TSTSFI_GT_TD): Likewise.
9665         (TSTSFI_OV): Likewise.
9666         (TSTSFI_OV_DD): Likewise.
9667         (TSTSFI_OV_TD): Likewise.
9668         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
9669         overloaded test significance functions.
9670         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
9671         OPTION_MASK_P9_MISC into the representation of this mask.
9672         (POWERPC_MASKS): Add OPTION_MASK_P9_MISC into the representation
9673         of this mask.
9674         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Set the
9675         RS6000_BTM_P9_MISC flag in the return value if TARGET_P9_MISC is
9676         non-zero.
9677         (rs6000_expand_binop_builtin): Enforce that argument 0 of the exp
9678         argument is a 6-bit unsigned literal value if the icode argument
9679         represents a DFP test significance built-in call.
9680         (rs6000_invalid_builtin): Add support for the RS6000_BTM_P9_MISC
9681         flag used independently and in combination with the
9682         RS6000_BTM_64BIT flag.
9683         (rs6000_opt_masks): Add entry for power9-misc command-line option.
9684         (rs6000_builtin_mask_names): Add entry for power9-misc
9685         command-line option.
9686         * config/rs6000/rs6000.h: Redefine TARGET_P9_MISC as 0 if
9687         HAVE_AS_POWER9 is not a defined macro.  Define MASK_P9_MISC and
9688         RS6000_BTM_P9_MISC macros.
9689         * config/rs6000/rs6000.opt: Add support for the -mpower9-misc
9690         option and change the description of the -mpower9-vector option to
9691         enable only vector instructions, removing its erroneously claimed
9692         support for scalar instructions.
9693         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
9694         the ISA 3.0 digital floating point test significance built-in
9695         functions.
9697 2016-06-30  Wilco Dijkstra  <wdijkstr@arm.com>
9699         * config/aarch64/aarch64.c (cortexa35_tunings):
9700         Enable AES fusion.  Use cortexa57_branch_cost.
9701         (cortexa53_tunings): Use cortexa57_branch_cost.
9702         (cortexa72_tunings): Use cortexa57_branch_cost.
9703         Use AUTOPREFETCHER_WEAK.
9704         (cortexa73_tunings): Use cortexa57_branch_cost.
9706 2016-06-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9707             James Greenhalgh  <james.greenhalgh@arm.com>
9709         * config/aarch64/arm_neon.h (vcopyq_lane_f32, vcopyq_lane_f64,
9710         vcopyq_lane_p8, vcopyq_lane_p16, vcopyq_lane_s8, vcopyq_lane_s16,
9711         vcopyq_lane_s32, vcopyq_lane_s64, vcopyq_lane_u8, vcopyq_lane_u16,
9712         vcopyq_lane_u32, vcopyq_lane_u64): Reimplement in C.
9713         (vcopy_lane_f32, vcopy_lane_f64, vcopy_lane_p8, vcopy_lane_p16,
9714         vcopy_lane_s8, vcopy_lane_s16, vcopy_lane_s32, vcopy_lane_s64,
9715         vcopy_lane_u8, vcopy_lane_u16, vcopy_lane_u32, vcopy_lane_u64,
9716         vcopy_laneq_f32, vcopy_laneq_f64, vcopy_laneq_p8, vcopy_laneq_p16,
9717         vcopy_laneq_s8, vcopy_laneq_s16, vcopy_laneq_s32, vcopy_laneq_s64,
9718         vcopy_laneq_u8, vcopy_laneq_u16, vcopy_laneq_u32, vcopy_laneq_u64,
9719         vcopyq_laneq_f32, vcopyq_laneq_f64, vcopyq_laneq_p8, vcopyq_laneq_p16,
9720         vcopyq_laneq_s8, vcopyq_laneq_s16, vcopyq_laneq_s32, vcopyq_laneq_s64,
9721         vcopyq_laneq_u8, vcopyq_laneq_u16, vcopyq_laneq_u32, vcopyq_laneq_u64):
9722         New intrinsics.
9724 2016-06-30  James Greenhalgh  <james.greenhalgh@arm.com>
9725             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9727         * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
9728         New define_insn.
9729         (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Likewise.
9731 2016-06-30  David Malcolm  <dmalcolm@redhat.com>
9733         PR driver/71651
9734         * gcc.c (driver::build_option_suggestions): Pass "option" to
9735         add_misspelling_candidates.
9736         * opts-common.c (add_misspelling_candidates): Add "option" param;
9737         use it to avoid adding negated forms for options marked with
9738         RejectNegative.
9739         * opts.h (add_misspelling_candidates): Add "option" param.
9741 2016-06-30  Jakub Jelinek  <jakub@redhat.com>
9743         PR middle-end/71693
9744         * fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
9745         TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
9746         first when permuting bitwise operation with rotate.  Cast
9747         TREE_OPERAND (arg0, 0) to type when cancelling two rotations.
9749 2016-06-29  David Malcolm  <dmalcolm@redhat.com>
9751         * opts.c (handle_param): Use find_param_fuzzy to offer suggestions
9752         for misspelled param names.
9753         * params.c: Include spellcheck.h.
9754         (find_param_fuzzy): New function.
9755         * params.h (find_param_fuzzy): New prototype.
9756         * spellcheck.c (struct edit_distance_traits<const char *>): Move to...
9757         * spellcheck.h (struct edit_distance_traits<const char *>):
9758         ...here.
9760 2016-06-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
9762         * config/rs6000/predicates.md (const_0_to_7_operand): New
9763         predicate, recognize 0..7.
9764         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
9765         support for doing extracts from V16QImode, V8HImode, V4SImode
9766         under ISA 3.0.
9767         * config/rs6000/vsx.md (VSX_EXTRACT_I): Mode iterator for ISA 3.0
9768         vector extract support.
9769         (VSX_EXTRACT_PREDICATE): Mode attribute to validate element number
9770         for ISA 3.0 vector extract.
9771         (VSX_EX): Constraints to use for ISA 3.0 vector extract.
9772         (vsx_extract_<mode>, VSX_EXTRACT_I): Add support for doing
9773         extracts of a constant element number from small integer vectors
9774         on 64-bit ISA 3.0 systems.
9775         (vsx_extract_<mode>_di): Likewise.
9776         * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): New target macro to
9777         say when we can do ISA 3.0 vector extracts.
9778         * config/rs6000/rs6000.md (stfiwx): Allow DImode in Altivec
9779         registers, using the stxsiwx instruction.
9781 2016-06-29  Jim Wilson  <jim.wilson@linaro.org>
9783         * config/aarch64/aarch64-cores.def (qdf24xx): Use qdf24xx tuning.
9784         * config/aarch64/aarch64.c (qdf24xx_addrcost_table,
9785         qdf24xx_regmove_cost, qdf24xx_tunings): New.
9786         * config/arm/aarch64-cost-tables.h (qdf24xx_extra_costs): New.
9787         * config/arm/arm-cores.def (qdf24xx): Use qdf24xx tuning.
9788         * config/arm/arm.c (arm_qdf24xx_tune): New.
9790 2016-06-29  Wilco Dijkstra  <wdijkstr@arm.com>
9792         * config/aarch64/aarch64.c (cortexa53_tunings):
9793         Increase loop alignment to 8.  Set function alignment to 16.
9794         (cortexa35_tunings): Likewise.
9795         (cortexa57_tunings): Increase loop alignment to 8.
9796         (cortexa72_tunings): Likewise.
9797         (cortexa73_tunings): Likewise.
9799 2016-06-29  Matthew Wahab  <matthew.wahab@arm.com>
9801         * doc/sourcebuild.texi (Effective-Target keywords): Add entries
9802         for arm_fp16_ok and arm_fp16_hw.
9803         (Add Options): Add entries for arm_fp16, arm_fp16_ieee and
9804         arm_fp16_alternative.
9806 2016-06-29  Ilya Enkovich  <ilya.enkovich@intel.com>
9808         PR tree-optimization/71655
9809         * tree-vect-stmts.c (vectorizable_comparison): Swap definition
9810         types when swapping operands.
9812 2016-06-29  Martin Liska  <mliska@suse.cz>
9814         PR middle-end/71585
9815         * common.opt (flag_stack_protect): Mark the flag as optimization flag.
9816         * ipa-inline-transform.c (inline_call): Remove unnecessary call
9817         of build_optimization_node.
9819 2016-06-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
9821         PR tree-optimization/70729
9822         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Consider memory reference as
9823         independent in loops having positive safelen value.
9824         * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
9825         it may be not valid after vectorization.
9827 2016-06-29  Jakub Jelinek  <jakub@redhat.com>
9829         PR tree-optimization/71625
9830         * tree-ssa-strlen.c (get_addr_stridx): Add PTR argument.  Assume list
9831         is sorted by ascending list->offset.  If PTR is non-NULL and there is
9832         previous strinfo, call get_stridx_plus_constant.
9833         (get_stridx): Pass exp as second argument to get_addr_stridx.
9834         (addr_stridxptr): Add missing list = list->next, so that there can be
9835         more than one entries in the list.  Bump limit from 16 to 32.  Ensure
9836         the list is sorted by ascending list->offset.
9837         (get_stridx_plus_constant): Adjust so that it can be also called with
9838         ADDR_EXPR instead of SSA_NAME as PTR.
9839         (handle_char_store): Pass NULL_TREE as second argument to
9840         get_addr_stridx.
9842 2016-06-29  Richard Biener  <rguenther@suse.de>
9844         PR rtl-optimization/68961
9845         * simplify-rtx.c (simplify_subreg): Handle VEC_CONCAT like CONCAT.
9847 2016-06-29  Richard Biener  <rguenther@suse.de>
9849         PR middle-end/71002
9850         * alias.c (component_uses_parent_alias_set_from): Handle
9851         type punning through union accesses by using the union alias set.
9852         * gimple.c (gimple_get_alias_set): Remove union type punning case.
9854 2016-07-29  Richard Biener  <rguenther@suse.de>
9856         * match.pd ((T)(T2)x -> (T)x): Remove restriction on final
9857         precision not matching mode precision.
9859 2016-06-28  John David Anglin  <danglin@gcc.gnu.org>
9861         * config/pa/pa.md (call_symref_64bit_post_reload): Don't call
9862         pa_output_arg_descriptor.
9863         (call_val_symref_64bit_post_reload): Likewise.
9864         (call_val_powf_64bit_post_reload): Likewise.
9865         (sibcall_internal_symref_64bit): Likewise.
9866         (sibcall_value_internal_symref_64bit): Likewise.
9868 2016-06-28  Jakub Jelinek  <jakub@redhat.com>
9870         PR middle-end/71626
9871         * config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
9872         a constant, force its SUBREG_REG into memory or register instead
9873         of whole op1.
9875 2016-06-28  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
9877         PR target/58655
9878         * config/avr/avr.opt (-mfract-convert-truncate): Update description.
9879         * doc/invoke.texi (AVR Options): Document it.
9881 2016-06-28  Walter Lee  <walt@tilera.com>
9883         * config/tilegx/linux.h: Do not include arch/icache.h
9884         (CLEAR_INSN_CACHE): Provide inlined definition directly.
9885         * config/tilepro/linux.h: Do not include arch/icache.h
9886         (CLEAR_INSN_CACHE): Provide inlined definition directly.
9888 2016-06-28  Wilco Dijkstra  <wdijkstr@arm.com>
9890         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adjust bitnumbering
9891         for big-endian BIT_FIELD_REF.
9893 2016-06-28  Pat Haugen  <pthaugen@us.ibm.com>
9895         * config/rs6000/rs6000.md ('type' attribute): Add htmsimple/dfp types.
9896         ('size' attribute): Add '128'.
9897         Include power9.md.
9898         (*mov<mode>_hardfloat32, *mov<mode>_hardfloat64, *movdi_internal32,
9899         *movdi_internal64, *movdf_update1): Set size attribute to '64'.
9900         (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3, sqrt<mode>2,
9901         copysign<mode>3, neg<mode>2_hw, abs<mode>2_hw, *nabs<mode>2_hw,
9902         *fma<mode>4_hw, *fms<mode>4_hw, *nfma<mode>4_hw, *nfms<mode>4_hw,
9903         extend<SFDF:mode><IEEE128:mode>2_hw, trunc<mode>df2_hw,
9904         *xscvqp<su>wz_<mode>, *xscvqp<su>dz_<mode>, *xscv<su>dqp_<mode>,
9905         *trunc<mode>df2_odd): Set size attribute to '128'.
9906         (*cmp<mode>_hw): Change type to veccmp and set size attribute to '128'.
9907         * config/rs6000/power6.md (power6-fp): Include dfp type.
9908         * config/rs6000/power7.md (power7-fp): Likewise.
9909         * config/rs6000/power8.md (power8-fp): Likewise.
9910         * config/rs6000/power9.md: New file.
9911         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power9.md.
9912         * config/rs6000/htm.md (*tabort, *tabort<wd>c, *tabort<wd>ci,
9913         *trechkpt, *treclaim, *tsr, *ttest): Change type attribute to
9914         htmsimple.
9915         * config/rs6000/dfp.md (extendsddd2, truncddsd2, extendddtd2,
9916         trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
9917         divtd3, *cmpdd_internal1, *cmptd_internal1, floatdidd2, floatditd2,
9918         ftruncdd2, fixdddi2, ftrunctd2, fixtddi2, dfp_ddedpd_<mode>,
9919         dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>, dfp_dscli_<mode>,
9920         dfp_dscri_<mode>): Change type attribute to dfp.
9921         * config/rs6000/crypto.md (crypto_vshasigma<CR_char>): Change type
9922         attribute to vecsimple.
9923         * config/rs6000/rs6000.c (power9_cost): Update costs, cache size
9924         and prefetch streams.
9925         (rs6000_option_override_internal): Remove temporary code setting
9926         tuning to power8.  Don't set rs6000_sched_groups for power9.
9927         (last_scheduled_insn): Change to rtx_insn *.
9928         (divide_cnt, vec_load_pendulum): New variables.
9929         (rs6000_adjust_cost): Add Power9 to test for store->load separation.
9930         (rs6000_issue_rate): Set issue rate for Power9.
9931         (is_power9_pairable_vec_type): New.
9932         (power9_sched_reorder2): New.
9933         (rs6000_sched_reorder2): Call new function for Power9 specific
9934         reordering.
9935         (insn_must_be_first_in_group): Remove Power9.
9936         (insn_must_be_last_in_group): Likewise.
9937         (force_new_group): Likewise.
9938         (rs6000_sched_init): Fix initialization of last_scheduled_insn.
9939         Initialize divide_cnt/vec_load_pendulum.
9940         (_rs6000_sched_context, rs6000_init_sched_context,
9941         rs6000_set_sched_context): Handle context save/restore of new
9942         variables.
9944 2016-06-28  Richard Biener  <rguenther@suse.de>
9946         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
9947         Properly handle DECL_BIT_FIELD_REPRESENTATIVE occuring as
9948         COMPONENT_REF operand.
9949         (nonoverlapping_component_refs_p): Likewise.
9950         * stor-layout.c (start_bitfield_representative): Mark
9951         DECL_BIT_FIELD_REPRESENTATIVE as DECL_NONADDRESSABLE_P.
9953 2016-06-28  Jakub Jelinek  <jakub@redhat.com>
9955         * Makefile.in: Don't cat ../stage_current if it does not exist.
9957         * doc/extend.texi (__builtin_add_overflow_p): Clarify behavior when
9958         last argument is a bit-field.
9960         PR rtl-optimization/71673
9961         * internal-fn.c (expand_arith_overflow_result_store): Use
9962         OPTAB_LIB_WIDEN instead of OPTAB_DIRECT as last argument to
9963         expand_simple_binop.
9965         PR middle-end/66867
9966         * builtins.c (expand_ifn_atomic_compare_exchange_into_call,
9967         expand_ifn_atomic_compare_exchange): New functions.
9968         * internal-fn.c (expand_ATOMIC_COMPARE_EXCHANGE): New function.
9969         * tree.h (build_call_expr_internal_loc): Rename to ...
9970         (build_call_expr_internal_loc_array): ... this.  Fix up type of
9971         last argument.
9972         * internal-fn.def (ATOMIC_COMPARE_EXCHANGE): New internal fn.
9973         * predict.c (expr_expected_value_1): Handle IMAGPART_EXPR of
9974         ATOMIC_COMPARE_EXCHANGE result.
9975         * builtins.h (expand_ifn_atomic_compare_exchange): New prototype.
9976         * gimple-fold.h (optimize_atomic_compare_exchange_p,
9977         fold_builtin_atomic_compare_exchange): New prototypes.
9978         * gimple-fold.c (optimize_atomic_compare_exchange_p,
9979         fold_builtin_atomic_compare_exchange): New functions..
9980         * tree-ssa.c (execute_update_addresses_taken): If
9981         optimize_atomic_compare_exchange_p, ignore &var in 2nd argument
9982         of call when finding addressable vars, and if such var becomes
9983         non-addressable, call fold_builtin_atomic_compare_exchange.
9985 2016-06-27  Segher Boessenkool  <segher@kernel.crashing.org>
9987         PR target/71670
9988         * config/rs6000/rs6000.md (ashdi3_extswsli_dot): Use
9989         gen_ashdi3_extswsli_dot2 instead of gen_ashdi3_extswsli_dot.
9991 2016-06-27  Pat Haugen  <pthaugen@us.ibm.com>
9993         * config/rs6000/rs6000.md ('type' attribute): Add
9994         veclogical,veccmpfx,vecexts,vecmove insn types.
9995         (*abs<mode>2_fpr, *nabs<mode>2_fpr, *neg<mode>2_fpr, *extendsfdf2_fpr,
9996         copysign<mode>3_fcpsgn, trunc<mode>df2_internal1, neg<mode>2_internal,
9997         p8_fmrgow_<mode>, pack<mode>): Change type to fpsimple.
9998         (*xxsel<mode>, copysign<mode>3_hard, neg<mode>2_hw, abs<mode>2_hw,
9999         *nabs<mode>2_hw): Change type to vecmove.
10000         (*and<mode>3_internal, *bool<mode>3_internal, *boolc<mode>3_internal,
10001         *boolcc<mode>3_internal, *eqv<mode>3_internal,
10002         *one_cmpl<mode>3_internal, *ieee_128bit_vsx_neg<mode>2_internal,
10003         *ieee_128bit_vsx_abs<mode>2_internal,
10004         *ieee_128bit_vsx_nabs<mode>2_internal, extendkftf2, trunctfkf2,
10005         *ieee128_mfvsrd_64bit, *ieee128_mfvsrd_32bit, *ieee128_mtvsrd_64bit,
10006         *ieee128_mtvsrd_32bit): Change type to veclogical.
10007         (mov<mode>_hardfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
10008         *movdi_internal32, *movdi_internal64): Update insn types.
10009         * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
10010         vsx_extract_<mode>): Change type to veclogical.
10011         (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns): Change type to vecmove.
10012         (vsx_sign_extend_qi_<mode>, *vsx_sign_extend_hi_<mode>,
10013         *vsx_sign_extend_si_v2di): Change type to vecexts.
10014         * config/rs6000/altivec.md (*altivec_mov<mode>, *altivec_movti): Change
10015         type to veclogical.
10016         (*altivec_eq<mode>, *altivec_gt<mode>, *altivec_gtu<mode>,
10017         *altivec_vcmpequ<VI_char>_p, *altivec_vcmpgts<VI_char>_p,
10018         *altivec_vcmpgtu<VI_char>_p): Change type to veccmpfx.
10019         (*altivec_vsel<mode>, *altivec_vsel<mode>_uns): Change type to vecmove.
10020         * config/rs6000/dfp.md (*negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
10021         negtd2, *abstd2_fpr, *nabstd2_fpr): Change type to fpsimple.
10022         * config/rs6000/40x.md (ppc405-float): Add fpsimple.
10023         * config/rs6000/440.md (ppc440-fp): Add fpsimple.
10024         * config/rs6000/476.md (ppc476-fp): Add fpsimple.
10025         * config/rs6000/601.md (ppc601-fp): Add fpsimple.
10026         * config/rs6000/603.md (ppc603-fp): Add fpsimple.
10027         * config/rs6000/6xx.md (ppc604-fp): Add fpsimple.
10028         * config/rs6000/7xx.md (ppc750-fp): Add fpsimple.
10029         (ppc7400-vecsimple): Add veclogical, vecmove, veccmpfx.
10030         * config/rs6000/7450.md (ppc7450-fp): Add fpsimple.
10031         (ppc7450-vecsimple): Add veclogical, vecmove.
10032         (ppc7450-veccmp): Add veccmpfx.
10033         * config/rs6000/8540.md (ppc8540_simple_vector): Add veclogical,
10034         vecmove.
10035         (ppc8540_vector_compare): Add veccmpfx.
10036         * config/rs6000/a2.md (ppca2-fp): Add fpsimple.
10037         * config/rs6000/cell.md (cell-fp): Add fpsimple.
10038         (cell-vecsimple): Add veclogical, vecmove.
10039         (cell-veccmp): Add veccmpfx.
10040         * config/rs6000/e300c2c3.md (ppce300c3_fp): Add fpsimple.
10041         * config/rs6000/e6500.md (e6500_vecsimple): Add veclogical, vecmove,
10042         veccmpfx.
10043         * config/rs6000/mpc.md (mpccore-fp): Add fpsimple.
10044         * config/rs6000/power4.md (power4-fp): Add fpsimple.
10045         (power4-vecsimple): Add veclogical, vecmove.
10046         (power4-veccmp): Add veccmpfx.
10047         * config/rs6000/power5.md (power5-fp): Add fpsimple.
10048         * config/rs6000/power6.md (power6-fp): Add fpsimple.
10049         (power6-vecsimple): Add veclogical, vecmove.
10050         (power6-veccmp): Add veccmpfx.
10051         * config/rs6000/power7.md (power7-fp): Add fpsimple.
10052         (power7-vecsimple): Add veclogical, vecmove, veccmpfx.
10053         * config/rs6000/power8.md (power8-fp): Add fpsimple.
10054         (power8-vecsimple): Add veclogical, vecmove, veccmpfx.
10055         * config/rs6000/rs64.md (rs64a-fp): Add fpsimple.
10056         * config/rs6000/titan.md (titan_fp): Add fpsimple.
10057         * config/rs6000/xfpu.md (fp-default, fp-addsub-s, fp-addsub-d): Add
10058         fpsimple.
10059         * config/rs6000/rs6000.c (rs6000_adjust_cost): Add TYPE_FPSIMPLE.
10061 2016-06-27  Peter Bergner  <bergner@vnet.ibm.com>
10063         PR target/71656
10064         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
10065         OPTION_MASK_P9_DFORM_VECTOR.
10066         * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
10067         disable -mpower9-dform-vector when using reload.
10068         (quad_address_p): Remove 'gpr_p' argument and all associated code.
10069         New 'strict' argument.  Update all callers.  Add strict addressing
10070         support.
10071         (rs6000_legitimate_offset_address_p): Remove call to
10072         virtual_stack_registers_memory_p.
10073         (rs6000_legitimize_reload_address): Add quad address support.
10074         (rs6000_legitimate_address_p): Move call to quad_address_p above
10075         call to virtual_stack_registers_memory_p.  Adjust quad_address_p args
10076         to account for new strict usage.
10077         (rs6000_output_move_128bit): Adjust quad_address_p args to account
10078         for new strict usage.
10079         * config/rs6000/predicates.md (quad_memory_operand): Likewise.
10081 2016-06-26  Uros Bizjak  <ubizjak@gmail.com>
10083         PR target/70902
10084         PR target/71453
10085         PR target/71555
10086         PR target/71596
10087         PR target/71657
10088         * config/i386/i386.c (ix86_spill_class): Disable condition to
10089         always return NO_REGS.
10091 2016-06-26  Jan Hubicka  <hubicka@ucw.cz>
10093         * predict.c: Include gimple-pretty-print.h
10094         (predicted_by_loop_heuristics_p): Check also
10095         PRED_LOOP_EXIT_WITH_RECURSION
10096         (predict_loops): Find self recursive calls and use special purpose
10097         predictors for them; dump log about decisions.
10098         (pass_profile::execute): Dump info about #of iterations.
10099         * predict.def (PRED_LOOP_EXIT_WITH_RECURSION,
10100         (PRED_LOOP_GUARD_WITH_RECURSION): New predictors.
10102 2016-06-26  John David Anglin  <danglin@gcc.gnu.org>
10104         * config/pa/pa.c (pa_output_indirect_call): Rework to combine
10105         output_asm_insn calls and shorten long lines.  Output .CALL
10106         argument descriptor using pa_output_arg_descriptor.  Add various
10107         inline $$dyncall and other optimizations.
10108         (pa_attr_length_indirect_call): Adjust ordering and lengths.
10110 2016-06-25  Jakub Jelinek  <jakub@redhat.com>
10112         PR tree-optimization/71643
10113         * tree-ssa-tail-merge.c (find_clusters_1): Ignore basic blocks with
10114         EH preds.
10116         * tree-ssa-tail-merge.c (deps_ok_for_redirect_from_bb_to_bb): Don't
10117         leak a bitmap if dep_bb is NULL.
10119         PR tree-optimization/71631
10120         * tree-ssa-reassoc.c (reassociate_bb): Pass true as last argument
10121         to rewrite_expr_tree even if negate_result, move new_lhs var
10122         declaration and initialization earlier, for powi_result set afterwards
10123         new_lhs to lhs.  For negate_result, use new_lhs instead of tmp
10124         if new_lhs != lhs, and don't shadow gsi var.
10126 2016-06-24  Jan Hubicka  <hubicka@ucw.cz>
10128         * predict.c (predict_paths_leading_to, predict_paths_leading_to_edge):
10129         Add in_loop parameter.
10130         (predict_loops): Add loop guard heuristics.
10131         * predict.def (PRED_LOOP_GUARD): New heuristics.
10133 2016-06-24  Jan Hubicka  <hubicka@ucw.cz>
10135         * predict.c: Include ipa-utils.h
10136         (tree_bb_level_prediction): Predict recursive calls.
10137         (tree_estimate_probability_bb): Skip inexpensive calls for call
10138         predictor.
10139         * predict.def (PRED_RECURSIVE_CALL): New.
10141 2016-06-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10143         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
10144         (BU_FLOAT128_1): Likewise.
10145         (FABSQ): Likewise.
10146         (COPYSIGNQ): Likewise.
10147         (RS6000_BUILTIN_NANQ): Likewise.
10148         (RS6000_BUILTIN_NANSQ): Likewise.
10149         (RS6000_BUILTIN_INFQ): Likewise.
10150         (RS6000_BUILTIN_HUGE_VALQ): Likewise.
10151         * config/rs6000/rs6000.c (rs6000_fold_builtin): New prototype.
10152         (TARGET_FOLD_BUILTIN): New #define.
10153         (rs6000_builtin_mask_calculate): Add TARGET_FLOAT128 entry.
10154         (rs6000_invalid_builtin): Add handling for RS6000_BTM_FLOAT128.
10155         (rs6000_fold_builtin): New target hook implementation, handling
10156         folding of 128-bit NaNs and infinities.
10157         (rs6000_init_builtins): Initialize const_str_type_node; ensure all
10158         entries are filled in to avoid problems during bootstrap
10159         self-test; define builtins for 128-bit NaNs and infinities.
10160         (rs6000_opt_mask): Add entry for float128.
10161         * config/rs6000/rs6000.h (RS6000_BTM_FLOAT128): New #define.
10162         (RS6000_BTM_COMMON): Include RS6000_BTM_FLOAT128.
10163         (rs6000_builtin_type_index): Add RS6000_BTI_const_str.
10164         (const_str_type_node): New #define.
10165         * config/rs6000/rs6000.md (copysign<mode>3 for IEEE128): Convert
10166         to a define_expand that dispatches to either copysign<mode>3_soft
10167         or copysign<mode>3_hard.
10168         (copysign<mode>3_hard): Rename from copysign<mode>3.
10169         (copysign<mode>3_soft): New define_insn.
10170         * doc/extend.texi: Document new builtins.
10172 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
10174         * cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using
10175         PRIu64 instead of lu.
10177 2016-06-24  Eric Botcazou  <ebotcazou@adacore.com>
10179         PR debug/71642
10180         * tree-inline.c (remap_decl): When fixing up DECL_ORIGINAL_TYPE, just
10181         copy the type name.
10183 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
10185         PR tree-optimization/71647
10186         * omp-low.c (lower_rec_input_clauses): Convert
10187         omp_clause_aligned_alignment (c) to size_type_node for the
10188         last argument of __builtin_assume_aligned.
10190 2016-06-24  H.J. Lu  <hongjiu.lu@intel.com>
10192         * configure.ac (calling ___tls_get_addr via GOT): New
10193         assembler/linker check.
10194         (HAVE_AS_IX86_TLS_GET_ADDR_GOT): New.  Defined to 1 if 32-bit
10195         assembler and linker supports calling ___tls_get_addr via GOT.
10196         Otherise, defined to 0.
10197         * config.in: Regenerated.
10198         * configure: Likewise.
10199         * config/i386/constraints.md (Yb): New constraint.
10200         * config/i386/i386.h (reg_class): Add TLS_GOTBASE_REGS.
10201         (REG_CLASS_NAMES): Likewise.
10202         (REG_CLASS_CONTENTS): Likewise.
10203         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Replace
10204         the b constraint with the Yb constraint.  Call ___tls_get_addr
10205         via GOT for GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT
10206         is 1.
10207         (*tls_local_dynamic_base_32_gnu): Likewise.
10208         (*tls_global_dynamic_64_<mode>): Call _tls_get_addr via GOT for
10209         GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT is 1.
10210         (*tls_local_dynamic_base_64_<mode>): Likewise.
10212 2016-06-24  Martin Liska  <mliska@suse.cz>
10214         * cfgloop.c (flow_loop_dump): Dump average number of loop iterations.
10215         * cfgloop.h: Change 'struct loop' to 'const struct loop' for a
10216         few functions.
10217         * cfgloopanal.c (expected_loop_iterations_unbounded): Set a new
10218         argument to true if the expected number of iterations is
10219         loop-based.
10221 2016-06-24  Uros Bizjak  <ubizjak@gmail.com>
10223         * configure.ac (HAVE_AS_GOTOF_IN_DATA): Use $as_ix86_gas_32_opt to
10224         assemble for 32bit target.
10225         (HAVE_AS_IX86_TLSGDPLT): Use $as_ix86_gas_32_opt to assemble
10226         and $ld_ix86_gld_32_opt to link for 32bit target.
10227         (HAVE_AS_IX86_TLSLDMPLT): Ditto.
10228         * configure: Regenerate.
10230 2016-06-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10232         * config/arm/arm.c (int_log2): Delete definition and prototype.
10233         (shift_op): Use exact_log2 instead of int_log2.
10234         (vfp3_const_double_for_fract_bits): Likewise.
10236 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
10238         * internal-fn.c (expand_arith_set_overflow): New function.
10239         (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
10240         Use it.
10241         (expand_arith_overflow_result_store): Likewise.  Handle precision
10242         smaller than mode precision.
10243         * tree-vrp.c (extract_range_basic): For imag part, handle
10244         properly signed 1-bit precision result.
10245         * doc/extend.texi (__builtin_add_overflow): Document that last
10246         argument can't be pointer to enumerated or boolean type.
10247         (__builtin_add_overflow_p): Document that last argument can't
10248         have enumerated or boolean type.
10250 2016-06-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
10251             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10253         * config/rs6000/predicates.md (splat_input_operand): Rework.
10254         Don't allow constants, since the insns that use this predicate
10255         don't support constants.  Constants are handled by other insns
10256         that are created via combine.  During and after register
10257         allocation, only allow indexed or indirect addresses, and not
10258         general addresses.  Only allow modes supported by the hardware.
10259         * config/rs6000/rs6000.c (xxsplitb_constant_p): Update usage
10260         comment.  Move check for using VSPLTIS<x> to a common location,
10261         instead of doing it in two different places.
10263 2016-06-23  Jocelyn Mayer  <l_indien@magic.fr>
10265         * config/i386/driver-i386.c (host_detect_local_cpu): Set
10266         PROCESSOR_PENTIUMPRO for signature_CENTAUR_ebx family >= 9.
10267         <case PROCESSOR_PENTIMUMPRO>: Pass c7 or nehemiah for
10268         signature_CENTAUR_ebx.
10270 2016-06-23  H.J. Lu  <hongjiu.lu@intel.com>
10272         PR target/66232
10273         PR target/67400
10274         * configure.ac (as_ix86_tls_ldm_opt): Renamed to ...
10275         (as_ix86_gas_32_opt): This.
10276         (ld_ix86_tls_ldm_opt): Renamed to ...
10277         (ld_ix86_gld_32_opt): This.
10278         (R_386_TLS_LDM reloc): Updated.
10279         (R_386_GOT32X reloc): New assembler/linker check.
10280         (HAVE_AS_IX86_GOT32X): New.  Defined to 1 if 32-bit assembler and
10281         linker support "jmp *_start@GOT" and "cmpl $0, bar@GOT".  Otherise,
10282         defined to 0.
10283         * config.in: Regenerated.
10284         * configure: Likewise.
10285         * config/i386/i386.c (ix86_force_load_from_GOT_p): Return
10286         true if HAVE_AS_IX86_GOT32X is 1 in 32-bit mode.
10287         (ix86_legitimate_address_p): Allow UNSPEC_GOT for -fno-plt
10288         if ix86_force_load_from_GOT_p returns true.
10289         (ix86_print_operand_address_as): Also support UNSPEC_GOT if
10290         ix86_force_load_from_GOT_p returns true.
10291         (ix86_expand_move): Generate UNSPEC_GOT in 32-bit mode to load
10292         the external function address via the GOT slot.
10293         (ix86_nopic_noplt_attribute_p): Check both TARGET_64BIT and
10294         HAVE_AS_IX86_GOT32X before returning false.
10295         (ix86_output_call_insn): Generate "%!jmp/call\t*%p0@GOT" in
10296         32-bit mode if ix86_nopic_noplt_attribute_p returns true.
10298 2016-06-23  Eric Botcazou  <ebotcazou@adacore.com>
10300         * tree-inline.c (remap_decl): Preserve DECL_ORIGINAL_TYPE invariant.
10302 2016-06-23  Andi Kleen  <ak@linux.intel.com>
10304         * Makefile.in: Regenerate.
10305         * doc/install.texi: Document autoprofiledbootstrap.
10307 2016-06-23  Andi Kleen  <ak@linux.intel.com>
10309         * config/i386/gcc-auto-profile: New file.
10311 2016-06-23  Martin Liska  <mliska@suse.cz>
10313         PR middle-end/71619
10314         * predict.c (predict_loops): Revert the hunk that was removed
10315         in r237103.
10317 2016-06-23  Jakub Sejdak  <jakub.sejdak@phoesys.com>
10319         * config.gcc: Add support for arm*-*-phoenix* targets.
10320         * config/arm/t-phoenix: New.
10321         * config/phoenix.h: New.
10323 2016-06-23  Uros Bizjak  <ubizjak@gmail.com>
10324             H.J. Lu  <hongjiu.lu@intel.com>
10326         PR target/67400
10327         * config/i386/i386-protos.h (ix86_force_load_from_GOT_p): New.
10328         * config/i386/i386.c (ix86_force_load_from_GOT_p): New function.
10329         (ix86_legitimate_constant_p): Do not allow UNSPEC_GOTPCREL if
10330         ix86_force_load_from_GOT_p returns true.
10331         (ix86_legitimate_address_p): Allow UNSPEC_GOTPCREL if
10332         ix86_force_load_from_GOT_p returns true.
10333         (ix86_print_operand_address_as): Support UNSPEC_GOTPCREL if
10334         ix86_force_load_from_GOT_p returns true.
10335         (ix86_expand_move): Load the external function address via the
10336         GOT slot if ix86_force_load_from_GOT_p returns true.
10337         * config/i386/predicates.md (x86_64_immediate_operand): Return
10338         false for SYMBOL_REFs where ix86_force_load_from_GOT_p returns true.
10339         (x86_64_zext_immediate_operand): Ditto.
10341 2016-06-22  Uros Bizjak  <ubizjak@gmail.com>
10343         * config/i386/i386.c (ix86_expand_move): Simplify SYMBOL_REF handling.
10345 2016-06-22  David Malcolm  <dmalcolm@redhat.com>
10347         PR c/70339
10348         * diagnostic-core.h (pedwarn_at_rich_loc): New prototype.
10349         * diagnostic.c (pedwarn_at_rich_loc): New function.
10350         * spellcheck.h (best_match::best_match): Add a
10351         "best_distance_so_far" optional parameter.
10352         (best_match::set_best_so_far): New method.
10353         (best_match::get_best_distance): New accessor.
10354         (best_match::get_best_candidate_length): New accessor.
10356 2016-06-22  Nick Clifton  <nickc@redhat.com>
10358         * dwarf2out.c (scompare_loc_descriptor): Use SCALAR_INT_MODE_P() in
10359         place of GET_MODE_CLASS() == MODE_INT, so that partial integer
10360         modes are accepted as well.
10361         (ucompare_loc_descriptor): Likewise.
10362         (minmax_loc_descriptor): Likewise.
10363         (clz_loc_descriptor): Likewise.
10364         (popcount_loc_descriptor): Likewise.
10365         (bswap_loc_descriptor): Likewise.
10366         (rotate_loc_descriptor): Likewise.
10367         (mem_loc_descriptor): Likewise.
10368         (loc_descriptor): Likewise.
10370 2016-06-22  David Malcolm  <dmalcolm@redhat.com>
10372         * common.opt (fdiagnostics-parseable-fixits): New option.
10373         * diagnostic.c: Include "selftest.h".
10374         (print_escaped_string): New function.
10375         (print_parseable_fixits): New function.
10376         (diagnostic_report_diagnostic): Call print_parseable_fixits.
10377         (selftest::assert_print_escaped_string): New function.
10378         (ASSERT_PRINT_ESCAPED_STRING_STREQ): New macro.
10379         (selftest::test_print_escaped_string): New function.
10380         (selftest::test_print_parseable_fixits_none): New function.
10381         (selftest::test_print_parseable_fixits_insert): New function.
10382         (selftest::test_print_parseable_fixits_remove): New function.
10383         (selftest::test_print_parseable_fixits_replace): New function.
10384         (selftest::diagnostic_c_tests): New function.
10385         * diagnostic.h (struct diagnostic_context): Add field
10386         "parseable_fixits_p".
10387         * doc/invoke.texi (Diagnostic Message Formatting Options): Add
10388         -fdiagnostics-parseable-fixits.
10389         (-fdiagnostics-parseable-fixits): New option.
10390         * opts.c (common_handle_option): Handle
10391         -fdiagnostics-parseable-fixits.
10392         * selftest-run-tests.c (selftest::run_tests): Call
10393         selftest::diagnostic_c_tests.
10394         * selftest.h (selftest::diagnostic_c_tests): New prototype.
10396 2016-06-22  Ilya Enkovich  <ilya.enkovich@intel.com>
10398         PR tree-optimization/71488
10399         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Support
10400         comparison of boolean vectors.
10401         * tree-vect-stmts.c (vectorizable_comparison): Vectorize comparison
10402         of boolean vectors using bitwise operations.
10404 2016-06-22  Andreas Schwab  <schwab@suse.de>
10406         * config/aarch64/aarch64-protos.h (aarch64_elf_asm_named_section):
10407         Remove declaration.
10409 2016-06-22  Eric Botcazou  <ebotcazou@adacore.com>
10411         * function.c (assign_parm_setup_reg): Prevent sharing in another case.
10413 2016-06-22  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10415         * config/i386/i386.c (print_reg): Emit an error message on attempt to
10416         print FLAGS_REG.
10418 2016-06-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10420         * config/arm/arm.c (arm_cortex_a73_tune): New struct.
10421         * config/arm/arm-cores.def (cortex-a73): New entry.
10422         (cortex-a73.cortex-a35): Likewise.
10423         (cortex-a73.cortex-a53): Likewise.
10424         * config/arm/arm-tables.opt: Regenerate.
10425         * config/arm/arm-tune.md: Likewise.
10426         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle mcpu=cortex-a73,
10427         mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
10428         * config/arm/t-aprofile: Handle mcpu=cortex-a73,
10429         mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
10430         * doc/invoke.texi (ARM Options): Document cortex-a73,
10431         cortex-a73.cortex-a35 and cortex-a73.cortex-a53.
10433 2016-06-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10435         * config/aarch64/aarch64.c (cortexa73_tunings): New struct.
10436         * config/aarch64/aarch64-cores.def (cortex-a73): New entry.
10437         (cortex-a73.cortex-a35): Likewise.
10438         (cortex-a73.cortex-a53): Likewise.
10439         * config/aarch64/aarch64-tune.md: Regenerate.
10440         * doc/invoke.texi (AArch64 Options): Document cortex-a73,
10441         cortex-a73.cortex-a35 and cortex-a73.cortex-a53 arguments to
10442         -mcpu and -mtune.
10444 2016-06-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10446         * configure.ac (gcc_cv_as_compress_debug): Remove
10447         --compress-debug-sections as extra as switch.
10448         Handle gas --compress-debug-sections=type.
10449         (gcc_cv_ld_compess_debug): Remove bogus ld_date check.
10450         Handle gld --compress-debug-sections=type.
10451         * configure: Regenerate.
10453 2016-06-21  Andrew Burgess  <andrew.burgess@embecosm.com>
10455         * bb-reorder.c (pass_partition_blocks::gate): Update comment.
10457 2016-06-21  John David Anglin  <danglin@gcc.gnu.org>
10459         * gcov-tool.c (profile_rewrite): Use int64_t instead of long long.
10460         (do_rewrite): likewise.
10462 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10464         * common/config/mep/mep-common.c: Remove.
10465         * config.gcc: Remove mep-* support.
10466         * config/mep/constraints.md: Remove.
10467         * config/mep/default.h: Remove.
10468         * config/mep/intrinsics.h: Remove.
10469         * config/mep/intrinsics.md: Remove.
10470         * config/mep/ivc2-template.h: Remove.
10471         * config/mep/mep-c5.cpu: Remove.
10472         * config/mep/mep-core.cpu: Remove.
10473         * config/mep/mep-default.cpu: Remove.
10474         * config/mep/mep-ext-cop.cpu: Remove.
10475         * config/mep/mep-intrin.h: Remove.
10476         * config/mep/mep-ivc2.cpu: Remove.
10477         * config/mep/mep-pragma.c: Remove.
10478         * config/mep/mep-protos.h: Remove.
10479         * config/mep/mep.c: Remove.
10480         * config/mep/mep.cpu: Remove.
10481         * config/mep/mep.h: Remove.
10482         * config/mep/mep.md: Remove.
10483         * config/mep/mep.opt: Remove.
10484         * config/mep/predicates.md: Remove.
10485         * config/mep/t-mep: Remove.
10486         * doc/install.texi: Remove mep-* documentation.
10487         * doc/md.texi: Likewise.
10489 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10491         * config.gcc: Remove support for avr-rtems.
10492         * config/avr/gen-avr-mmcu-specs.c: Likewise.
10493         * config/avr/rtems.h: Remove.
10494         * config/avr/t-rtems: Remove.
10496 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10498         * config.gcc: Remove m32r-rtems support.
10499         * config/m32r/rtems.h: Remove.
10501 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10503         * config.gcc: Remove h8300-rtems support.
10504         * config/h8300/rtems.h: Remove.
10505         * config/h8300/t-rtems: Remove.
10507 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10509         * config.gcc: Remove support for knetbsd.
10510         * configure.ac: Likewise.
10511         * config/i386/knetbsd-gnu.h: Remove.  * config/i386/knetbsd-gnu64.h: Remove.
10512         * config/knetbsd-gnu.h: Remove.
10513         * configure: Regenerate.
10515 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10517         * config.gcc: Remove support for openbsd 2 and 3.
10518         * config/openbsd-oldgas.h: Remove.
10520 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10522         * config.gcc: Remove interix support.
10523         * config/i386/i386-interix.h: Remove.
10524         * config/i386/interix.opt: Remove.
10525         * config/i386/t-interix: Remove.
10526         * configure: Regenerate.
10527         * configure.ac: Remove interix support.
10528         * doc/install.texi: Remove interix documentation.
10530 2016-06-21  Kelvin Nilsen  <kelvin@gcc.gnu.org>
10532         * config/rs6000/rs6000.h: Add conditional preprocessing directives
10533         to disable Power9-specific compiler features if HAVE_AS_POWER9 is
10534         not defined.
10536 2016-06-21  Eric Botcazou  <ebotcazou@adacore.com>
10538         * tree.c (verify_type_variant): Skip TYPE_SIZE and TYPE_SIZE_UNIT if
10539         they are both PLACEHOLDER_EXPRs.
10541 2016-06-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
10543         * stor-layout.c (layout_type): Move setting complex MODE to
10544         layout_type, instead of setting it ahead of time by the caller.
10545         * tree.c (build_complex_type): Likewise.
10547 2016-06-21  Martin Liska  <mliska@suse.cz>
10549         * predict.c (force_edge_cold): Replace imposisble with
10550         impossible.
10552 2016-06-21  Ilya Verbin  <ilya.verbin@intel.com>
10554         * config/i386/i386.c (ix86_emit_swsqrtsf): Emit vrsqrt28ps.
10555         * config/i386/sse.md (define_expand "rsqrtv16sf2"): New.
10557 2016-06-21  Ilya Verbin  <ilya.verbin@intel.com>
10559         * config/i386/i386.c (ix86_emit_swdivsf): Emit vrcp28ps.
10561 2016-06-21  H.J. Lu  <hongjiu.lu@intel.com>
10562             Ilya Enkovich  <ilya.enkovich@intel.com>
10564         PR target/71549
10565         * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
10566         New member function to convert V1TImode register to SUBREG
10567         TImode in debug insn.
10568         (timode_scalar_chain::convert_insn): Call fix_debug_reg_uses
10569         after changing register mode to V1TImode.
10571 2016-06-21  Virendra Pathak  <virendra.pathak@broadcom.com>
10573         * config/aarch64/aarch64-cores.def (vulcan): New core.
10574         * config/aarch64/aarch64-tune.md: Regenerate.
10575         * doc/invoke.texi: Document vulcan as an available option.
10577 2016-06-21  Eric Botcazou  <ebotcazou@adacore.com>
10579         * cse.c (canon_asm_operands): New function extracted from...
10580         (canonicalize_insn): ...here.  Call it to canonicalize an ASM_OPERANDS
10581         either standalone or member of a PARALLEL.
10583 2016-06-21  Georg-Johann Lay  <avr@gjlay.de>
10585         PR target/30417
10586         * config/avr/gen-avr-mmcu-specs.c (print_mcu):
10587         [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
10588         [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
10590 2016-06-21  Georg-Johann Lay  <avr@gjlay.de>
10592         PR target/71103
10593         * config/avr/avr.md (movqi): Only handle loading subreg:qi of
10594         constant addresses if can_create_pseudo_p.
10596 2016-06-21  Jakub Jelinek  <jakub@redhat.com>
10598         PR tree-optimization/71588
10599         * tree-ssa-strlen.c (valid_builtin_call): New function.
10600         (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
10601         it.
10603 2016-06-20  Jakub Jelinek  <jakub@redhat.com>
10605         PR middle-end/71581
10606         * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
10607         see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
10608         for conversion of scalar user var to complex type and use the
10609         underlying SSA_NAME_VAR in that case.  If EXPR is still NULL,
10610         punt.
10612         PR rtl-optimization/71591
10613         * toplev.c (toplev::run_self_tests): If no_backend, complain and
10614         don't run any tests.
10616 2016-06-20  Hans-Peter Nilsson  <hp@axis.com>
10618         PR target/71571
10619         * config/cris/cris.c (cris_asm_output_mi_thunk): Add missing "ba"
10620         delay-slot "nop" for PIC with CRIS v32.  Also add missing leading
10621         space for PIC with non-v32 and the common non-PIC "jump".
10623 2016-06-20  Jakub Jelinek  <jakub@redhat.com>
10625         PR target/71559
10626         * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
10627         returned values and add UN*/LTGT/*ORDERED cases with values matching
10628         D operand modifier on vcmp for AVX.
10630 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
10632         * config/aarch64/aarch64.opt
10633         (mpc-relative-literal-loads): Rename internal option name.
10634         * config/aarch64/aarch64.c
10635         (aarch64_nopcrelative_literal_loads): Rename to
10636         aarch64_pcrelative_literal_loads.
10637         (aarch64_expand_mov_immediate): Likewise.
10638         (aarch64_secondary_reload): Likewise.
10639         (aarch64_can_use_per_function_literal_pools_p): Likewise.
10640         (aarch64_override_options_after_change_1): Rename and simplify logic.
10641         (aarch64_classify_symbol): Merge large model checks into switch,
10642         remove pc-relative load check.
10644 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
10646         * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): Make FP
10647         costs relative to the cost of a register move.
10649 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
10651         * config/aarch64/arm_neon.h (vcvt_n_f64_s64): New.
10652         (vcvt_n_f64_u64): Likewise.
10653         (vcvt_n_s64_f64): Likewise.
10654         (vcvt_n_u64_f64): Likewise.
10655         (vcvt_f64_s64): Likewise.
10656         (vrecpe_f64): Likewise.
10657         (vcvt_f64_u64): Likewise.
10658         (vrecps_f64): Likewise.
10660 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
10662         * config/aarch64/aarch64.md
10663         (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3): Add attributes to
10664         iterators.
10665         (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>3): Likewise.  Correct
10666         attributes.
10667         * config/aarch64/aarch64-builtins.c
10668         (aarch64_types_binop_uss_qualifiers): Delete.
10669         (TYPES_BINOP_USS): Likewise.
10670         (aarch64_types_binop_sus_qualifiers): Likewise.
10671         (TYPES_BINOP_SUS): Likewise.
10672         (aarch64_types_fcvt_from_unsigned_qualifiers): New.
10673         (TYPES_FCVTIMM_SUS): Likewise.
10674         * config/aarch64/aarch64-simd-builtins.def (scvtf): Use SHIFTIMM
10675         rather than BINOP.
10676         (ucvtf): Use FCVTIMM_SUS rather than BINOP_SUS.
10677         (fcvtzs): Use SHIFTIMM rather than BINOP.
10678         (fcvtzu): Use SHIFTIMM_USS rather than BINOP_USS.
10680 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
10682         * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Make FP
10683         costs relative to the cost of a register move.
10685 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
10687         * config/aarch64/aarch64.c (aarch64_modes_tieable_p):
10688         Allow scalar/single vector modes to be tieable.
10690 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
10692         * config/arm/cortex-a57.md (cortex_a57_fp_cpys): Add fcsel.
10694 2016-06-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10696         * params.def (PARAM_ALIGN_LOOP_ITERATIONS): Use "alignment" instead of
10697         "alignement".
10698         * tree.h (TYPE_ALIGN): Likewise.
10700 2016-06-20  Georg-Johann Lay  <avr@gjlay.de>
10702         PR target/71103
10703         * config/avr/avr.md (movqi): Handle loading subreg:qi (const).
10705 2016-06-20  Georg-Johann Lay  <avr@gjlay.de>
10707         * config/avr/avr.c (avr_print_operand): Fix "format not a string
10708         literal" build warnings.
10709         (avr_print_operand_address): Dito.
10711 2016-06-19  David Edelsohn  <dje.gcc@gmail.com>
10713         PR target/71375
10714         * config/rs6000/aix51.h (TARGET_EXTRA_BUILTINS): Define as 0.
10715         * config/rs6000/aix43.h (TARGET_EXTRA_BUILTINS): Same.
10717 2016-06-18  John David Anglin  <danglin@gcc.gnu.org>
10719         * config/pa/pa.h (TARGET_LONG_PIC_PCREL_CALL): Remove.
10721 2016-06-18  Eric Botcazou  <ebotcazou@adacore.com>
10723         PR bootstrap/71435
10724         * reload1.c (reload): Pass 0 to finish_spills when called because
10725         update_eliminables_and_spill returns true and remove did_spill.
10726         (finish_spills): Adjust comment and document GLOBAL parameter.
10728 2016-06-17  DJ Delorie  <dj@redhat.com>
10730         PR target/71338
10731         * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
10732         * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
10733         (umulqihi3_virt): Likewise.
10734         * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
10735         (umulqihi3_real): Likewise.
10737 2016-06-17  Martin Liska  <mliska@suse.cz>
10739         * tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
10741 2016-06-17  Martin Liska  <mliska@suse.cz>
10743         * predict.def: PRED_LOOP_EXIT from 92 to 85.
10745 2016-06-17  James Greenhalgh  <james.greenhalgh@arm.com>
10747         * config/arm/arm_neon.h (vadd_f32): replace __FAST_MATH with
10748         __FAST_MATH__.
10749         (vaddq_f32): Likewise.
10750         (vmul_f32): Likewise.
10751         (vmulq_f32): Likewise.
10752         (vsub_f32): Likewise.
10753         (vsubq_f32): Likewise.
10755 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
10757         PR tree-optimization/71347
10758         * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compute
10759         cost for all uses in group.
10761 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
10763         * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
10764         insert gimple seq if it's not empty.
10766 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
10768         * tree-vectorizer.h (struct dr_with_seg_len): Remove class
10769         member OFFSET.
10770         * tree-vect-data-refs.c (operator ==): Handle DR_OFFSET directly,
10771         rather than OFFSET.
10772         (comp_dr_with_seg_len_pair): Ditto.
10773         (vect_prune_runtime_alias_test_list): Ditto.  Also Canonicalize
10774         struct dr_with_seg_len_pair against DR_OFFSET.
10775         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Handle
10776         DR_OFFSET directly.
10778 2016-06-17  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10780         * config/aarch64/geniterators.sh: Handle parenthesised conditions.
10782 2016-06-16  John David Anglin  <danglin@gcc.gnu.org>
10784         * config/pa/pa.c (pa_output_pic_pcrel_sequence): New.
10785         (pa_output_lbranch): Use pa_output_pic_pcrel_sequence.
10786         (pa_output_millicode_call): Likewise.
10787         (pa_output_call): Likewise.
10788         (pa_output_indirect_call): Likewise.
10789         (pa_asm_output_mi_thunk): Likewise.
10791 2016-06-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
10793         * doc/invoke.texi (x86 Options): Fix -mno-fp-ret-in-387 typo.
10795 2016-06-16  Martin Liska  <mliska@suse.cz>
10797         * predict.c (combine_predictions_for_insn): When we find a first
10798         match predictor, we should consider just predictors with
10799         PRED_FLAG_FIRST_MATCH.  Print either first match (if any) or
10800         DS theory predictor.
10801         (combine_predictions_for_bb): Likewise.
10803 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
10805         * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
10806         with base of reference to struct.
10808 2016-06-16  Uros Bizjak  <ubizjak@gmail.com>
10810         * doc/invoke.texi (x86 Options): Document -m80387 and -mhard-float.
10812 2016-06-16  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
10814         PR target/71151
10815         * config/avr/avr.c (avr_asm_init_sections): Remove setup of
10816         progmem_swtable_section.
10817         (progmem_swtable_section): Remove.
10818         (avr_asm_function_rodata_section): Remove.
10819         (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
10820         * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION: Define to 1.
10822 2016-06-16  Jocelyn Mayer  <l_indien@magic.fr>
10824         * config/i386/driver-i386.c (host_detect_local_cpu): Set
10825         PROCESSOR_K8 for signature_CENTAUR_ebx with has_longmode.
10826         <case PROCESSOR_K8>: Pass nano-3000, nano, eden-x2 or k8 for
10827         signature_CENTAUR_ebx.
10828         * config/i386/i386.c (ix86_option_override_internal): Add
10829         definitions for VIA c7, samuel-2, nehemiah, esther, eden-x2, eden-x4,
10830         nano, nano-1000, nano-2000, nano-3000, nano-x2 and nano-x4.
10831         * doc/invoke.texi (x86 Options): Document new VIA -march entries.
10833 2016-06-16  Martin Liska  <mliska@suse.cz>
10835         * predict.def: Add fortran loop preheader predictor.
10836         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Properly
10837         fold IFN_BUILTIN_EXPECT with a known constant argument.
10839 2016-06-16  Martin Liska  <mliska@suse.cz>
10841         * predict.def: Add 'Fortran' to display text of all
10842         PRED_FORTRAN_* predictors.
10844 2016-06-16  Uros Bizjak  <ubizjak@gmail.com>
10846         PR target/71242
10847         * config/ia64/ia64.c (enum ia64_builtins) [IA64_BUILTIN_NANQ]: New.
10848         [IA64_BUILTIN_NANSQ]: Ditto.
10849         (ia64_fold_builtin): New function.
10850         (TARGET_FOLD_BUILTIN): New define.
10851         (ia64_init_builtins) Declare const_string_type node.
10852         Add __builtin_nanq and __builtin_nansq builtin functions.
10853         (ia64_expand_builtin): Handle IA64_BUILTIN_NANQ and IA64_BUILTIN_NANSQ.
10855 2016-06-16  Nick Clifton  <nickc@redhat.com>
10857         * config/msp430/msp430-opts.h (msp430_hwmult_types): Add
10858         MSP430_HWMULT_ prefix to enum values.
10859         (msp430_regions): Add MSP430_REGION_ prefix to enum values.
10860         * config/msp430/msp430.c: Update use of enum values.
10861         * config/msp430/msp430.md: Likewise.
10862         * config/msp430/msp430.opt: Likewise.
10864 2016-06-16  Jan Hubicka  <hubicka@ucw.cz>
10866         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Fix estimation
10867         of comparsions in the last iteration.
10869 2016-06-16  Claudiu Zissulescu  <claziss@synopsys.com>
10870             Joern Rennecke  <joern.rennecke@embecosm.com>
10872         * config/arc/arc.c (arc_print_operand_address): Handle pc-relative
10873         addresses.
10874         (arc_needs_pcl_p): Add GOTOFFPC.
10875         (arc_legitimate_pic_addr_p): Likewise.
10876         (arc_output_pic_addr_const): Likewise.
10877         (arc_legitimize_pic_address): Generate a pc-relative address using
10878         GOTOFFPC.
10879         (arc_output_libcall): Use @pcl syntax.
10880         (arc_delegitimize_address_0): Delegitimize ARC_UNSPEC_GOTOFFPC.
10881         * config/arc/arc.md ("unspec"): Add ARC_UNSPEC_GOTOFFPC.
10882         (*movsi_insn): Use @pcl syntax.
10883         (doloop_begin_i): Likewise.
10885 2016-06-16  Martin Liska  <mliska@suse.cz>
10887         * predict.def: Define a new predictor.
10889 2016-06-16  Claudiu Zissulescu  <claziss@synopsys.com>
10891         * config/arc/arc.opt (mtp-regno): Update text.
10893 2016-06-16  Renlin Li  <renlin.li@arm.com>
10895         * config/aarch64/aarch64.c (aarch64_legitimize_address): Fix a typo.
10897 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
10899         PR target/71554
10900         * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
10901         (setcc + and peephole2): Likewise.
10903         PR rtl-optimization/71532
10904         * cse.c (cse_insn): For const/pure calls, invalidate argument passing
10905         memory slots.
10907 2016-06-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
10909         * config/rs6000/vsx.md (VSINT_84): Add DImode to enable loading
10910         DImode constants with XXSPLTIB in vector registers.
10911         (vsx_extract_<mode>, V2DImode/V2DFmode): Combine both
10912         vsx_extract_<mode>_internal{1,2} into a single insn that handles
10913         direct move (both ISA 2.07 and ISA 3.0 versions), and optimizes
10914         extraction of the element at the top of the register as a scalar
10915         value.
10916         (vsx_extract_<mode>_internal1): Likewise.
10917         (vsx_extract_<mode>_internal2): Likewise.
10918         * config/rs6000/constraints.md (wi constraint): Remove a comment
10919         about DImode not being allowed in Altivec registers.
10920         (wB constraint): New constraint for constants that can be
10921         generated in Altivec registers with VSPLTISW/VUPKHSW.
10922         * config/rs6000/predicates.md (xxspltib_constant_split): Update
10923         comments.
10924         (xxspltib_constant_nosplit): Likewise.
10925         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Add
10926         support for -mupper-regs-di to enable DImode to go into Altivec
10927         registers.
10928         (POWERPC_MASKS): Likewise.
10929         (power7 cpu): Likewise.
10930         * config/rs6000/rs6000.opt (-mupper-regs-di): Likewise.
10931         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
10932         for DImode being allowed in Altivec registers.  Update wi/wj
10933         constraints.  Set scalar_in_vmx_p flag.
10934         (rs6000_option_override_internal): Add checks for -mupper-regs-di.
10935         (xxspltib_constant_p): Allow CONST_INT's with VOIDmode.  Don't
10936         return true if we could use VSPLTISW/VUPKHSW instead of XXSPLTIB.
10937         (rs6000_opt_masks): Add -mupper-regs-di.
10938         * config/rs6000/rs6000.md (lfiwax): Update clobbers that don't use
10939         direct move to use wi and not wj.
10940         (lfiwzx): Likewise.
10941         (floatsi<mode>2_lfiwax_mem): Combine alternatives into a single
10942         alternative.
10943         (floatunssi<mode>2_lfiwzx_mem): Likewise.
10944         (fix_trunc<mode>di2_fctidz): Change second alternative to allow
10945         any VSX register, instead of just Altivec registers, to allow
10946         either operand to be an Altivec register or both.
10947         (fixuns_trunc<mode>di2_fctiduz): Likewise.
10948         (movdi_internal32): Add support for -mupper-regs-di.  Add support
10949         to load constants via XXSPLTIB or VSPLTISW.  Add spacing to allow
10950         the alternatives and attributes to be lined up to be easier to
10951         read.
10952         (movdi_internal64): Likewise.
10953         (64-bit DImode splitters): Change predicates to only split loading
10954         up GPR registers.  Add splits for using XXSPLTIB or VSPLTISW to
10955         load constants in ISA 3.0 or ISA 2.07 respectively.
10956         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
10957         -mupper-regs-di.  Update -mupper-regs-df and -mupper-regs-sf to
10958         mention -mcpu=power9 sets these options.
10959         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
10960         wB constraint.
10962 2016-06-15  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
10964         PR target/67353
10965         * config/avr/avr.c (avr_set_current_function): Warn misspelled
10966         interrupt/ signal handler if -Wmisspelled-isr flag is enabled.
10967         * config/avr/avr.opt (Wmisspelled-isr): New warning flag. Enabled
10968         by default to warn misspelled interrupt/ signal handler.
10969         * doc/invoke.texi (AVR Options): Document it. Update description
10970         for -nodevicelib option.
10972 2016-06-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10974         * config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
10975         up parentheses.  Use GET_MODE_UNIT_BITSIZE.
10976         (aarch64_<sur>shll2_n<mode>): Likewise.
10978 2016-06-15  Ilya Enkovich  <ilya.enkovich@intel.com>
10980         PR middle-end/71529
10981         * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
10982         DECL_CONTEXT for copied arguments.
10984 2016-06-15  Alan Hayward  <alan.hayward@arm.com>
10986         PR tree-optimization/71483
10987         * tree-vect-loop.c (vectorizable_live_operation): Pick correct index
10988         for slp
10990 2016-06-15  Martin Liska  <mliska@suse.cz>
10992         * predict.c (tree_predict_by_opcode): Call predict_edge_def
10993         instead of predict_edge w/o a probability.
10995 2016-06-15  Alan Hayward  <alan.hayward@arm.com>
10997         PR tree-optimization/71439
10998         * tree-vect-loop.c (vect_analyze_loop_operations): Additional check for
10999         live PHIs.
11001 2016-06-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11003         * ifcvt.c (bb_ok_for_noce_multiple_sets): Allow simple lowpart
11004         register subregs in SET_SRC.
11006 2016-06-15  Richard Biener  <rguenther@suse.de>
11008         * tree-vect-stmts.c (vectorizable_store): Remove strided grouped
11009         store restrictions.
11011 2016-06-15  Richard Biener  <rguenther@suse.de>
11013         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Do
11014         not consider dependences between accesses that belong to the
11015         same group.
11016         (vect_analyze_data_ref_dependences): Do not analyze read-read
11017         or self-dependences.
11019 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
11021         * spellcheck-tree.c: Include spellcheck-tree.h rather than
11022         spellcheck.h.
11023         (find_closest_identifier): Reimplement in terms of
11024         best_match<tree,tree>.
11025         * spellcheck-tree.h: New file.
11026         * spellcheck.c (struct edit_distance_traits<const char *>): New
11027         struct.
11028         (find_closest_string): Reimplement in terms of
11029         best_match<const char *, const char *>.
11030         * spellcheck.h (levenshtein_distance): Move prototype of tree-based
11031         overload to spellcheck-tree.h.
11032         (find_closest_identifier): Likewise.
11033         (struct edit_distance_traits<T>): New template.
11034         (class best_match): New class.
11036 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
11038         * selftest-run-tests.c (selftest::run_tests): Call
11039         selftest::spellcheck_tree_c_tests.
11040         * selftest.h (selftest::spellcheck_tree_c_tests): New decl.
11041         * spellcheck-tree.c: Include selftest.h and stringpool.h.
11042         (selftest::test_find_closest_identifier): New function.
11043         (selftest::spellcheck_tree_c_tests): New function.
11044         * spellcheck.c (selftest::test_find_closest_string): Verify that
11045         the order of the vec does not affect the results for this case.
11046         (selftest::test_data): New array.
11047         (selftest::test_metric_conditions): New function.
11048         (selftest::spellcheck_c_tests): Add a test of case-comparison.
11049         Call selftest::test_metric_conditions.
11051 2016-06-14  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11053         * config/rs6000/rs6000-builtin.def (commentary): Typo.
11054         (BU_P9_MISC_1): Likewise.
11055         (BU_P9_64BIT_MISC_0): Likewise.
11056         (BU_P9_MISC_0): Likewise.
11058 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
11060         * gcc-rich-location.c
11061         (gcc_rich_location::add_fixit_misspelled_id): New method.
11062         * gcc-rich-location.h
11063         (gcc_rich_location::add_fixit_misspelled_id): Add decl.
11065 2016-06-14  Andreas Tobler  <andreast@gcc.gnu.org>
11067         * config/arm/freebsd.h: Only enable unaligned access for armv6 on
11068         FreeBSD 11 and above.
11070 2016-06-14  Uros Bizjak  <ubizjak@gmail.com>
11072         * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
11074 2016-06-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11076         * expmed.h: Close parenthesis in "at your option" in copyright
11077         boilerplate.
11078         * lower-subreg.h: Likewise.
11080 2016-06-14  Richard Biener  <rguenther@suse.de>
11082         PR middle-end/71526
11083         * genmatch.c (expr::gen_transform): Use in_type for comparisons
11084         if available.
11086 2015-06-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11088         * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
11089         New function.
11090         (aarch64_rtx_costs): Use it.  Rewrite CONST_INT_P (op1) case to handle
11091         mask+shift version.
11092         * config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
11093         New prototype.
11094         * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
11095         matching condition with aarch64_mask_and_shift_for_ubfiz_p.
11097 2016-06-14  Richard Biener  <rguenther@suse.de>
11099         PR tree-optimization/71522
11100         * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
11101         copying into float copying.
11103 2016-06-14  Jakub Jelinek  <jakub@redhat.com>
11105         PR tree-optimization/71520
11106         * tree-ssa-tail-merge.c (find_duplicate): Handle labels.
11107         (replace_block_by): Move user labels from bb1 to bb2.
11109 2016-06-14  Richard Biener  <rguenther@suse.de>
11111         PR middle-end/71310
11112         PR bootstrap/71510
11113         * expr.h (get_bit_range): Declare.
11114         * expr.c (get_bit_range): Export.
11115         * fold-const.c (optimize_bit_field_compare): Use get_bit_range and
11116         word_mode again to constrain the bitfield access.
11118 2016-06-14  Richard Biener  <rguenther@suse.de>
11120         PR tree-optimization/71521
11121         * tree-vrp.c (extract_range_from_binary_expr_1): Guard
11122         division int_const_binop against zero divisor.
11124 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
11126         * config/i386/i386.md (signbittf2): New expander.
11127         * config/i386/sse.md (ptesttf2): New insn pattern.
11129 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
11131         PR bootstrap/71481
11132         * input.c (selftest::test_reading_source_line): Avoid reading from
11133         __FILE__ by creating a tempfile with known content and reading
11134         from that instead.
11136 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
11138         * pretty-print.c (assert_pp_format_colored): Skip the test if
11139         GCC_COLORS is set.
11140         (test_pp_format): Remove comment about GCC_COLORS.
11142 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
11144         * input.c (test_reading_source_line): Use SELFTEST_LOCATION.
11145         * pretty-print.c (assert_pp_format_va): Add location param and use
11146         it with ASSERT_STREQ_AT.
11147         (assert_pp_format): Add location param and pass it to
11148         assert_pp_format_va.
11149         (assert_pp_format_colored): Likewise.
11150         (ASSERT_PP_FORMAT_1): New.
11151         (ASSERT_PP_FORMAT_2): New.
11152         (ASSERT_PP_FORMAT_3): New.
11153         (test_pp_format): Provide SELFTEST_LOCATION throughout, either
11154         explicitly, or implicitly via the above macros.
11155         * selftest.c (selftest::pass): Use a selftest::location rather
11156         than file and line.
11157         (selftest::fail): Likewise.  Print the function name.
11158         (selftest::fail_formatted): Likewise.
11159         (selftest::assert_streq): Use a selftest::location rather than
11160         file and line.
11161         * selftest.h (selftest::location): New struct.
11162         (SELFTEST_LOCATION): New macro.
11163         (selftest::pass): Accept a const location & rather than file
11164         and line.
11165         (selftest::fail): Likewise.
11166         (selftest::fail_formatted): Likewise.
11167         (selftest::assert_streq): Likewise.
11168         (ASSERT_TRUE): Update for above changes, using SELFTEST_LOCATION.
11169         (ASSERT_FALSE): Likewise.
11170         (ASSERT_EQ): Likewise.
11171         (ASSERT_NE): Likewise.
11172         (ASSERT_STREQ): Likewise.
11173         (ASSERT_PRED1): Likewise.
11174         (ASSERT_STREQ_AT): New macro.
11176 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
11178         * selftest.c (selftest::fail_formatted): New function.
11179         (selftest::assert_streq): New function.
11180         * selftest.h (selftests::fail_formatted): New decl.
11181         (selftest::assert_streq): New decl.
11182         (ASSERT_STREQ): Reimplement in terms of selftest::assert_streq.
11184 2016-06-13  Jeff Law  <law@redhat.com>
11186         PR tree-optimization/71403
11187         * tree-ssa-threadbackward.c
11188         (convert_and_register_jump_thread_path): No longer accept reference
11189         to path.  Do not pop items off the path anymore.
11190         (fsm_find_control_statement_thread_paths): Do not allow threading
11191         to a deeper loop nest.  Pop the last item off the path here rather
11192         than in convert_and_register_jump_thread_path.
11194 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
11195             Wilco Dijkstra  <Wilco.Dijkstra@arm.com>
11197         [AArch64] Emit division using the Newton series
11199         * config/aarch64/aarch64-protos.h
11200         (cpu_approx_modes): Add new member "division".
11201         (aarch64_emit_approx_div): Declare new function.
11202         * config/aarch64/aarch64.c
11203         (generic_approx_modes): New member "division".
11204         (exynosm1_approx_modes): Likewise.
11205         (xgene1_approx_modes): Likewise.
11206         (aarch64_emit_approx_div): Define new function.
11207         * config/aarch64/aarch64.md ("div<mode>3"): New expansion.
11208         * config/aarch64/aarch64-simd.md ("div<mode>3"): Likewise.
11209         * config/aarch64/aarch64.opt (-mlow-precision-div): Add new option.
11210         * doc/invoke.texi (-mlow-precision-div): Describe new option.
11212 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
11213             Wilco Dijkstra  <wilco.dijkstra@arm.com>
11215         [AArch64] Emit square root using the Newton series
11217         * config/aarch64/aarch64-protos.h
11218         (aarch64_emit_approx_rsqrt): Replace with new function
11219         "aarch64_emit_approx_sqrt".
11220         (cpu_approx_modes): New member "sqrt".
11221         * config/aarch64/aarch64.c
11222         (generic_approx_modes): New member "sqrt".
11223         (exynosm1_approx_modes): Likewise.
11224         (xgene1_approx_modes): Likewise.
11225         (aarch64_emit_approx_rsqrt): Replace with new function
11226         "aarch64_emit_approx_sqrt".
11227         (aarch64_override_options_after_change_1): Handle new option.
11228         * config/aarch64/aarch64-simd.md
11229         (rsqrt<mode>2): Use new function instead.
11230         (sqrt<mode>2): New expansion and insn definitions.
11231         * config/aarch64/aarch64.md: Likewise.
11232         * config/aarch64/aarch64.opt
11233         (mlow-precision-sqrt): Add new option description.
11234         * doc/invoke.texi (mlow-precision-sqrt): Likewise.
11236 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
11238         [AArch64] Add more choices for the reciprocal square root approximation
11240         Allow a target to prefer such operation depending on the operation mode.
11242         * config/aarch64/aarch64-protos.h
11243         (AARCH64_APPROX_MODE): New macro.
11244         (AARCH64_APPROX_{NONE,ALL}): Likewise.
11245         (cpu_approx_modes): New structure.
11246         (tune_params): New member "approx_modes".
11247         * config/aarch64/aarch64-tuning-flags.def
11248         (AARCH64_EXTRA_TUNE_APPROX_RSQRT): Remove macro.
11249         * config/aarch64/aarch64.c
11250         (generic_approx_modes): New core "cpu_approx_modes" structure.
11251         (exynosm1_approx_modes): Likewise.
11252         (xgene1_approx_modes): Likewise.
11253         (generic_tunings): New member "approx_modes".
11254         (cortexa35_tunings): Likewise.
11255         (cortexa53_tunings): Likewise.
11256         (cortexa57_tunings): Likewise.
11257         (cortexa72_tunings): Likewise.
11258         (exynosm1_tunings): Likewise.
11259         (thunderx_tunings): Likewise.
11260         (xgene1_tunings): Likewise.
11261         (use_rsqrt_p): New argument for the mode and use new member from
11262         "tune_params".
11263         (aarch64_builtin_reciprocal): Devise mode from builtin.
11264         (aarch64_optab_supported_p): New argument for the mode.
11265         * doc/invoke.texi (-mlow-precision-recip-sqrt): Reword description.
11267 2016-06-13  Kelvin Nilsen  <kelvin@gcc.gnu.org>
11269         * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
11270         RS6000_BTM_MODULO flag into the set of flags that are considered
11271         to be part of the common configuration.
11273 2016-06-13  Kelvin Nilsen  <kelvin@gcc.gnu.org>
11275         * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
11276         difference unsigned.
11277         (vec_absdb): New macro for vector absolute difference unsigned
11278         byte.
11279         (vec_absdh): New macro for vector absolute difference unsigned
11280         half-word.
11281         (vec_absdw): New macro for vector absolute difference unsigned word.
11282         * config/rs6000/altivec.md (UNSPEC_VADU): New value.
11283         (vadu<mode>3): New insn.
11284         (*p9_vadu<mode>3): New insn.
11285         * config/rs6000/rs6000-builtin.def (vadub): New built-in
11286         definition.
11287         (vaduh): New built-in definition.
11288         (vaduw): New built-in definition.
11289         (vadu): New overloaded built-in definition.
11290         (vadub): New overloaded built-in definition.
11291         (vaduh): New overloaded built-in definition.
11292         (vaduw): New overloaded built-in definition.
11293         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11294         overloaded vector absolute difference unsigned functions.
11295         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
11296         the ISA 3.0 vector absolute difference unsigned built-in functions.
11298 2016-06-13  Eric Botcazou  <ebotcazou@adacore.com>
11300         * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
11301         update shared_lookup_references only once after changing operands.
11303 2016-06-13  Thomas Schwinge  <thomas@codesourcery.com>
11305         PR middle-end/71373
11306         * tree-nested.c (convert_nonlocal_omp_clauses)
11307         (convert_local_omp_clauses): Document missing OMP_CLAUSE_*.
11309         * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
11310         * tree.def (CASE_LABEL_EXPR): Likewise.
11312 2016-06-13  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11314         PR bootstrap/71481
11315         * input.c (test_builtins): Fix an assertion.
11317 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
11319         * config/i386/i386.md (paritydi2): Use ix86_expand_setcc.
11320         (paritysi2): Ditto.
11321         (isinfxf2): Ditto.
11322         (isinf<mode>2): Ditto.
11324 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
11326         * ggc-tests.c (test_finalization): Only test need_finalization_p
11327         for GCC_VERSION >= 4003.
11329 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11331         * config/s390/vecintrin.h: Fix file description in comment.
11333 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11335         * config/s390/s390-builtin-types.def: Change builtin type naming
11336         scheme to match builtin-types.def.
11338 2016-06-13  Marc Glisse  <marc.glisse@inria.fr>
11340         * fold-const.c (optimize_minmax_comparison): Remove.
11341         (fold_comparison): Remove call to the above.
11342         * match.pd (MIN (X, Y) == X, MIN (X, 5) == 0, MIN (X, C1) < C2):
11343         New transformations.
11345 2016-06-13  Alan Hayward  <alan.hayward@arm.com>
11347         PR tree-optimization/71416
11348         * tree-vect-loop.c (vectorizable_live_operation): Let worklist have
11349         multiple entries
11351 2016-06-13  Martin Liska  <mliska@suse.cz>
11353         * predict.c (enum predictor_reason): Prefix enum with REASON_.
11354         (combine_predictions_for_insn): Likewise.
11355         (prune_predictions_for_bb): Likewise.
11356         (combine_predictions_for_bb): Likewise.
11358 2016-06-13  Richard Biener  <rguenther@suse.de>
11360         PR tree-optimization/71505
11361         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
11362         assert match comment.
11364 2016-06-13  Marek Polacek  <polacek@redhat.com>
11366         PR middle-end/71476
11367         * gimplify.c (maybe_warn_switch_unreachable): Factored out of
11368         gimplify_switch_expr.
11369         (warn_switch_unreachable_r): New function.
11371 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11373         PR target/71379
11374         * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
11375         one.
11377 2016-06-13  Richard Biener  <rguenther@suse.de>
11379         PR middle-end/64516
11380         * fold-const.c (fold_unary_loc): Preserve alignment when
11381         folding a VIEW_CONVERT_EXPR into a MEM_REF.
11383 2016-06-13  Martin Liska  <mliska@suse.cz>
11385         PR sanitizer/71458
11386         * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
11387         w/ -fsanitize=bounds.
11389 2016-06-12  Uros Bizjak  <ubizjak@gmail.com>
11391         * config/i386/i386.c (ix86_init_builtins): Calculate
11392         FLOAT128_FTYPE_CONST_STRING function type only once.
11393         * doc/extend.texi (x86 Built-in Functions): Update text, __float128
11394         built-in functions are available for x86-32 and x86-64 targets.
11396 2016-06-12  Uros Bizjak  <ubizjak@gmail.com>
11398         PR target/71241
11399         * config/i386/i386.i386-builtin-types.def (CONST_STRING):
11400         New primitive type.
11401         (FLOAT128_FTYPE_CONST_STRING): New function type.
11402         * config/i386/i386.c (enum ix86_builtins) [IX86_BUILTIN_NANQ]: New.
11403         [IX86_BUILTIN_NANSQ]: Ditto.
11404         (ix86_fold_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
11405         (ix86_init_builtin_types): Declare const_string_type_node.
11406         (ix86_init_builtins): Add __builtin_nanq and __builtin_nansq
11407         builtin functions.
11408         (ix86_expand_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
11409         * doc/extend.texi (x86 Built-in Functions): Document
11410         __builtin_nanq and __builtin_nansq.
11412 2016-06-11  Jiong Wang  <jiong.wang@arm.com>
11414         PR target/71061
11415         * config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
11416         * config/arm/arm.c (arm_attr_length_pop_multi): New function to return
11417         length for pop patterns.
11418         (arm_attr_length_push_multi): Update comments.
11419         * config/arm/arm.md (*load_multiple_with_writeback): Set "length"
11420         attribute.
11421         (*pop_multiple_with_writeback_and_return): Likewise.
11422         (*pop_multiple_with_return): Likewise.
11424 2016-06-11  Segher Boessenkool  <segher@kernel.crashing.org>
11426         PR middle-end/71310
11427         * fold-const.c (optimize_bit_field_compare): Don't try to use
11428         word_mode unconditionally for reading the bit field, look at
11429         DECL_BIT_FIELD_REPRESENTATIVE instead.
11431 2016-06-11  Kugan Vivekanandarajah  <kuganv@linaro.org>
11433         PR middle-end/71478
11434         * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
11435         vector integer type.
11437 2016-06-10  Jakub Jelinek  <jakub@redhat.com>
11439         PR middle-end/71494
11440         * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
11441         without LABEL_DECL, set *handled_ops_p to false instead of true.
11443 2016-06-10  Martin Sebor  <msebor@redhat.com>
11445         PR c/71392
11446         * builtin-attrs.def (ATTR_NOTHROW_NONNULL_LEAF_LIST): New macro.
11447         (ATTR_NOTHROW_NONNULL_TYPEGENERIC_LEAF): Same.
11448         * builtins.def (BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW): Use
11449         them.
11450         (BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW): Same.
11451         (BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW): Same.
11452         (BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW): Same.
11453         (BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADD_OVERFLOW): Same.
11454         (BUILT_IN_UADDL_OVERFLOW, BUILT_IN_UADDLL_OVERFLOW): Same.
11455         (BUILT_IN_USUB_OVERFLOW, BUILT_IN_USUBL_OVERFLOW): Same.
11456         (BUILT_IN_USUBLL_OVERFLOW, BUILT_IN_UMUL_OVERFLOW): Same.
11457         (BUILT_IN_UMULL_OVERFLOW, BUILT_IN_UMULLL_OVERFLOW): Same.
11459 2016-06-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11461         * config/arm/arm.h (pool_vector_label,
11462         return_used_this_function): Remove.
11464 2016-06-10  Jeff Law  <law@redhat.com>
11466         PR tree-optimization/71335
11467         * tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
11468         zero length paths here.
11469         (convert_and_register_jump_thread_path): Remove hacks related to
11470         duplicated blocks in the jump thread path.
11471         (fsm_find_control_statement_thread_paths): Avoid putting the same
11472         block on the thread path twice, but ensure the thread path is
11473         unchanged from the caller's point of view.
11475 2016-06-10  Jan Hubicka  <hubicka@ucw.cz>
11477         * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
11478         * predict.def (PRED_LOOP_BRANCH): Remove.
11480 2016-06-10  David Malcolm  <dmalcolm@redhat.com>
11482         * Makefile.in (OBJS): Add ggc-tests.o.
11483         (GTFILES): Add ggc-tests.c.
11484         * ggc-tests.c: New file.
11485         * selftest-run-tests.c (selftest::run_tests): Call
11486         selftest::ggc_tests_c_tests.
11487         * selftest.h (selftest::ggc_tests_c_tests): New prototype.
11489 2016-06-10  Alexander Monakov  <amonakov@ispras.ru>
11491         * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
11493 2016-06-10  Maxim Ostapenko  <m.ostapenko@samsung.com>
11495         PR sanitizer/71480
11496         * varasm.c (place_block_symbol): Adjust alignment for asan protected
11497         STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
11499 2016-06-10  Jan Hubicka  <hubicka@ucw.cz>
11501         * profile.c: Include cfgloop.h.
11502         (branch_prob): Compute estimated number of iterations.
11503         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
11504         recompute estimate number of iterations from profile.
11506 2016-06-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11508         PR inline-asm/68843
11509         * reg-stack.c (check_asm_stack_operands): Explicit input arguments
11510         must be grouped on top of stack.  Don't force early clobber
11511         on ordinary reg outputs.
11513 2016-06-10  Richard Biener  <rguenther@suse.de>
11515         * targhooks.c (default_builtin_vectorization_cost): Adjust
11516         vec_construct cost.
11518 2016-06-10  Richard Biener  <rguenther@suse.de>
11520         * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
11521         to fold the RHS to a constant if possible.
11523 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
11525         PR middle-end/71373
11526         * tree-nested.c (convert_nonlocal_omp_clauses)
11527         (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
11528         OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
11529         OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
11531         * gimplify.c (gimplify_adjust_omp_clauses): Discard
11532         OMP_CLAUSE_TILE.
11533         * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
11535         * omp-low.c (scan_sharing_clauses): Don't expect
11536         OMP_CLAUSE__CACHE_.
11538 2016-06-10  Alan Hayward  <alan.hayward@arm.com>
11540         PR tree-optimization/71407
11541         PR tree-optimization/71416
11542         * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
11543         BIT_FIELD_REF type.
11545 2016-06-10  Richard Biener  <rguenther@suse.de>
11547         PR middle-end/71477
11548         * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
11550 2016-06-09  Eric Botcazou  <ebotcazou@adacore.com>
11552         * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
11554 2016-06-09  Vladimir Makarov  <vmakarov@redhat.com>
11555             Jiong Wang  <jiong.wang@arm.com>
11557         PR rtl-optimization/70751
11558         * lra-constraints.c (process_alt_operands): Recognize Non-pseudo
11559         spilled into memory.
11561 2016-06-09  Jonathan Yong  <10walls@gmail.com>
11563         Revert:
11564         2015-09-21  Jonathan Yong  <10walls@gmail.com>
11566         * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
11567         sysroot/usr/lib/32api for additional win32 libraries,
11568         fixes failing Cygwin bootstrapping.
11570 2016-06-09  Marcin Baczyński  <marbacz@gmail.com>
11572         * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
11573         Delete.
11575 2016-06-09  David Malcolm  <dmalcolm@redhat.com>
11577         PR bootstrap/71471
11578         * pretty-print.c (pp_indent): Specify that %p is printed in a
11579         host-dependent manner.
11580         (test_pp_format): Remove the test for %p.
11582 2016-06-09  Maciej W. Rozycki  <macro@imgtec.com>
11584         * config/mips/mips.c (mips_output_jump): Fix formatting.
11586 2016-06-09  Richard Biener  <rguenther@suse.de>
11588         PR tree-optimization/71462
11589         * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
11590         removed blocks.
11592 2016-06-09  Martin Liska  <mliska@suse.cz>
11594         * predict.c (dump_prediction): Add new argument.
11595         (enum predictor_reason): New enum.
11596         (struct predictor_hash): New struct.
11597         (predictor_hash::hash): New function.
11598         (predictor_hash::equal): Likewise.
11599         (not_removed_prediction_p): New function.
11600         (prune_predictions_for_bb): Likewise.
11601         (combine_predictions_for_bb): Prune predictions.
11603 2016-06-09  Martin Liska  <mliska@suse.cz>
11605         * predict.c (filter_predictions): New function.
11606         (remove_predictions_associated_with_edge): Use the filter
11607         function.
11608         (equal_edge_p): New function.
11610 2016-06-09  Stefan Bruens  <stefan.bruens@rwth-aachen.de>
11612         * doc/invoke.texi (ARM Options): Use lexicographical ordering.
11613         Correct usage of @samp vs @option, add @samp where appropriate.
11614         Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
11615         Add armv6s-m and document it, as it is no official ARM name.
11617 2016-06-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11619         * ifcvt.c (struct noce_if_info): Add transform_name field.
11620         (noce_try_move): Set if_info->transform_name to the function name.
11621         (noce_try_ifelse_collapse): Likewise.
11622         (noce_try_store_flag): Likewise.
11623         (noce_try_inverse_constants): Likewise.
11624         (noce_try_store_flag_constants): Likewise.
11625         (noce_try_addcc): Likewise.
11626         (noce_try_store_flag_mask): Likewise.
11627         (noce_try_cmove): Likewise.
11628         (noce_try_cmove_arith): Likewise.
11629         (noce_try_minmax): Likewise.
11630         (noce_try_abs): Likewise.
11631         (noce_try_sign_mask): Likewise.
11632         (noce_try_bitop): Likewise.
11633         (noce_convert_multiple_sets): Likewise.
11634         (noce_process_if_block): Print if_info->transform_name to
11635         dump_file if transformation succeeded.
11637 2016-06-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11639         * config/arm/cortex-a57.md (cortex_a57_alu):
11640         Handle csel type.
11642 2016-06-08  Martin Sebor  <msebor@redhat.com>
11643             Jakub Jelinek  <jakub@redhat.com>
11645         PR c++/70507
11646         PR c/68120
11647         * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
11648         BUILT_IN_MUL_OVERFLOW_P): New builtins.
11649         * builtins.c: Include gimple-fold.h.
11650         (fold_builtin_arith_overflow): Handle
11651         BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
11652         (fold_builtin_3): Likewise.
11653         * doc/extend.texi (Integer Overflow Builtins): Document
11654         __builtin_{add,sub,mul}_overflow_p.
11656 2016-06-08  Jose E. Marchesi  <jose.marchesi@oracle.com>
11658         * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
11659         SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
11661 2016-06-08  Alan Lawrence  <alan.lawrence@arm.com>
11663         * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
11664         Rewrite, looking one level down for records and arrays.
11666 2016-06-08  David Malcolm  <dmalcolm@redhat.com>
11668         * pretty-print.c: Include "selftest.h".
11669         (pp_format): Fix comment.
11670         (identifier_to_locale): Likewise.
11671         (selftest::test_basic_printing): New function.
11672         (selftest::assert_pp_format): New function.
11673         (selftest::test_pp_format): New function.
11674         (selftest::pretty_print_c_tests): New function.
11675         * selftest-run-tests.c (selftest::run_tests): Call
11676         selftest::pretty_print_c_tests.
11677         * selftest.h (pretty_print_c_tests): New declaration.
11679 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
11681         * invoke.texi (max-loop-headers-insns): Document.
11682         * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
11683         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
11684         (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
11686 2016-06-08  Richard Biener  <rguenther@suse.de>
11688         * tree-vect-stmts.c (vectorizable_load): Remove restrictions
11689         on strided SLP loads and fall back to scalar loads in case
11690         we can't chunk them.
11692 2016-06-08  Richard Biener  <rguenther@suse.de>
11694         PR tree-optimization/71452
11695         * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
11696         type used for the SSA rewrite has enough precision to cover
11697         the dynamic type of the location.
11699 2016-06-08  Jakub Jelinek  <jakub@redhat.com>
11700             Richard Biener  <rguenther@suse.de>
11702         PR c++/71448
11703         * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
11704         the same as DECL_P (base0) for indirect_base0.  Use equality_code
11705         in one further place.
11707 2016-06-08  Richard Sandiford  <richard.sandiford@arm.com>
11709         * expmed.c (store_bit_field_1): Do not restrict a multiword op0
11710         to one word if the field is known to overlap other words.
11711         (extract_bit_field_1): Likewise.
11712         (store_split_bit_field): Remove compensating code.
11713         (extract_split_bit_field): Likewise.
11715 2016-06-08  Bernd Schmidt  <bschmidt@redhat.com>
11717         PR debug/71432
11718         PR ada/71413
11719         * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
11721 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
11723         * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
11724         VDQF.
11725         * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
11726         (arch64_addpv4sf): Delete.
11727         (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
11728         "gen_aarch64_addpv4sf".
11729         * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly.  Use
11730         builtin.
11731         (vpadds_f32): Likewise.
11732         (vpaddq_f32): Likewise.
11733         (vpaddq_f64): Likewise.
11735 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
11737         * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
11738         VALLF.
11739         * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
11740         to VALLF.  Rename to "fabd<mode>3".
11741         "*fabd_scalar<mode>3): Delete.
11742         * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
11743         Use builtin.
11744         (vabdd_f64): Likewise.
11745         (vabd_f32): Likewise.
11746         (vabd_f64): Likewise.
11747         (vabdq_f32): Likewise.
11748         (vabdq_f64): Likewise.
11750 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
11752         * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
11753         VALLF.
11754         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
11755         "aarch64_rsqrts<mode>".
11756         * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
11757         * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly.  Use
11758         builtin.
11759         (vrsqrtsd_f64): Likewise.
11760         (vrsqrts_f32): Likewise.
11761         (vrsqrts_f64): Likewise.
11762         (vrsqrtsq_f32): Likewise.
11763         (vrsqrtsq_f64): Likewise.
11765 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
11767         * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
11768         VALLF.
11769         * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
11770         "aarch64_rsqrte<mode>".
11771         * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
11772         * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly.  Use
11773         builtin.
11774         (vrsqrted_f64): Likewise.
11775         (vrsqrte_f32): Likewise.
11776         (vrsqrte_f64): Likewise.
11777         (vrsqrteq_f32): Likewise.
11778         (vrsqrteq_f64): Likewise.
11780 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
11782         * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
11783         (ucvtf): Likewise.
11784         (fcvtzs): Likewise.
11785         (fcvtzu): Likewise.
11786         * config/aarch64/aarch64-simd.md
11787         (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
11788         (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
11789         * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
11790         Use builtin.
11791         (vcvt_n_f32_u32): Likewise.
11792         (vcvt_n_s32_f32): Likewise.
11793         (vcvt_n_u32_f32): Likewise.
11794         (vcvtq_n_f32_s32): Likewise.
11795         (vcvtq_n_f32_u32): Likewise.
11796         (vcvtq_n_f64_s64): Likewise.
11797         (vcvtq_n_f64_u64): Likewise.
11798         (vcvtq_n_s32_f32): Likewise.
11799         (vcvtq_n_s64_f64): Likewise.
11800         (vcvtq_n_u32_f32): Likewise.
11801         (vcvtq_n_u64_f64): Likewise.
11802         * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
11803         (VSDQ_SDI): Likewise.
11804         (fcvt_target): Support V4DI, V4SI and V2SI.
11805         (FCVT_TARGET): Likewise.
11807 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
11809         * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
11810         (TYPES_BINOP_SUS): Likewise.
11811         (aarch64_simd_builtin_data): Update include file name.
11812         (aarch64_builtins): Likewise.
11813         * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
11814         for conversion between scalar float-point and fixed-point.
11815         (ucvtf): Likewise.
11816         (fcvtzs): Likewise.
11817         (fcvtzu): Likewise.
11818         * config/aarch64/aarch64.md
11819         (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
11820         pattern for conversion between scalar float to fixed-pointer.
11821         (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
11822         (UNSPEC_FCVTZS): New UNSPEC enumeration.
11823         (UNSPEC_FCVTZU): Likewise.
11824         (UNSPEC_SCVTF): Likewise.
11825         (UNSPEC_UCVTF): Likewise.
11826         * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
11827         Use builtin.
11828         (vcvtd_n_f64_u64): Likewise.
11829         (vcvtd_n_s64_f64): Likewise.
11830         (vcvtd_n_u64_f64): Likewise.
11831         (vcvtd_n_f32_s32): Likewise.
11832         (vcvts_n_f32_u32): Likewise.
11833         (vcvtd_n_s32_f32): Likewise.
11834         (vcvts_n_u32_f32): Likewise.
11835         * config/aarch64/iterators.md (fcvt_target): Support integer to float
11836         mapping.
11837         (FCVT_TARGET): Likewise.
11838         (FCVT_FIXED2F): New iterator.
11839         (FCVT_F2FIXED): Likewise.
11840         (fcvt_fixed_insn): New define_int_attr.
11842 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
11844         * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
11845         some statements was removed.
11847 2016-06-08  Alan Hayward  <alan.hayward@arm.com>
11849         * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
11850         * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
11851         (vect_can_advance_ivs_p): likewise.
11852         (vect_update_ivs_after_vectorizer): likewise.
11853         * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
11854         (vect_analyze_scalar_cycles_1): likewise.
11855         (vect_analyze_loop_operations): likewise.
11856         (report_vect_op): likewise.
11857         (vect_is_slp_reduction): likewise.
11858         (vect_is_simple_reduction): likewise.
11859         (get_initial_def_for_induction): likewise.
11860         (vect_transform_loop): likewise.
11861         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
11862         (vect_recog_sad_pattern): likewise.
11863         (vect_recog_widen_sum_pattern): likewise.
11864         (vect_recog_widening_pattern): likewise.
11865         (vect_recog_divmod_pattern): likewise.
11866         * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
11867         (vect_analyze_slp_instance): likewise.
11868         (vect_transform_slp_perm_load): likewise.
11869         (vect_schedule_slp_instance): likewise.
11871 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
11873         * predict.c (predict_iv_comparison): Mention that heuristics is broken.
11874         (return_prediction): PRED_CONST_RETURN predict return as not taken.
11875         * predict.def (PRED_CONTINUE): Change hitrate 50->67
11876         (PRED_LOOP_BRANCH): Document predictor as broken.
11877         (PRED_LOOP_EXIT): Change hitrate 91->92.
11878         (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
11879         (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
11880         (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
11881         (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
11882         (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
11883         (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
11884         (PRED_CALL): Chane hitrate 71->67.
11885         (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
11886         (PRED_GOTO): Document as unused right now.
11887         (PRED_CONST_RETURN): Change hitrate 67->69
11888         (PRED_NEGATIVE_RETURN): Change hitrate 96->98
11889         (PRED_NULL_RETURN): Change hitrate 91->90.
11890         (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
11891         (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
11892         (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
11894 2016-06-07  Bill Seurer  <seurer@linux.vnet.ibm.com>
11896         * config/rs6000/altivec.h: Add __builtin_vec_mul.
11897         * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
11898         special case Altivec builtin.
11899         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
11900         VSX_BUILTIN_VEC_MUL (replaced with special case code).
11901         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
11902         code for ALTIVEC_BUILTIN_VEC_MUL.
11903         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
11904         for __builtin_vec_mul.
11906 2016-06-07  Peter Bergner  <bergner@vnet.ibm.com>
11908         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
11909         -mno-htm.
11911 2016-06-07  David Malcolm  <dmalcolm@redhat.com>
11913         * spellcheck.c (selftest::test_find_closest_string): New function.
11914         (spellcheck_c_tests): Call the above.
11916 2016-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11918         * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable.
11920 2016-06-07  Jakub Jelinek  <jakub@redhat.com>
11922         * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
11923         Yv=Yv,C alternatives.
11925 2016-06-07  Richard Biener  <rguenther@suse.de>
11927         PR c/61564
11928         * common.opt (ffast-math): Make Optimization.
11930 2016-06-07  Simon Dardis  <simon.dardis@imgtec.com>
11931             Prachi Godbole  <prachi.godbole@imgtec.com>
11933         * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
11934         `fabs' and `fneg' type attributes.
11935         (p5600_fpu_fabs): Add `fmove' to the comment.
11937 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
11939         * gimple.c: Include builtins.h
11940         (gimple_inexpensive_call_p): New function.
11941         * gimple.h (gimple_inexpensive_call_p): Declare.
11942         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
11943         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
11944         fix formatting.
11946 2016-06-07  Paolo Carlini  <paolo.carlini@oracle.com>
11948         * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
11949         (inform, inform_at_rich_loc, inform_n, warning, warning_at,
11950         warning_at_rich_loc, warning_n, pedwarn, permerror,
11951         permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
11952         sorry, fatal_error, internal_error, internal_error_no_backtrace):
11953         Use the above.
11955 2016-06-07  Richard Biener  <rguenther@suse.de>
11957         PR tree-optimization/71428
11958         * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
11959         BIT_FIELD_REF op vs. load.
11961 2016-06-07  Richard Biener  <rguenther@suse.de>
11963         PR middle-end/71423
11964         * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
11965         for signed ops.
11967 2016-06-06  John David Anglin  <danglin@gcc.gnu.org>
11969         * config/pa/pa.md (call): Generate indirect long calls to non-local
11970         functions on TARGET_64BIT.
11971         (call_value): Likewise.
11973 2016-06-06  John David Anglin  <danglin@gcc.gnu.org>
11975         * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
11976         pattern and subsequent splitters.
11977         (call_val_reg_64bit_post_reload): Likewise.
11979 2016-06-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
11981         PR middle-end/71408
11982         * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
11983         propagate_op_to_single_use.
11985 2016-06-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
11987         PR middle-end/71281
11988         * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
11990 2016-06-07  Uros Bizjak  <ubizjak@gmail.com>
11992         * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
11993         (enum x86_dirflag_state): New enum.
11994         (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
11995         (machine_function): Remove needs_cld.
11996         (ix86_current_function_needs_cld): Remove.
11997         * config/i386/i386.c (ix86_set_func_type): Set
11998         ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
11999         (ix86_expand_prologue): Do not emit CLD here.
12000         (ix86_dirflag_mode_needed): New function.
12001         (ix86_dirflag_mode_entry): Ditto.
12002         (ix86_mode_needed): Handle X86_DIRFLAG entity.
12003         (ix86_mode_after): Ditto.
12004         (ix86_mode_entry): Ditto.
12005         (ix86_mode_exit): Ditto.
12006         (ix86_emit_mode_set): Ditto.
12007         * config/i386/i386.md (strmov_singleop): Set
12008         ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
12009         Do not set ix86_current_function_needs_cld.
12010         (rep_mov): Ditto.
12011         (strset_singleop): Ditto.
12012         (rep_stos): Ditto.
12013         (cmpstrnqi_nz_1): Ditto.
12014         (cmpstrnqi_1): Ditto.
12015         (strlenqi_1): Ditto.
12017 2016-06-06  Jakub Jelinek  <jakub@redhat.com>
12019         PR tree-optimization/71259
12020         * tree-vect-slp.c (vect_get_constant_vectors): For
12021         VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
12022         one for constant op, and use COND_EXPR for non-constant.
12024 2016-06-06  David Malcolm  <dmalcolm@redhat.com>
12026         * Makefile.in (OBJS): Add function-tests.o,
12027         hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
12028         selftest-run-tests.o.
12029         (OBJS-libcommon): Add selftest.o.
12030         (OBJS-libcommon-target): Add selftest.o.
12031         (all.internal): Add "selftest".
12032         (all.cross): Likewise.
12033         (selftest): New phony target.
12034         (s-selftest): New target.
12035         (selftest-gdb): New phony target.
12036         (COLLECT2_OBJS): Add selftest.o.
12037         * bitmap.c: Include "selftest.h".
12038         (selftest::test_gc_alloc): New function.
12039         (selftest::test_set_range): New function.
12040         (selftest::test_clear_bit_in_middle): New function.
12041         (selftest::test_copying): New function.
12042         (selftest::test_bitmap_single_bit_set_p): New function.
12043         (selftest::bitmap_c_tests): New function.
12044         * common.opt (fself-test): New.
12045         * diagnostic-show-locus.c: Include "selftest.h".
12046         (make_range): New function.
12047         (test_range_contains_point_for_single_point): New function.
12048         (test_range_contains_point_for_single_line): New function.
12049         (test_range_contains_point_for_multiple_lines): New function.
12050         (assert_eq): New function.
12051         (test_get_line_width_without_trailing_whitespace): New function.
12052         (selftest::diagnostic_show_locus_c_tests): New function.
12053         * et-forest.c: Include "selftest.h".
12054         (selftest::test_single_node): New function.
12055         (selftest::test_simple_tree): New function.
12056         (selftest::test_disconnected_nodes): New function.
12057         (selftest::et_forest_c_tests): New function.
12058         * fold-const.c: Include "selftest.h".
12059         (selftest::assert_binop_folds_to_const): New function.
12060         (selftest::assert_binop_folds_to_nonlvalue): New function.
12061         (selftest::test_arithmetic_folding): New function.
12062         (selftest::fold_const_c_tests): New function.
12063         * function-tests.c: New file.
12064         * gimple.c: Include "selftest.h".
12065         Include "gimple-pretty-print.h".
12066         (selftest::verify_gimple_pp): New function.
12067         (selftest::test_assign_single): New function.
12068         (selftest::test_assign_binop): New function.
12069         (selftest::test_nop_stmt): New function.
12070         (selftest::test_return_stmt): New function.
12071         (selftest::test_return_without_value): New function.
12072         (selftest::gimple_c_tests): New function.
12073         * hash-map-tests.c: New file.
12074         * hash-set-tests.c: New file.
12075         * input.c: Include "selftest.h".
12076         (selftest::assert_loceq): New function.
12077         (selftest::test_accessing_ordinary_linemaps): New function.
12078         (selftest::test_unknown_location): New function.
12079         (selftest::test_builtins): New function.
12080         (selftest::test_reading_source_line): New function.
12081         (selftest::input_c_tests): New function.
12082         * rtl-tests.c: New file.
12083         * selftest-run-tests.c: New file.
12084         * selftest.c: New file.
12085         * selftest.h: New file.
12086         * spellcheck.c: Include "selftest.h".
12087         (selftest::levenshtein_distance_unit_test_oneway): New function,
12088         adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
12089         (selftest::levenshtein_distance_unit_test): Likewise.
12090         (selftest::spellcheck_c_tests): Likewise.
12091         * toplev.c: Include selftest.h.
12092         (toplev::run_self_tests): New.
12093         (toplev::main): Handle -fself-test.
12094         * toplev.h (toplev::run_self_tests): New.
12095         * tree.c: Include "selftest.h".
12096         (selftest::test_integer_constants): New function.
12097         (selftest::test_identifiers): New function.
12098         (selftest::test_labels): New function.
12099         (selftest::tree_c_tests): New function.
12100         * tree-cfg.c: Include "selftest.h".
12101         (selftest::push_fndecl): New function.
12102         (selftest::test_linear_chain): New function.
12103         (selftest::test_diamond): New function.
12104         (selftest::test_fully_connected): New function.
12105         (selftest::tree_cfg_c_tests): New function.
12106         * vec.c: Include "selftest.h".
12107         (selftest::safe_push_range): New function.
12108         (selftest::test_quick_push): New function.
12109         (selftest::test_safe_push): New function.
12110         (selftest::test_truncate): New function.
12111         (selftest::test_safe_grow_cleared): New function.
12112         (selftest::test_pop): New function.
12113         (selftest::test_safe_insert): New function.
12114         (selftest::test_ordered_remove): New function.
12115         (selftest::test_unordered_remove): New function.
12116         (selftest::test_block_remove): New function.
12117         (selftest::reverse_cmp): New function.
12118         (selftest::test_qsort): New function.
12119         (selftest::vec_c_tests): New function.c.
12120         * wide-int.cc: Include selftest.h and wide-int-print.h.
12121         (selftest::from_int <wide_int>): New function.
12122         (selftest::from_int <offset_int>): New function.
12123         (selftest::from_int <widest_int>): New function.
12124         (selftest::assert_deceq): New function.
12125         (selftest::assert_hexeq): New function.
12126         (selftest::test_printing <VALUE_TYPE>): New function template.
12127         (selftest::test_ops <VALUE_TYPE>): New function template.
12128         (selftest::test_comparisons <VALUE_TYPE>): New function template.
12129         (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
12130         template.
12131         (selftest::wide_int_cc_tests): New function.
12133 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12135         PR middle-end/37780
12136         * ifcvt.c (noce_try_ifelse_collapse): New function.
12137         Declare prototype.
12138         (noce_process_if_block): Call noce_try_ifelse_collapse.
12139         * simplify-rtx.c (simplify_cond_clz_ctz): New function.
12140         (simplify_ternary_operation): Use the above to simplify
12141         conditional CLZ/CTZ expressions.
12143 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12145         PR middle-end/37780
12146         * config/aarch64/aarch64.md (ctz<mode>2): Convert to
12147         define_insn_and_split.
12149 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12151         PR middle-end/37780
12152         * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
12154 2016-06-06  Bernd Edlinger  <bernd.edlinger@hotmail.de>
12156         PR c/24414
12157         * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
12158         Implicitly clobber memory for basic asm with non-empty assembler
12159         string.  Use targetm.md_asm_adjust also here.
12160         * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
12161         * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
12162         * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
12163         non-empty assembler string.
12164         * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
12165         * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
12166         (decode_asm_operands): Handle basic asm in PARALLEL block.
12167         (extract_insn): Handle basic asm in PARALLEL block.
12168         * doc/extend.texi: Mention new behavior of basic asm.
12169         * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
12170         * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
12171         branch_needs_nop_p): Use asm_noperands.
12173 2016-06-06  Jose E. Marchesi  <jose.marchesi@oracle.com>
12175         * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
12176         Include the M7 SPARC DFA scheduler.
12177         New attribute v3pipe.
12178         Annotate insns with v3pipe where appropriate.
12179         Define cpu_feature vis4.
12180         Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
12181         Add (V8QI "8") to vbits.
12182         Add insns {add,sub}v8qi3
12183         Add insns ss{add,sub}v8qi3
12184         Add insns us{add,sub}{v8qi,v4hi}3
12185         Add insns {min,max}{v8qi,v4hi,v2si}3
12186         Add insns {minu,maxu}{v8qi,v4hi,v2si}3
12187         Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
12188         * config/sparc/niagara4.md: Add a comment explaining the
12189         discrepancy between the documented latenty numbers and the
12190         implemented ones.
12191         * config/sparc/niagara7.md: New file.
12192         * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
12193         supports SPARC5 and VIS 4.0 instructions.
12194         * configure: Regenerate.
12195         * config.in: Likewise.
12196         * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
12197         * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
12198         TARGET_CPU_niagara7.
12199         (ASM_CPU64_DEFAULT_SPEC): Likewise.
12200         (CPP_CPU_SPEC): Handle niagara7.
12201         (ASM_CPU_SPEC): Likewise.
12202         * config/sparc/sparc-opts.h (processor_type): Add
12203         PROCESSOR_NIAGARA7.
12204         (mvis4): New option.
12205         * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
12206         (AS_NIAGARA7_FLAG): Define.
12207         (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
12208         (CPP_CPU64_DEFAULT_SPEC): Likewise.
12209         (CPP_CPU_SPEC): Handle niagara7.
12210         (ASM_CPU_SPEC): Likewise.
12211         * config/sparc/sparc.c (niagara7_costs): Define.
12212         (sparc_option_override): Handle niagara7 and adjust cache-related
12213         parameters with better values for niagara cpus.  Also support VIS4.
12214         (sparc32_initialize_trampoline): Likewise.
12215         (sparc_use_sched_lookahead): Likewise.
12216         (sparc_issue_rate): Likewise.
12217         (sparc_register_move_cost): Likewise.
12218         (dump_target_flag_bits): Support VIS4.
12219         (sparc_vis_init_builtins): Likewise.
12220         (sparc_builtins): Likewise.
12221         * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
12222         VIS4 4.0.
12223         * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
12224         UltraSparc M7.
12225         * config/sparc/sparc.opt (sparc_processor_type): New value
12226         niagara7.
12227         * config/sparc/visintrin.h (__attribute__): Prototypes for the
12228         VIS4 builtins.
12229         * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
12230         -mvis4.
12231         * doc/extend.texi (SPARC VIS Built-in Functions): Document the
12232         VIS4 builtins.
12234 2016-06-06  Jonathan Wakely  <jwakely@redhat.com>
12236         * doc/sourcebuild.texi (Directives): Remove extra closing braces.
12238 2016-06-06  Richard Biener  <rguenther@suse.de>
12240         PR tree-optimization/71398
12241         * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
12242         remove edges.
12244 2016-06-05  James Bowman  <james.bowman@ftdichip.com>
12246         * config/ft32/ft32.c (ft32_setup_incoming_varargs,
12247         ft32_expand_prolog, ft32_expand_epilogue):
12248         Handle pretend_args.
12249         * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
12250         * config/ft32/ft32.md: Add pretend_returner.
12252 2016-06-06  Uros Bizjak  <ubizjak@gmail.com>
12254         PR target/71389
12255         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
12256         Copy op1 RTX to avoid invalid sharing.
12257         (ix86_expand_vector_move_misalign): Ditto.
12259 2016-06-05  John David Anglin  <danglin@gcc.gnu.org>
12261         * expr.c (move_by_pieces_d::generate): Mark mode parameter with
12262         ATTRIBUTE_UNUSED.
12264 2016-06-05  Jan Hubicka  <hubicka@ucw.cz>
12266         * predict.c (predicted_by_loop_heuristics_p): New function.
12267         (predict_iv_comparison): Use it.
12268         (predict_loops): Walk from innermost loops; do not predict edges
12269         leaving multiple loops multiple times; implement
12270         PRED_LOOP_ITERATIONS_MAX heuristics.
12271         * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
12273 2016-06-05  Jan Hubicka  <hubicka@ucw.cz>
12275         * cfg.c (check_bb_profile): Do not report mismatched profiles when
12276         only edges out of BB are EH edges.
12278 2016-06-04  Martin Sebor  <msebor@redhat.com>
12279             Marcin Baczyński  <marbacz@gmail.com>
12281         PR c/48116
12282         * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
12283         a void expression in a void function.
12285 2016-06-03  Jan Hubicka  <hubicka@ucw.cz>
12287         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
12288         aux; dump reasons of decisions.
12289         (should_duplicate_loop_header_p): Likewise.
12290         (do_while_loop_p): Likewise.
12291         (ch_base::copy_headers): Dump asi num insns duplicated.
12293 2016-06-04  Jakub Jelinek  <jakub@redhat.com>
12295         PR tree-optimization/71405
12296         * tree-ssa.c (execute_update_addresses_taken): For clobber with
12297         incompatible type, build a new clobber with the right type instead
12298         of building a VIEW_CONVERT_EXPR around it.
12300 2016-06-04  Oleg Endo  <olegendo@gcc.gnu.org>
12302         PR tree-optimization/52171
12303         * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
12304         by_pieces_ninsns instead of move_by_pieces_ninsns.
12306 2016-06-04  Oleg Endo  <olegendo@gcc.gnu.org>
12308         * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
12309         for reg+reg addressing mode.
12311 2016-06-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12313         * rs6000-c.c (c/c-tree.h): Add #include.
12314         (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
12315         in C++ when found in the base position of vec_ld or vec_st.
12317 2016-06-03  Jan Hubicka  <hubicka@ucw.cz>
12319         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
12320         use of profile unless profile status is PROFILE_READ.
12321         * profile.c (compute_branch_probabilities): Set profile status
12322         only after reporting predictor hitrates.
12324 2016-06-03  Joseph Myers  <joseph@codesourcery.com>
12326         PR target/71276
12327         PR target/71277
12328         * common.opt (ffp-int-builtin-inexact): New option.
12329         * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
12330         * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
12331         (ceil@var{m}2): Document dependence on this option.
12332         * ipa-inline-transform.c (inline_call): Handle
12333         flag_fp_int_builtin_inexact.
12334         * ipa-inline.c (can_inline_edge_p): Likewise.
12335         * config/i386/i386.md (rintxf2): Do not test
12336         flag_unsafe_math_optimizations.
12337         (rint<mode>2_frndint): New define_insn.
12338         (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
12339         or !flag_trapping_math for SSE.  Just use gen_rint<mode>2_frndint
12340         for 387 instead of extending and truncating.
12341         (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
12342         !flag_trapping_math instead of flag_unsafe_math_optimizations.
12343         Change to frndint<mode>2_<rounding>.
12344         (frndintxf2_<rounding>_i387): Likewise.  Change to
12345         frndint<mode>2_<rounding>_i387.
12346         (<rounding_insn>xf2): Likewise.
12347         (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
12348         !flag_trapping_math instead of flag_unsafe_math_optimizations for
12349         x87.  Test TARGET_ROUND || !flag_trapping_math ||
12350         flag_fp_int_builtin_inexact instead of !flag_trapping_math for
12351         SSE.  Use ROUND_NO_EXC in constant operand of
12352         gen_sse4_1_round<mode>2.  Just use gen_frndint<mode>2_<rounding>
12353         for 387 instead of extending and truncating.
12355 2016-06-03  H.J. Lu  <hongjiu.lu@intel.com>
12356             Julia Koval  <julia.koval@intel.com>
12358         PR target/66960
12359         PR target/67630
12360         PR target/67634
12361         PR target/67841
12362         PR target/68037
12363         PR target/68618
12364         PR target/68661
12365         PR target/69575
12366         PR target/69596
12367         PR target/69734
12368         * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
12369         * config/i386/i386.c (ix86_conditional_register_usage): Preserve
12370         all registers, except for function return registers if there are
12371         no caller-saved registers.
12372         (ix86_set_func_type): New function.
12373         (ix86_set_current_function): Call ix86_set_func_type to set
12374         no_caller_saved_registers and func_type.  Call reinit_regs if
12375         caller-saved registers are changed.  Don't allow MPX, SSE, MMX
12376         nor x87 instructions in interrupt handler nor function with
12377         no_caller_saved_registers attribute.
12378         (ix86_function_ok_for_sibcall): Return false if there are no
12379         caller-saved registers.
12380         (type_natural_mode): Don't warn ABI change for MMX in interrupt
12381         handler.
12382         (ix86_function_arg_advance): Skip for callee in interrupt handler.
12383         (ix86_function_arg): Return special arguments in interrupt handler.
12384         (ix86_promote_function_mode): Promote pointer to word_mode only
12385         for normal functions.
12386         (ix86_can_use_return_insn_p): Don't use `ret' instruction in
12387         interrupt handler.
12388         (ix86_epilogue_uses): New function.
12389         (ix86_hard_regno_scratch_ok): Likewise.
12390         (ix86_save_reg): Preserve all registers in interrupt handler
12391         after reload.  Preserve all registers, except for function return
12392         registers, if there are no caller-saved registers after reload.
12393         (find_drap_reg): Always use callee-saved register if there are
12394         no caller-saved registers.
12395         (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
12396         for interrupt handler.
12397         (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
12398         Emit cld instruction if stringops are used in interrupt handler
12399         or interrupt handler isn't a leaf function.
12400         (ix86_expand_epilogue): Generate interrupt return for interrupt
12401         handler and pop the 'ERROR_CODE' off the stack before interrupt
12402         return in exception handler.
12403         (ix86_expand_call): Disallow calling interrupt handler directly.
12404         If there are no caller-saved registers, mark all registers that
12405         are clobbered by the call which returns as clobbered.
12406         (ix86_handle_no_caller_saved_registers_attribute): New function.
12407         (ix86_handle_interrupt_attribute): Likewise.
12408         (ix86_attribute_table): Add interrupt and no_caller_saved_registers
12409         attributes.
12410         (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
12411         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
12412         accumulation in interrupt function if stack may be realigned to
12413         avoid DRAP.
12414         (EPILOGUE_USES): New.
12415         (function_type): New enum.
12416         (machine_function): Add func_type and no_caller_saved_registers.
12417         * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
12418         (interrupt_return): New pattern.
12419         * doc/extend.texi: Document x86 interrupt and
12420         no_caller_saved_registers attributes.
12422 2016-06-03  Bernd Schmidt  <bschmidt@redhat.com>
12424         PR tree-optimization/52171
12425         * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
12426         (expand_builtin_memcmp): New arg RESULT_EQ.  All callers changed.
12427         Look for constant strings.  Move some code to emit_block_cmp_hints
12428         and use it.
12429         * builtins.def (BUILT_IN_MEMCMP_EQ): New.
12430         * defaults.h (COMPARE_MAX_PIECES): New macro.
12431         * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
12432         (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
12433         (clear_by_pieces_1): Don't declare.  Move definition before use.
12434         (can_do_by_pieces): New static function.
12435         (can_move_by_pieces): Use it.  Return bool.
12436         (by_pieces_ninsns): Renamed from move_by_pieces_ninsns.  New arg
12437         OP.  All callers changed.  Handle COMPARE_BY_PIECES.
12438         (class pieces_addr); New.
12439         (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
12440         pieces_addr::adjust, pieces_addr::increment_address,
12441         pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
12442         functions for it.
12443         (class op_by_pieces_d): New.
12444         (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
12445         functions for it.
12446         (class move_by_pieces_d, class compare_by_pieces_d,
12447         class store_by_pieces_d): New subclasses of op_by_pieces_d.
12448         (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
12449         move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
12450         store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
12451         compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
12452         compare_by_pieces_d::finish_mode): New member functions.
12453         (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
12454         functions.
12455         (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
12456         (emit_block_cmp_hints): New function.
12457         (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
12458         use the newly defined classes.
12459         * expr.h (by_pieces_constfn): New typedef.
12460         (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
12461         (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
12462         (move_by_pieces_ninsns): Don't declare.
12463         (can_move_by_pieces): Change return value to bool.
12464         * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
12465         (compare_by_pieces_branch_ratio): New hook.
12466         * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
12467         (by_pieces_ninsns): Declare.
12468         * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
12469         COMPARE_BY_PIECES.
12470         (default_compare_by_pieces_branch_ratio): New function.
12471         * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
12472         * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
12473         * doc/tm.texi: Regenerate.
12474         * tree-ssa-strlen.c: Include "builtins.h".
12475         (handle_builtin_memcmp): New static function.
12476         (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
12477         * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
12479 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
12481         * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
12482         relevant stmts which are simple and invariant.
12483         * tree-vect-loop.c (vectorizable_live_operation): Check relevance
12484         instead of simple and invariant
12486 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
12488         * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
12489         (vectorizable_reduction): Check for new relevant state.
12490         (vectorizable_live_operation): vectorize live stmts using
12491         BIT_FIELD_REF.  Remove special case for gimple assigns stmts.
12492         * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
12493         (vect_stmt_relevant_p): Check for stmts which are only used live.
12494         (process_use): Use of a stmt does not inherit it's live value.
12495         (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
12496         (vect_analyze_stmt): Check for new relevant state.
12497         * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
12498         outside the loop, but not inside it.
12500 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
12502         * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
12503         * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
12504         (vect_get_vec_def_for_operand): Split out code.
12506 2016-06-03  Segher Boessenkool  <segher@kernel.crashing.org>
12508         * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
12510 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
12512         * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
12514 2016-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12516         * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
12518 2016-06-03  Jakub Jelinek  <jakub@redhat.com>
12520         PR middle-end/71387
12521         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
12522         to noreturn e->callee->decl that has void return type and void
12523         arguments, adjust gimple_call_fntype and remove lhs even if it had
12524         previously addressable type.
12526 2016-06-02  Jeff Law  <law@redhat.com>
12528         PR tree-optimization/71328
12529         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
12530         error when checking for a jump back onto the copied path.
12532 2016-06-02  David Malcolm  <dmalcolm@redhat.com>
12534         * config/microblaze/microblaze.c (get_branch_target): Add return
12535         NULL_RTX for the non-CALL_P case.
12536         (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
12537         (insert_wic): Remove unused local "j".
12539 2016-06-02  Martin Liska  <mliska@suse.cz>
12541         * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
12543 2016-06-02  H.J. Lu  <hongjiu.lu@intel.com>
12544             Julia Koval  <julia.koval@intel.com>
12546         * function.c (assign_parm_setup_stack): Force source into a
12547         register if needed.
12548         * target.def (function_incoming_arg): Update documentation to
12549         allow arbitrary address computation based on hard register.
12550         * doc/tm.texi: Regenerated.
12552 2016-06-02  Martin Liska  <mliska@suse.cz>
12554         * predict.c (combine_predictions_for_bb): Fix first match in
12555         cases where a first predictor contains more than one occurence
12556         in list of predictors.  Take the best value in such case.
12558 2016-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12560         PR rtl-optimization/71295
12561         * rtlanal.c (subreg_get_info): If taking a subreg at the requested
12562         offset would go over the size of the inner mode reject it.
12564 2016-06-02  Jakub Jelinek  <jakub@redhat.com>
12566         * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
12567         x=x,x and v=v,m instead of x=x,m.
12569         * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
12570         alternative.  Change x=x,x alternative to v=Yv,Yv and x=rm,C
12571         alternative to v=rm,C.
12573         * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
12574         alternative.  Change x=xm,C alternative to v=vm,C, x=x,x alternative
12575         to v=Yv,Yv and x=x,m to v=v,m.  Use maybe_evex prefix attribute
12576         instead of vex for the last two above mentioned alternatives.
12578 2016-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12580         PR target/70830
12581         * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
12583 2016-06-02  Segher Boessenkool  <segher@kernel.crashing.org>
12585         * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
12587 2016-06-01  David Malcolm  <dmalcolm@redhat.com>
12589         * config/rl78/rl78.c (rl78_expand_prologue): Convert local
12590         from int to unsigned.
12592 2016-05-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
12594         * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
12595         alternatives, eliminating preferred register class.  Add support
12596         for the MTVSRDD instruction in ISA 3.0.
12597         (vsx_splat_v4si_internal): Use splat_input_operand instead of
12598         reg_or_indexed_operand.
12599         (vsx_splat_v4sf_internal): Likewise.
12601 2016-05-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
12603         PR target/71186
12604         * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
12605         for loading up all 0's or all 1's.
12607 2016-06-01  Thomas Preud'homme  <thomas.preudhomme@arm.com>
12609         * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
12611 2016-06-01  Eduard Sanou  <dhole@openmailbox.org>
12613         * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
12614         extension.
12615         * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
12616         * gcc.c (set_source_date_epoch_envvar): New function, sets
12617         the SOURCE_DATE_EPOCH environment variable to the current time.
12619 2016-06-01  Eric Botcazou  <ebotcazou@adacore.com>
12621         * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
12622         the factor for live Phi nodes.
12624 2016-06-01  Jan Hubicka  <hubicka@ucw.cz>
12626         * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
12627         * tree-parloops.c (parallelize_loops): likewise.
12628         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
12629         tree_unswitch_outer_loop): likewise.
12631 2016-06-01  Jakub Jelinek  <jakub@redhat.com>
12633         PR middle-end/71371
12634         * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
12635         around creation of the temporary.
12637 2016-06-01  Richard Biener  <rguenther@suse.de>
12639         PR tree-optimization/71366
12640         * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
12641         (unloop_loops): Move removing edges here ...
12642         (try_unroll_loop_completely): ... from here.
12643         (try_peel_loop): ... and here.
12644         (tree_unroll_loops_completely_1): Track parent loops via
12645         bitmap of header BBs.
12646         (tree_unroll_loops_completely): Adjust for that.
12648 2016-06-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
12650         * config/rs6000/altivec.h (vec_slv): New macro.
12651         (vec_srv): New macro.
12652         * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
12653         (UNSPEC_VSRV): New value.
12654         (vslv): New insn.
12655         (vsrv): New insn.
12656         * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
12657         (vsrv): New builtin definition.
12658         * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
12659         define argument types for new builtin.
12660         (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
12661         new builtin.
12662         * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
12663         functions.
12665 2016-06-01  Uros Bizjak  <ubizjak@gmail.com>
12666             Jocelyn Mayer  <l_indien@magic.fr>
12668         PR target/67310
12669         * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
12670         detect processor family for signature_CENTAUR_ebx.
12671         <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
12672         signature_CENTAUR_ebx.
12673         <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
12674         <default>: Pass x86-64 for has_longmode.
12676 2016-06-01  Nathan Sidwell  <nathan@acm.org>
12678         * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
12679         undefined weak.
12681 2016-06-01  Richard Biener  <rguenther@suse.de>
12683         PR tree-optimization/71261
12684         * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
12685         of stmts successfully put in the bool pattern.  Remove
12686         single-use restriction.
12687         (adjust_bool_pattern_cast): Add cast at the use site via the
12688         pattern def sequence.
12689         (adjust_bool_pattern): Remove recursion, maintain a hash-map
12690         of patterned defs.  Use the pattern def seqence instead of
12691         multiple independent patterns.
12692         (sort_after_uid): New qsort compare function.
12693         (adjust_bool_stmts): New function to process stmts in the bool
12694         pattern in IL order.
12695         (vect_recog_bool_pattern): Adjust.
12696         * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
12697         (ifcvt_walk_pattern_tree): Likewise.
12698         (stmt_is_root_of_bool_pattern): Likewise.
12699         (ifcvt_repair_bool_pattern): Likewise.
12700         (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
12702 2016-06-01  Jan Hubicka  <hubicka@ucw.cz>
12704         * loop-unroll.c (decide_unroll_constant_iterations,
12705         decide_unroll_runtime_iterations, decide_unroll_stupid): Use
12706         likely upper bounds.
12707         * loop-iv.c (find_simple_exit): Dump likely upper bounds.
12709 2016-06-01  Thomas Schwinge  <thomas@codesourcery.com>
12711         * tree-core.h (enum omp_clause_code): Remove
12712         OMP_CLAUSE_DEVICE_RESIDENT.  Adjust all users.
12714 2016-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12716         * config/arm/sync.md (arm_store_exclusive<mode>):
12717         Use 'H' output modifier on operands[2] rather than creating a new
12718         entry in out-of-bounds memory of the operands array.
12719         (arm_store_release_exclusivedi): Likewise.
12721 2016-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12723         * config/arm/arm.c (arm_fusion_enabled_p): New function.
12724         * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
12725         * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
12726         Add "=w,0" alternative.  Enable it when AES/AESMC fusion is enabled.
12728 2016-06-01  Eric Botcazou  <ebotcazou@adacore.com>
12730         * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
12731         into account live statements for mask producers.
12733 2016-06-01  Richard Biener  <rguenther@suse.de>
12735         PR tree-optimization/71311
12736         * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
12737         restrict to non-INTEGER_CST @0.
12739 2016-06-01  Richard Biener  <rguenther@suse.de>
12741         * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
12742         (relational patterns): Use :c to avoid pattern duplications.
12744 2016-06-01  Richard Biener  <rguenther@suse.de>
12746         * genmatch.c (comparison_code_p): New predicate.
12747         (swap_tree_comparison): New function.
12748         (commutate): Add for_vec parameter to append new for entries.
12749         Support commutating relational operators by swapping it alongside
12750         operands.
12751         (lower_commutative): Adjust.
12752         (dt_simplify::gen): Do not pass artificial operators to gen
12753         functions.
12754         (decision_tree::gen): Do not add artificial operators as parameters.
12755         (parser::parse_expr): Verify operator commutativity when :c is
12756         applied.  Allow :C to override this.
12757         * match.pd: Adjust patterns to use :C instead of :c where required.
12759 2016-06-01  Patrick Palka  <ppalka@gcc.gnu.org>
12761         PR tree-optimization/71077
12762         * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
12763         the combining step, use boolean_false_node and boolean_true_node
12764         as the designated false/true return values.
12766 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
12768         * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
12769         * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
12770         (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
12771         PRED_LOOP_EXIT.
12773 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
12775         * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
12776         of flags impliying the register renaming.
12777         * toplev.c (process_options): Do not imply flag_rename_registers with
12778         loop peeling.
12780 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
12782         * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
12783         default implementation.
12785 2016-05-31  Nathan Sidwell  <nathan@acm.org>
12787         * dwarf2out.c (cur_line_info_table): Add GTY marker.
12789 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
12791         * config/sh/constraints.md (b): Remove constraint.
12792         * config/sh/predicates.md (arith_reg_operand): Remove
12793         TARGET_REGISTER_P.
12794         * config/sh/sh-modes.def (PDI): Remove.
12795         * config/sh/sh.c (sh_target_reg_class,
12796         sh_optimize_target_register_callee_saved): Remove functions.
12797         (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
12798         (sh_expand_epilogue): Update comment.
12799         (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
12800         sh_secondary_reload): Remove TARGET_REGS related code.
12801         * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
12802         TARGET_REGISTER_P): Remove macros.
12803         (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
12804         * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
12805         TR1_REG, TR2_REG): Remove constants.
12806         * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
12808 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
12810         * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
12811         define_expand patterns.
12812         (adddi3_compact): Rename to adddi3.
12813         (subdi3_compact): Rename to subdi3.
12814         (*negdi2): Rename to negdi2.
12815         (*abs<mode>2): Rename to abs<mode>2.
12817 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
12819         * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
12820         (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
12821         (atomic_sub_fetchsi): ... this new pattern.
12822         (mvtc): Add CC_REG clobber.
12824 2016-05-31  Marek Polacek  <polacek@redhat.com>
12826         * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
12828 2016-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12830         * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
12831         aarch64_fusion_enabled_p to check for fusion capabilities.
12833 2016-05-31  Richard Biener  <rguenther@suse.de>
12835         PR tree-optimization/71352
12836         * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
12837         minus one and a negate.
12839 2016-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12841         * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
12842         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
12843         Delete prototype.
12844         * config/aarch64/iterators.md (insn_count): Add descriptive comment.
12845         * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
12846         Remove use of aarch64_simd_attr_length_move, set length attribute
12847         directly.
12848         (*aarch64_be_movoi): Likewise.
12849         (*aarch64_be_movci): Likewise.
12850         (*aarch64_be_movxi): Likewise.
12852 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
12854         * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
12855         It no longer does that.
12856         * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
12858 2016-05-31  Wladimir J. van der Laan  <laanwj@gmail.com>
12860         * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
12861         attribute __unused__.
12863 2016-05-31  Thomas Preud'homme  <thomas.preudhomme@arm.com>
12865         * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
12866         * config/arm/arm.c (arm_arch_thumb1): Define.
12867         (arm_option_override): Initialize arm_arch_thumb1.
12868         * config/arm/arm.h (arm_arch_thumb1): Declare.
12869         (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
12870         support Thumb-1 ISA.
12872 2016-05-31  Kirill Yukhin  <kirill.yukhin@intel.com>
12874         PR target/71346
12875         * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
12876         `Yv' for scalar operand.
12878 2016-05-31  Tom de Vries  <tom@codesourcery.com>
12880         PR tree-optimization/69068
12881         * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
12882         phis with more than two args.
12884 2016-05-30  Andreas Tobler  <andreast@gcc.gnu.org>
12886         * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
12887         armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
12888         target.
12890 2016-05-30  Jose E. Marchesi  <jose.marchesi@oracle.com>
12892         * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
12893         tune_64.
12894         * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
12895         support on SPARC.
12896         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
12897         cpu_32, cpu_64, tune_32 and tune_64.
12898         * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
12900 2016-05-30  Uros Bizjak  <ubizjak@gmail.com>
12902         * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
12904 2016-05-30  Andi Kleen  <ak@linux.intel.com>
12906         * auto-profile.c (read_profile): Replace asserts with errors
12907         when file does not exist.
12908         * gcov-io.c (gcov_read_words): Dito.
12910 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
12912         * tree-cfg.c (print_loop): Print likely upper bounds.
12914 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
12916         * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
12917         * opts.c (default_options): Enable peel loops at -O3.
12918         * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
12919         (try_peel_loop): Do not re-peel already peeled loops;
12920         use likely upper bounds; fix profile updating.
12921         (pass_complete_unroll::execute): Initialize peeled_loops.
12923 2016-05-30  Martin Liska  <mliska@suse.cz>
12925         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
12926         computed costs by frequency of BB they belong to.
12927         (get_scaled_computation_cost_at): New function.
12929 2016-05-30  Alexander Monakov  <amonakov@ispras.ru>
12930             Marc Glisse  <marc.glisse@inria.fr>
12932         PR tree-optimization/71289
12933         * match.pd (-1 / B < A, A > -1 / B): New transformations.
12935 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
12937         * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
12939 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
12941         * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
12942         for peeled copies; avoid underflow when updating estimates; correctly
12943         scale loop profile.
12945 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
12947         * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
12948         r236875. Corrected oe3 to oe2 as obvious.
12950 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
12952         PR middle-end/71269
12953         PR middle-end/71252
12954         * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
12955         that inserted stmt will not dominate stmts that defines its operand.
12956         (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
12957         (rewrite_expr_tree_parallel): Likewise.
12959 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
12961         PR middle-end/71252
12962         * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
12963         all fields including stmt_to_insert are swapped.
12965 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
12967         * predict.h (force_edge_cold): Declare.
12968         * predict.c (force_edge_cold): New function.
12969         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
12970         updating.
12971         (canonicalize_loop_induction_variables): Fix formating.
12973 2016-05-30  Eric Botcazou  <ebotcazou@adacore.com>
12975         * config/visium/visium.c (visium_split_double_add): Minor tweaks.
12976         (visium_expand_copysign): Use gen_int_mode directly.
12977         (visium_compute_frame_size): Minor tweaks.
12979 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
12981         * tree-vect-loop.c (vect_analyze_loop_2): Use
12982         likely_max_stmt_executions_int.
12984 2016-05-30  Tom de Vries  <tom@codesourcery.com>
12986         PR tree-optimization/69067
12987         * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
12989 2016-05-29  Uros Bizjak  <ubizjak@gmail.com>
12991         PR target/71245
12992         * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
12993         New peepholes to remove unneeded fild/fistp pairs.
12994         (define_peephole2 atomic_loaddi_fpu): Ditto.
12996 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
12998         * predict.c (maybe_hot_frequency_p): Avoid division.
13000 2016-05-28  Gerald Pfeifer  <gerald@pfeifer.com>
13002         * doc/install.texi: Use https for shop.fsf.org.
13004 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
13006         * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
13007         likely_max_stmt_executions_int.
13009 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
13011         * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
13012         likely_max_stmt_executions_int.
13014 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
13016         * profile.c (compute_branch_probabilities): Do not report hitrates
13017         here.
13018         (branch_prob): Report hitrates here.
13019         * predict.c (gimple_predict_edge): Do not assert profile status;
13020         fix formatting issues.
13022 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
13024         * predict.c (edge_predicted_by_p): New function.
13025         (predict_paths_for_bb): Do not put multiple predictions of the same type
13026         on one edge.
13028 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
13030         * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
13031         commit.
13033 2016-05-28  Alan Modra  <amodra@gmail.com>
13035         * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
13037 2016-05-28  Alan Modra  <amodra@gmail.com>
13039         PR rtl-optimization/71275
13040         * ira.c (ira): Free dominance info.
13042 2016-05-27  Gerald Pfeifer  <gerald@pfeifer.com>
13044         * doc/sourcebuild.texi: New address for upstream Go repository.
13046 2016-05-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
13048         * config/arm/arm.h (TARGET_ARM_V6M): Remove.
13049         (TARGET_ARM_V7M): Likewise.
13051 2016-05-26  Jeff Law  <law@redhat.com>
13053         * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
13054         (thread_across_edge): Remove calls to find_jump_threads_backwards.
13055         * passes.def: Add jump threading passes before DOM/VRP.
13056         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
13057         argument to a basic block from an edge.  Remove tests which are
13058         handled elsewhere.
13059         (pass_data_thread_jumps, class pass_thread_jumps): New.
13060         (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
13061         (make_pass_thread_jumps): Likewise.
13062         * tree-pass.h (make_pass_thread_jumps): Declare.
13064 2016-05-27  Eric Botcazou  <ebotcazou@adacore.com>
13066         * config/visium/visium-protos.h (split_double_move): Rename into...
13067         (visium_split_double_move): ...this.
13068         (visium_split_double_add): Declare.
13069         * config/visium/visium.c (split_double_move): Rename into...
13070         (visium_split_double_move): ...this.
13071         (visium_split_double_add): New function.
13072         (visium_expand_copysign): Renumber operands for consistency.
13073         * config/visium/visium.md (DImode move splitter): Adjust to renaming.
13074         (DFmode move splitter): Likewise.
13075         (*addi3_insn): Split by means of visium_split_double_add.
13076         (*adddi3_insn_flags): Delete.
13077         (*plus_plus_sltu<subst_arith>): New insn.
13078         (*subdi3_insn): Split by means of visium_split_double_add.
13079         (subdi3_insn_flags): Delete.
13080         (*minus_minus_sltu<subst_arith>): New insn.
13081         (*negdi2_insn): Split by means of visium_split_double_add.
13082         (*negdi2_insn_flags): Delete.
13084 2016-05-27  Ulrich Weigand  <uweigand@de.ibm.com>
13086         * configure.ac: Treat a --with-headers option without argument
13087         the same as the default (i.e. consult sys-include directory).
13088         * configure: Regenerate.
13090 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13092         * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
13093         * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
13094         prototype.
13095         * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
13096         Add "=w,0" alternative.  Enable it when AES/AESMC fusion is enabled.
13098 2016-05-27  Jiong Wang  <jiong.wang@arm.com>
13100         PR target/63596
13101         * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
13102         tree-stdarg analysis results.
13103         (aarch64_setup_incoming_varargs): Likewise.
13105 2016-05-27  Jiong Wang  <jiong.wang@arm.com>
13107         * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
13108         va_list_gpr_counter_field and va_list_fpr_counter_field.
13110 2016-05-27  Wilco Dijkstra  <wdijkstr@arm.com>
13112         PR67609
13113         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
13114         * config/aarch64/aarch64.c
13115         (aarch64_cannot_change_mode_class): Remove function.
13116         * config/aarch64/aarch64-protos.h
13117         (aarch64_cannot_change_mode_class): Remove.
13119 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
13121         * cfgloop.c (record_niter_bound): Record likely upper bounds.
13122         (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
13123         get_likely_max_loop_iterations_int): New.
13124         * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
13125         any_likely_upper_bound.
13126         (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
13127         Declare.
13128         * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
13129         * loop-unroll.c (unroll_loop_constant_iterations): Update likely
13130         upper bound.
13131         (unroll_loop_constant_iterations): Likewise.
13132         (unroll_loop_runtime_iterations): Likewise.
13133         * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
13134         * lto-streamer-out.c (output_cfg): Likewise.
13135         * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
13136         bounds.
13137         (canonicalize_loop_induction_variables): Dump likely upper bounds.
13138         * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
13139         (likely_max_loop_iterations): New.
13140         (likely_max_loop_iterations_int): New.
13141         (likely_max_stmt_executions): New.
13142         * tree-ssa-loop-niter.h (likely_max_loop_iterations,
13143         likely_max_loop_iterations_int, likely_max_stmt_executions_int,
13144         likely_max_stmt_executions): Declare.
13146 2016-05-27  Marek Polacek  <polacek@redhat.com>
13148         PR middle-end/71308
13149         * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
13151 2016-05-27  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13153         * config/s390/s390.md (2x risbg splitters): Use
13154         reg_overlap_mentioned_p instead of rtx_equal_p.
13156 2016-05-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
13158         * combine.c (make_compound_operation): Take known zero bits into
13159         account when checking for possible zero_extend.
13161 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13163         * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
13164         Use const_int_operand for operand 2 predicate.  Simplify expand code
13165         as a result.
13167 2016-05-27  Ilya Enkovich  <ilya.enkovich@intel.com>
13169         PR middle-end/71279
13170         * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
13171         into comparison.
13173 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13175         * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
13176         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
13177         that returns CC_SESWPmode and CC_ZESWPmode.
13178         (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
13179         and CC_SESWPmode.
13180         (aarch64_rtx_costs): Likewise.
13182 2016-05-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
13184         * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
13185         for ISA 3.0 min/max support.
13186         (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
13187         conditional move support.
13188         (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
13189         rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
13190         available.
13191         * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
13192         conditional moves where the comparison type is different from move
13193         type.
13194         (fp_minmax): New code iterator for smin/smax.
13195         (minmax): New code attributes for min/max.
13196         (SMINMAX): Likewise.
13197         (smax<mode>3): Combine min, max insns into one insn using the
13198         fp_minmax code iterator.  Add support for ISA 3.0 min/max
13199         instructions that don't need -ffast-math.
13200         (s<minmax><mode>3): Likewise.
13201         (smax<mode>3_vsx): Likewise.
13202         (smin<mode>3): Likewise.
13203         (s<minmax><mode>3_vsx): Likewise.
13204         (smin<mode>3_vsx): Likewise.
13205         (pre-VSX min/max splitters): Likewise.
13206         (s<minmax><mode>3_fpr): Likewise.
13207         (movsfcc): Rewrite floating point conditional moves to combine
13208         SFmode/DFmode into a single insn.
13209         (mov<mode>cc): Likewise.
13210         (movdfcc): Likewise.
13211         (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
13212         SFDF2 iterators to handle all combinations.
13213         (fseldfsf4): Likewise.
13214         (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
13215         (fseldfdf4): Likewise.
13216         (fselsfdf4): Likewise.
13217         (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
13218         comparison instructions that set a 0/-1 mask, and use it for
13219         floating point conditional move via XXSEL.
13220         (fpmask<mode>): Likewise.
13221         (xxsel<mode>): Likewise.
13222         * config/rs6000/predicates.md (min_max_operator): Delete, no
13223         longer used.
13224         (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
13225         instructions that generate a 0/-1 mask for use with XXSEL.
13226         * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
13227         say whether floating point min/max is available, either through
13228         FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
13229         (TARGET_MINMAX_DF): Likewise.
13231 2016-05-27  Alan Modra  <amodra@gmail.com>
13233         PR rtl-optimization/71275
13234         * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
13235         for update_equiv_regs and combine_and_move_insns.
13237 2016-05-26  Uros Bizjak  <ubizjak@gmail.com>
13239         * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
13240         if_then_else or cond RTXes to calculate attribute value.
13241         * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
13242         <attr "length_immediate>: Ditto.
13243         (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
13244         * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
13245         (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
13246         <attr "type">: Ditto.
13247         <attr "prefix_data16">: Ditto.
13248         <attr "prefix_extra">: Ditto.
13249         <attr "length_immediate">: Ditto.
13250         <attr "prefix">: Ditto.
13251         (vec_set<mode>_0) <attr "isa">: Ditto.
13252         <attr "prefix_extra">: Ditto.
13253         <attr "length_immediate">: Ditto.
13254         <attr "prefix">: Ditto.
13255         (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
13256         (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
13257         (sse2_storelpd) <attr "prefix_data16">: Ditto.
13258         (sse2_loadhpd) <attr "prefix_data16">: Ditto.
13259         (sse2_loadlpd) <attr "prefix_data16">: Ditto.
13260         <attr "length_immediate">: Ditto.
13261         <attr "prefix">: Ditto.
13262         (sse2_movsd) <attr "length_immediate">: Ditto.
13263         <attr "prefix">: Ditto.
13264         (vec_concatv2df)  <attr "isa">: Ditto.
13265         <attr "prefix">: Ditto.
13266         (*vec_extractv4si) <attr "prefix_extra">: Ditto.
13267         (*vec_extractv2di_1) <attr "isa">: Ditto.
13268         <attr "type">: Ditto.
13269         <attr "length_immediate">: Ditto.
13270         <attr "prefix_rex">: Ditto.
13271         <attr "prefix_extra">: Ditto.
13272         (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
13273         <attr "prefix_extra">: Ditto.
13274         <attr "length_immediate">: Ditto.
13275         (vec_concatv2di) <attr "isa">: Ditto.
13276         <attr "prefix_extra">: Ditto.
13277         <attr "length_immediate">: Ditto.
13278         <attr "prefix">: Ditto.
13280 2016-05-26  Martin Liska  <mliska@suse.cz>
13282         * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
13283         function.
13284         (operator+): Likewise.
13285         (operator-): Likewise.
13286         (comp_cost::operator+=): Likewise.
13287         (comp_cost::operator-=): Likewise.
13288         (comp_cost::operator/=): Likewise.
13289         (comp_cost::operator*=): Likewise.
13290         (operator<): Likewise.
13291         (operator==): Likewise.
13292         (operator<=): Likewise.
13293         (new_cost): Remove.
13294         (infinite_cost_p): Likewise.
13295         (add_costs): Likewise.
13296         (sub_costs): Likewise.
13297         (compare_costs): Likewise.
13298         (set_group_iv_cost): Use the newly introduced functions.
13299         (get_address_cost): Likewise.
13300         (get_shiftadd_cost): Likewise.
13301         (force_expr_to_var_cost): Likewise.
13302         (split_address_cost): Likewise.
13303         (ptr_difference_cost): Likewise.
13304         (difference_cost): Likewise.
13305         (get_computation_cost_at): Likewise.
13306         (determine_group_iv_cost_generic): Likewise.
13307         (determine_group_iv_cost_address): Likewise.
13308         (determine_group_iv_cost_cond): Likewise.
13309         (autoinc_possible_for_pair): Likewise.
13310         (determine_group_iv_costs): Likewise.
13311         (cheaper_cost_pair): Likewise.
13312         (iv_ca_recount_cost): Likewise.
13313         (iv_ca_set_no_cp): Likewise.
13314         (iv_ca_set_cp): Likewise.
13315         (iv_ca_cost): Likewise.
13316         (iv_ca_new): Likewise.
13317         (iv_ca_dump): Likewise.
13318         (iv_ca_narrow): Likewise.
13319         (iv_ca_prune): Likewise.
13320         (iv_ca_replace): Likewise.
13321         (try_add_cand_for): Likewise.
13322         (try_improve_iv_set): Likewise.
13323         (find_optimal_iv_set): Likewise.
13325 2016-05-26  Richard Sandiford  <richard.sandiford@arm.com>
13327         * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
13328         that internal functions will clobber all caller-saved registers.
13330 2016-05-26  Wilco Dijkstra  <wdijkstr@arm.com>
13332         * config/aarch64/aarch64.c (aarch64_case_values_threshold):
13333         Return a better case_values_threshold when optimizing.
13335 2016-05-26  Wilco Dijkstra  <wdijkstr@arm.com>
13337         * config/aarch64/aarch64-simd.md (aarch64_combinez):
13338         Add ? to integer variant.
13339         (aarch64_combinez_be): Likewise.
13341 2016-05-26  Jakub Jelinek  <jakub@redhat.com>
13343         * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
13344         instead of x constraint.
13345         (vcvtps2ph256<mask_name>): Likewise.
13347         * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
13348         alternative.  Formatting fix.
13350         * config/i386/sse.md
13351         (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
13352         to ...
13353         (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
13354         (*avx_vperm_broadcast_v4sf): Use v constraint instead of x.  Use
13355         maybe_evex prefix instead of vex.
13356         (*avx_vperm_broadcast_<mode>): Use v constraint instead of x.  Handle
13357         EXT_REX_SSE_REG_P (op0) case in the splitter.
13359 2016-05-25  Jeff Law  <law@redhat.com>
13361         PR tree-optimization/71272
13362         * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
13363         Update comments.  Add test for empty path.
13365 2016-05-25  Bill Seurer  <seurer@linux.vnet.ibm.com>
13367         * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
13368         * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
13369         special case builtin.
13370         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
13371         code for ALTIVEC_BUILTIN_VEC_CMPNE.
13372         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
13373         for __builtin_vec_cmpne.
13375 2016-05-25  Eric Botcazou  <ebotcazou@adacore.com>
13377         * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
13378         redundant test and bail out if the type of the new operand is not
13379         a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
13381 2016-05-25  Uros Bizjak  <ubizjak@gmail.com>
13383         * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
13384         (x_ix86_target_flags_explicit): Remove.
13385         * config/i386/i386.c (ix86_function_specific_save): Do not copy
13386         x_ix86_target_flags_explicit.
13387         (ix86_function_specific_restore): Ditto.
13389 2016-05-25  Uros Bizjak  <ubizjak@gmail.com>
13390             H.J. Lu  <hongjiu.lu@intel.com>
13392         PR target/70738
13393         * common/config/i386/i386-common.c
13394         (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
13395         (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
13396         MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
13397         * config/i386/i386.opt (ix86_target_flags): Add new Variable.
13398         (-mgeneral-regs-only): Add new option.
13399         * config/i386/i386.c (ix86_option_override_internal): Don't enable
13400         x87 instructions if only general registers are allowed.
13401         (ix86_target_string): Add ix86_flags argument. Handle additional
13402         flags options through ix86_flags argument.  Update all callers.
13403         * doc/invoke.texi (x86 Options): Document -mgeneral-regs-only.
13405 2016-05-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13407         PR rtl-optimization/66940
13408         * ifcvt.c (noce_get_alt_condition): Check that incrementing or
13409         decrementing desired_val will not overflow before performing these
13410         operations.
13412 2016-05-25  Ilya Verbin  <ilya.verbin@intel.com>
13414         * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
13415         V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
13416         * config/i386/i386.c (enum ix86_builtins): Add
13417         IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
13418         IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
13419         IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
13420         IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
13421         IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
13422         IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
13423         (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
13424         __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
13425         __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
13426         __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
13427         __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
13428         __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
13429         Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
13430         __builtin_ia32_cvtps2dq512_mask.
13431         (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
13432         V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
13433         (ix86_builtin_vectorized_function): Handle builtins mentioned above.
13434         * config/i386/sse.md
13435         (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
13436         Rename to ...
13437         (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
13438         (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
13439         to ...
13440         (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
13441         (avx512f_vec_pack_sfix_v8df): New define_expand.
13442         (avx512f_roundpd512): Rename to ...
13443         (avx512f_round<castmode>512): ... this.  Change iterator.
13444         (avx512f_roundps512_sfix): New define_expand.
13445         (round<mode>2_sfix): Change iterator.
13447 2016-05-25  Nick Clifton  <nickc@redhat.com>
13449         * config/msp430/msp430.c (msp430_attr): Produce an error if a
13450         static interrupt handler is detected.
13451         * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
13452         default linker script.
13453         * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
13454         the low part of a symbolic pointer.
13456 2016-05-25  Richard Biener  <rguenther@suse.de>
13458         PR tree-optimization/71261
13459         * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
13460         interesting stmt instead of immediate uses when looking
13461         for the use operand to replace.
13463 2016-05-25  Martin Liska  <mliska@suse.cz>
13465         * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
13467 2016-05-25  Richard Biener  <rguenther@suse.de>
13469         PR tree-optimization/71264
13470         * tree-vect-stmts.c (vect_init_vector): Properly deal with
13471         vector type val.
13473 2016-05-25  Martin Liska  <mliska@suse.cz>
13475         PR tree-optimization/71239
13476         * tree.c (array_at_struct_end_p): Do not call operand_equal_p
13477         if DECL_SIZE is NULL.
13479 2016-05-25  Richard Biener  <rguenther@suse.de>
13481         * timevar.def (TV_TREE_LOOP_IFCVT): Add.
13482         * tree-if-conv.c (pass_data_if_conversion): Use it.
13484 2016-05-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13486         * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
13487         * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
13488         * varpool.c (varpool_node::get_availability): Likewise.
13490 2016-05-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
13492         * config/rs6000/altivec.md (VNEG iterator): New iterator for
13493         VNEGW/VNEGD instructions.
13494         (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
13495         (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
13496         support for ISA 3.0 VNEGW/VNEGD instructions.
13498 2016-05-24  Cesar Philippidis  <cesar@codesourcery.com>
13500         * gimplify.c (omp_notice_variable): Use zero-length arrays for data
13501         pointers inside OACC_DATA regions.
13502         (gimplify_scan_omp_clauses): Prune firstprivate clause associated
13503         with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
13504         (gimplify_adjust_omp_clauses): Fix typo in comment.
13506 2016-05-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
13508         * config/rs6000/altivec.md (VParity): New mode iterator for vector
13509         parity built-in functions.
13510         (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
13511         zeros.
13512         (p9v_parity<mode>2): Likewise.
13513         * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
13514         parity.
13515         (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
13516         (parity<mode>2): ISA 3.0 expander for vector parity.
13517         * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
13518         power9 built-ins.
13519         (BU_P9_64BIT_MISC_0): Likewise.
13520         (BU_P9_MISC_0): Likewise.
13521         (BU_P9V_AV_1): Likewise.
13522         (BU_P9V_AV_2): Likewise.
13523         (BU_P9V_AV_3): Likewise.
13524         (BU_P9V_AV_P): Likewise.
13525         (BU_P9V_VSX_1): Likewise.
13526         (BU_P9V_OVERLOAD_1): Likewise.
13527         (BU_P9V_OVERLOAD_2): Likewise.
13528         (BU_P9V_OVERLOAD_3): Likewise.
13529         (VCTZB): Add vector count trailing zeros support.
13530         (VCTZH): Likewise.
13531         (VCTZW): Likewise.
13532         (VCTZD): Likewise.
13533         (VPRTYBD): Add vector parity support.
13534         (VPRTYBQ): Likewise.
13535         (VPRTYBW): Likewise.
13536         (VCTZ): Add overloaded vector count trailing zeros support.
13537         (VPRTYB): Add overloaded vector parity support.
13538         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
13539         overloaded vector count trailing zeros and parity instructions.
13540         * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
13541         vector parity support.
13542         * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
13543         trailing zeros support.
13544         (vec_cntlz): Likewise.
13545         (vec_vctzb): Likewise.
13546         (vec_vctzd): Likewise.
13547         (vec_vctzh): Likewise.
13548         (vec_vctzw): Likewise.
13549         (vec_vprtyb): Add ISA 3.0 vector parity support.
13550         (vec_vprtybd): Likewise.
13551         (vec_vprtybw): Likewise.
13552         (vec_vprtybq): Likewise.
13553         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
13554         the ISA 3.0 vector count trailing zeros and vector parity built-in
13555         functions.
13557 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
13559         * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
13560         when there is stmt_to_insert.
13562 2016-05-24  Martin Sebor  <msebor@redhat.com>
13564         PR c++/71147
13565         * tree.h (complete_or_array_type_p): New inline function.
13567 2016-05-24  Jakub Jelinek  <jakub@redhat.com>
13569         * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
13570         * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
13571         rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
13573         * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
13574         Limit 1st alternative to noavx isa, split 2nd alternative into one
13575         noavx and one avx alternative, use *x and Bm in the former and
13576         x and m in the latter.
13578         * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
13579         of sse4 for the first alternative, drop %v from the template
13580         and d operand modifier.  Split second alternative into one sse4_noavx
13581         and one avx alternative, use *x instead of *v in the former and v
13582         instead of *v in the latter.
13583         (*sse4_1_extractps): Use noavx isa instead of * for the first
13584         alternative, drop %v from the template.  Split second alternative into
13585         one noavx and one avx alternative, use *x instead of *v in the
13586         former and v instead of *v in the latter.
13587         (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
13588         with noavx and the last one with avx.
13589         (sse4_1_phminposuw): Guard first alternative with noavx isa,
13590         split the second one into one noavx and one avx alternative,
13591         use *x and Bm in the former and x and m in the latter one.
13592         (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
13593         alternatives.
13595         * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
13596         first two alternatives to noavx, use *x instead of *v in the second
13597         one, add avx alternative without *.
13598         (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
13599         sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
13600         sse4_1_<code>v2siv2di2<mask_name>): Likewise.
13602 2016-05-24  Jeff Law  <law@redhat.com>
13604         * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
13605         New function, extracted from...
13606         (fsm_find_control_statement_thread_paths): Here.  Use the new function.
13607         Allow simple copies and constant initializations in the SSA chain.
13609 2016-05-24  Marek Polacek  <polacek@redhat.com>
13611         PR c/71249
13612         * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
13613         scope.
13615 2016-05-24  Jakub Jelinek  <jakub@redhat.com>
13617         PR c++/71257
13618         * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
13619         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
13620         SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.  Add
13621         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
13622         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
13624 2016-05-24  Richard Biener  <rguenther@suse.de>
13626         PR tree-optimization/71240
13627         * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
13628         has integral type.
13630 2016-05-24  Richard Biener  <rguenther@suse.de>
13632         PR tree-optimization/71230
13633         * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
13635 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
13637         * tree-vectorizer.h (vectorizable_comparison): Delete.
13638         * tree-vect-loop.c (vectorizable_reduction): Remove redundant
13639         PURE_SLP_STMT check.
13640         * tree-vect-stmts.c (vectorizable_call): Likewise.
13641         (vectorizable_simd_clone_call): Likewise.
13642         (vectorizable_conversion): Likewise.
13643         (vectorizable_assignment): Likewise.
13644         (vectorizable_shift): Likewise.
13645         (vectorizable_operation): Likewise.
13646         (vectorizable_load): Likewise.
13647         (vectorizable_condition): Likewise.
13648         (vectorizable_store): Likewise.  Assert that we don't have
13649         hybrid SLP.
13650         (vectorizable_comparison): Make static.  Remove redundant
13651         PURE_SLP_STMT check.
13652         (vect_transform_stmt): Assert that we always have an slp_node
13653         if PURE_SLP_STMT.
13655 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13657         * config/arm/neon.md (ashldi3_neon):  Replace comparison of INTVAL of
13658         operands[2] against 1 with comparison against CONST1_RTX.
13659         (<shift>di3_neon): Likewise.
13660         * config/arm/predicates.md (const0_operand): Replace with comparison
13661         against CONST0_RTX.
13663 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13665         * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
13666         operands[2] against 1 with comparison against CONST1_RTX.
13667         (ashrdi3): Likewise.
13668         (lshrdi3): Likewise.
13669         (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
13670         UINTVAL.
13671         (ashrsi3): Likewise.
13672         (lshrsi3): Likewise.
13673         (rotrsi3): Likewise.
13674         (define_split above *compareqi_eq0): Likewise.
13675         (define_split above "prologue"): Likewise.
13676         * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
13677         * config/arm/predicates.md (shift_operator): Likewise.
13678         (shift_nomul_operator): Likewise.
13679         (sat_shift_operator): Likewise.
13680         (thumb1_cmp_operand): Likewise.
13681         (const_neon_scalar_shift_amount_operand): Replace manual range
13682         check with IN_RANGE.
13683         * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
13684         Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
13686 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13688         * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
13689         with HOST_WIDE_INT_1.
13690         (insv): Likewise.
13691         * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
13692         1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
13693         (arm_canonicalize_comparison): Likewise.
13694         (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
13695         HOST_WIDE_INT_1.
13696         (thumb1_size_rtx_costs): Likewise.
13697         (vfp_const_double_index): Replace cast of 1 to unsigned
13698         HOST_WIDE_INT with HOST_WIDE_INT_1U.
13699         (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
13700         HOST_WIDE_INT_1.
13701         (arm_asan_shadow_offset): Replace cast of 1 to unsigned
13702         HOST_WIDE_INT with HOST_WIDE_INT_1U.
13703         * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
13704         HOST_WIDE_INT with HOST_WIDE_INT_1.
13706 2016-05-24  Marek Polacek  <polacek@redhat.com>
13708         * tree-cfg.h (should_remove_lhs_p): New predicate.
13709         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
13710         * gimplify.c (gimplify_modify_expr): Likewise.
13711         * tree-cfg.c (verify_gimple_call): Likewise.
13712         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
13713         * gimple-fold.c: Include "tree-cfg.h".
13714         (gimple_fold_call): Use should_remove_lhs_p.
13716 2016-05-24  Richard Biener  <rguenther@suse.de>
13718         PR tree-optimization/71253
13719         * cfganal.h (control_dependences): Make robust against edge
13720         and BB removal.
13721         (control_dependences::control_dependences): Remove edge_list argument.
13722         (control_dependences::get_edge): Remove.
13723         (control_dependences::get_edge_src): Add.
13724         (control_dependences::get_edge_dest): Likewise.
13725         (control_dependences::m_el): Make a vector of edge src/dest index.
13726         * cfganal.c (control_dependences::find_control_dependence): Adjust.
13727         (control_dependences::control_dependences): Likewise.
13728         (control_dependences::~control_dependence): Likewise.
13729         (control_dependences::get_edge): Remove.
13730         (control_dependences::get_edge_src): Add.
13731         (control_dependences::get_edge_dest): Likewise.
13732         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
13733         get_edge_src.
13734         (perform_tree_ssa_dce): Adjust.
13735         * tree-loop-distribution.c (create_edge_for_control_dependence): Use
13736         get_edge_src.
13737         (pass_loop_distribution::execute): Adjust.  Do loop destroying
13738         conditional on changed.
13740 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13742         PR target/69857
13743         * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
13744         return.  Reindent transformation comment and mention the ARM state
13745         behavior.
13747 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
13749         PR middle-end/71252
13750         * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
13751         after build_and_add_sum creates new use stmt.
13753 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
13755         * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
13756         load_lanes/grouped_load classification comes first.  Don't check
13757         whether the vectorization factor is a multiple of the group size
13758         for load_lanes.
13760 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
13762         * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
13763         GROUP_GAP for single-element interleaving.
13764         * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
13765         variable.
13767 2016-05-24  Richard Biener  <rguenther@suse.de>
13769         PR middle-end/70434
13770         PR c/69504
13771         * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
13772         bases which are accessed with non-invariant indices.
13773         * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
13774         constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
13776 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
13778         PR middle-end/71170
13779         * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
13780         (add_to_ops_vec): Add stmt_to_insert.
13781         (add_repeat_to_ops_vec): Init stmt_to_insert.
13782         (insert_stmt_before_use): New.
13783         (transform_add_to_multiply): Remove mult_stmt insertion and add it
13784         to ops vector.
13785         (get_ops): Init stmt_to_insert.
13786         (maybe_optimize_range_tests): Likewise.
13787         (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
13788         (rewrite_expr_tree_parallel): Likewise.
13789         (reassociate_bb): Likewise.
13791 2016-05-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
13793         PR target/71201
13794         * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
13795         ISA 3.0 xxperm fusion alternative.
13796         (altivec_vperm_v8hiv16qi): Likewise.
13797         (altivec_vperm_<mode>_uns_internal): Likewise.
13798         (vperm_v8hiv4si): Likewise.
13799         (vperm_v16qiv8hi): Likewise.
13801 2016-05-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
13802             Kelvin Nilsen  <kelvin@gcc.gnu.org>
13804         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
13805         vpermr/xxpermr on ISA 3.0.
13806         (altivec_expand_vec_perm_le): Likewise.
13807         * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
13808         (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
13809         ISA 3.0.
13811 2016-05-23  Uros Bizjak  <ubizjak@gmail.com>
13813         * config/i386/i386.h (IS_STACK_MODE): Enable for
13814         TARGET_MIX_SSE_I387.  Rewrite using X87_FLOAT_MODE_P and
13815         SSE_FLOAT_MODE_P macros.
13816         * config/i386/i386.c (ix86_preferred_reload_class): Use
13817         IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
13818         Cleanup regclass processing for CONST_DOUBLE_P.
13819         (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
13820         (ix86_rtx_costs): Remove redundant TARGET_80387 check
13821         with IS_STACK_MODE macro.
13822         * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
13823         with TARGET_SSE2.
13824         (*movdf_internal): Use IS_STACK_MODE macro.
13825         (*movsf_internal): Ditto.
13827 2016-05-23  Marc Glisse  <marc.glisse@inria.fr>
13829         * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
13830         ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
13832 2016-05-23  Jeff Law  <law@redhat.com>
13834         * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
13835         extracted from ...
13836         (fsm_find_control_statement_thread_paths): Call it.
13838 2016-05-23  Martin Jambor  <mjambor@suse.cz>
13840         PR ipa/71234
13841         * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
13842         from_global_constant if t is not NULL.
13844 2016-05-23  Marek Polacek  <polacek@redhat.com>
13846         PR c/49859
13847         * common.opt (Wswitch-unreachable): New option.
13848         * doc/invoke.texi: Document -Wswitch-unreachable.
13849         * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
13850         warning.
13852 2016-05-23  Bin Cheng  <bin.cheng@arm.com>
13854         * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
13855         TMR_INDEX is non-NULL.
13857 2016-05-23  Richard Biener  <rguenther@suse.de>
13859         PR tree-optimization/71230
13860         * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
13861         (try_special_add_to_ops): ... here.  Always test for single-use.
13863 2016-05-23  Martin Jambor  <mjambor@suse.cz>
13865         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
13866         default block if a PHI node in the original one would be resized.
13868 2016-05-23  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
13870         PR tree-optimization/58135
13871         * tree-vect-slp.c: When group size is not multiple
13872         of vector size, allow splitting of store group at
13873         vector boundary.
13875 2016-05-23  Christophe Lyon  <christophe.lyon@linaro.org>
13877         * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
13879 2016-05-22  Jakub Jelinek  <jakub@redhat.com>
13881         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
13882         vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
13883         condition.  For !TARGET_AVX512DQ, emit 32x4 instruction instead
13884         of 64x2.
13886         * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
13887         vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
13888         v constraint instead of x and vinserti32x4 insn.
13890         * config/i386/sse.md (i128vldq): New mode iterator.
13891         (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
13892         avx512dq and avx512vl alternatives.
13894         * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
13895         constraint, use maybe_evex prefix instead of vex.
13896         (vec_dupv4sf): Use v constraint instead of x for output
13897         operand except for noavx alternative, use Yv constraint
13898         instead of x for input.  Use maybe_evex prefix instead of vex.
13899         (*vec_dupv4si): Likewise.
13900         (*vec_dupv2di): Likewise.
13902 2016-05-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
13904         PR middle-end/40921
13905         * tree-ssa-reassoc.c (try_special_add_to_ops): New.
13906         (linearize_expr_tree): Call try_special_add_to_ops.
13907         (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
13909 2016-05-21  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
13911         * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
13912         to computed stack_usage.
13914 2016-05-21  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
13916         PR target/71103
13917         * config/avr/avr.md (define_expand "mov<mode>"): If the source
13918         operand is subreg (symbol_ref) then move the symbol ref to register.
13920 2016-05-21  Jan Hubicka  <hubicka@ucw.cz>
13922         * tree.c (array_at_struct_end_p): Look through MEM_REF.
13924 2016-05-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
13926         PR middle-end/71179
13927         * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
13928         VECTOR type.
13930 2016-05-20  Eric Botcazou  <ebotcazou@adacore.com>
13932         * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
13933         ranges by calling get_single_symbol and tidy up.  Look more closely
13934         into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
13936 2016-05-20  Jeff Law  <law@redhat.com>
13938         * bitmap.c (bitmap_find_bit): Remove useless test.
13940 2016-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
13942         * function.c (thread_prologue_and_epilogue_insns): Commit the
13943         insertion of the epilogue.
13945 2016-05-20  Martin Jambor  <mjambor@suse.cz>
13947         PR tree-optimization/70884
13948         * tree-sra.c (initialize_constant_pool_replacements): Do not check
13949         should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
13950         (sort_and_splice_var_accesses): Do not consider multiple scalar reads
13951         of constant pool data as a reason for scalarization.
13953 2016-05-20  Eric Botcazou  <ebotcazou@adacore.com>
13955         * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
13956         for naked functions.
13957         (thumb1_expand_prologue): Likewise.
13959 2016-05-20  Nathan Sidwell  <nathan@acm.org>
13961         * config/nvptx/nptx.c (nvptx_option_override): Only set
13962         flag_toplevel_reorder, if not explicitly specified.  Set
13963         flag_no_common, unless explicitly specified.
13965 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
13967         * calls.c (can_implement_as_sibling_call_p): Mark param
13968         reg_parm_stack_space with ATTRIBUTE_UNUSED.
13970 2016-05-20  Uros Bizjak  <ubizjak@gmail.com>
13972         * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
13973         Use IS_STACK_MODE when calculating cost of standard 80387 constants.
13974         Fallthru to CONST_VECTOR case to calculate cost of standard SSE
13975         constants.
13976         <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
13977         (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
13978         and CASE_CONST_ANY.
13980 2016-05-20  Cesar Philippidis  <cesar@codesourcery.com>
13982         * config/nvptx/nvptx.md (sincossf3): New pattern.
13984 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
13986         * calls.c (maybe_complain_about_tail_call): New function.
13987         (initialize_argument_information): Call
13988         maybe_complain_about_tail_call when clearing *may_tailcall.
13989         (can_implement_as_sibling_call_p): Call
13990         maybe_complain_about_tail_call when returning false.
13991         (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
13992         ensure try_tail_call is set.  Call maybe_complain_about_tail_call
13993         if tail-call optimization fails.
13994         * cfgexpand.c (expand_call_stmt): Initialize
13995         CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
13996         * gimple-pretty-print.c (dump_gimple_call): Dump
13997         gimple_call_must_tail_p.
13998         * gimple.c (gimple_build_call_from_tree): Call
13999         gimple_call_set_must_tail with the value of
14000         CALL_EXPR_MUST_TAIL_CALL.
14001         * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
14002         (gimple_call_set_must_tail): New function.
14003         (gimple_call_must_tail_p): New function.
14004         * print-tree.c (print_node): Update printing of TREE_STATIC
14005         to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
14006         * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
14007         trailing comment listing applicable flags.
14008         * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
14010 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
14012         * calls.c (expand_call): Move "Rest of purposes for tail call
14013         optimizations to fail" to...
14014         (can_implement_as_sibling_call_p): ...this new function, and
14015         split into multiple "if" statements.
14017 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
14019         * cfgloop.h (expected_loop_iterations_unbounded,
14020         expected_loop_iterations): Unconstify.
14021         * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
14022         profile with known upper bound; return 3 when profile is absent.
14023         (expected_loop_iterations): Update.
14025 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
14027         * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
14028         and get_max_loop_iterations_int.
14030 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
14032         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
14033         realistic upper bounds here.
14035 2016-05-20  Jakub Jelinek  <jakub@redhat.com>
14037         PR c++/71210
14038         * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
14039         calls if the LHS is variable length or has addressable type.
14040         If targets[0]->decl is a noreturn call with void return type and
14041         zero arguments, adjust fntype and remove lhs in that case.
14043 2016-05-20  Marc Glisse  <marc.glisse@inria.fr>
14045         PR tree-optimization/71079
14046         PR tree-optimization/71206
14047         * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
14049 2016-05-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
14051         * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
14052         (get_vec_alignment_for_array_decl): Likewise.
14053         (get_vec_alignment_for_record_decl): Likewise.
14054         (increase_alignment::execute): Move code to find alignment to
14055         get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
14056         (type_align_map): New hash_map.
14058 2016-05-20  Richard Guenther  <rguenther@suse.de>
14060         PR tree-optimization/29756
14061         * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
14062         * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
14063         * fold-const.c (operand_equal_p): Likewise.
14064         (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
14065         * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
14066         * tree-inline.c (estimate_operator_cost): Likewise.
14067         * tree-pretty-print.c (dump_generic_node): Likewise.
14068         * tree-ssa-operands.c (get_expr_operands): Likewise.
14069         * cfgexpand.c (expand_debug_expr): Likewise.
14070         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
14071         * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
14072         * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
14073         * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
14074         vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
14075         (execute_update_addresses_taken): Do it.
14077 2016-05-20  Richard Biener  <rguenther@suse.de>
14079         PR tree-optimization/71185
14080         * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
14081         register operations.
14083 2016-05-20  Richard Biener  <rguenther@suse.de>
14085         * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
14086         gimple_seq_add_seq_without_update.
14087         (release_bb_predicate): Assert we have no operands to free.
14088         (if_convertible_loop_p_1): Calculate post dominators later.
14089         Do not free BB predicates here.
14090         (combine_blocks): Do not recompute BB predicates.
14091         (version_loop_for_if_conversion): Save BB predicates around
14092         loop versioning.
14094 2016-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
14096         * function.c (make_epilogue_seq): Remove epilogue_end parameter.
14097         (thread_prologue_and_epilogue_insns): Remove bb_flags.  Restructure
14098         code.  Ignore sibcalls on EDGE_IGNORE edges.
14099         * shrink-wrap.c (handle_simple_exit): New function.  Set EDGE_IGNORE
14100         on edges for sibcalls that run without prologue.  The rest of the
14101         function is combined from...
14102         (fix_fake_fallthrough_edge): ... this, and ...
14103         (try_shrink_wrapping): ... a part of this.  Remove the bb_with
14104         function argument, make it a local variable.
14106 2016-05-19  Sandra Loosemore  <sandra@codesourcery.com>
14108         * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
14109         --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
14110         for 32-bit mode and SEH for 64-bit.
14111         * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
14112         TARGET_64BIT_DEFAULT.
14114 2016-05-19  Ryan Burn  <contact@rnburn.com>
14116         * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
14117         * gengtype.c (open_base_files): Add cilk.h to ifiles.
14119 2016-05-19  Uros Bizjak  <ubizjak@gmail.com>
14121         * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
14122         force pending loads from memory.
14124 2016-05-19  Kelvin Nilsen  <kelvin@gcc.gnu.org>
14126         * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
14127         (UNSPEC_DARN_32): New unspec constant.
14128         (UNSPEC_DARN_RAW): New unspec constant.
14129         (darn_32): New instruction.
14130         (darn_raw): New instruction.
14131         (darn): New instruction.
14132         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
14133         support and documentation for this macro.
14134         (BU_P9_MISC_1): New macro definition.
14135         (BU_P9_64BIT_MISC_0): New macro definition.
14136         (BU_P9_MISC_0): New macro definition.
14137         (darn_32): New builtin definition.
14138         (darn_raw): New builtin definition.
14139         (darn): New builtin definition.
14140         * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
14141         RS6000_BUILTIN_0 directives to surround each occurrence of
14142         #include "rs6000-builtin.def".
14143         (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
14144         RS6000_BTM_64BIT flags to the returned mask, depending on
14145         configuration.
14146         (def_builtin): Correct an error in the assignments made to the
14147         debugging variable attr_string.
14148         (rs6000_expand_builtin): Add support for no-operand built-in
14149         functions.
14150         (builtin_function_type): Remove fatal_error assertion that is no
14151         longer valid.
14152         (rs6000_common_init_builtins): Add support for no-operand built-in
14153         functions.
14154         * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
14155         definition.
14156         (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
14157         definition.
14158         (RS6000_BTM_64BIT): New macro definition.
14159         * doc/extend.texi: Document __builtin_darn (void),
14160         __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
14161         functions.
14163 2016-05-19  Jan Hubicka  <hubicka@ucw.cz>
14165         * tree-vect-loop.c (vect_analyze_loop_2): Use also
14166         max_loop_iterations_int.
14168 2016-05-19  Marek Polacek  <polacek@redhat.com>
14170         PR tree-optimization/71031
14171         * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
14172         condition and adjust the code a bit.
14174 2016-05-19  Martin Liska  <mliska@suse.cz>
14176         * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
14177         auto_vec instead of vec.
14179 2016-05-19  Martin Liska  <mliska@suse.cz>
14181         * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
14183 2016-05-19  Martin Liska  <mliska@suse.cz>
14185         * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
14187 2016-05-19  Martin Liska  <mliska@suse.cz>
14189         * ipa-pure-const.c (set_function_state): Remove an existing
14190         funct_state.
14191         (remove_node_data): Do not free it as it's released
14192         in set_function_state.
14194 2016-05-19  Martin Liska  <mliska@suse.cz>
14196         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
14197         bitmap.
14199 2016-05-19  Martin Liska  <mliska@suse.cz>
14201         * omp-simd-clone.c (simd_clone_adjust): Release vector.
14203 2016-05-19  Martin Liska  <mliska@suse.cz>
14205         * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
14206         an auto_vec instead of re-creating it.
14208 2016-05-19  Martin Liska  <mliska@suse.cz>
14210         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
14211         auto_vec instead of vec.
14213 2016-05-19  Martin Liska  <mliska@suse.cz>
14215         * lto-section-in.c (lto_get_section_data): Call
14216         lto_check_version with additional argument.
14217         * lto-streamer.c (lto_check_version): Add new argument.
14218         * lto-streamer.h (lto_check_version): Likewise.
14220 2016-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14222         * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
14223         Don't add cost of inner memory when handling sign-extended loads.
14225 2016-05-19  Ilya Enkovich  <ilya.enkovich@intel.com>
14227         PR rtl-optimization/71148
14228         * cse.c (cse_main): Free dominance info.
14229         (rest_of_handle_cse): Don't free dominance info.
14230         (rest_of_handle_cse2): Likewise.
14231         (rest_of_handle_cse_after_global_opts): Likewise.
14233 2016-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14235         PR target/71056
14236         * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
14237         NULL_TREE early if NEON is not available.  Remove now redundant check
14238         in ARM_CHECK_BUILTIN_MODE.
14240 2016-05-19  Maxim Ostapenko  <m.ostapenko@samsung.com>
14242         PR sanitizer/64354
14243         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
14244         builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
14245         * doc/cpp.texi: Document new macros.
14247 2016-05-19  Bin Cheng  <bin.cheng@arm.com>
14249         PR tree-optimization/69848
14250         * tree-vect-loop.c (vectorizable_reduction): Don't factor
14251         comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
14253 2016-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
14255         * function.c (thread_prologue_and_epilogue_insn): Move the
14256         "goto epilogue_done" one block later.
14258 2016-05-19  Richard Biener  <rguenther@suse.de>
14260         PR tree-optimization/70729
14261         * passes.def: Move LIM pass before PRE.  Remove no longer
14262         required copyprop and move first DCE out of the loop pipeline.
14264 2016-05-18  David Malcolm  <dmalcolm@redhat.com>
14266         PR driver/69265
14267         * Makefile.in (GCC_OBJS): Move spellcheck.o to...
14268         (OBJS-libcommon-target): ...here.
14269         * opts-common.c: Include spellcheck.h.
14270         (cmdline_handle_error): Build a vec of valid options and use it
14271         to suggest provide hints for misspelled arguments.
14273 2016-05-18  Jakub Jelinek  <jakub@redhat.com>
14275         PR c++/71100
14276         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
14277         lhs if it has TREE_ADDRESSABLE type.
14279 2016-05-18  Uros Bizjak  <ubizjak@gmail.com>
14281         PR target/71145
14282         * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
14283         (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
14285 2016-05-18  Martin Jambor  <mjambor@suse.cz>
14287         PR ipa/69708
14288         * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
14289         input for NOP_EXPR pass-through functions.
14290         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
14291         aggregate global constant VAR_DECLs in constant jump functions.
14293 2016-05-18  Martin Jambor  <mjambor@suse.cz>
14295         PR ipa/69708
14296         * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
14297         from TREE_READONLY parameters.
14299 2016-05-18  Martin Jambor  <mjambor@suse.cz>
14301         PR ipa/69708
14302         * cgraph.h (cgraph_indirect_call_info): New field
14303         guaranteed_unmodified.
14304         * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
14305         to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
14306         appropriate.
14307         * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
14308         pass the parameter value to ipa_find_agg_cst_for_param.
14309         * ipa-prop.c (ipa_load_from_parm_agg): New parameter
14310         guaranteed_unmodified, store AA results there instead of bailing out
14311         if present.
14312         (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
14313         (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
14314         (find_constructor_constant_at_offset): New function.
14315         (ipa_find_agg_cst_from_init): Likewise.
14316         (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
14317         static initializers of contants, report back through a new paameter
14318         from_global_constant if that was the case.
14319         (try_make_edge_direct_simple_call): Also pass parameter value to
14320         ipa_find_agg_cst_for_param, check guaranteed_unmodified when
14321         appropriate.
14322         (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
14323         (ipa_read_indirect_edge_info): Likewise.
14324         * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
14325         (ipa_load_from_parm_agg): Likewise.
14327 2016-05-18  Jiong Wang  <jiong.wang@arm.com>
14329         PR rtl-optimization/71150
14330         * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
14331         check.
14333 2016-05-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
14335         PR target/70915
14336         * config/rs6000/constraints.md (wE constraint): New constraint
14337         for a vector constant that can be loaded with XXSPLTIB.
14338         (wM constraint): New constraint for a vector constant of a 1's.
14339         (wS constraint): New constraint for a vector constant that can be
14340         loaded with XXSPLTIB and a vector sign extend instruction.
14341         * config/rs6000/predicates.md (xxspltib_constant_split): New
14342         predicates for wE/wS constraints.
14343         (xxspltib_constant_nosplit): Likewise.
14344         (easy_vector_constant): Add support for constants that can be
14345         loaded via XXSPLTIB.
14346         (all_ones_constant): New predicate for vector constant with all
14347         1's set.
14348         (splat_input_operand): Add support for ISA 3.0 word splat operations.
14349         * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
14350         return if a constant can be loaded with the ISA 3.0 XXSPLTIB
14351         instruction and possibly with a sign extension.
14352         (output_vec_const_move): Add support for XXSPLTIB. If we are
14353         loading up 0/-1 into Altivec registers, prefer using VSPLTISW
14354         instead of XXLXOR/XXLORC.
14355         (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
14356         operations.
14357         (rs6000_legitimize_reload_address): Likewise.
14358         (rs6000_output_move_128bit): Use output_vec_const_move to emit
14359         constants.
14360         * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
14361         combine VSX_M and VSX_M2 into one iterator.
14362         (VSX_M2): Likewise.
14363         (VSINT_84): New iterators for loading constants with XXSPLTIB.
14364         (VSINT_842): Likewise.
14365         (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
14366         (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
14367         XXSPLTIB instruction.
14368         (xxspltib_<mode>_nosplit): Likewise.
14369         (xxspltib_<mode>_split): New insn to load up constants with
14370         XXSPLTIB and a sign extend instruction.
14371         (vsx_mov<mode>): Replace single move that handled all vector types
14372         with separate 32-bit and 64-bit moves.  Combine the movti_<bit>
14373         moves (when -mvsx-timode is in effect) into the main vector
14374         moves.  Eliminate separate moves for <VSr> <VSa>, where the
14375         preferred register class (<VSr>) is listed first, and the
14376         secondary register class (<VSa>) is listed second with a '?' to
14377         discourage use.  Prefer loading 0/-1 in any VSX register for ISA
14378         3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
14379         that if the register was involved in a slow operation, the
14380         clear/set operation does not wait for the slow operation to
14381         finish.  Adjust the length attributes for 32-bit mode.  Use
14382         rs6000_output_move_128bit and drop the use of the string
14383         instructions for 32-bit movti when -mvsx-timode is in effect.  Use
14384         spacing so that the alternatives and attributes don't generate
14385         long lines, and put things in columns, so that it is easier to
14386         match up the operands and attributes with the insn alternatives.
14387         (vsx_mov<mode>_64bit): Likewise.
14388         (vsx_mov<mode>_32bit): Likewise.
14389         (vsx_movti_64bit): Fold movti into normal vector moves.
14390         (vsx_movti_32bit): Likewise.
14391         (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
14392         splat instructions.
14393         (vsx_splat_v4si_internal): Likewise.
14394         (vsx_splat_v4sf_internal): Likewise.
14395         (vector fusion peepholes): Use VSX_M instead of VSX_M2.
14396         (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
14397         extend vector elements.
14398         (vsx_sign_extend_hi_<mode>): Likewise.
14399         (vsx_sign_extend_si_v2di): Likewise.
14400         * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
14401         declaration.
14402         * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
14403         constraints.  Add trailing period to wL documentation.
14405 2016-05-18  Richard Sandiford  <richard.sandiford@arm.com>
14407         PR middle-end/71020
14408         * tree-dfa.h (replace_abnormal_ssa_names): Declare.
14409         * tree-dfa.c (replace_abnormal_ssa_names): New function.
14410         * tree-call-cdce.c: Include tree-dfa.h.
14411         (can_guard_call_p): New function, extracted from...
14412         (can_use_internal_fn): ...here.
14413         (shrink_wrap_one_built_in_call_with_conds): Remove failure path
14414         and return void.
14415         (shrink_wrap_one_built_in_call): Likewise.
14416         (use_internal_fn): Likewise.
14417         (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
14418         and return void.  Call replace_abnormal_ssa_names.
14419         (pass_call_cdce::execute): Check can_guard_call_p during the
14420         initial walk.  Assume shrink_wrap_conditional_dead_built_in_calls
14421         will always change something.
14423 2016-05-18  Martin Jambor  <mjambor@suse.cz>
14425         PR ipa/70646
14426         * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
14427         if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
14429 2016-05-18  Martin Jambor  <mjambor@suse.cz>
14431         PR ipa/70646
14432         * ipa-inline.h (condition): New field size.
14433         * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
14434         for comaprison and store it into the new condition.
14435         (evaluate_conditions_for_known_args): Use condition size to check
14436         access sizes for all but CHANGED conditions.
14437         (unmodified_parm_1): New parameter size_p, store access size into it.
14438         (unmodified_parm): Likewise.
14439         (unmodified_parm_or_parm_agg_item): Likewise.
14440         (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
14441         (set_cond_stmt_execution_predicate): Extract access sizes and store
14442         them to conditions.
14443         (set_switch_stmt_execution_predicate): Likewise.
14444         (will_be_nonconstant_expr_predicate): Likewise.
14445         (will_be_nonconstant_predicate): Likewise.
14446         (inline_read_section): Stream condition size.
14447         (inline_write_summary): Likewise.
14449 2016-05-18  Richard Biener  <rguenther@suse.de>
14451         * tree-ssa-loop-im.c (determine_max_movement): Properly add
14452         condition cost to PHI cost instead of total_cost.
14454 2016-05-18  Martin Liska  <mliska@suse.cz>
14456         PR fortran/70856
14457         * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
14458         merged variables.
14460 2016-05-18  Richard Biener  <rguenther@suse.de>
14462         * lto-streamer.h (LTO_major_version): Bump to 6.
14464 2016-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
14466         * function.c (make_split_prologue_seq, make_prologue_seq,
14467         make_epilogue_seq): New functions, factored out from...
14468         (thread_prologue_and_epilogue_insns): Here.
14470 2016-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
14472         * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
14473         cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
14474         of before.  Add a comment.
14476 2016-05-18  Bin Cheng  <bin.cheng@arm.com>
14478         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
14479         expression pointer, not pointer to the pointer.
14481 2016-05-18  Jakub Jelinek  <jakub@redhat.com>
14483         * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
14484         (avx2_pbroadcast<mode>): Add another alternative with v instead
14485         of x constraints in it, using <pbroadcast_evex_isa> isa.
14486         (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
14488         * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
14489         constraint x instead of v in second alternative, add avx512bw
14490         alternative.
14492         * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
14493         constraint x instead of v in second alternative, add avx512bw
14494         alternative.
14496         * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
14497         constraint x instead of v in second alternative, add avx512bw
14498         alternative.
14500         * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
14501         avx512bw alternative.
14503 2016-05-18  Kirill Yukhin  <kirill.yukhin@intel.com>
14505         * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
14506         array to 128 chars.
14507         (define_insn "*andnottf3"): Ditto.
14508         (define_insn "*<code><mode>3"/any_logic): Ditto.
14509         (define_insn "*<code>tf3"/any_logic): Ditto.
14510         (define_insn "sse2_storehpd"): Use Yv constraint for scalar
14511         operand to block AVX-512VL insn variant emit when it is not enabled.
14513 2016-05-18  Kirill Yukhin  <kirill.yukhin@intel.com>
14515         * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
14516         constraint fot SF mode.
14518 2016-05-18  Petr Murzin  <petr.murzin@intel.com>
14519             Kirill Yukhin  <kirill.yukhin@intel.com>
14521         * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
14522         modifiers.
14523         (define_insn "rsqrt14<mode>"): Ditto.
14524         (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
14525         (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
14526         (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
14527         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
14528         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
14529         Ditto.
14530         (define_insn "*avx512f_gatherdi<mode>"): Ditto.
14531         (define_insn "*avx512f_scatterdi<mode>"): Ditto.
14532         * config/i386/i386.c (ix86_print_operand): Expand check for size
14533         override codes for Intel syntax.
14535 2016-05-18  Richard Biener  <rguenther@suse.de>
14537         PR tree-optimization/71168
14538         * tree-loop-distribution.c (distribute_loop): Move *destroy_p
14539         initialization earlier.
14541 2016-05-18  James Greenhalgh  <james.greenhalgh@arm.com>
14543         * config/aarch64/aarch64-simd.md
14544         (aarch64_reduc_plus_internal<mode>): Rename to...
14545         (reduc_plus_scal): ...This, and remove previous implementation.
14547 2016-05-18  Richard Biener  <rguenther@suse.de>
14549         * passes.def: Put late dse and cd_dce in canonical order.
14551 2016-05-17  Jan Hubicka  <hubicka@ucw.cz>
14553         * ipa-inline-transform.c (preserve_function_body_p): Look for
14554         first non-thunk clone.
14555         (save_function_body): Save into first non-thunk.
14556         * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
14557         up call stmt id.
14558         (lto_output_node): Inline thunks don't need body in every
14559         partition.
14560         * lto-streamer-in.c: Do not fixup thunk clones.
14561         * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
14562         thunks.
14563         * tree-inline.c (copy_bb): Be prepared for target node to be new after
14564         folding suceeds.
14566 2016-05-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
14568         PR middle-end/63586
14569         * tree-ssa-reassoc.c (transform_add_to_multiply): New.
14570         (reassociate_bb): Call transform_add_to_multiply.
14572 2016-05-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
14574         * config/aarch64/aarch64.c (all_extensions): Removed unused
14575         static variable.
14577 2016-05-17  Nathan Sidwell  <nathan@acm.org>
14579         * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
14580         (TARGET_FUNCTION_ARG_BOUNDARY): Override.
14582 2016-05-17  Mikhail Maltsev  <maltsevm@gmail.com>
14584         PR tree-optimization/54579
14585         PR middle-end/55299
14586         * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
14588 2016-05-17  Marek Polacek  <polacek@redhat.com>
14590         PR ipa/71146
14591         * tree-inline.c (expand_call_inline): Call
14592         maybe_remove_unused_call_args.
14594 2016-05-17  Jim Wilson  <jim.wilson@linaro.org>
14596         * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
14597         * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
14598         * doc/md.texi (fmin@var{m}3): Likewise.
14600 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
14602         * match.pd (X & C): New transformation.
14604 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
14606         * match.pd (~X & Y): New transformation.
14608 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
14610         * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
14611         information for new SSA_NAME.
14612         (simplify_conversion_using_ranges): Get range through get_range_info
14613         instead of get_value_range.
14615 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
14617         * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
14618         Remove inline assembly.
14619         (vmvn_s16): Likewise.
14620         (vmvn_s32): Likewise.
14621         (vmvn_u8): Likewise.
14622         (vmvn_u16): Likewise.
14623         (vmvn_u32): Likewise.
14624         (vmvnq_s8): Likewise.
14625         (vmvnq_s16): Likewise.
14626         (vmvnq_s32): Likewise.
14627         (vmvnq_u8): Likewise.
14628         (vmvnq_u16): Likewise.
14629         (vmvnq_u32): Likewise.
14630         (vmvn_p8): Likewise.
14631         (vmvnq_p16): Likewise.
14633 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
14635         * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
14636         Use builtin.
14637         (vmul_n_s16): Likewise.
14638         (vmul_n_s32): Likewise.
14639         (vmul_n_u16): Likewise.
14640         (vmul_n_u32): Likewise.
14641         (vmulq_n_f32): Likewise.
14642         (vmulq_n_f64): Likewise.
14643         (vmulq_n_s16): Likewise.
14644         (vmulq_n_s32): Likewise.
14645         (vmulq_n_u16): Likewise.
14646         (vmulq_n_u32): Likewise.
14648 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
14650         * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
14651         to all supported modes.  Rename to "*aarch64_mul3_elt_from_dup".
14653 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
14655         * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
14656         to *aarch64_fma4_elt_from_dup<mode>.
14657         (*aarch64_fnma4_elt_to_128df): Rename to
14658         *aarch64_fnma4_elt_from_dup<mode>.
14659         * config/aarch64/arm_neon.h (vfma_n_f64): New.
14660         (vfms_n_f32): Likewise.
14661         (vfms_n_f64): Likewise.
14662         (vfmsq_n_f32): Likewise.
14663         (vfmsq_n_f64): Likewise.
14665 2016-05-17  Gerald Pfeifer  <gerald@pfeifer.com>
14667         * wide-int.h: Change fixed_wide_int_storage from class to struct.
14669 2016-05-17  Richard Biener  <rguenther@suse.de>
14671         PR tree-optimization/71132
14672         * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
14673         Only add control dependences for blocks in the loop.
14674         (build_rdg): Adjust.
14675         (generate_code_for_partition): Return whether loop should
14676         be destroyed and delay that.
14677         (distribute_loop): Likewise.
14678         (pass_loop_distribution::execute): Record loops to be destroyed
14679         and perform delayed destroying of loops.
14681 2016-05-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14683         PR target/70809
14684         * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
14686 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
14688         * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
14690 2016-05-17  Ilya Enkovich  <ilya.enkovich@intel.com>
14692         PR target/71114
14693         * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
14694         insertion point for instructions generated by validize_mem.
14696 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
14698         * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
14699         in brackets.
14701 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
14703         * config/aarch64/aarch64.c
14704         (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
14705         rather than a macro.
14707 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
14709         * doc/invoke.texi (AArch64 Options): Various updates.
14711 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
14713         * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
14714         into instrumentation thunks.
14715         * cif-code.def (CIF_CHKP): New.
14717 2016-05-16  Uros Bizjak  <ubizjak@gmail.com>
14719         * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
14721 2016-05-16  Martin Jambor  <mjambor@suse.cz>
14723         * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
14724         (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
14726 2016-05-16  Marek Polacek  <polacek@redhat.com>
14728         * gimple.c (maybe_remove_unused_call_args): Fix typos in the
14729         commentary.
14731 2016-05-16  Martin Jambor  <mjambor@suse.cz>
14733         PR hsa/70857
14734         * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
14735         the outlined kernel function.
14737 2016-05-16  Robert Suchanek  <robert.suchanek@imgtec.com>
14739         * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
14740         (ISA_HAS_DLSA): Ditto.
14742 2016-05-16  Matthew Fortune  <matthew.fortune@imgtec.com>
14744         * config/mips/m5100.md (m51_int_load): Update the latency to 2.
14746 2016-05-16  Nathan Sidwell  <nathan@acm.org>
14748         * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
14749         (nvptx_name_replacement): Restore.  Add comment.
14750         (write_fn_proto, write_fn_proto_from_insn,
14751         nvptx_output_call_insn): Restore
14752         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
14754 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
14756         * config/aarch64/aarch64.md
14757         (add<mode>3_compareC_cconly_imm): Remove use of %w.
14758         (add<mode>3_compareC_imm): Likewise.
14759         (<optab>si3_uxtw): Split into register and immediate variants.
14760         (andsi3_compare0_uxtw): Likewise.
14761         (and<mode>3_compare0): Likewise.
14762         (and<mode>3nr_compare0): Likewise.
14763         (stack_protect_test_<mode>): Don't use %x for memory operands.
14765 2016-05-16  Matthew Fortune  <matthew.fortune@imgtec.com>
14767         * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
14769 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
14771         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
14772         Split integer shifts into shift_reg and bfm.
14773         (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
14774         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
14775         (ror<mode>3_insn): Likewise.
14776         (<optab>si3_insn_uxtw): Likewise.
14777         (<optab><mode>3_insn): Change to rotate_imm.
14778         (extr<mode>5_insn_alt): Likewise.
14779         (extrsi5_insn_uxtw): Likewise.
14780         (extrsi5_insn_uxtw_alt): Likewise.
14782 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
14784         * doc/tm.texi: Regenerate.
14785         * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
14786         (TARGET_INVALID_RETURN_TYPE): Remove.
14787         * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
14788         TARGET_INVALID_RETURN_TYPE.
14789         * target.def (invalid_parameter_type): Remove.
14790         (invalid_return_type): Remove.
14792 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
14794         * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
14795         on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
14796         calls from thunk.
14797         * ipa-inline-transform.c (inline_call): When inlining into thunk produce
14798         gimple body.
14799         (preserve_function_body_p): No need to preserve function body
14800         * cif-codes.def (CIF_THUNK): Remove.
14801         * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
14803 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
14805         * tree-inline.c (expand_call_inline): recurse after inlining thunk.
14807 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
14809         * tree.c (free_lang_data_in_decl): Also set target/optimization flags
14810         for thunks.
14812 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
14814         * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
14815         (inline_small_functions): Do not look for function symbol when
14816         resetting caches.
14818 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
14820         * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
14821         of inline thunks
14823 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
14824             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14825             Jiong Wang  <jiong.wang@arm.com>
14827         * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
14828         for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
14829         Define __ARM_FP16_ARGS when appropriate.
14830         * config/arm/arm.c (arm_invalid_parameter_type): Remove
14831         declaration.
14832         (arm_invalid_return_type): Likewise.
14833         (TARGET_INVALID_PARAMETER_TYPE): Remove.
14834         (TARGET_INVALID_RETURN_TYPE): Remove.
14835         (aapcs_vfp_sub_candidate): Allow HFmode.
14836         (aapcs_vfp_allocate): Add comment.  Support HFmode.
14837         (aapcs_vfp_allocate_return_reg): Likewise.
14838         (struct aapcs_cp_arg_layout): Slightly reword comments for
14839         is_return_candidate and allocate_return_reg.
14840         (output_mov_vfp): Update assert.
14841         (arm_hard_regno_mode_ok): Remove comment, update HF-mode
14842         condition.
14843         (arm_invalid_parameter_type): Remove.
14844         (amr_invalid_return_type): Remove.
14845         * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
14846         * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
14847         * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
14849 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
14851         * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
14852         * config/aarch64/arch64-protos.h
14853         (aarch64_legitimize_reload_address): Remove.
14854         * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
14855         Remove.
14857 2016-05-16  Eric Botcazou  <ebotcazou@adacore.com>
14859         * configure.ac: Add ACX_NONCANONICAL_HOST.
14860         * configure: Regenerate.
14861         * Makefile.in: Set host_noncanonical.
14863 2016-05-14  Uros Bizjak  <ubizjak@gmail.com>
14865         PR target/71097
14866         * config/i386/i386.md (*movtf_internal): Before register allocation,
14867         do not allow FP constants for CM_MEDIUM memory model, allow only
14868         standard FP constants for CM_LARGE and CM_LARGE_PIC models.
14869         (*movxf_internal): Ditto.
14870         (*movdf_internal): Ditto.
14871         (*movsf_internal): Ditto.
14873 2016-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
14875         PR rtl-optimization/67483
14876         * combine.c (make_compound_operation): Don't call extract_left_shift
14877         with negative shift amounts.
14879 2016-05-13  Jakub Jelinek  <jakub@redhat.com>
14881         PR bootstrap/71071
14882         * fold-const.c (fold_checksum_tree): Allow modification
14883         of TYPE_ALIAS_SET during folding.
14885         * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
14886         ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
14887         (ix86_split_to_parts): Likewise.  Fix up formatting.
14889 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
14891         * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
14892         unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
14893         printf format.
14895 2016-05-13  Nathan Sidwell  <nathan@acm.org>
14897         * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
14898         (nvptx_name_replacement): Delete.
14899         (write_fn_proto, write_fn_proto_from_insn,
14900         nvptx_output_call_insn): Remove nvptx_name_replacement call.
14901         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
14902         * langhooks.c (add_builtin_funcction_common): Call
14903         targetm.mangle_decl_assembler_name.
14905         * config/nvptx/nvptx.c (write_fn_proto): Handle
14906         BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
14908 2016-05-13  Martin Liska  <mliska@suse.cz>
14910         * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
14911         and PRIu64 in printf format.
14913 2016-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14915         * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
14916         comment.
14918 2016-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14920         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
14921         Change --param max-completely-peeled-times to
14922         --param max-completely-peel-times in dump file printing.
14924 2016-05-13  Richard Biener  <rguenther@suse.de>
14926         PR tree-optimization/42587
14927         * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
14928         (find_bswap_or_nop_1): Likewise.
14929         (bswap_replace): Likewise.
14931 2016-05-13  Martin Liska  <mliska@suse.cz>
14933         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
14934         Initialize a variable with default value.
14936 2016-05-13  Martin Liska  <mliska@suse.cz>
14938         * doc/invoke.texi: Enhance explanation of error recovery
14939         of sanitizers.
14941 2016-05-13  Martin Liska  <mliska@suse.cz>
14943         * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
14944         (struct cost_pair): Change inv_expr_id (int) to inv_expr
14945         (iv_inv_expr_ent *).
14946         (struct iv_inv_expr_ent): Comment struct fields.
14947         (sort_iv_inv_expr_ent): New function.
14948         (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
14949         (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
14950         a hash_map between iv_inv_expr_ent and number of usages.
14951         (niter_for_exit): Fix coding style.
14952         (tree_ssa_iv_optimize_init): Use renamed variable.
14953         (determine_base_object): Fix coding style.
14954         (alloc_iv): Likewise.
14955         (find_interesting_uses_outside): Likewise.
14956         (add_candidate_1): Likewise.
14957         (add_standard_iv_candidates): Likewise.
14958         (set_group_iv_cost): Replace inv_expr_id with inv_expr.
14959         (prepare_decl_rtl): Fix coding style.
14960         (get_address_cost): Likewise.
14961         (get_shiftadd_cost): Likewise.
14962         (force_expr_to_var_cost): Likewise.
14963         (compare_aff_trees): Likewise.
14964         (get_expr_id): Restructure the function.
14965         (get_loop_invariant_expr_id): Renamed to
14966         get_loop_invariant_expr.
14967         (get_computation_cost_at): Replace usage of inv_expr_id with
14968         inv_expr.
14969         (get_computation_cost): Likewise.
14970         (determine_group_iv_cost_generic): Likewise.
14971         (determine_group_iv_cost_address): Likewise.
14972         (iv_period): Fix coding style.
14973         (iv_elimination_compare_lt): Likewise.
14974         (may_eliminate_iv): Likewise.
14975         (determine_group_iv_cost_cond):  Replace usage of inv_expr_id with
14976         inv_expr.
14977         (determine_group_iv_costs): Dump invariant expressions.
14978         (iv_ca_recount_cost): Use the newly added hash_map.
14979         (iv_ca_set_remove_invariants): Fix coding style.
14980         (iv_ca_set_add_invariants): Fix coding style.
14981         (iv_ca_set_no_cp): Utilize the newly added hash_map for used
14982         invariants.
14983         (iv_ca_set_cp): Likewise.
14984         (iv_ca_new): Initialize the newly added hash_map and remove
14985         initialization of fields.
14986         (iv_ca_free): Delete the hash_map.
14987         (iv_ca_dump): Dump invariant expressions.
14988         (iv_ca_extend): Fix coding style.
14989         (try_add_cand_for): Likewise.
14990         (create_new_ivs): Dump information about # of avg iterations and
14991         # of used invariant expressions.
14992         (rewrite_use_compare): Fix coding style.
14993         (free_loop_data): Set default value for max_inv_expr_id.
14995 2016-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
14997         * cse.c (rest_of_handle_cse): Use cleanup_cfg
14998         returned value cse_cfg_altered computation.
14999         (rest_of_handle_cse2): Likewise.
15000         (rest_of_handle_cse_after_global_opts): Likewise.
15002 2016-05-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15004         PR target/53440
15005         * config/arm/arm.c (arm32_output_mi_thunk): New.
15006         (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
15007         to split Thumb1 vs TARGET_32BIT functionality.
15008         (arm_thumb1_mi_thunk): New.
15010 2016-05-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15012         * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
15013         to true.
15015 2016-05-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15017         PR target/71080
15018         * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
15020 2016-05-13  Eric Botcazou  <ebotcazou@adacore.com>
15022         * builtins.c (expand_builtin_memcmp): Do not emit the call here.
15023         (expand_builtin_trap): Emit a regular call.
15024         (set_builtin_user_assembler_name): Remove obsolete cases.
15025         * dse.c (scan_insn): Adjust.
15026         * except.c: Include calls.h.
15027         (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
15028         emit a regular call to setjmp.
15029         * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
15030         (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
15031         (emit_block_move_via_libcall): Delete.
15032         (block_move_fn): Delete.
15033         (init_block_move_fn): Likewise.
15034         (emit_block_move_libcall_fn): Likewise.
15035         (emit_block_op_via_libcall): New function.
15036         (set_storage_via_libcall): Tidy up and use memset builtin.
15037         (block_clear_fn): Delete.
15038         (init_block_clear_fn): Likewise.
15039         (clear_storage_libcall_fn): Likewise.
15040         (expand_assignment): Call emit_block_move_via_libcall.
15041         Do not include gt-expr.h.
15042         * expr.h (emit_block_op_via_libcall): Declare.
15043         (emit_block_copy_via_libcall): New inline function.
15044         (emit_block_move_via_libcall): Likewise.
15045         (emit_block_comp_via_libcall): Likewise.
15046         (block_clear_fn): Delete.
15047         (init_block_move_fn): Likewise.
15048         (init_block_clear_fn): Likewise.
15049         (emit_block_move_via_libcall): Likewise.
15050         (set_storage_via_libcall): Add default parameter value.
15051         * libfuncs.h (enum libfunc_index): Remove obsolete values.
15052         (abort_libfunc): Delete.
15053         (memcpy_libfunc): Likewise.
15054         (memmove_libfunc): Likewise.
15055         (memcmp_libfunc): Likewise.
15056         (memset_libfunc): Likewise.
15057         (setbits_libfunc): Likewise.
15058         (setjmp_libfunc): Likewise.
15059         (longjmp_libfunc): Likewise.
15060         (profile_function_entry_libfunc): Likewise.
15061         (profile_function_exit_libfunc): Likewise.
15062         (gcov_flush_libfunc): Likewise.
15063         * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
15064         and DECL_VISIBILITY on the declaration.
15065         (init_optabs): Do not initialize obsolete libfuncs.
15066         * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
15067         * tree-core.h (ECF_RET1): Define.
15068         (ECF_TM_PURE): Adjust.
15069         (ECF_TM_BUILTIN): Likewise.
15070         * tree.c (set_call_expr_flags): Deal with ECF_RET1.
15071         (build_common_builtin_nodes): Initialize abort builtin.
15072         Add ECF_RET1 on memcpy, memmove and memset builtins.
15073         Pass final flags for alloca and alloca_with_align builtins.
15074         * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
15075         obsolete builtins.
15076         * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
15077         * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
15078         set_storage_via_libcall and call emit_block_copy_via_libcall.
15080 2016-05-12  Uros Bizjak  <ubizjak@gmail.com>
15082         * config/i386/i386.md (*call_got_x32): Change operand 0 to
15083         DImode before it is passed to ix86_output_call_operand.
15084         (*call_value_got_x32): Ditto for operand 1.
15086 2016-05-12  Jiong Wang  <jiong.wang@arm.com>
15088         PR rtl-optimization/70904
15089         * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
15090         reload for wide mode.
15092 2016-05-12  Marek Polacek  <polacek@redhat.com>
15094         PR c/70756
15095         * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
15096         * langhooks.c (lhd_incomplete_type_error): Add location parameter.
15097         * langhooks.h (incomplete_type_error): Likewise.
15098         * tree.c (size_in_bytes_loc): Renamed from size_in_bytes.  Add location
15099         parameter, pass it down to incomplete_type_error.
15100         * tree.h (size_in_bytes): New inline overload.
15101         (size_in_bytes_loc): Renamed from size_in_bytes.
15103 2016-05-12  Richard Biener  <rguenther@suse.de>
15105         PR tree-optimization/71059
15106         * tree-ssa-pre.c (phi_translate_1): Fully fold translated
15107         nary before looking up or entering the expression into the VN
15108         hashes.
15109         * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
15110         Make sure to re-use NARYs without result as inserted by
15111         phi-translation.
15113 2016-05-12  Richard Biener  <rguenther@suse.de>
15115         PR tree-optimization/71062
15116         * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
15117         field.
15118         * tree-ssa-structalias.c (set_uids_in_ptset): Set
15119         vars_contains_restrict if the var is a restrict tag.
15120         * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
15121         do not disambiguate pointers against it.
15122         (dump_points_to_solution): Re-structure and adjust for new
15123         vars_contains_restrict flag.
15124         * gimple-pretty-print.c (pp_points_to_solution): Likewise.
15126 2016-05-12  Martin Liska  <mliska@suse.cz>
15128         * doc/invoke.texi: Explain connection between
15129         -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
15131 2016-05-12  Ilya Enkovich  <ilya.enkovich@intel.com>
15133         PR tree-optimization/71006
15134         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
15135         consider COND_EXPR as a mask producer.
15137 2016-05-12  Marek Polacek  <polacek@redhat.com>
15139         PR driver/71063
15140         * opts.c (common_handle_option): Detect missing argument for --help^.
15142 2016-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15144         PR target/70830
15145         * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
15146         when popping the PC and within an interrupt handler routine.
15147         Add missing tab to output of "ldmfd".
15148         (output_return_instruction): Output LDMFD with SP update rather
15149         than POP when returning from interrupt handler.
15151 2016-05-12  Jakub Jelinek  <jakub@redhat.com>
15153         * config/i386/i386.md (isa): Add x64_avx512dq, enable if
15154         TARGET_64BIT && TARGET_AVX512DQ.
15155         * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
15156         (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
15157         (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
15158         *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
15159         (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
15160         (*vec_extractv4si_zext): Add avx512dq alternative.
15161         (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
15162         use v instead of x constraint in other alternatives where possible.
15164         * config/i386/sse.md (sse2_loadld): Use v instead of x
15165         constraint in alternatives 0,1,4.
15167         * config/i386/sse.md (pinsr_evex_isa): New mode attr.
15168         (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
15169         v constraints instead of x and <pinsr_evex_isa> isa attribute.
15171         PR target/71019
15172         * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
15173         <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
15174         is not emitted unless TARGET_AVX512BW.
15175         (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
15176         Likewise.  For TARGET_AVX512BW, use "=v" constraint instead of "=x"
15177         for the result operand.
15179         * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
15180         constraint instead of x in avx alternatives.  Use maybe_evex instead
15181         of vex prefix.
15183         * config/i386/constraints.md (Yv): New constraint.
15184         * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
15185         TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
15186         * config/i386/i386.md (avx512fvecmode): New mode attr.
15187         (*pushtf): Use v constraint instead of x.
15188         (*movtf_internal): Likewise.  For TARGET_AVX512VL and
15189         xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
15190         (*absneg<mode>2): Use Yv constraint instead of x constraint.
15191         (*absnegtf2_sse): Likewise.
15192         (copysign<mode>3_const, copysign<mode>3_var): Likewise.
15193         * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
15194         avx512f alternatives.
15195         (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
15197 2016-05-12  Richard Biener  <rguenther@suse.de>
15199         PR tree-optimization/71060
15200         * tree-data-ref.c (initialize_data_dependence_relation): Do not
15201         require exact match of DR_BASE_OBJECT but only matching address and
15202         type.
15204 2016-05-12  Richard Biener  <rguenther@suse.de>
15206         PR tree-optimization/70986
15207         * cfganal.c: Include cfgloop.h.
15208         (dfs_find_deadend): Prefer to take edges exiting loops.
15210 2016-05-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15212         * gcc.target/powerpc/pr70963.c: Require at least power8 at both
15213         compile and run time.
15215 2016-05-11  Mikhail Maltsev  <maltsevm@gmail.com>
15217         PR c/43651
15218         * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
15220 2016-05-11  Uros Bizjak  <ubizjak@gmail.com>
15222         * config/i386/i386.c (legitimize_pic_address): Use
15223         copy_to_suggested_reg instead of gen_movsi.
15225 2016-05-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
15227         * config/rs6000/predicates.md (quad_memory_operand): Move most of
15228         the code into quad_address_p and call it to share code with
15229         vsx_quad_dform_memory_operand.
15230         (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
15231         d-form support.
15232         * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
15233         bit instead of being a separate word.  Split -mpower9-dform into
15234         two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
15235         * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
15236         for the register class supporting 128-bit quad word memory offsets.
15237         (mode_supports_vsx_dform_quad): Helper function to return if the
15238         register class uses quad word memory offsets.
15239         (rs6000_debug_addr_mask): Add support for quad word memory offsets.
15240         (rs6000_debug_reg_global): Always print if we are using LRA or not.
15241         (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
15242         instructions are enabled, set up the appropriate addr_masks for
15243         128-bit types.
15244         (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
15245         -mpower9-dform-scalar, instead of -mpower9-dform.
15246         (rs6000_option_override_internal): Split -mpower9-dform into two
15247         switches, -mpower9-dform-scalar and -mpower9-dform-vector.  The
15248         -mpower9-dform switch sets or clears both.  If we are not using
15249         the LRA register allocator, do not enable -mpower9-dform-vector by
15250         default.  If we are using LRA, enable -mpower9-dform-vector and
15251         -mvsx-timode if it is appropriate.  Issue a warning if either
15252         -mpower9-dform-vector or -mvsx-timode are explicitly used without
15253         enabling LRA.
15254         (quad_address_offset_p): New helper function to return if the
15255         offset is legal for quad word memory instructions.
15256         (quad_address_p): New function to determin if GPR or vector
15257         register quad word memory addresses are legal.
15258         (mem_operand_gpr): Validate quad word address offsets.
15259         (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
15260         d-form (register + offset) instructions.
15261         (offsettable_ok_by_alignment): Likewise.
15262         (rs6000_legitimate_offset_address_p): Likewise.
15263         (legitimate_lo_sum_address_p): Likewise.
15264         (rs6000_legitimize_address): Likewise.
15265         (rs6000_legitimize_reload_address): Add more debug statements for
15266         -mdebug=addr.
15267         (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
15268         d-form instructions.
15269         (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
15270         d-form instructions.  Distinguish different cases in debug
15271         output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
15272         d-form instructions.
15273         (rs6000_preferred_reload_class): Likewise.
15274         (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
15275         instructions.  If ISA 3.0 is available, generate lxvx/stxvx instead
15276         of the ISA 2.06 indexed memory instructions.
15277         (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
15278         use them to save/restore the saved vector registers instead of
15279         using Altivec instructions.
15280         (rs6000_emit_epilogue): Likewise.
15281         (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
15282         (rs6000_opt_masks): Split -mpower9-dform into
15283         -mpower9-dform-scalar and -mpower9-dform-vector.
15284         (rs6000_print_options_internal): Print -mno-<switch> if <switch>
15285         was not selected.
15286         * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
15287         ISA 3.0 vector indexed memory instructions, and fold the code into
15288         the normal mov<mode> patterns.
15289         (p9_vecstore_<mode>): Likewise.
15290         (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
15291         instructions.
15292         (vsx_movti_64bit): Likewise.
15293         (vsx_movti_32bit): Likewise.
15294         * config/rs6000/constraints.md (wO constraint): New constraint for
15295         ISA 3.0 vector d-form support.
15296         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
15297         -mpower9-dform-scalar instead of -mpower9-dform.  Add note not to
15298         include -mpower9-dform-vector until we switch over to LRA.
15299         (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
15300         switches, -mpower9-dform-scalar and -mpower9-dform-vector.
15301         * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
15302         * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
15303         for -mpower9-dform and -mlra.
15304         * doc/md.texi (wO constraint): Document wO constraint.
15306 2016-05-11  Alexander Monakov  <amonakov@ispras.ru>
15308         * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
15309         'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
15310         * genautomata.c (output_internal_insn_code_evaluation): Simplify.
15311         Move handling of non-insn arguments inline into the sole user:
15312         (output_trans_func): ...here.
15313         (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
15314         in emitted function prototype.
15315         (output_internal_insn_latency_func): Ditto.  Simplify.
15316         (output_internal_maximal_insn_latency_func): Ditto.  Delete
15317         always-unused argument.
15318         (output_insn_latency_func): Ditto.
15319         (output_maximal_insn_latency_func): Ditto.
15321 2016-05-11  Richard Biener  <rguenther@suse.de>
15323         PR tree-optimization/71055
15324         * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
15325         sth with precision not equal to access size verify we don't chop
15326         off bits.
15328 2016-05-11  Richard Biener  <rguenther@suse.de>
15330         PR debug/71057
15331         * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
15332         (dwarf2out_finish): Move retry_incomplete_types call ...
15333         (dwarf2out_early_finish): ... here.
15335 2016-05-11  Richard Biener  <rguenther@suse.de>
15337         PR middle-end/71002
15338         * alias.c (reference_alias_ptr_type): Preserve alias-set zero
15339         if the langhook insists on it.
15340         * fold-const.c (make_bit_field_ref): Add arg for the original
15341         reference and preserve its alias-set.
15342         (decode_field_reference): Take exp by reference and adjust it
15343         to the original memory reference.
15344         (optimize_bit_field_compare): Adjust callers.
15345         (fold_truth_andor_1): Likewise.
15346         * gimplify.c (gimplify_expr): Adjust in-SSA form test.
15348 2016-05-11  Ilya Enkovich  <ilya.enkovich@intel.com>
15350         PR middle-end/70807
15351         * cfgrtl.h (delete_insn_and_edges): Now return bool.
15352         * cfgrtl.c (delete_insn_and_edges): Likewise.
15353         * config/i386/i386.c (convert_scalars_to_vector): Remove
15354         redundant code.
15355         * cse.c (cse_insn): Compute cse_cfg_altered.
15356         (delete_trivially_dead_insns): Likewise.
15357         (cse_cc_succs): Likewise.
15358         (rest_of_handle_cse): Free dominance info if required.
15359         (rest_of_handle_cse2): Likewise.
15360         (rest_of_handle_cse_after_global_opts): Likewise.
15362 2016-05-11  Alan Modra  <amodra@gmail.com>
15364         * config/rs6000/rs6000.c (is_complex_IBM_long_double,
15365         abi_v4_pass_in_fpr): New functions.
15366         (rs6000_function_arg_boundary): Exclude complex IBM long double
15367         from 64-bit alignment when ABI_V4.
15368         (rs6000_function_arg, rs6000_function_arg_advance_1,
15369         rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
15371 2016-05-10  Segher Boessenkool  <segher@kernel.crashing.org>
15373         PR rtl-optimization/71028
15374         * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
15375         jump with just a return in the fallthrough block if the branch
15376         block contains just a return as well.
15378 2016-05-10  Marc Glisse  <marc.glisse@inria.fr>
15380         * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
15381         * match.pd ((X & Y) ^ Y): ... this.
15382         ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
15383         | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
15385 2016-05-10  David Malcolm  <dmalcolm@redhat.com>
15387         * read-md.c (require_char_ws): New function.
15388         (read_string): Simplify using require_char_ws.
15389         (handle_constants): Likewise.
15390         (handle_enum): Likewise.
15391         (handle_file): Likewise.
15392         * read-md.h (require_char_ws): New declaration.
15393         * read-rtl.c (read_conditions): Simplify using require_char_ws.
15394         (read_mapping): Likewise.
15395         (read_rtx_code): Likewise.
15396         (read_nested_rtx): Likewise.
15398 2016-05-10  James Norris  <jnorris@codesourcery.com>
15400         * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
15401         if offloading is enabled and -fopenacc or -fopenmp is specified.
15402         (CRTOFFLOADEND): Likewise.
15403         (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
15404         (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
15406 2016-05-10  Uros Bizjak  <ubizjak@gmail.com>
15408         * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
15409         gotoff_operand code paths.  Use copy_to_suggested_regs and
15410         expand_simple_binop where appropriate.  Cleanup.
15412 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
15414         PR target/70799
15415         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
15416         integer constants.
15417         (dimode_scalar_chain::vector_const_cost): New.
15418         (dimode_scalar_chain::compute_convert_gain): Handle constants.
15419         (dimode_scalar_chain::convert_op): Likewise.
15420         (dimode_scalar_chain::convert_insn): Likewise.
15422 2016-05-10  Pierre-Marie de Rodat  <derodat@adacore.com>
15424         * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
15425         unary operation, not a binary one.
15427 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
15429         PR middle-end/70877
15430         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
15431         calls with type casted fndecl.
15433 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
15435         PR tree-optimization/70786
15436         * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
15437         * calls.c (initialize_argument_information): Bind bounds
15438         with corresponding args passed by reference.
15440 2016-05-10  Jakub Jelinek  <jakub@redhat.com>
15442         PR target/70927
15443         * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
15444         *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
15445         use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
15446         accordingly.
15448 2016-05-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15450         PR target/70963
15451         * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
15452         code for a zero scale factor.
15453         (vsx_xvcvdpuxds_scale): Likewise.
15455 2016-05-10  David Malcolm  <dmalcolm@redhat.com>
15457         * diagnostic-show-locus.c (layout::layout): Call show_ruler
15458         if show_ruler_p was set on the context.
15459         (layout::show_ruler): New method.
15460         * diagnostic.h (struct diagnostic_context): Add field
15461         "show_ruler_p".
15463 2016-05-10  Richard Biener  <rguenther@suse.de>
15465         PR tree-optimization/71039
15466         * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
15467         (chk_uses): New function.
15468         (propagate_with_phi): Verify we can safely replicate the lhs of an
15469         aggregate assignment on all incoming edges.
15471 2016-05-10  Oleg Endo  <olegendo@gcc.gnu.org>
15473         * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
15474         Forward declare.
15475         (rx_atomic_sequence): New class.
15476         * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
15477         (is_interrupt_func, is_fast_interrupt_func): Make non-static and
15478         non-inline.
15479         (rx_atomic_sequence::rx_atomic_sequence,
15480         rx_atomic_sequence::~rx_atomic_sequence): New functions.
15481         * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
15482         CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
15483         CTRLREG_INTB): New constants.
15484         (FETCHOP): New code iterator.
15485         (fethcop_name, fetchop_name2): New iterator code attributes.
15486         (QIHI): New mode iterator.
15487         (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
15488         atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
15489         atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
15491 2016-05-10  Martin Liska  <mliska@suse.cz>
15493         * tree-inline.c (remap_dependence_clique): Do not remap
15494         debugging statements.
15496 2016-05-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15498         * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
15499         ("*fixuns_truncdfdi2_z13")
15500         ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
15501         ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
15502         ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
15504 2016-05-10  Richard Biener  <rguenther@suse.de>
15506         PR tree-optimization/70497
15507         PR tree-optimization/28367
15508         * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
15509         split out from ...
15510         (visit_reference_op_load): ... here.
15511         (vn_reference_lookup_3): Use it to handle subreg-like accesses
15512         with simplified BIT_FIELD_REFs.
15513         * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
15514         * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
15515         correctly.
15517 2016-05-10  Pierre-Marie de Rodat  <derodat@adacore.com>
15519         * dwarf2out.c (add_abstract_origin_attribute): Adjust
15520         documentation comment.  For BLOCK nodes, add a
15521         DW_AT_abstract_origin attribute that points to the DIE generated
15522         for the origin BLOCK.
15523         (gen_lexical_block_die): Call add_abstract_origin_attribute for
15524         blocks from inlined functions.
15526 2016-05-10  Alan Modra  <amodra@gmail.com>
15528         PR target/70947
15529         * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
15530         regrename modifying insns saving lr before __morestack call.
15531         * config/rs6000/rs6000.md (split_stack_return): Similarly for
15532         insns restoring lr after __morestack call.
15534 2016-05-09  Jakub Jelinek  <jakub@redhat.com>
15536         * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
15537         lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
15538         expanders.
15539         * config/i386/sse.md (vec_interleave_high<mode>,
15540         vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
15541         <avx512>_vpermt2var<mode>3_maskz): Likewise.
15543 2016-05-04  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
15545         * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
15546         function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
15547         parallel reassociation for power8 and forward.
15549 2016-05-09  Uros Bizjak  <ubizjak@gmail.com>
15551         * config/i386/i386.md (absneg splitters with general regs): Use
15552         general_reg_operand predicate.
15553         (btsq peephole2): Use x86_64_immediate_operand to check if new
15554         value is suitable for immediate operand.  Generate emitted insn
15555         using RTL expressions.
15556         (btcq peephole2): Ditto.
15557         (btrq peephole2): Ditto.  Generate correct immediate operand
15558         for AND masking.
15560 2016-05-09  Richard Sandiford  <richard.sandiford@arm.com>
15562         * cfgexpand.c (expand_debug_expr): Fix address offset for negative
15563         bitpos.
15565 2016-05-09  Richard Sandiford  <richard.sandiford@arm.com>
15567         * tree-affine.c (wide_int_constant_multiple_p): Add missing
15568         pointer dereference.
15570 2016-05-09  Richard Biener  <rguenther@suse.de>
15572         PR tree-optimization/70985
15573         * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
15574         op0 isn't a gimple register.
15576 2016-05-09  Prachi Godbole  <prachi.godbole@imgtec.com>
15578         * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
15579         (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
15580         (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
15581         (i6400_fpu_mult): New cpu units.
15582         (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
15583         (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
15584         (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
15585         (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
15586         (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
15587         (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
15588         (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
15589         (i6400_msa_long_float4, i6400_msa_long_float5)
15590         (i6400_msa_long_float8, i6400_msa_fdiv_df)
15591         (i6400_msa_fdiv_sf): New reservations.
15592         * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
15593         (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
15594         (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
15595         (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
15596         (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
15597         (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
15598         (msa_short_cmp, msa_short_float2, msa_short_logic3)
15599         (msa_short_store4, msa_long_load, msa_short_store)
15600         (msa_long_logic, msa_long_float2, msa_long_float4)
15601         (msa_long_float5, msa_long_float8, msa_long_mult)
15602         (msa_long_fdiv, msa_long_div): New reservations.
15604 2016-05-09  Robert Suchanek  <robert.suchanek@imgtec.com>
15605             Sameera Deshpande  <sameera.deshpande@imgtec.com>
15606             Matthew Fortune  <matthew.fortune@imgtec.com>
15607             Graham Stott  <graham.stott@imgtec.com>
15608             Chao-ying Fu  <chao-ying.fu@imgtec.com>
15610         * config.gcc: Add MSA header file for mips*-*-* target.
15611         * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
15612         (Ubv8i, Urv8):  New constraints.
15613         * config/mips/mips-ftypes.def: Add function types for MSA
15614         builtins.
15615         * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
15616         (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
15617         * config/mips/mips-msa.md: New file.
15618         * config/mips/mips-protos.h
15619         (mips_split_128bit_const_insns): New prototype.
15620         (mips_msa_idiv_insns): Likewise.
15621         (mips_split_128bit_move): Likewise.
15622         (mips_split_128bit_move_p): Likewise.
15623         (mips_split_msa_copy_d): Likewise.
15624         (mips_split_msa_insert_d): Likewise.
15625         (mips_split_msa_fill_d): Likewise.
15626         (mips_expand_msa_branch): Likewise.
15627         (mips_const_vector_same_val_p): Likewise.
15628         (mips_const_vector_same_bytes_p): Likewise.
15629         (mips_const_vector_same_int_p): Likewise.
15630         (mips_const_vector_shuffle_set_p): Likewise.
15631         (mips_const_vector_bitimm_set_p): Likewise.
15632         (mips_const_vector_bitimm_clr_p): Likewise.
15633         (mips_msa_vec_parallel_const_half): Likewise.
15634         (mips_msa_output_division): Likewise.
15635         (mips_ldst_scaled_shift): Likewise.
15636         (mips_expand_vec_cond_expr): Likewise.
15637         * config/mips/mips.c (enum mips_builtin_type): Add
15638         MIPS_BUILTIN_MSA_TEST_BRANCH.
15639         (mips_gen_const_int_vector_shuffle): New prototype.
15640         (mips_const_vector_bitimm_set_p): New function.
15641         (mips_const_vector_bitimm_clr_p): Likewise.
15642         (mips_const_vector_same_val_p): Likewise.
15643         (mips_const_vector_same_bytes_p): Likewise.
15644         (mips_const_vector_same_int_p): Likewise.
15645         (mips_const_vector_shuffle_set_p): Likewise.
15646         (mips_symbol_insns): Forbid loading symbols via immediate for
15647         MSA.
15648         (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
15649         stores.
15650         (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
15651         MSA.
15652         (mips_lx_address_p): Add support load indexed address for MSA.
15653         (mips_address_insns): Add calculation of instructions needed for
15654         stores and loads for MSA.
15655         (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR.  Handle
15656         CONST_VECTOR for MSA and let it fall through.
15657         (mips_ldst_scaled_shift): New function.
15658         (mips_subword_at_byte): Likewise.
15659         (mips_msa_idiv_insns): Likewise.
15660         (mips_legitimize_move): Validate MSA moves.
15661         (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases.  Add
15662         calculation of costs for MSA division.
15663         (mips_split_move_p): Check if MSA moves need splitting.
15664         (mips_split_move): Split MSA moves if necessary.
15665         (mips_split_128bit_move_p): New function.
15666         (mips_split_128bit_move): Likewise.
15667         (mips_split_msa_copy_d): Likewise.
15668         (mips_split_msa_insert_d): Likewise.
15669         (mips_split_msa_fill_d): Likewise.
15670         (mips_output_move): Handle MSA moves.
15671         (mips_expand_msa_branch): New function.
15672         (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
15673         Reinstate 'y' modifier.
15674         (mips_file_start): Add MSA .gnu_attribute.
15675         (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
15676         FPRs.
15677         (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
15678         (mips_class_max_nregs): Add register size for MSA supported mode.
15679         (mips_cannot_change_mode_class): Allow conversion between MSA
15680         vector modes and TImode.
15681         (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
15682         instruction.
15683         (mips_secondary_reload_class): Force MSA loads/stores via memory.
15684         (mips_preferred_simd_mode): Add preffered modes for MSA.
15685         (mips_vector_mode_supported_p): Add MSA supported modes.
15686         (mips_autovectorize_vector_sizes): New function.
15687         (mips_msa_output_division): Likewise.
15688         (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
15689         (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
15690         (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
15691         (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
15692         (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
15693         (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
15694         (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
15695         (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
15696         (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
15697         (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
15698         (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
15699         (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
15700         (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
15701         (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
15702         (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
15703         (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
15704         (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
15705         (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
15706         (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
15707         (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
15708         (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
15709         (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
15710         (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
15711         (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
15712         (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
15713         (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
15714         (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
15715         (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
15716         (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
15717         (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
15718         (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
15719         (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
15720         (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
15721         (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
15722         (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
15723         (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
15724         (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
15725         (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
15726         (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
15727         (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
15728         (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
15729         (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
15730         (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
15731         (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
15732         (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
15733         (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
15734         (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
15735         (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
15736         (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
15737         (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
15738         (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
15739         (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
15740         (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
15741         (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
15742         (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
15743         (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
15744         (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
15745         (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
15746         (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
15747         (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
15748         (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
15749         (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
15750         (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
15751         (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
15752         (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
15753         (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
15754         (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
15755         (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
15756         (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
15757         (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
15758         (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
15759         (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
15760         (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
15761         (CODE_FOR_msa_ldi_d): New code_aliasing macros.
15762         (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
15763         slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
15764         srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
15765         srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
15766         srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
15767         srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
15768         bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
15769         bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
15770         bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
15771         binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
15772         binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
15773         binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
15774         addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
15775         subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
15776         max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
15777         max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
15778         maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
15779         mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
15780         mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
15781         min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
15782         ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
15783         clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
15784         clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
15785         clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
15786         clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
15787         clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
15788         st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
15789         sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
15790         adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
15791         adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
15792         ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
15793         aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
15794         aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
15795         subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
15796         subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
15797         subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
15798         asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
15799         maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
15800         msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
15801         div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
15802         hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
15803         hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
15804         mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
15805         dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
15806         dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
15807         dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
15808         sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
15809         splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
15810         pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
15811         ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
15812         ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
15813         ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
15814         ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
15815         bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
15816         fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
15817         pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
15818         nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
15819         copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
15820         insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
15821         bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
15822         fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
15823         fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
15824         fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
15825         fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
15826         fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
15827         fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
15828         fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
15829         fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
15830         fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
15831         fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
15832         mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
15833         msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
15834         fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
15835         flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
15836         ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
15837         ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
15838         ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
15839         move_v builtins.
15840         (mips_get_builtin_decl_index): New array.
15841         (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
15842         (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
15843         (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
15844         (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
15845         (mips_init_builtins): Initialize mips_get_builtin_decl_index
15846         array.
15847         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
15848         hook.
15849         (mips_expand_builtin_insn): Prepare operands for
15850         CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
15851         CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
15852         CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
15853         CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
15854         CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
15855         CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
15856         CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
15857         CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
15858         CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
15859         CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
15860         CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
15861         CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
15862         CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
15863         CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
15864         CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
15865         CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
15866         CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
15867         CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
15868         CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
15869         CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
15870         CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
15871         CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
15872         CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
15873         CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
15874         CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
15875         CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
15876         CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
15877         CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
15878         CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
15879         CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
15880         CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
15881         CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
15882         CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
15883         CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
15884         CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
15885         CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
15886         CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
15887         CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
15888         CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
15889         CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
15890         CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
15891         (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
15892         (mips_set_compression_mode): Disallow MSA with MIPS16 code.
15893         (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
15894         These are set implicitly and an error is reported if overridden.
15895         (mips_expand_builtin_msa_test_branch): New function.
15896         (mips_expand_msa_shuffle): Likewise.
15897         (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
15898         (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
15899         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
15900         (mips_expand_vec_unpack): Add support for MSA.
15901         (mips_expand_vector_init): Likewise.
15902         (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
15903         instead of const0_rtx.
15904         (mips_msa_vec_parallel_const_half): New function.
15905         (mips_gen_const_int_vector): Likewise.
15906         (mips_gen_const_int_vector_shuffle): Likewise.
15907         (mips_expand_msa_cmp): Likewise.
15908         (mips_expand_vec_cond_expr): Likewise.
15909         * config/mips/mips.h
15910         (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
15911         (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
15912         specified.
15913         (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
15914         (ISA_HAS_MSA): New macro.
15915         (UNITS_PER_MSA_REG): Likewise.
15916         (BITS_PER_MSA_REG): Likewise.
15917         (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
15918         (MSA_REG_FIRST): New macro.
15919         (MSA_REG_LAST): Likewise.
15920         (MSA_REG_NUM): Likewise.
15921         (MSA_REG_P): Likewise.
15922         (MSA_REG_RTX_P): Likewise.
15923         (MSA_SUPPORTED_MODE_P): Likewise.
15924         (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
15925         (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
15926         * config/mips/mips.md: Include mips-msa.md.
15927         (alu_type): Add simd_add.
15928         (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
15929         (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
15930         simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
15931         simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
15932         simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
15933         simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
15934         simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
15935         simd_move, simd_load, simd_store.  Choose "multi" for moves
15936         for "qword_mode".
15937         (qword_mode): New attribute.
15938         (insn_count): Add instruction count for quad moves.
15939         Increase the count for MIPS SIMD division.
15940         (UNITMODE): Add UNITMODEs for vector types.
15941         (addsub): New code iterator.
15942         * config/mips/mips.opt (mmsa): New option.
15943         * config/mips/msa.h: New file.
15944         * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
15945         specified.
15946         * config/mips/mti-linux.h: Likewise.
15947         * config/mips/predicates.md
15948         (const_msa_branch_operand): New constraint.
15949         (const_uimm3_operand): Likewise.
15950         (const_uimm4_operand): Likewise.
15951         (const_uimm5_operand): Likewise.
15952         (const_uimm8_operand): Likewise.
15953         (const_imm5_operand): Likewise.
15954         (aq10b_operand): Likewise.
15955         (aq10h_operand): Likewise.
15956         (aq10w_operand): Likewise.
15957         (aq10d_operand): Likewise.
15958         (const_m1_operand): Likewise.
15959         (reg_or_m1_operand): Likewise.
15960         (const_exp_2_operand): Likewise.
15961         (const_exp_4_operand): Likewise.
15962         (const_exp_8_operand): Likewise.
15963         (const_exp_16_operand): Likewise.
15964         (const_vector_same_val_operand): Likewise.
15965         (const_vector_same_simm5_operand): Likewise.
15966         (const_vector_same_uimm5_operand): Likewise.
15967         (const_vector_same_uimm6_operand): Likewise.
15968         (const_vector_same_uimm8_operand): Likewise.
15969         (par_const_vector_shf_set_operand): Likewise.
15970         (reg_or_vector_same_val_operand): Likewise.
15971         (reg_or_vector_same_simm5_operand): Likewise.
15972         (reg_or_vector_same_uimm6_operand): Likewise.
15973         * doc/extend.texi (MIPS SIMD Architecture Functions): New
15974         section.
15975         * doc/invoke.texi (-mmsa): Document new option.
15977 2016-05-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15979         * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
15980         * configure: Regenerate.
15981         * config.in: Regenerate.
15982         * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
15983         on -fvtable-verify.
15984         * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
15985         (ENDFILE_VTV_SPEC): Define.
15987 2016-05-09  Kaushik Phatak  <kaushik.phatak@kpit.com>
15989         * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
15990         registers in all interrupt handlers if necessary.
15991         (rl78_option_override): Add warning.
15992         (MUST_SAVE_MDUC_REGISTERS): New macro.
15993         (rl78_expand_epilogue): Restore the MDUC registers if necessary.
15994         * config/rl78/rl78.c (check_mduc_usage): New function.
15995         (mduc_regs): New structure to hold MDUC register data.
15996         * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
15997         (mulsi3_g13): Add is_g13_muldiv_insn attribute.
15998         (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
15999         (mulhi3_g13): Add is_g13_muldiv_insn attribute.
16000         * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
16001         * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
16003 2016-05-09  Bin Cheng  <bin.cheng@arm.com>
16005         * tree-if-conv.c (tree-ssa-loop.h): Include header file.
16006         (tree-ssa-loop-niter.h): Ditto.
16007         (idx_within_array_bound, ref_within_array_bound): New functions.
16008         (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
16009         Factor out check on writable base object to ...
16010         (base_object_writable): ... here.
16012 2016-05-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16014         * config/arm/arm.md (probe_stack): Add modes to set source
16015         and destination.
16017 2016-05-09  Bernd Schmidt  <bschmidt@redhat.com>
16019         * regrename.c (base_reg_class_for_rename): New static function.
16020         (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
16022 2016-05-08  Jan Hubicka  <hubicka@ucw.cz>
16024         * cgraph.c (thunk_adjust): Export.
16025         * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
16026         * cgraphunit.c (thunk_adjust): Export.
16027         (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
16028         thunks.
16029         * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
16030         inlinable.
16031         * tree-inline.c (expand_call_inline): Expand thunks inline.
16033 2016-05-08  Uros Bizjak  <ubizjak@gmail.com>
16035         PR target/70998
16036         * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
16037         (*sse2_vd_cvtss2sd): Ditto.
16038         * config/i386/i386.md
16039         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
16040         Generate *sse2_vd_cvtsd2ss pattern.
16041         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
16042         Generate *sse2_vd_cvtss2sd pattern.
16044 2016-05-08  Oleg Endo  <olegendo@gcc.gnu.org>
16046         * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
16047         * config/sh/sh.c (get_sh_arg_class): ... this new function.  Update its
16048         users.
16050 2016-05-08  Oleg Endo  <olegendo@gcc.gnu.org>
16052         * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
16053         * config/sh/sh.c: Define and declare variables on first use throughout
16054         the file.
16055         (current_function_interrupt): Change to bool type.
16056         (frame_insn): Rename to emit_frame_insn and update users.
16057         (push_regs): Use bool for 'interrupt_handler' argument.
16058         (save_schedule_s): Remove.
16059         (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
16060         (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
16061         targetm.asm_out.unaligned_op.di.
16062         (gen_far_branch): Remove redundant forward declaration.
16063         (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
16064         MAX_TEMPS, save_schedule_ssave_schedule): Remove.
16065         (sh_set_return_address, sh_function_ok_for_sibcall,
16066         scavenge_reg): Update comments.
16067         (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
16068         (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
16069         (sh_attr_renesas_p): Remove unnecessary parentheses.
16070         (branch_dest): Simplify.
16071         * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
16072         Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
16073         (CUMULATIVE_ARGS): Change macro to typedef.
16074         (current_function_interrupt): Change to bool type.
16075         (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
16076         Surround with __cplusplus ifdef.
16077         (sh_compare_op0, sh_compare_op1): Remove.
16078         (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
16080 2016-05-07  Jim Wilson  <jim.wilson@linaro.org>
16082         * config/arm/arm.md: (arch): Add neon.
16083         (arch_enabled): Return yes for arch neon when TARGET_NEON.
16084         * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3.  Add
16085         neon_move as type for alt 3.  Add arch attr enabling alt 3 for neon.
16086         Emit vmov.i64 for alt 3.  Renumber alternatives 3 to 8.  Adjust
16087         attributes for alt renumbering.  Mark alt 3 as non-predicable.
16088         (thumb2_movdf_vfp): Likewise.
16090 2016-05-07  Uros Bizjak  <ubizjak@gmail.com>
16092         * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
16093         to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
16094         (*andqi_1): Add preferred_for_speed attribute to disparage
16095         alternative 2 for TARGET_PARTIAL_REG_STALL targets.
16096         (*<code>qi_1): Ditto.
16097         (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
16098         alternative 1 for TARGET_PARTIAL_REG_STALL targets.
16099         (*ashlqi3_1): Ditto.
16100         (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
16101         Add preferred_for_size attribute to disparage alternative 0 and
16102         preferred_for_speed attribute to disparage alternative 1 for
16103         TARGET_PARTIAL_REG_STALL targets.
16105 2016-05-07  Tom de Vries  <tom@codesourcery.com>
16107         PR tree-optimization/70956
16108         * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
16109         def.
16111 2016-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
16113         * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
16114         * config/sh/sh.c (sh_cbranch_distance): Implement it.
16115         * config/sh/sh.md (branch_zero): Remove define_attr.
16116         (define_delay): Disable delay slot if branch distance is one insn.
16118 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
16120         * config/i386/i386.md (LEAMODE): New mode attribute.
16121         (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
16122         (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
16123         and LEAMODE mode attribute.  Use VOIDmode const_0_to_3_operand as
16124         operand 2 predicate.
16125         (*lea<mode>_general_2): Use VOIDmode for const248_operand.
16126         (*lea<mode>_general_3): Ditto.
16127         (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
16129 2016-05-06  Jakub Jelinek  <jakub@redhat.com>
16131         * genmddump.c (main): Convert argv from char ** to const char **.
16133 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
16135         * coretypes.h (OVERRIDE): New macro.
16136         (FINAL): New macro.
16138 2016-05-06  Eric Botcazou  <ebotcazou@adacore.com>
16140         * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
16141         allow coalescing if the types are compatible.
16143 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
16145         * pass_manager.h (pass_manager::register_pass_name): New method.
16146         (pass_manager::get_pass_by_name): New method.
16147         (pass_manager::create_pass_tab): New method.
16148         (pass_manager::m_name_to_pass_map): New field.
16149         * passes.c (name_to_pass_map): Delete global in favor of field
16150         "m_name_to_pass_map" of pass_manager.
16151         (register_pass_name): Rename from a function to...
16152         (pass_manager::register_pass_name): ...this method, updating
16153         for renaming of global "name_to_pass_map" to field
16154         "m_name_to_pass_map".
16155         (create_pass_tab): Rename from a function to...
16156         (pass_manager::create_pass_tab): ...this method, updating
16157         for renaming of global "name_to_pass_map" to field.
16158         (get_pass_by_name): Rename from a function to...
16159         (pass_manager::get_pass_by_name): ...this method.
16160         (enable_disable_pass): Convert use of get_pass_by_name to
16161         a method call, locating the pass_manager singleton.
16163 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
16165         * genattr-common.c (main): Convert argv from char ** to const char **.
16166         * genattr.c (main): Likewise.
16167         * genattrtab.c (main): Likewise.
16168         * genautomata.c (initiate_automaton_gen): Likewise.
16169         (main): Likewise.
16170         * gencodes.c (main): Likewise.
16171         * genconditions.c (main): Likewise.
16172         * genconfig.c (main): Likewise.
16173         * genconstants.c (main): Likewise.
16174         * genemit.c (main): Likewise.
16175         * genenums.c (main): Likewise.
16176         * genextract.c (main): Likewise.
16177         * genflags.c (main): Likewise.
16178         * genmddeps.c (main): Likewise.
16179         * genopinit.c (main): Likewise.
16180         * genoutput.c (main): Likewise.
16181         * genpeep.c (main): Likewise.
16182         * genpreds.c (main): Likewise.
16183         * genrecog.c (main): Likewise.
16184         * gensupport.c (init_rtx_reader_args_cb): Likewise.
16185         (init_rtx_reader_args): Likewise.
16186         * gensupport.h (init_rtx_reader_args_cb): Likewise.
16187         (init_rtx_reader_args): Likewise.
16188         * gentarget-def.c (main): Likewise.
16189         * read-md.c (read_md_files): Likewise.
16190         * read-md.h (read_md_files): Likewise.
16192 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
16194         * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
16195         instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
16196         * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
16197         Remove unused predicate.
16198         (register_and_not_fp_reg_operand): Ditto.
16200 2016-05-06  Martin Liska  <mliska@suse.cz>
16202         * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
16203         instead of vec as the vector is local to the function.
16205 2016-05-06  Jakub Jelinek  <jakub@redhat.com>
16207         * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
16208         avx512bw alternative.
16210         * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
16211         before the ashr<mode>3 pattern.
16213         * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
16214         v instead of x in vex or maybe_vex alternatives, use
16215         maybe_evex instead of vex in prefix.
16217         * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
16218         *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
16219         vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
16220         in vex or maybe_vex alternatives, use maybe_evex instead of vex
16221         in prefix.
16223         * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
16224         v instead of x in vex or maybe_vex alternatives, use
16225         maybe_evex instead of vex in prefix.
16227         * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
16228         sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
16229         sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
16230         sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
16231         alternatives, use maybe_evex instead of vex in prefix.
16233         * config/i386/sse.md (vec_interleave_lowv4sf,
16234         *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
16235         v instead of x in vex or maybe_vex alternatives, use
16236         maybe_evex instead of vex in prefix.
16238         * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
16239         v instead of x in vex or maybe_vex alternatives, use
16240         maybe_evex instead of vex in prefix.
16242         * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
16243         v constraint instead of x.
16245 2016-05-06  Nathan Sidwell  <nathan@codesourcery.com>
16247         * gimple.c (gimple_call_same_target_p): Unique functions are eq.
16248         * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
16249         equality first.
16251 2016-05-06  Richard Biener  <rguenther@suse.de>
16253         PR tree-optimization/70948
16254         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
16255         Properly clobber all fields of va_list for __builtin_va_start.
16257 2016-05-06  Yuri Rumyantsev  <ysrumyan@gmail.com>
16259         PR debug/70935
16260         * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
16261         loop latch destination.
16263 2016-05-06  Martin Liska  <mliska@suse.cz>
16265         * tree-ssa-uninit.c: Apply manual changes
16266         to the GNU coding style.
16267         (prune_uninit_phi_opnds): Rename from
16268         prune_uninit_phi_opnds_in_unrealizable_paths.
16270 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
16272         * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
16273         mspace): Remove deprecated options.
16274         * doc/invoke.texi (SH options): Remove -mspace.
16276 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
16278         * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
16280 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
16282         * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
16283         corresponding combine split pattern.
16285 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
16287         PR target/58219
16288         * config/sh/predicates.md (long_displacement_mem_operand): New.
16289         * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
16290         Add movi20, movi20s alternatives.  Adjust length attribute for
16291         alternatives.
16292         (movsi_ie): Allow for any FPU.  Adjust length attribute for
16293         alternatives.
16294         (movsi_i_lowpart): Add movi20, movi20s alternatives.  Adjust length
16295         attribute for alternatives.
16296         (*mov<mode>): Use long_displacement_mem_operand for length attribute.
16297         (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
16298         length attribute for alternatives.
16300 2016-05-06  Richard Biener  <rguenther@suse.de>
16302         PR tree-optimization/70960
16303         * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
16305 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
16307         PR target/52933
16308         * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
16309         * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
16311 2016-05-06  Marek Polacek  <polacek@redhat.com>
16313         PR sanitizer/70875
16314         * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
16316 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
16318         PR target/54089
16319         * config/sh/sh.md (*rotcr): Add another variant.
16321 2016-05-06  Richard Biener  <rguenther@suse.de>
16323         PR middle-end/70931
16324         * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
16326 2016-05-06  Richard Biener  <rguenther@suse.de>
16328         PR middle-end/70941
16329         * fold-const.c (split_tree): Always convert to the original type
16330         before negating.
16332 2016-05-06  Richard Biener  <rguenther@suse.de>
16334         * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
16335         (fwprop_addr): Likewise.
16337 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
16339         PR target/70873
16340         * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
16341         New prototype.
16342         * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
16343         * config/i386/i386.md (push mem splitter): Use find_constant_src in
16344         the splitter condition.
16345         (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
16346         the splitter condition.
16347         (FP float_extend load splitter): Ditto.
16349 2016-05-05  Uros Bizjak  <ubizjak@gmail.com>
16351         * config/i386/i386.md (peehole2 patterns): Change true_regnum
16352         to REGNO in all peephole2 patterns.
16353         (post-reload splitters): Change true_regnum to REGNO in
16354         post-reload splitters.
16355         (zero_extend splitters): Use general_reg_operand and
16356         nonimmediate_gr_operand predicates.
16358 2016-05-05  Jakub Jelinek  <jakub@redhat.com>
16360         * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
16361         v constraint instead of x.
16363 2016-05-05  Alan Modra  <amodra@gmail.com>
16365         PR target/68662
16366         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
16367         set OPTION_MASK_RELOCATABLE when flag_pic == 2.  Set
16368         TARGET_NO_FP_IN_TOC for -mrelocatable.
16369         (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
16370         TARGET_RELOCATABLE test.
16371         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
16372         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
16373         * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
16374         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
16375         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
16376         * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
16377         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
16378         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
16379         * config/rs6000/predicates.md (easy_fp_constant): Likewise.
16380         * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
16381         Likewise.
16382         (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
16383         (rs6000_stack_info): Likewise.
16384         (rs6000_elf_asm_out_constructor): Likewise.
16385         (rs6000_elf_asm_out_destructor): Likewise.
16386         (rs6000_elf_declare_function_name): Likewise.
16387         * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
16388         * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
16389         Don't define.
16391 2016-05-05  Alan Modra  <amodra@gmail.com>
16393         * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
16395 2016-05-05  Alan Modra  <amodra@gmail.com>
16397         * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
16398         out-of-line gpr restore for one or two regs if that would add
16399         a save of lr.
16401 2016-05-04  Uros Bizjak  <ubizjak@gmail.com>
16403         PR target/70873
16404         * config/i386/i386.md
16405         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
16406         Change to post-epilogue_completed late splitter.  Use sse_reg_operand
16407         as operand 0 predicate.
16408         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
16409         Ditto.
16410         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
16411         Ditto.  Emit the pattern using RTX.
16413         (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
16414         Use sse_reg_opreand as operand 0 predicate.  Do not use true_regnum in
16415         the post-reload splitter.  Use lowpart_subreg instead of gen_rtx_REG.
16416         (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
16417         Ditto.
16418         (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
16419         sse_reg_operand as operand 0 predicate.
16421         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
16422         Use sse_reg_opreand as operand 0 predicate.  Use lowpart_subreg
16423         instead of gen_rtx_REG.
16424         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
16425         Ditto.
16427 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
16429         * function.c (emit_use_return_register_into_block): Delete.
16430         (gen_return_pattern): Delete.
16431         (emit_return_into_block): Delete.
16432         (active_insn_between): Delete.
16433         (convert_jumps_to_returns): Delete.
16434         (emit_return_for_exit): Delete.
16435         (thread_prologue_and_epilogue_insns): Delete all code dealing with
16436         simple_return for shrink-wrapped blocks.
16437         * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
16438         end of blocks that need one.
16439         (get_unconverted_simple_return): Delete.
16440         (convert_to_simple_return): Delete.
16441         * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
16442         (convert_to_simple_return): Ditto.
16444 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
16446         * cfgcleanup.c (bb_is_just_return): New function.
16447         (try_optimize_cfg): Simplify jumps to return, branches to return,
16448         and branches around return.
16450 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
16452         * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
16453         branch to a return.
16455 2016-05-04  Jakub Jelinek  <jakub@redhat.com>
16457         PR c++/70906
16458         PR c++/70933
16459         * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
16460         * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
16461         assert flags & OEP_HASH_CHECK, instead of asserting it
16462         never happens.  Handle TARGET_EXPR.
16463         * fold-const.c (operand_equal_p): For hash verification,
16464         or in OEP_HASH_CHECK into flags.
16466 2016-05-04  Eric Botcazou  <ebotcazou@adacore.com>
16468         * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
16469         comment.
16470         (compute_samebase_partition_bases): Fix typo.
16472 2016-05-04  Jakub Jelinek  <jakub@redhat.com>
16474         * config/i386/sse.md (vec_interleave_highv8sf,
16475         vec_interleave_lowv8sf, vec_interleave_highv4df,
16476         vec_interleave_lowv4df): Remove constraints from expanders.
16478         * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
16480 2016-05-04  Jan Hubicka  <hubicka@ucw.cz>
16482         * tree-inline.c (expand_call_inline): Fix path dealing with
16483         making lhs of call statement undefined.
16485 2016-05-04  Jan Hubicka  <hubicka@ucw.cz>
16487         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
16488         Check availability on NODE, too.
16489         * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
16490         (cgraph_node::call_for_symbol_and_aliases): Likewise.
16491         (varpool_node::call_for_symbol_and_aliase): Likewise.
16492         * ipa-pure-const.c (add_new_function): Analyze all bodies.
16493         (propagate_pure_const): Propagate across interposable functions, too.
16494         (skip_function_for_local_pure_const): Do not skip interposable bodies
16495         with aliases.
16496         (pass_local_pure_const::execute): Update.
16498 2016-05-04  Marek Polacek  <polacek@redhat.com>
16500         * doc/invoke.texi: Document -Wdangling-else.
16502 2016-05-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
16504         * config.gcc: Error out when conflicting multilib is detected.  Do not
16505         loop over multilibs since no combination is legal.
16507 2016-05-04  Alan Modra  <amodra@gmail.com>
16509         * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
16510         * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
16511         * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
16512         Align .toc.
16514 2016-05-04  Matthew Fortune  <matthew.fortune@imgtec.com>
16516         * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
16517         Clean up p5600 comments.
16519 2016-05-04  Richard Biener  <rguenther@suse.de>
16521         * match.pd: Add BIT_FIELD_REF canonicalizations and vector
16522         constructor simplifications.
16523         * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
16525 2016-05-04  Oleg Endo  <olegendo@gcc.gnu.org>
16527         * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
16528         * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
16529         result.set_rtx is null instead of aborting.
16530         * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
16531         Always enable.
16532         (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
16533         * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
16534         *mov<mode>_store_postinc): New patterns.
16536 2016-05-04  Marc Glisse  <marc.glisse@inria.fr>
16538         * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR.  Mark
16539         as commutative.  Check both conversions are NOP.
16540         ((A & B) OP (C & B)): Remove.
16542 2016-05-04  Alan Modra  <amodra@gmail.com>
16544         * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
16546 2016-05-04  Alan Modra  <amodra@gmail.com>
16548         PR target/70866
16549         * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
16550         when cr2,3,4 are all fixed regs.
16552 2016-05-04  Bernd Schmidt  <bschmidt@redhat.com>
16554         PR rtl-optimization/57193
16555         * opts.c (default_options_table): Revert OPT_frename_registers change.
16556         * doc/invoke.texi (-frename-registers, -O2): Likewise.
16558 2016-05-03  Martin Sebor  <msebor@redhat.com>
16560         PR c++/66561
16561         * builtins.c (fold_builtin_FILE): New function.
16562         (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
16563         (fold_builtin_0): Call them.
16564         * gimplify.c (gimplify_call_expr): Remove the handling of
16565         BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
16567         PR c++/66561
16568         * doc/extend.texi (Other Builtins): Update __builtin_FILE,
16569         __builtin_FUNCTION, and __builtin_LINE to reflect they yield
16570         constants.
16572         PR c++/66639
16573         * doc/extend.texi (Function Names as Strings): Update __func__,
16574         __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
16575         constants.
16577 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
16578             Richard Biener  <rguenther@suse.de>
16580         PR tree-optimization/70916
16581         * tree-if-conv.c: Include cfganal.h.
16582         (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
16583         and remove_fake_exit_edges around the optimization pass.
16585 2016-05-03  Jan Hubicka  <hubicka@ucw.cz>
16587         * cgraph.c (symbol_table::create_edge): Set inline_failed.
16588         (cgraph_edge::make_direct): Likewise.
16589         (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
16590         * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
16591         * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
16592         (CIF_THUNK): New code.
16593         * ipa-inline-analysis.c (initialize_inline_failed): Preserve
16594         CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
16595         (compute_inline_parameters): Set inline_failed for thunks.
16596         (inline_analyze_function): Cleanup.
16597         * ipa-inline.c (can_inline_edge_p): Do not deal with
16598         call_stmt_cannot_inline_p.
16599         (can_early_inline_edge_p): Likewise.
16600         (early_inliner): Initialize inline_failed.
16601         * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
16603 2016-05-03  Uros Bizjak  <ubizjak@gmail.com>
16605         * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
16606         from nonimm_ssenomem_operand.
16607         (nonimm_ssenomem_operand): New predicate.
16608         * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
16609         as operand 0 predicate.
16610         (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
16611         Disable unsupported alternatives using "enabled" attribute.
16612         Use register_ssemem_operand as operand 0 predicate.
16613         (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
16615 2016-05-03  Marek Polacek  <polacek@redhat.com>
16617         PR c/70859
16618         * input.c (expansion_point_location): New function.
16619         * input.h (expansion_point_location): Declare.
16621 2016-05-03  Pierre-Marie de Rodat  <derodat@adacore.com>
16623         * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
16624         occurence with frame_offset_ ones.
16626 2016-05-03  Alan Modra  <amodra@gmail.com>
16628         PR rtl-optimization/70890
16629         * ira.c (combine_and_move_insns): When moving def_insn, remove
16630         equivs on use_insn.
16632 2016-05-03  Dominik Vogt  <vogt@linux.vnet.ibm.com>
16634         * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
16635         ("*r<noxa>sbg_<mode>_srl"): New define_insns.
16636         ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
16637         ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
16639 2016-05-03  Alan Modra  <amodra@gmail.com>
16641         * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
16642         for SAVE_MULTIPLE/STORE_MULTIPLE.
16644 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
16646         * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
16647         *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
16649 2016-05-03  Richard Biener  <rguenther@suse.de>
16651         * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
16652         default true.
16653         (gimplify_arg): Likewise.
16654         * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
16655         re-writing the result to a decl if required.
16656         (internal_get_tmp_var): Add allow_ssa parameter
16657         and override into_ssa with it.
16658         (get_formal_tmp_var): Adjust.
16659         (get_initialized_tmp_var): Add allow_ssa parameter.
16660         (gimplify_arg): Add allow_ssa parameter and avoid generating
16661         SSA names for the result false.
16662         (gimplify_call_expr): If the call may return twice do not
16663         gimplify parameters into SSA.
16664         (prepare_gimple_addressable): Do not allow an SSA name as temporary.
16665         (gimplify_modify_expr): Adjust assert.  For noreturn calls
16666         with a SSA name LHS adjust its def.
16667         (gimplify_save_expr): Do not allow an SSA name as save-expr result.
16668         (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
16669         (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
16670         (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
16671         an SSA name.  Likewise for OMP_CLAUSE_REDUCTION operands.
16672         (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL.  Likewise
16673         for OMP_FOR_COND,  OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
16674         (optimize_target_teams): Do not allow SSA names for clause operands.
16675         (gimplify_expr): Likewise for where we mark the result addressable.
16676         * passes.def (pass_init_datastructures): Remove.
16677         * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
16678         (rewrite_stmt): Likewise.
16679         * tree-inline.c (initialize_cfun): Properly transfer SSA state.
16680         (replace_locals_op): Replace SSA names.
16681         (copy_gimple_seq_and_replace_locals): Init src_cfun.
16682         * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
16683         * cgraph.c (release_function_body): Free CFG annotations only
16684         when we have a CFG.  Simplify.
16685         * gimple-fold.c (gimplify_and_update_call_from_tree): Use
16686         force_gimple_operand instead of get_initialized_tmp_var.
16687         * tree-pass.h (make_pass_init_datastructures): Remove.
16688         * tree-ssa.c (execute_init_datastructures): Remove.
16689         (pass_data_init_datastructures): Likewise.
16690         (class pass_init_datastructures): Likewise.
16691         (make_pass_init_datastructures): Likewise.
16692         * omp-low.c (create_omp_child_function): Init SSA data structures.
16693         (grid_expand_target_grid_body): Likewise.
16694         * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
16695         name before adding it to names_to_release.
16696         (remove_bb): Always release SSA defs.
16697         * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
16698         before dereferencing it.
16699         * cgraphunit.c (init_lowered_empty_function): Always
16700         int SSA data structures.
16701         * tree-ssanames.c (release_defs): Remove assert that we are in
16702         SSA form.
16703         * trans-mem.c (diagnose_tm_1): Handle SSA name function.
16705 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
16706             Uros Bizjak  <ubizjak@gmail.com>
16708         PR rtl-optimization/70467
16709         * config/i386/predicates.md (x86_64_hilo_int_operand,
16710         x86_64_hilo_general_operand): New predicates.
16711         * config/i386/constraints.md (Wd): New constraint.
16712         * config/i386/i386.md (mode attr di): Use Wd instead of e.
16713         (general_hilo_operand): New mode attr.
16714         (add<mode>3, sub<mode>3): Use <general_hilo_operand>
16715         instead of <general_operand>.
16716         (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
16717         x86_64_hilo_general_operand instead of <general_operand>.
16719 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
16721         PR tree-optimization/70916
16722         * tree-if-conv.c (constant_or_ssa_name): Removed.
16723         (fold_build_cond_expr): Use is_gimple_val instead of
16724         constant_or_ssa_name.
16726         PR tree-optimization/70916
16727         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
16728         if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
16730         PR target/49244
16731         * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
16732         (optimize_atomic_bit_test_and): New function.
16733         (pass_fold_builtins::execute): Use it.
16734         * optabs.def (atomic_bit_test_and_set_optab,
16735         atomic_bit_test_and_complement_optab,
16736         atomic_bit_test_and_reset_optab): New optabs.
16737         * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
16738         ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
16739         * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
16740         * builtins.c (expand_ifn_atomic_bit_test_and): New function.
16741         * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
16742         expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
16743         expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
16744         * doc/md.texi (atomic_bit_test_and_set@var{mode},
16745         atomic_bit_test_and_complement@var{mode},
16746         atomic_bit_test_and_reset@var{mode}): Document.
16747         * config/i386/sync.md (atomic_bit_test_and_set<mode>,
16748         atomic_bit_test_and_complement<mode>,
16749         atomic_bit_test_and_reset<mode>): New expanders.
16750         (atomic_bit_test_and_set<mode>_1,
16751         atomic_bit_test_and_complement<mode>_1,
16752         atomic_bit_test_and_reset<mode>_1): New insns.
16754 2016-05-03  Richard Sandiford  <richard.sandiford@arm.com>
16756         PR rtl-optimization/70687
16757         * combine.c (change_zero_ext): Check for scalar modes.  Use wide_int
16758         instead of unsigned HOST_WIDE_INT.
16760 2016-05-03  Bernd Schmidt  <bschmidt@redhat.com>
16762         PR rtl-optimization/44281
16763         * hard-reg-set.h (struct target_hard_regs): New field
16764         x_fixed_nonglobal_reg_set.
16765         (fixed_nonglobal_reg_set): New macro.
16766         * reginfo.c (init_reg_sets_1): Initialize it.
16767         * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
16768         of fixed_reg_set.
16769         * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
16771 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
16773         PR tree-optimization/56541
16774         * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
16775         * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
16776         * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
16777         (any_complicated_phi): new static variable.
16778         (aggressive_if_conv): delete.
16779         (if_convertible_phi_p): support phis with more than two arguments.
16780         (if_convertible_bb_p): remvoe check on aggressive_if_conv and
16781         critical pred edges.
16782         (ifcvt_split_critical_edges): support phis with more than two
16783         arguments by checking new parameter.  only split critical edges
16784         if needed.
16785         (tree_if_conversion): handle simd pragma marked loop using new
16786         local variable aggressive_if_conv.  check any_complicated_phi.
16788 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
16790         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
16791         before using it.
16793 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
16795         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
16796         cbase.
16798 2016-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
16800         * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
16801         (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
16802         define_insn_and_split.
16803         (mulsi3_i): New define_insn_and_split.
16804         (mulsi3_call): Convert to define_insn.
16805         (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
16806         Remove constraints.
16808 2016-05-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
16810         * machmode.h (mode_complex): Add support to give the complex mode
16811         for a given mode.
16812         (GET_MODE_COMPLEX_MODE): Likewise.
16813         * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
16814         stored by build_complex_type and gfc_build_complex_type instead of
16815         trying to figure out the appropriate mode based on the size. Raise
16816         an assertion error, if the type was not set.
16817         * genmodes.c (struct mode_data): Add field for the complex type of
16818         the given type.
16819         (blank_mode): Likewise.
16820         (make_complex_modes): Remember the complex mode created in the
16821         base type.
16822         (emit_mode_complex): Write out the mode_complex array to map a
16823         type mode to the complex version.
16824         (emit_insn_modes_c): Likewise.
16825         * tree.c (build_complex_type): Set the complex type to use before
16826         calling layout_type.
16827         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
16828         support for __float128 complex datatypes.
16829         (rs6000_hard_regno_mode_ok): Likewise.
16830         (rs6000_setup_reg_addr_masks): Likewise.
16831         (rs6000_complex_function_value): Likewise.
16832         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
16833         __float128 and __ibm128 complex.
16834         (FLOAT128_IBM_P): Likewise.
16835         (ALTIVEC_ARG_MAX_RETURN): Likewise.
16836         * doc/extend.texi (Additional Floating Types): Document that
16837         -mfloat128 must be used to enable __float128.  Document complex
16838         __float128 and __ibm128 support.
16840 2016-05-02  Jakub Jelinek  <jakub@redhat.com>
16842         PR target/49244
16843         * gimple.c (gimple_builtin_call_types_compatible_p): Allow
16844         char/short arguments promoted to int because of promote_prototypes.
16846 2016-05-02  Uros Bizjak  <ubizjak@gmail.com>
16848         * config/i386/predicates.md (register_ssemem_operand): New predicate.
16849         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
16850         *cmpi<FPCMP:unord><MODEF:mode>_mixed and
16851         *cmpi<FPCMP:unord><X87MODEF:mode>_i387.  Disable unsupported
16852         alternatives using "enabled" attribute.  Use register_ssemem_operand
16853         as operand 1 predicate.
16854         (*cmpi<unord>xf_i387): Split XFmode pattern from
16855         *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
16856         (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
16857         *absneg<mode>2_i387.  Disable unsupported alternatives using
16858         "enabled" attribute.
16859         (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
16861 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
16863         * omp-low.c (lower_oacc_head_tail): Assert there is at least one
16864         marker.
16865         (oacc_loop_process): Check mask for loop termination.
16867 2016-05-02  Jan Hubicka  <hubicka@ucw.cz>
16869         * cif-code.def (CIF_THUNK): Add.
16870         * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
16871         accidental change.
16873 2016-05-02  Jan Hubicka  <hubicka@ucw.cz>
16875         * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
16876         (dump_inline_summary): Dump it.
16877         (fp_expression_p): New predicate.
16878         (estimate_function_body_sizes): Use it.
16879         (inline_merge_summary): Merge fp_expressions.
16880         (inline_read_section): Read fp_expressions.
16881         (inline_write_summary): Write fp_expressions.
16882         * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
16883         codegen boundary if either caller or callee is !fp_expressions.
16884         * ipa-inline.h (inline_summary): Add fp_expressions.
16885         * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
16886         to fp_expressions be sure the fp generation flags are updated.
16888 2016-05-02  Jakub Jelinek  <jakub@redhat.com>
16890         PR rtl-optimization/70467
16891         * cse.c (cse_insn): Handle no-op MEM moves after folding.
16893         PR rtl-optimization/70467
16894         * ipa-pure-const.c (check_call): Handle internal calls even in
16895         ipa mode like in local mode.
16897 2016-05-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
16899         * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
16901 2016-05-02  Marc Glisse  <marc.glisse@inria.fr>
16903         * match.pd (X u< X, X u> X): New transformations.
16905 2016-05-02  Marc Glisse  <marc.glisse@inria.fr>
16907         * flag-types.h (enum warn_strict_overflow_code): Move ...
16908         * coretypes.h: ... here.
16909         * fold-const.h (fold_overflow_warning): Declare.
16910         * fold-const.c (fold_overflow_warning): Make non-static.
16911         (fold_comparison): Move the transformation of X +- C1 CMP C2
16912         into X CMP C2 -+ C1 ...
16913         * match.pd: ... here.
16914         * gimple-fold.c (fold_stmt_1): Protect with
16915         fold_defer_overflow_warnings.
16917 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
16919         * omp-low.c (struct oacc_loop): Add 'inner' field.
16920         (new_oacc_loop_raw): Initialize it to zero.
16921         (oacc_loop_fixed_partitions): Initialize it.
16922         (oacc_loop_auto_partitions): Partition outermost loop to outermost
16923         available partitioning.
16925 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
16927         * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
16928         register_operand.
16929         (umulsidi3): Likewise.
16930         (indirect_jump): Fix jump instruction assembly patterns.
16932 2016-05-02  Thomas Schwinge  <thomas@codesourcery.com>
16934         PR target/70860
16935         * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
16936         (nvptx_function_value): Assert non-NULL cfun.
16938 2016-05-02  Eric Botcazou  <ebotcazou@adacore.com>
16940         PR rtl-optimization/70886
16941         * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
16943         * cselib.h (rtx_equal_for_cselib_1): Declare.
16944         (rtx_equal_for_cselib_p: New inline function.
16945         * cselib.c (rtx_equal_for_cselib_p): Delete.
16946         (rtx_equal_for_cselib_1): Make public.
16948 2016-05-02  Uros Bizjak  <ubizjak@gmail.com>
16950         * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
16951         (register_mixssei387nonimm_operand): Remove predicate.
16952         * config/i386/i386.md (*fop_<mode>_comm): Merge from
16953         *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387.  Disable unsupported
16954         alternatives using "enabled" attribute.  Also check X87_ENABLE_ARITH
16955         for TARGET_MIX_SSE_I387 alternatives.
16956         (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
16957         Disable unsupported alternatives using "enabled" attribute.  Use
16958         nonimm_ssenomem_operand as operand 1 predicate.  Also check
16959         X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
16961 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
16963         * tree.c (cst_and_fits_in_hwi): Simplify.
16965 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
16967         * tree.h (wi::to_wide): New function.
16968         * expr.c (expand_expr_real_1): Use wi::to_wide.
16969         * fold-const.c (int_const_binop_1): Likewise.
16970         (extract_muldiv_1): Likewise.
16972 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
16974         * wide-int.h: Update offset_int and widest_int documentation.
16975         (WI_SIGNED_SHIFT_RESULT): New macro.
16976         (wi::binary_shift): Define signed_shift_result_type for
16977         shifts on offset_int- and widest_int-like types.
16978         (generic_wide_int): Support <<= and >>= if << and >> are supported.
16979         * tree.h (int_bit_position): Use shift operators instead of wi::
16980          shifts.
16981         * alias.c (adjust_offset_for_component_ref): Likewise.
16982         * expr.c (get_inner_reference): Likewise.
16983         * fold-const.c (fold_comparison): Likewise.
16984         * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
16985         * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
16986         * tree-dfa.c (get_ref_base_and_extent): Likewise.
16987         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
16988         (stmt_kills_ref_p): Likewise.
16989         * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
16990         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
16991         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
16992         (ao_ref_init_from_vn_reference): Likewise.
16994 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
16996         * wide-int.h: Update offset_int and widest_int documentation.
16997         (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
16998         (wi::binary_traits): Allow ordered comparisons between offset_int and
16999         offset_int, between widest_int and widest_int, and between either
17000         of these types and basic C types.
17001         (operator <, <=, >, >=): Define for the same combinations.
17002         * tree.h (tree_int_cst_lt): Use comparison operators instead
17003         of wi:: comparisons.
17004         (tree_int_cst_le): Likewise.
17005         * gimple-fold.c (fold_array_ctor_reference): Likewise.
17006         (fold_nonarray_ctor_reference): Likewise.
17007         * gimple-ssa-strength-reduction.c (record_increment): Likewise.
17008         * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
17009         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
17010         * tree-sra.c (completely_scalarize): Likewise.
17011         * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
17012         * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
17013         * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
17014         (check_for_binary_op_overflow): Likewise.
17015         (search_for_addr_array): Likewise.
17016         * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
17018 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
17020         * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
17021         (arc_save_restore): Likewise.
17022         (arc_dwarf_register_span): Likewise.
17023         (arc_output_pic_addr_const): Initialize suffix variable.
17025 2016-05-02  Martin Liska  <mliska@suse.cz>
17027         * symbol-summary.h (function_summary::function_summary):
17028         Remove checking assert for all cgraph nodes.
17029         (function_summary::get): Check summary_uid.
17030         (symtab_insertion): Check summary_uid.
17032 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
17034         * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
17035         * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
17036         bmaskn instruction.
17037         (arc_dwarf_register_span): Remove enum keyword.
17038         (compact_memory_operand_p): New function.
17039         * config/arc/arc.h (reg_class): Add code density register classes.
17040         (REG_CLASS_NAMES): Likewise.
17041         (REG_CLASS_CONTENTS): Likewise.
17042         * config/arc/arc.md (*movqi_insn): Add code density instructions.
17043         (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
17044         (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
17045         (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
17046         * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
17047         constraints.
17048         (h, Rcd, Rsd, Rzd): New register constraints.
17049         (T): Use compact_memory_operand_p function.
17050         * config/arc/predicates.md (compact_load_memory_operand): Remove.
17052 2016-05-02  Oleg Endo  <olegendo@gcc.gnu.org>
17054         * config/sh/sh.md (*negnegt, *movtt): Remove.
17056 2016-05-02  Marek Polacek  <polacek@redhat.com>
17057             Tom de Vries  <tom@codesourcery.com>
17059         PR tree-optimization/70700
17060         * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
17061         bigger than FIRST_REF_NODE.
17063 2016-05-02  Oleg Endo  <olegendo@gcc.gnu.org>
17065         PR target/52898
17066         * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
17067         TARGET_CMPEQDI_T.
17068         (prepare_cbranch_operands): Don't use scratch register.  Assume that
17069         function is used when pseudos can be created.
17070         (expand_cbranchdi4): Likewise.  Remove unused TARGET_CMPEQDI_T paths.
17071         * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
17072         (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
17073         define_expand.  Allow it only when pseudos can be created.
17074         * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
17076 2016-05-01  Uros Bizjak  <ubizjak@gmail.com>
17078         * config/i386/constraints.md (BC): Only allow -1 operands.
17079         * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
17080         Add "enabled" attribute.  Update XI mode attribute calculation.
17081         * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
17082         (*movoi_internal_avx): Update XI mode attribute calculation.
17083         (*movti_internal): Ditto.
17085 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
17087         * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
17088         cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
17090 2016-05-01  Eric Botcazou  <ebotcazou@adacore.com>
17092         * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
17093         statement on instruction code.  Remove trailing spaces.
17094         (altivec_expand_stv_builtin): Likewise.
17096 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
17098         * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
17099         (TARGET_FPU_DOUBLE): Simplify.
17100         (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
17101         'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
17102         * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
17103         with 'TARGET_FPU_DOUBLE'.
17104         * config/sh/sh.md: Likewise.
17106 2016-05-01  Yoshinori Sato  <ysato@users.sourceforge.jp>
17108         * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
17109         SH_DIV_STR_FOR_SIZE): Remove.
17110         * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
17111         SH_DIV_STR_FOR_SIZE): Remove.
17113 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
17115         * config/sh/predicates.md (any_register_operand, zero_extend_operand,
17116         logical_reg_operand): Delete.
17117         (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
17118         arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
17119         logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
17120         match_operand and match_test.
17121         (sh_const_vec, sh_1el_vec): Remove redundant checks.  Declare local
17122         variables on their first use.  Return bool values.
17123         * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
17124         * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
17125         arith_reg_operand for input operand.  Remove empty constraints.
17126         (xorsi3): Delete.
17127         (*xorsi3_compact): Rename to xorsi3.
17128         (zero_extend<mode>si2): Use arith_reg_operand for input operand.
17129         (*zero_extend<mode>si2_disp_mem): Update comment.
17130         (mov_nop): Delete.
17132 2016-04-30  Oleg Endo  <olegendo@gcc.gnu.org>
17134         * config/sh/t-sh: Remove SH5 support.
17135         * config.gcc: Likewise.
17136         * configure: Likewise.
17138 2016-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17140         * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
17142 2016-04-30  Oleg Endo  <olegendo@gcc.gnu.org>
17144         * config/sh/sh.c (register_sh_passes, sh_option_override,
17145         sh_print_operand, prepare_move_operands,
17146         sh_can_follow_jump): Remove TARGET_SH1 checks.
17147         * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
17148         PROMOTE_MODE): Likewise.
17149         * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
17150         movdi): Likewise.
17152 2016-04-30  Alan Modra  <amodra@gmail.com>
17154         * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
17155         restoring when fixed_reg_p, but allow out-of-line or stmw save.
17156         Check for user regs later to avoid unnecessary looping over regs.
17157         Merge user reg check with non-saved reg check.  Don't force
17158         inline VR restore when static chain used.
17159         (rs6000_frame_related): Omit eh_frame info for user regs when
17160         saving.
17161         (fixed_regs_p): Delete.
17163 2016-04-30  Alan Modra  <amodra@gmail.com>
17165         * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
17166         (SAVE_STRATEGY, REST_STRATEGY): ..this.  Renumber and sort enum.
17167         Update all uses.
17169 2016-04-30  Alan Modra  <amodra@gmail.com>
17171         PR target/69645
17172         * config/rs6000/rs6000.c (fixed_reg_p): New function.
17173         (fixed_regs_p): Rename from global_regs_p.  Call fixed_reg_p.
17174         Update all uses.
17176 2016-04-30  Alan Modra  <amodra@gmail.com>
17178         * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
17179         Remove redundant PIC_OFFSET_TABLE_REGNUM test.  Replace with
17180         flag_pic test for Darwin.
17182 2016-04-30  Alan Modra  <amodra@gmail.com>
17184         * regs.h (struct reg_info_t): Delete freq_calls_crossed and
17185         throw_calls_crossed.
17186         (REG_FREQ_CALLS_CROSSED): Delete.
17187         (REG_N_THROWING_CALLS_CROSSED): Delete.
17188         * regstat.c (regstat_bb_compute_ri): Don't calculate
17189         REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
17190         (dump_reg_info): Don't print call cross frequency.
17191         * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
17192         and REG_N_THROWING_CALLS_CROSSED.
17194 2016-04-30  Alan Modra  <amodra@gmail.com>
17196         * regs.h (struct reg_info_t): Delete live_length.
17197         (REG_LIVE_LENGTH): Delete macro.
17198         * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
17199         local_live, local_processed and local_live_last_luid params.
17200         Replace bb_index param with bb.  Don't set REG_LIVE_LENGTH.
17201         Formatting fixes.
17202         (regstat_compute_ri): Adjust for above.  Don't set
17203         REG_LIVE_LENGTH.
17204         (dump_reg_info): Don't print live length.
17205         * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
17206         with test of setjmp_crosses.  Don't set REG_LIVE_LENGTH.
17207         Localize loop_depth var.
17209 2016-04-30  Alan Modra  <amodra@gmail.com>
17211         * ira.c (enum valid_equiv): New.
17212         (validate_equiv_mem): Return enum.
17213         (update_equiv_mem): Create replacement in more cases.
17214         (add_store_equivs): Update validate_equiv_mem call.
17216 2016-04-30  Alan Modra  <amodra@gmail.com>
17218         * ira.c (combine_and_move_insns): Rather than scanning insns,
17219         use DF infrastucture to find use and def insns.
17221 2016-04-30  Alan Modra  <amodra@gmail.com>
17223         ira.c (combine_and_move_insns): Move invariant conditions..
17224         (ira.c): ..to here.  Call combine_and_move_insns before
17225         add_store_equivs.  Call grow_reg_equivs later.  Allocate
17226         req_equiv later using max_reg_num() rather than global max_regno.
17227         (contains_replace_regs): Delete.
17228         (add_store_equivs): Remove contains_replace_regs test.
17230 2016-04-30  Alan Modra  <amodra@gmail.com>
17232         * ira.c (struct equiv_mem_data): New.
17233         (equiv_mem, equiv_mem_modified): Delete static vars.
17234         (validate_equiv_mem_from_store): Use "data" param to communicate..
17235         (validate_equiv_mem): ..from here.
17237 2016-04-30  Alan Modra  <amodra@gmail.com>
17239         * ira.c (add_store_equivs, combine_and_move_insns): New functions,
17240         split out from..
17241         (update_reg_equivs): ..here.  Move allocation and freeing of
17242         reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
17243         end_alias_analysis to..
17244         (ira): ..here.
17246 2016-04-30  Alan Modra  <amodra@gmail.com>
17248         * ira.c (pdx_subregs): Delete.
17249         (struct equivalence): Add pdx_subregs field.
17250         (set_paradoxical_subreg): Remove pdx_subregs param.  Update
17251         pdx_subregs access.
17252         (update_equiv_regs): Don't create or free pdx_subregs.  Update
17253         pdx_subregs access.
17255 2016-04-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17257         * config/rs6000/altivec.h: Change definitions of vec_xl and
17258         vec_xst.
17259         * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
17260         (LD_ELEMREV_V2DI): New.
17261         (LD_ELEMREV_V4SF): New.
17262         (LD_ELEMREV_V4SI): New.
17263         (LD_ELEMREV_V8HI): New.
17264         (LD_ELEMREV_V16QI): New.
17265         (ST_ELEMREV_V2DF): New.
17266         (ST_ELEMREV_V2DI): New.
17267         (ST_ELEMREV_V4SF): New.
17268         (ST_ELEMREV_V4SI): New.
17269         (ST_ELEMREV_V8HI): New.
17270         (ST_ELEMREV_V16QI): New.
17271         (XL): New.
17272         (XST): New.
17273         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
17274         descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
17275         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
17276         TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
17277         (altivec_expand_builtin): Add handling for
17278         VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
17279         (rs6000_invalid_builtin): Add error-checking for
17280         RS6000_BTM_P9_VECTOR.
17281         (altivec_init_builtins): Define builtins used to implement vec_xl
17282         and vec_xst.
17283         (rs6000_builtin_mask_names): Define power9-vector.
17284         * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
17285         (RS6000_BTM_P9_VECTOR): Define.
17286         (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
17287         * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
17288         (vsx_ld_elemrev_v2df): Likewise.
17289         (vsx_ld_elemrev_v4sf): Likewise.
17290         (vsx_ld_elemrev_v4si): Likewise.
17291         (vsx_ld_elemrev_v8hi): Likewise.
17292         (vsx_ld_elemrev_v16qi): Likewise.
17293         (vsx_st_elemrev_v2df): Likewise.
17294         (vsx_st_elemrev_v2di): Likewise.
17295         (vsx_st_elemrev_v4sf): Likewise.
17296         (vsx_st_elemrev_v4si): Likewise.
17297         (vsx_st_elemrev_v8hi): Likewise.
17298         (vsx_st_elemrev_v16qi): Likewise.
17299         * doc/extend.texi: Add prototypes for vec_xl and vec_xst.  Correct
17300         grammar.
17302 2016-04-29  Patrick Palka  <ppalka@gcc.gnu.org>
17304         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
17305         out into ...
17306         (simplify_control_stmt_condition_1): ... here.  Recurse into
17307         BIT_AND_EXPRs and BIT_IOR_EXPRs.
17309 2016-04-29  David Edelsohn  <dje.gcc@gmail.com>
17311         PR target/69810
17312         * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
17313         (zero_extendqi<mode>2_dot): Revert earlier conversion from
17314         define_insn_and_split to define_insn.
17315         (zero_extendqi<mode>2_dot2): Same.
17316         (extendqi<mode>2_dot): Same.
17317         (extendqi<mode>2_dot2): Same.
17319 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
17321         * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
17322         (probe_stack): New expander.
17323         (probe_stack_<mode>): New insn pattern.
17325 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
17327         * config/i386/i386.md
17328         (operations with memory inputs setting flags peephole2):
17329         Remove uneeded REG_P checks.  Cleanup pattern generation.
17331 2016-04-29  Ilya Enkovich  <ilya.enkovich@intel.com>
17333         * tree-vect-loop.c (vect_transform_loop): Fix
17334         nb_iterations_upper_bound computation for vectorized loop.
17336 2016-04-29  Marek Polacek  <polacek@redhat.com>
17337             Jakub Jelinek  <jakub@redhat.com>
17339         PR sanitizer/70342
17340         * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
17341         TARGET_EXPR_SLOT as a base.
17343 2016-04-29  Andrew Burgess  <andrew.burgess@embecosm.com>
17345         * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
17346         with 'rCm2' constraints to limit possible immediate size.
17347         (*load_zeroextendqisi_update): Likewise.
17348         (*load_signextendqisi_update): Likewise.
17349         (*loadhi_update): Likewise.
17350         (*load_zeroextendhisi_update): Likewise.
17351         (*load_signextendhisi_update): Likewise.
17352         (*loadsi_update): Likewise.
17353         (*loadsf_update): Likewise.
17355 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
17357         * config/i386/predicates.md (constm1_operand): Fix comparison.
17359 2016-04-29  Claudiu Zissulescu  <claziss@synopsys.com>
17361         * testsuite/gcc.target/arc/ieee_eq.c: New test.
17363 2016-04-29  Oleg Endo  <olegendo@gcc.gnu.org>
17365         * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
17366         remaining SH5 related settings.
17367         * config/sh/sh-protos.h (shmedia_cleanup_truncate,
17368         shmedia_prepare_call_address): Delete.
17369         * config/sh/sh.c (sh_print_operand, output_stack_adjust,
17370         DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
17371         * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
17372         UNSUPPORTED_SH2A): Remove m5 checks.
17373         (sh_divide_strategy_e): Remove SH5 division strategies.
17374         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
17375         * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
17377 2016-04-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
17379         * config/s390/s390.c (s390_rtx_costs): Update documentation.
17381 2016-04-29  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17383         * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
17384         * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
17385         Change lder to ldr.
17386         * config/s390/vector.md ("mov<mode>"): Likewise.
17388 2016-04-29  Ulrich Weigand  <uweigand@de.ibm.com>
17390         * config/s390/constraints.md ("U", "W"): Invoke
17391         s390_mem_constraint with "ZR" and "ZT".
17392         * config/s390/s390.c (s390_check_qrst_address): Reject invalid
17393         addresses when using LRA.  Accept also short displacements for S
17394         and T constraints.  Do not check for long displacement target for
17395         S and T constraints.
17396         (s390_mem_constraint): Remove handling of U and W constraints.
17397         * config/s390/s390.md (various patterns): Remove the short
17398         displacement constraints (Q and R) if a long displacement
17399         constraint is present.  Add longdisp as required CPU capability.
17400         * config/s390/vector.md: Likewise.
17401         * config/s390/vx-builtins.md: Likewise.
17403 2016-04-29  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
17405         PR target/60040
17406         * reload1.c (reload): Call finish_spills before
17407         restarting reload loop. Skip select_reload_regs
17408         if update_eliminables_and_spill returns true.
17410 2016-04-29  Claudiu Zissulescu  <claziss@synopsys.com>
17412         * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
17413         * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
17414         (umulhisi3_imm): Update predicates and constraint letters.
17415         (umulhisi3_reg): Declare instruction as commutative.
17416         * config/arc/constraints.md (J12, J16): New constraints.
17417         * config/arc/predicates.md (short_unsigned_const_operand): New
17418         predicate.
17419         (arc_short_operand): Likewise.
17420         * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
17422 2016-04-29  Richard Biener  <rguenther@suse.de>
17424         PR tree-optimization/13962
17425         PR tree-optimization/65686
17426         * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
17427         * tree-ssa-alias.c (ptrs_compare_unequal): New function
17428         using PTA to compare pointers.
17429         * match.pd: Add pattern for pointer equality compare simplification
17430         using ptrs_compare_unequal.
17432 2016-04-29  Richard Biener  <rguenther@suse.de>
17434         * stor-layout.c (layout_type): Do not build a pointer-to-element
17435         type for arrays.
17437 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
17439         * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
17440         Use SWI mode iterator.  Use general_reg_operand predicate.
17441         (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
17442         peephole to MMX and SSE part.  Use mmx_reg_operand and sse_reg_operand
17443         predicates.
17445 2016-04-29  Jakub Jelinek  <jakub@redhat.com>
17447         PR middle-end/70843
17448         * fold-const.c (operand_equal_p): Don't verify hash value equality
17449         if arg0 == arg1.
17450         * tree.c (inchash::add_expr): Handle STATEMENT_LIST.  Ignore BLOCK
17451         and OMP_CLAUSE.
17453 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
17455         PR target/70858
17456         * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
17457         to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
17458         (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
17459         __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
17460         __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
17462 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
17464         * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
17465         to info.  Don't initialize separate fields to 0.  Clean up
17466         formatting a bit.
17468 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
17470         * config/i386/i386.md (peephole2s for operations with memory inputs):
17471         Use SWI mode iterator.
17472         (peephole2s for operations with memory outputs): Ditto.
17473         Do not check for stack checking probe.
17475         (probe_stack): Remove expander.
17477 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
17478             Andrew Burgess  <andrew.burgess@embecosm.com>
17480         * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
17481         operands as 32-bits.
17483 2016-04-28  Jason Merrill  <jason@redhat.com>
17485         * gdbinit.in: Skip line-map.h.
17487 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
17488             Andrew Burgess  <andrew.burgess@embecosm.com>
17490         * config/arc/arc.c (arc_conditional_register_usage): Take
17491         TARGET_RRQ_CLASS into account.
17492         (arc_print_operand): Support printing 'p' and 's' operands.
17493         * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
17494         as 0.
17495         (TARGET_RRQ_CLASS): Define.
17496         (IS_POWEROF2_OR_0_P): Define.
17497         * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
17498         alternatives.
17499         (*tst_movb): New define_insn.
17500         (*tst): Avoid recognition if it could prevent '*tst_movb'
17501         combination; replace c/CnL with c/Chs alternative.
17502         (*tst_bitfield_tst): New define_insn.
17503         (*tst_bitfield_asr): New define_insn.
17504         (*tst_bitfield): New define_insn.
17505         (andsi3_i): Add Rrq variant.
17506         (extzv): New define_expand.
17507         (insv): New define_expand.
17508         (*insv_i): New define_insn.
17509         (*movb): New define_insn.
17510         (*movb_signed): New define_insn.
17511         (*movb_high): New define_insn.
17512         (*movb_high_signed): New define_insn.
17513         (*movb_high_signed + 1): New define_split pattern.
17514         (*mrgb): New define_insn.
17515         (*mrgb + 1): New define_peephole2 pattern.
17516         (*mrgb + 2): New define_peephole2 pattern.
17517         * config/arc/arc.opt (mbitops): New option for nps400, uses
17518         TARGET_NPS_BITOPS_DEFAULT.
17519         * config/arc/constraints.md (q): Make register class conditional.
17520         (Rrq): New register constraint.
17521         (Chs): New constraint.
17522         (Clo): New constraint.
17523         (Chi): New constraint.
17524         (Cbf): New constraint.
17525         (Cbn): New constraint.
17526         (C18): New constraint.
17527         (Cbi): New constraint.
17529 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
17531         * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
17532         dst->popcount.
17533         (bitmap_intersection_of_preds): Ditto.
17534         (bitmap_union_of_succs): Ditto.
17535         (bitmap_union_of_preds): Ditto.
17536         * sbitmap.c (do_popcount): Delete.
17537         (BITMAP_DEBUGGING): Delete.
17538         (sbitmap_verify_popcount): Delete.
17539         (sbitmap_alloc): Don't initialize the popcount field.
17540         (sbitmap_alloc_with_popcount): Delete.
17541         (sbitmap_resize): Don't resize the popcount array.
17542         (sbitmap_vector_alloc): Don't initialize the popcount field.
17543         (bitmap_copy): Don't copy the popcount array.
17544         (bitmap_clear): Don't clear the popcount array.
17545         (bitmap_clear): Delete the popcount array handling.
17546         (bitmap_ior_and_compl): Delete the popcount assert.
17547         (bitmap_not): Ditto.
17548         (bitmap_and_compl): Ditto.
17549         (bitmap_and): Delete the popcount array handling.
17550         (bitmap_xor): Ditto.
17551         (bitmap_ior): Ditto.
17552         (bitmap_or_and): Delete the popcount assert.
17553         (bitmap_and_or): Ditto.
17554         (popcount_table): Delete.
17555         (sbitmap_elt_popcount): Delete.
17556         * sbitmap.h (simple_bitmap_def): Delete the popcount field.
17557         (bitmap_set_bit): Delete the popcount assert.
17558         (bitmap_clear_bit): Ditto.
17559         (sbitmap_free): Don't free the popcount array.
17560         (sbitmap_alloc_with_popcount): Delete declaration.
17561         (sbitmap_popcount): Ditto.
17563 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
17564             Andrew Burgess  <andrew.burgess@embecosm.com>
17566         * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
17567         (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
17568         * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
17569         (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
17570         * config/arc/arc.opt (mcmem): New option.
17571         * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
17572         supply length for r/m alternative.
17573         (*extendqisi2_ac): Likewise.
17574         (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
17575         r/Uex alternative.
17576         (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
17577         (movhi_insn): Likewise.
17578         (movsi_insn): Add r/Ucm,Ucm/w alternatives.
17579         (*zero_extendqihi2_i): Add r/Ucm alternative.
17580         (*zero_extendqisi2_ac): Likewise.
17581         (*zero_extendhisi2_i): Likewise.
17582         * config/arc/constraints.md (Uex): New memory constraint.
17583         (Ucm): New define_constraint.
17584         * config/arc/predicates.md (long_immediate_loadstore_operand):
17585         Return 0 for MEM with cmem_address address.
17586         (cmem_address_0): New predicates.
17587         (cmem_address_1): Likewise.
17588         (cmem_address_2): Likewise.
17589         (cmem_address): Likewise.
17591 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
17593         * config/rs6000/rs6000.c (machine_function): Rename
17594         insn_chain_scanned_p to spe_insn_chain_scanned_p.
17595         (rs6000_stack_info): Adjust.
17597 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
17598             Andrew Burgess  <andrew.burgess@embecosm.com>
17600         * config/arc/constraints.md (Usd): Convert to define_constraint.
17601         (Us<): Likewise.
17602         (Us>): Likewise.
17604 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
17606         PR target/70821
17607         * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
17608         Add new peephole2 where the first insn is *mov<mode>_or instead of
17609         *mov<mode>_internal.
17611 2016-04-28  Segher Boesssenkool  <segher@kernel.crashing.org>
17613         * tracer.c (bb_seen): Make static.
17615 2016-04-28  Andrew Burgess  <andrew.burgess@embecosm.com>
17617         * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
17618         support, setup defaults.
17619         * config/arc/arc-opts.h (enum processor_type): Add NPS400.
17620         * config/arc/arc.c (arc_init): Add NPS400 support.
17621         * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
17622         (TARGET_ARC700): NPS400 is also an ARC700.
17623         * config/arc/arc.opt: Add NPS400 options to -mcpu=.
17625 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
17627         PR target/70668
17628         * config/nds32/nds32.md (casesi): Don't access the operands array
17629         out of bounds.
17631 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
17633         * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
17634         (or $-1,reg peephole2): Ditto.
17635         (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
17637 2016-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
17639         * doc/extend.texi (Common Function Attributes) [optimize]:
17640         Discourage use of the optimize attribute.
17642 2016-04-28  Bill Seurer  <seurer@linux.vnet.ibm.com>
17644         * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
17645         special case builtin.
17646         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
17647         ALTIVEC_BUILTIN_VEC_ADDE.
17648         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
17649         support for ALTIVEC_BUILTIN_VEC_ADDE.
17650         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
17651         for __builtin_vec_adde.
17653 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
17655         * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
17656         * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
17658 2016-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17660         PR testsuite/70595
17661         * doc/sourcebuild.texi (Effective-Target Keywords, Other
17662         attributes): Document cilkplus_runtime.
17664 2016-04-28  Martin Jambor  <mjambor@suse.cz>
17666         * tree-cfg.c (verify_expr): Verify that local declarations belong to
17667         this function.  Call verify_expr on MEM_REFs and bases of other
17668         handled_components.
17670 2016-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17672         * internal-fn.c (expand_arith_overflow): Convert preprocessor check
17673         for WORD_REGISTER_OPERATIONS to runtime check.
17675 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
17677         * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
17679 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
17681         * config/arc/arc.c (arc_process_double_reg_moves): Fix for
17682         big-endian compilation.
17683         * config/arc/arc.md (addf3): Likewise.
17684         (subdf3): Likewise.
17685         (muldf3): Likewise.
17687 2016-04-28  Richard Biener  <rguenther@suse.de>
17689         PR tree-optimization/70840
17690         * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
17691         Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
17692         Mark x * pow(x,c) -> pow(x,c+1) commutative.
17693         Add powi(x,y) * powi(z,y) -> powi(x*z,y).
17695 2015-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17697         * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
17698         and explain why in a comment.
17700 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
17702         * config/arc/arc.md (cpu_facility): Add fpx variant.
17703         (subdf3): Prohibit use reverse sub when assist operations option
17704         is enabled.
17705         * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
17706         instructions only when FPX is enabled.
17707         * testsuite/gcc.target/arc/trsub.c: New test.
17709 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
17711         * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
17712         mult_operator when calculating "type" attribute.
17713         (*fop_<mode>_1_i387): Ditto.
17714         (*fop_xf_1_i387): Ditto.
17715         (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
17716         Use std::swap to swap operands.  Use RTL expressions to generate
17717         converted pattern.
17719 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
17720             Joern Rennecke  <joern.rennecke@embecosm.com>
17722         * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
17723         declaration.
17724         (emit_pic_move): Remove.
17725         (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
17726         * config/arc/arc.c (emit_pic_move): Removed.
17727         (TARGET_HAVE_TLS): Define.
17728         (arc_conditional_register_usage): Test for arc_tp_regno.
17729         (arc_print_operand, arc_print_operand_address): Handle TLS
17730         unspecs.
17731         (arc_needs_pcl_p): New function.
17732         (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
17733         (arc_legitimate_pic_addr_p): Handle TLS unspecs.
17734         (arc_raw_symbolic_reference_mentioned_p): Likewise.
17735         (arc_get_tp, arc_emit_call_tls_get_addr): New function.
17736         (arc_legitimize_tls_address): Likewise.
17737         (DTPOFF_ZERO_SYM): Define.
17738         (arc_legitimize_pic_address): Make it static, handle TLS cases.
17739         (arc_output_pic_addr_const): Print TLS unspecs.
17740         (prepare_pic_move): New function, replaces emit_pic_move.
17741         (arc_legitimate_constant_p): Handle TLS unspecs.
17742         (arc_legitimate_address_p): Likewise.
17743         (arc_rewrite_small_data_p): Use assert for TLS constants.
17744         (prepare_move_operands): Use prepare_pic_move.
17745         (arc_legitimize_address): Legitimize tls addresses.
17746         (arc_epilogue_uses): Check for arc_tp_regno.
17747         (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
17748         * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
17749         Define.
17750         [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
17751         Likewise.
17752         [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
17753         %(arc_tls_extra_start_spec).
17754         (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
17755         (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
17756         (EH_USES): Define.
17757         (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
17758         * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
17759         (UNSPEC_TLS_OFF): Add.
17760         (R10_REG): Define.
17761         (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
17762         (get_thread_pointersi): New patterns.
17763         * config/arc/arc.opt (mtp-regno): New option.
17764         * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
17765         (move_dest_operand): Likewise.
17766         * configure: Regenerate.
17767         * configure.ac: Add arc*-*-* case to test for tls.
17768         * doc/invoke.texi (ARC options): Document mtp-regno.
17770 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
17772         * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
17773         the new ARC HS SIMD instructions.
17774         (arc_preferred_simd_mode): New function.
17775         (arc_autovectorize_vector_sizes): Likewise.
17776         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
17777         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
17778         (arc_init_reg_tables): Accept new ARC HS SIMD modes.
17779         (arc_init_builtins): Add new SIMD builtin types.
17780         (arc_split_move): Handle 64 bit vector moves.
17781         * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
17782         (TARGET_PLUS_QMACW): Define.
17783         * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
17784         (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
17785         (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
17786         (VSUBADD4H): New builtins.
17787         * config/arc/simdext.md: Add new ARC HS SIMD instructions.
17788         * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
17790 2016-04-28  Eduard Sanou  <dhole@openmailbox.org>
17791             Matthias Klose  <doko@debian.org>
17793         * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
17795 2016-04-28  Richard Biener  <rguenther@suse.de>
17797         PR middle-end/70777
17798         * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
17799         canonicalization.
17801 2016-04-28  Oleg Endo  <olegendo@gcc.gnu.org>
17803         * common/config/sh/sh-common.c: Remove SH5 support.
17804         * config/sh/constraints.md: Likewise.
17805         * config/sh/config/sh/elf.h: Likewise.
17806         * config/sh/linux.h: Likewise.
17807         * config/sh/netbsd-elf.h: Likewise.
17808         * config/sh/predicates.md: Likewise.
17809         * config/sh/sh-c.c: Likewise.
17810         * config/sh/sh-protos.h: Likewise.
17811         * config/sh/sh.c: Likewise.
17812         * config/sh/sh.h: Likewise.
17813         * config/sh/sh.md: Likewise.
17814         * config/sh/sh.opt: Likewise.
17815         * config/sh/sync.md: Likewise.
17816         * config/sh/sh64.h: Delete.
17817         * config/sh/shmedia.h: Likewise.
17818         * config/sh/shmedia.md: Likewise.
17819         * config/sh/sshmedia.h: Likewise.
17820         * config/sh/t-netbsd-sh5-64: Likewise.
17821         * config/sh/t-sh64: Likewise.
17822         * config/sh/ushmedia.h: Likewise.
17824 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
17826         * config/i386/i386.md (sign_extend to memory peephole2s): Use
17827         general_reg_operand instead of register_operand predicate.
17829 2016-04-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
17831         * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
17833 2016-04-27  Marc Glisse  <marc.glisse@inria.fr>
17835         * match.pd (A - B > A, A + B < A): New transformations.
17837 2016-04-27  Patrick Palka  <ppalka@gcc.gnu.org>
17839         * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
17840         which defaults to true.  Emit an outer pair of parentheses only if
17841         EMIT_PARENS.  When continuing a chain of && or || (or & or |),
17842         don't emit parentheses for the right-hand operand.
17844 2016-04-27  Jeff Law  <law@redhat.com>
17846         * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
17848 2016-04-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17850         * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
17851         (altivec_lvx_<mode>_internal): Document.
17852         (altivec_lvx_<mode>_2op): New define_insn.
17853         (altivec_lvx_<mode>_1op): Likewise.
17854         (altivec_lvx_<mode>_2op_si): Likewise.
17855         (altivec_lvx_<mode>_1op_si): Likewise.
17856         (altivec_stvx_<mode>): Remove.
17857         (altivec_stvx_<mode>_internal): Document.
17858         (altivec_stvx_<mode>_2op): New define_insn.
17859         (altivec_stvx_<mode>_1op): Likewise.
17860         (altivec_stvx_<mode>_2op_si): Likewise.
17861         (altivec_stvx_<mode>_1op_si): Likewise.
17862         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
17863         Expand vec_ld and vec_st during parsing.
17864         * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
17865         changes.
17866         (altivec_expand_stvx_be): Likewise.
17867         (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
17868         address-masking behavior in RTL.
17869         (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
17870         address-masking behavior in RTL.
17871         (altivec_expand_builtin): Change builtin code arguments for calls
17872         to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
17873         (insn_is_swappable_p): Avoid incorrect swap optimization in the
17874         presence of lvx/stvx patterns.
17875         (alignment_with_canonical_addr): New function.
17876         (alignment_mask): Likewise.
17877         (find_alignment_op): Likewise.
17878         (recombine_lvx_pattern): Likewise.
17879         (recombine_stvx_pattern): Likewise.
17880         (recombine_lvx_stvx_patterns): Likewise.
17881         (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
17882         stvx patterns from expand.
17883         * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
17884         expansions.
17885         (vector_altivec_store_<mode>): Likewise.
17887 2016-04-26  Evandro Menezes  <e.menezes@samsung.com>
17889         * config/aarch64/aarch64.md
17890         (*movhf_aarch64): Add "movi %0, #0" to zero up register and
17891         remove the "fp" attributes.
17892         (*movsf_aarch64): Add "movi %0, #0" to zero up register and
17893         add the "simd" attributes.
17894         (*movdf_aarch64): Likewise.
17895         (*movtf_aarch64): Remove the "fp" attributes.
17896         * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
17897         * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
17899 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
17901         * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
17902         rtx to rtx_code_label *.
17903         * rtl.h (maybe_set_first_label_num): Likewise.
17905 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
17907         * df-core.c (df_add_problem): Make the problem param be const.
17908         (df_remove_problem): Make local "problem" be const.
17909         * df-problems.c (problem_RD): Make const.
17910         (problem_LR): Likewise.
17911         (problem_LIVE): Likewise.
17912         (problem_MIR): Likewise.
17913         (problem_CHAIN): Likewise.
17914         (problem_WORD_LR): Likewise.
17915         (problem_NOTE): Likewise.
17916         (problem_MD): Likewise.
17917         * df-scan.c (problem_SCAN): Likewise.
17918         * df.h (struct df_problem): Make field "dependent_problem" be
17919         const.
17920         (struct dataflow): Likewise for field "problem".
17921         (df_add_problem): Make param const.
17923 2016-04-27  Uros Bizjak  <ubizjak@gmail.com>
17925         * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
17926         inter-unit moves to/from vector registers are enabled.  Do not disable
17927         for TARGET_MMX.
17929 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
17931         * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
17932         DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
17933         #define to...
17934         (enum df_problem_id): ...this new enum.
17935         (struct df_problem): Convert field "id" from "int" to
17936         enum df_problem_id.
17938 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
17940         * rtl.def: Update comment for "things in the instruction chain" to
17941         reflect the removal of the leading "i" field for INSN_UID in
17942         r210360.  Fix bogus apostrophe.
17944 2016-04-27  Uros Bizjak  <ubizjak@gmail.com>
17946         * config/i386/i386.md
17947         (lea arith with mem operand + setcc peephole2): Set operator mode.
17949 2016-04-27  H.J. Lu  <hongjiu.lu@intel.com>
17951         PR target/70155
17952         * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
17953         (dimode_scalar_to_vector_candidate_p): This.
17954         (timode_scalar_to_vector_candidate_p): New function.
17955         (scalar_to_vector_candidate_p): Likewise.
17956         (timode_check_non_convertible_regs): Likewise.
17957         (timode_remove_non_convertible_regs): Likewise.
17958         (remove_non_convertible_regs): Likewise.
17959         (remove_non_convertible_regs): Renamed to ...
17960         (dimode_remove_non_convertible_regs): This.
17961         (scalar_chain::~scalar_chain): Make it virtual.
17962         (scalar_chain::compute_convert_gain): Make it pure virtual.
17963         (scalar_chain::mark_dual_mode_def): Likewise.
17964         (scalar_chain::convert_insn): Likewise.
17965         (scalar_chain::convert_registers): Likewise.
17966         (scalar_chain::add_to_queue): Make it protected.
17967         (scalar_chain::emit_conversion_insns): Likewise.
17968         (scalar_chain::replace_with_subreg): Likewise.
17969         (scalar_chain::replace_with_subreg_in_insn): Likewise.
17970         (scalar_chain::convert_op): Likewise.
17971         (scalar_chain::convert_reg): Likewise.
17972         (scalar_chain::make_vector_copies): Likewise.
17973         (scalar_chain::convert_registers): New pure virtual function.
17974         (class dimode_scalar_chain): New class.
17975         (class timode_scalar_chain): Likewise.
17976         (scalar_chain::mark_dual_mode_def): Renamed to ...
17977         (dimode_scalar_chain::mark_dual_mode_def): This.
17978         (timode_scalar_chain::mark_dual_mode_def): New function.
17979         (timode_scalar_chain::convert_insn): Likewise.
17980         (dimode_scalar_chain::convert_registers): Likewise.
17981         (scalar_chain::compute_convert_gain): Renamed to ...
17982         (dimode_scalar_chain::compute_convert_gain): This.
17983         (scalar_chain::replace_with_subreg): Renamed to ...
17984         (dimode_scalar_chain::replace_with_subreg): This.
17985         (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
17986         (dimode_scalar_chain::replace_with_subreg_in_insn): This.
17987         (scalar_chain::make_vector_copies): Renamed to ...
17988         (dimode_scalar_chain::make_vector_copies): This.
17989         (scalar_chain::convert_reg): Renamed to ...
17990         (dimode_scalar_chain::convert_reg ): This.
17991         (scalar_chain::convert_op): Renamed to ...
17992         (dimode_scalar_chain::convert_op): This.
17993         (scalar_chain::convert_insn): Renamed to ...
17994         (dimode_scalar_chain::convert_insn): This.
17995         (scalar_chain::convert): Call convert_registers.
17996         (convert_scalars_to_vector): Change to scalar_chain pointer to
17997         use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
17998         in 32-bit mode.  Delete scalar_chain pointer.  Call
17999         free_dominance_info in 64-bit mode.
18000         (pass_stv::gate): Remove TARGET_64BIT check.
18001         (ix86_option_override): Put the 64-bit STV pass before the CSE
18002         pass.
18004 2016-04-27  Pierre-Marie de Rodat  <derodat@adacore.com>
18006         * dwarf2out.h (struct dw_loc_descr_node): Remove the
18007         dw_loc_frame_offset field.
18008         * dwarf2out.c (new_loc_descr): Likewise.
18009         (resolve_args_picking_1): Turn the VISITED hash set into a
18010         FRAME_OFFSET hash map. Use it to associate a frame offset to
18011         visited nodes. Remove uses of the CHECKING_P macro.
18012         (resolve_args_picking): Update call to resolve_args_picking_1.
18014 2016-04-27  Martin Liska  <mliska@suse.cz>
18016         * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
18017         (free_loop_data): Release vuses of groups.
18019 2016-04-27  Bin Cheng  <bin.cheng@arm.com>
18021         * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
18022         instead of redundant use_id and boolean have_use_for.
18023         (struct iv_use): Change sub_id into group_id.  Remove field next.
18024         Move fields: related_cands, n_map_members, cost_map and selected
18025         to ...
18026         (struct iv_group): ... here.  New structure.
18027         (struct iv_common_cand): Use structure declaration directly.
18028         (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
18029         (MAX_CONSIDERED_USES): Rename macro to ...
18030         (MAX_CONSIDERED_GROUPS): ... here.
18031         (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
18032         (dump_iv, dump_use, dump_cand): Refactor format of dump information.
18033         (dump_uses): Rename to ...
18034         (dump_groups): ... here.  Update all uses.
18035         (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
18036         (find_induction_variables): Refactor format of dump information.
18037         (record_sub_use): Delete.
18038         (record_use): Update all uses.
18039         (record_group): New function.
18040         (record_group_use, find_interesting_uses_op): Call above functions.
18041         Update all uses.
18042         (find_interesting_uses_cond): Ditto.
18043         (group_compare_offset): New function.
18044         (split_all_small_groups): Rename to ...
18045         (split_small_address_groups_p): ... here.  Update all uses.
18046         (split_address_groups):  Update all uses.
18047         (find_interesting_uses): Refactor format of dump information.
18048         (add_candidate_1): Update all uses.  Remove redundant check on iv,
18049         base and step.
18050         (add_candidate, record_common_cand): Remove redundant assert.
18051         (add_iv_candidate_for_biv): Update use.
18052         (add_iv_candidate_derived_from_uses): Update all uses.
18053         (add_iv_candidate_for_groups, record_important_candidates): Ditto.
18054         (alloc_use_cost_map): Ditto.
18055         (set_use_iv_cost, get_use_iv_cost): Rename to ...
18056         (set_group_iv_cost, get_group_iv_cost): ... here.  Update all uses.
18057         (determine_use_iv_cost_generic): Ditto.
18058         (determine_group_iv_cost_generic): Ditto.
18059         (determine_use_iv_cost_address): Ditto.
18060         (determine_group_iv_cost_address): Ditto.
18061         (determine_use_iv_cost_condition): Ditto.
18062         (determine_group_iv_cost_cond): Ditto.
18063         (determine_use_iv_cost): Ditto.
18064         (determine_group_iv_cost): Ditto.
18065         (set_autoinc_for_original_candidates): Update all uses.
18066         (find_iv_candidates): Update all uses.  Refactor dump information.
18067         (determine_use_iv_costs): Ditto.
18068         (determine_iv_costs): Ditto.
18069         (iv_ca_cand_for_use): Rename to ...
18070         (iv_ca_cand_for_group): ... here.  Update all uses.
18071         (iv_ca_add_use, iv_ca_add_group): Ditto.
18072         (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
18073         (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
18074         (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
18075         (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
18076         (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
18077         (create_new_iv, adjust_iv_update_pos): Ditto.
18078         (rewrite_use_address): Delete.
18079         (rewrite_use_address_1): Rename to ...
18080         (rewrite_use_address): ... here.
18081         (rewrite_use_compare): Update all uses.
18082         (rewrite_use): Delete.
18083         (rewrite_uses): Rename to ...
18084         (rewrite_groups): ... here.  Update all uses.
18085         (remove_unused_ivs, free_loop_data): Update all uses.
18086         (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
18088 2016-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18090         * rtlanal.c (nonzero_bits1): Convert preprocessor check
18091         for WORD_REGISTER_OPERATIONS to runtime check.
18093 2016-04-27  Richard Biener  <rguenther@suse.de>
18095         PR ipa/70760
18096         * tree-ssa-structalias.c (find_func_aliases_for_call): Use
18097         aggregate_value_p to determine if a function result is
18098         returned by reference.
18099         (ipa_pta_execute): Functions having their address taken are
18100         not automatically nonlocal.
18102 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
18104         PR sanitizer/70683
18105         * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
18106         * fold-const.c (operand_equal_p): If flag_checking and
18107         OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
18108         and if it returns non-zero, assert iterative_hash_expr on both
18109         args is the same.
18111 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
18113         * doc/invoke.texi (-frename-registers): Also enabled at -Os.
18115 2016-04-27  Nick Clifton  <nickc@redhat.com>
18117         PR middle-end/49889
18118         * varasm.c (merge_weak): Generate an error if an attempt is made
18119         to convert a non-weak static function into a weak, public function.
18121 2016-04-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
18123         * params.def (MAX_PARTITION_SIZE): New param.
18124         * doc/invoke.texi: Document lto-max-partition.
18126 2016-04-27  Richard Biener  <rguenther@suse.de>
18128         PR ipa/70785
18129         * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
18130         function cummulating used_from_other_partition, externally_visible
18131         and force_output from aliases.
18132         (refered_from_nonlocal_var): Likewise.
18133         (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
18134         node flags properly.
18136 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
18138         * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
18139         (-Wmemset-elt-size): New item.
18141 2016-04-27  Eric Botcazou  <ebotcazou@adacore.com>
18143         PR ada/70759
18144         * stor-layout.h (internal_reference_types): Delete.
18145         * stor-layout.c (reference_types_internal): Likewise.
18146         (internal_reference_types): Likewise.
18147         (layout_type) <REFERENCE_TYPE>: Adjust.
18149 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
18151         PR sanitizer/70683
18152         * tree.h (inchash::add_expr): Add FLAGS argument.
18153         * tree.c (inchash::add_expr): Likewise.  If not OEP_ADDRESS_OF,
18154         use STRIP_NOPS first.  For INTEGER_CST assert not OEP_ADDRESS_OF.
18155         For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
18156         Formatting fix.  Adjust recursive calls.  For tcc_comparison,
18157         if swap_tree_comparison (code) is smaller than code, hash that
18158         and arguments in the other order.  Hash CONVERT_EXPR the same
18159         as NOP_EXPR.  For OEP_ADDRESS_OF hash MEM_REF with 0 offset
18160         of ADDR_EXPR of decl as the decl itself.  Add or remove
18161         OEP_ADDRESS_OF from recursive flags as needed.  For
18162         FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
18163         operands commutatively and only the third one normally.
18164         For internal CALL_EXPR hash in CALL_EXPR_IFN.
18166 2016-04-27  Sebastian Huber  <sebastian.huber@embedded-brains.de>
18168         * config/rtems.h (LIB_SPEC): Add -latomic.
18170 2016-04-27  Joel Sherrill  <joel@rtems.org>
18172         * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
18173         xilink.ld and flags not relevant to RTEMS.
18175 2016-04-26  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
18177         * toplev.c (backend_init_target): Avoid calling init_reload when using
18178         LRA.
18180 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
18182         * reorg.c (try_merge_delay_insns): Declare i and j inside the
18183         for loops rather than one for the whole function.
18185 2016-04-26  Marc Glisse  <marc.glisse@inria.fr>
18187         * match.pd (X + CST CMP X): New transformation.
18189 2016-04-26  Marc Glisse  <marc.glisse@inria.fr>
18191         * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
18192         * fold-const.c (fold_binary_loc): Remove 2 transformations
18193         superseded by match.pd.
18194         * match.pd (x+x -> x*2): Generalize to integers.
18196 2016-04-26  Bernd Schmidt  <bschmidt@redhat.com>
18198         * config/i386/i386.md (operation on memory peephole): Duplicate an
18199         existing peephole and adapt it to match lea rather than an operation
18200         that clobbers CC.
18202         PR rtl-optimization/57193
18203         * opts.c (default_options_table): Add OPT_frename_registers at -O2
18204         and above.
18205         * doc/invoke.texi (-frename-registers, -O2): Update documentation.
18207 2016-04-26  Bin Cheng  <bin.cheng@arm.com>
18209         * tree-if-conv.c (any_pred_load_store): New static variable.
18210         (if_convertible_gimple_assign_stmt_p): Remove parameter.  Use
18211         any_pred_load_store instead of and_mask_load_store.
18212         (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
18213         (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
18214         (combine_blocks, tree_if_conversion): Ditto.
18216 2016-04-26  Bin Cheng  <bin.cheng@arm.com>
18218         PR tree-optimization/70771
18219         PR tree-optimization/70775
18220         * tree-if-conv.c (if_convertible_phi_p): Remove check on special
18221         virtual PHI nodes.  Delete parameter.
18222         (if_convertible_loop_p_1): Delete argument to above function.
18223         (predicate_all_scalar_phis): Delete code handling single-argument
18224         PHIs.
18225         (tree_if_conversion): Mark and update virtual SSA.
18227 2016-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18229         PR target/61821
18230         * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
18231         (x86_elf_aligned_common): Rename to ...
18232         (x86_elf_aligned_decl_common): ... this.
18233         Add decl arg.  Switch to .lbss for largecomm object.  Use
18234         LARGECOMM_SECTION_ASM_OP.
18235         * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
18236         renaming.
18237         * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
18238         (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
18239         Pass new decl arg.
18240         * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
18241         [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
18243 2016-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18245         PR target/59407
18246         * config/i386/i386.c (SECTION_LARGE): Define.
18247         (x86_64_elf_select_section): Set it for large data/bss sections.
18248         Only clear SECTION_WRITE for .lrodata.
18249         (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
18250         data/bss sections.
18251         * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
18252         * varasm.c (default_elf_asm_named_section): Grow flagchars.
18253         [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
18254         SECTION_MACH_DEP.
18255         * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
18256         * doc/tm.texi: Regenerate.
18258 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
18260         PR bootstrap/70704
18261         * configure.ac (--enable-checking): Document extra flag, for
18262         non-release builds default to --enable-checking=yes,extra.
18263         If misc checking and extra checking, define CHECKING_P to 2 instead
18264         of 1.
18265         * common.opt (fchecking=): Add.
18266         * doc/invoke.texi (-fchecking=): Document.
18267         * doc/install.texi: Document --enable-checking changes.
18268         * configure: Regenerated.
18269         * config.in: Regenerated.
18271 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
18273         * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
18274         attribute instead of which_alternative.
18275         * config/i386/sse.md (*mov<mode>_internal): Ditto.
18276         Use EXT_REX_SSE_REG_P where appropriate.
18278 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
18280         * config/i386/predicates.md (const0_operand): Do not match
18281         const_wide_int code.
18282         (const1_operand): Ditto.
18284 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
18286         * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
18287         for SSE constm1 operands and TARGET_AVX512VL.
18288         (*movti_internal): Ditto.
18289         (*mov<mode>_or): Use constm1_operand predicate.
18290         * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
18291         for SSE vector_all_ones operands and TARGET_AVX512VL.
18292         * config/i386/predicates.md (constm1_operand): New predicate.
18293         * config/i386/i386.c (standard_sse_constant_opcode): Simplify
18294         emission of constant -1 load.
18296 2016-04-25  Jason Merrill  <jason@redhat.com>
18298         * gdbinit.in: Skip is-a.h.
18300         * attribs.c (register_scoped_attributes): Fix logic.
18301         * attribs.h: Declare register_scoped_attributes.
18303 2016-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18305         * config/rs6000/rs6000-builtin.def: Correct pasto error for
18306         stxvd2x and stxvw4x built-in functions.
18308 2016-04-25  DJ Delorie  <dj@redhat.com>
18310         * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
18311         (ashrhi3): Likewise.
18312         (lshrhi3): Likewise.
18314 2016-04-25  Richard Biener  <rguenther@suse.de>
18316         PR tree-optimization/70780
18317         * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
18318         wasn't visited yet.
18319         (compute_antic): Mark blocks with abnormal preds as visited as
18320         they have a final empty antic-in solution already.
18322 2016-04-25  Michael Collison  <michael.collison@linaro.org>
18324         * ChangeLog(2016-04-25): Fix ChangeLog formatting.
18326 2016-04-25  Michael Collison  <michael.collison@linaro.org>
18328         * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
18329         mode is VQI to improve mixed mode vectorization.
18330         * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
18331         define_insn to match low half of signed vaddw.
18332         * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
18333         define_insn to match high half of signed vaddw.
18334         * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
18335         define_insn to match low half of unsigned vaddw.
18336         * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
18337         define_insn to match high half of unsigned vaddw.
18338         * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
18339         (arm_simd_check_vect_par_cnst_half_p): Likewise.
18340         * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
18341         for new function.
18342         (arm_simd_check_vect_par_cnst_half_p): Likewise.
18343         * config/arm/predicates.md (vect_par_constant_high): Support
18344         big endian and simplify by calling
18345         arm_simd_check_vect_par_cnst_half
18346         (vect_par_constant_low): Likewise.
18348 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
18350         * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
18351         predicate for operand 2.
18353 2016-04-24  Uros Bizjak  <ubizjak@gmail.com>
18354             H.J. Lu  <hongjiu.lu@intel.com>
18356         * config/i386/i386-protos.h (standard_sse_constant_p): Add
18357         machine_mode argument.
18358         * config/i386/i386.c (standard_sse_constant_p): Return 2 for
18359         constm1_rtx operands.  For VOIDmode constants, get mode from
18360         pred_mode.  Check mode size if the mode is supported by ABI.
18361         (standard_sse_constant_opcode): Do not use standard_constant_p.
18362         Strictly check ABI support for all-ones operands.
18363         (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
18364         immediates. Update calls to standard_sse_constant_p.
18365         (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
18366         (ix86_rtx_costs): Ditto.
18367         * config/i386/i386.md (*movxi_internal_avx512f): Use
18368         nonimmediate_or_sse_const_operand instead of vector_move_operand.
18369         Use (v,BC) alternative instead of (v,C). Use register_operand
18370         checks instead of MEM_P.
18371         (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
18372         of vector_move_operand.  Add (v,BC) alternative and corresponding avx2
18373         isa attribute.  Use register_operand checks instead of MEM_P.
18374         (*movti_internal): Use nonimmediate_or_sse_const_operand for
18375         TARGET_SSE.  Improve TARGET_SSE insn constraint.  Add (v,BC)
18376         alternative and corresponding sse2 isa attribute.
18377         (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
18378         to standard_sse_constant_p.
18379         (FP constant splitters): Ditto.
18380         * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
18381         (C): Ditto.
18382         * config/i386/predicates.md (constm1_operand): Remove.
18383         (nonimmediate_or_sse_const_operand): Rewrite using RTX.
18384         * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
18385         vector_all_ones_operand instead of constm1_operand.
18387 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18389         * print-rtl.c (print_rtx_insn_vec): New function.
18390         * print-rtl.h: New prototype.
18391         * store-motion.c (struct st_expr): Make avail_stores a vector.
18392         (st_expr_entry): Adjust.
18393         (free_st_expr_entry): Likewise.
18394         (print_store_motion_mems): Likewise.
18395         (find_moveable_store): Likewise.
18396         (compute_store_table): Likewise.
18397         (delete_store): Likewise.
18398         (build_store_vectors): Likewise.
18400 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18402         * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
18404 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18406         * vec.h (vec_safe_contains): New function.
18407         (vec::contains): Likewise.
18408         (vec::begin): Likewise.
18409         (vec::end): Likewise.
18411 2016-04-23  Jakub Jelinek  <jakub@redhat.com>
18413         PR sanitizer/70712
18414         * cfgexpand.c (expand_stack_vars): Fix typo.
18416 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18418         * system.h (list, map, set, vector): Include conditionally.
18419         * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
18420         * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
18421         * ipa-icf.c (INCLUDE_LIST): Define.
18422         * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
18423         * config/sh/sh.c (INCLUDE_VECTOR): Define.
18424         * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
18425         (INCLUDE_LIST, INCLUDE_VECTOR): Define.
18426         * cp/logic.cc (INCLUDE_LIST): Define.
18427         * fortran/trans-common.c (INCLUDE_MAP): Define.
18429 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18431         * auto-profile.c: Remove <string.h> include.
18432         * ipa-icf-gimple.c: Remove <list> include.
18433         * diagnostic.c: Remove <new> include.
18434         * genmatch.c: Likewise.
18435         * pretty-print.c: Likewise.
18436         * toplev.c: Likewise
18437         * c/c-objc-common.c: Likewise.
18438         * cp/error.c: Likewise.
18439         * fortran/error.c: Likewise.
18441 2016-04-22  Richard Biener  <rguenther@suse.de>
18443         * lto-streamer-in.c (input_ssa_names): Do not allocate
18444         GIMPLE_NOP for all SSA names.
18445         * lto-streamer-out.c (output_ssa_names): Do not output
18446         SSA names that should have been released.
18448 2016-04-22  Richard Biener  <rguenther@suse.de>
18450         PR tree-optimization/70740
18451         * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
18452         VDEF.
18454 2016-04-21  H.J. Lu  <hongjiu.lu@intel.com>
18456         PR target/70750
18457         * config/i386/predicates.md (call_insn_operand): Replace
18458         sibcall_memory_operand with memory_operand.
18460 2016-04-21  Patrick Palka  <ppalka@gcc.gnu.org>
18462         * tree-vrp.c (register_edge_assert_for_2): Remove redundant
18463         has_single_use() tests.
18464         (register_edge_assert_for_1): Likewise.
18465         (find_assert_locations_1): Check the liveness bitmap instead of
18466         checking has_single_use().
18468 2016-04-21  Kirill Yukhin  <kirill.yukhin@intel.com>
18470         PR target/70728
18471         * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
18472         Extract AVX-512BW constraint from AVX.
18474 2016-04-21  Richard Biener  <rguenther@suse.de>
18476         PR tree-optimization/70725
18477         * tree-if-conv.c (if_convertible_phi_p): Adjust guard
18478         for phi_convertible_by_degenerating_args.
18479         (predicate_all_scalar_phis): Handle single-argument PHIs.
18481 2016-04-21  Richard Biener  <rguenther@suse.de>
18483         PR middle-end/70747
18484         * fold-const.c (fold_comparison): Return properly typed
18485         constant boolean.
18487 2016-04-21  Bin Cheng  <bin.cheng@arm.com>
18489         PR tree-optimization/70715
18490         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
18491         after expanding BASE using expand_simple_operations.
18493 2016-04-21  Marc Glisse  <marc.glisse@inria.fr>
18495         * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
18496         New transformations.
18498 2016-04-21  Marc Glisse  <marc.glisse@inria.fr>
18500         * match.pd (min(int_max, x), max(int_min, x)): New transformations.
18502 2016-04-20  Jan Hubicka  <jh@suse.cz>
18504         * ipa-inline.c (can_inline_edge_p): Pass caller info to
18505         ultiimate_alias_target.
18506         (update_callee_keys): Likewise.
18507         (lookup_recursive_calls): Likewise.
18508         (speculation_useful_p): Likewise.
18510 2016-04-20  Jan Hubicka  <jh@suse.cz>
18512         PR ipa/70018
18513         * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
18514         (set_nothrow_flag_1): ... this; handle interposition correctly;
18515         recurse on aliases and thunks.
18516         (cgraph_node::set_nothrow_flag): New.
18517         * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
18518         functions compiled with non-call exceptions that binds to current
18519         def.
18520         (propagate_nothrow): Be safe WRT interposition.
18521         * cgraph.h (set_nothrow_flag): Update prototype.
18523 2016-04-18  Jan Hubicka  <jh@suse.cz>
18525         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
18526         max_loop_iterations_int.
18527         (tree_unswitch_outer_loop): Likewise.
18529 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
18531         PR tree-optimization/69489
18532         * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
18533         (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
18534         Revise dump message.
18535         (if_convertible_bb_p): Remove check on edge count of basic block's
18536         predecessors.
18538 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
18540         PR tree-optimization/56625
18541         PR tree-optimization/69489
18542         * tree-data-ref.h (DR_INNERMOST): New macro.
18543         * tree-if-conv.c (innermost_loop_behavior_hash): New class for
18544         hashing struct innermost_loop_behavior.
18545         (ref_DR_map): Remove.
18546         (innermost_DR_map): New map.
18547         (baseref_DR_map): Revise comment.
18548         (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
18549         to innermost_DR_map accroding to its innermost loop behavior.
18550         (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
18551         to its innermost loop behavior.
18552         (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
18553         Add initialization for innermost_DR_map.  Record memory reference
18554         in DR_BASE_ADDRESS if the reference is compound one or it doesn't
18555         have innermost loop behavior.
18556         (if_convertible_loop_p): Remove release for ref_DR_map.  Release
18557         innermost_DR_map.
18559 2016-04-20  Uros Bizjak  <ubizjak@gmail.com>
18561         * config/i386/i386.md (*lea<mode>_general_1): Rename from
18562         *lea_general_1.  Use explicit SWI12 mode interator.
18563         (*lea<mode>_general_2): Rename from *lea_general_2.
18564         Use explicit SWI12 mode interator.
18565         (*lea<mode>_general_3): Rename from *lea_general_3.
18566         Use explicit SWI12 mode interator.
18567         (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
18568         Use explicit SWI12 mode interator.
18569         (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
18570         Use explicit SWI48 mode interator.
18572 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
18574         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
18575         Short-cut unaligned load and store cases.  Handle all integer
18576         vector modes.
18577         (ix86_expand_vector_move_misalign): Short-cut unaligned load
18578         and store cases.  Call ix86_avx256_split_vector_move_misalign
18579         directly without checking mode class.
18581 2016-04-20  Andrew Pinski  <apinski@cavium.com>
18582             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18584         PR target/64971
18585         * config/aarch64/aarch64.md (sibcall): Force call
18586         address to be DImode for ILP32.
18587         (sibcall_value): Likewise.
18589 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
18591         * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
18593 2016-04-20  Richard Biener  <rguenther@suse.de>
18595         * gimple-match.h (maybe_build_generic_op): Adjust prototype.
18596         * gimple-match-head.c (maybe_build_generic_op): Pass all ops
18597         by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
18598         (maybe_push_res_to_seq): Adjust.
18599         * gimple-fold.c (maybe_build_generic_op): Likewise.
18601 2016-04-20  Marek Polacek  <polacek@redhat.com>
18603         * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
18604         rather than true.
18606 2016-04-20  Ilya Enkovich  <ilya.enkovich@intel.com>
18608         * config/i386/sse.md (vec_unpacks_lo_hi): Always
18609         use kmovw to support AVX512F target.
18611 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
18613         * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
18615 2016-04-20  Marek Polacek  <polacek@redhat.com>
18617         PR tree-optimization/70725
18618         * tree-if-conv.c (is_false_predicate): New function.
18619         (predicate_mem_writes): Use it.
18621 2016-04-20  Richard Biener  <rguenther@suse.de>
18623         PR tree-optimization/70726
18624         * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
18625         shift amounts from a pattern stmt operand.
18627 2016-04-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
18629         PR target/70674
18630         * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
18631         stack_restore_from_fpr pattern when restoring r15.
18632         (s390_optimize_prologue): Strip away the memory barrier in the
18633         parallel when trying to get rid of restore insns.
18634         * config/s390/s390.md ("stack_restore_from_fpr"): New insn
18635         definition for loading the stack pointer from an FPR.  Compared to
18636         the normal move insn this pattern includes a full memory barrier.
18638 2016-04-19  Jakub Jelinek  <jakub@redhat.com>
18640         PR middle-end/70680
18641         * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
18642         implicitly linear or lastprivate iterator on the outer context.
18644 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
18646         * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
18647         alignment check.
18648         * config/i386/i386.md (ssememalign): Removed.
18649         * config/i386/sse.md: Remove ssememalign attribute from patterns.
18651 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
18653         PR target/69201
18654         * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
18655         const short * to __builtin_ia32_loaddquhi512_mask.
18656         (_mm512_maskz_loadu_epi16): Likewise.
18657         (_mm512_mask_storeu_epi16): Pass short * to
18658         __builtin_ia32_storedquhi512_mask.
18659         (_mm512_mask_loadu_epi8): Pass const char * to
18660         __builtin_ia32_loaddquqi512_mask.
18661         (_mm512_maskz_loadu_epi8): Likewise.
18662         (_mm512_mask_storeu_epi8): Pass char * to
18663         __builtin_ia32_storedquqi512_mask.
18664         * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
18665         const double * to __builtin_ia32_loadupd512_mask.
18666         (_mm512_mask_loadu_pd): Likewise.
18667         (_mm512_maskz_loadu_pd): Likewise.
18668         (_mm512_storeu_pd): Pass double * to
18669         __builtin_ia32_storeupd512_mask.
18670         (_mm512_mask_storeu_pd): Likewise.
18671         (_mm512_loadu_ps): Pass const float * to
18672         __builtin_ia32_loadups512_mask.
18673         (_mm512_mask_loadu_ps): Likewise.
18674         (_mm512_maskz_loadu_ps): Likewise.
18675         (_mm512_storeu_ps): Pass float * to
18676         __builtin_ia32_storeups512_mask.
18677         (_mm512_mask_storeu_ps): Likewise.
18678         (_mm512_mask_loadu_epi64): Pass const long long * to
18679         __builtin_ia32_loaddqudi512_mask.
18680         (_mm512_maskz_loadu_epi64): Likewise.
18681         (_mm512_mask_storeu_epi64): Pass long long *
18682         to __builtin_ia32_storedqudi512_mask.
18683         (_mm512_loadu_si512): Pass const int * to
18684         __builtin_ia32_loaddqusi512_mask.
18685         (_mm512_mask_loadu_epi32): Likewise.
18686         (_mm512_maskz_loadu_epi32): Likewise.
18687         (_mm512_storeu_si512): Pass int * to
18688         __builtin_ia32_storedqusi512_mask.
18689         (_mm512_mask_storeu_epi32): Likewise.
18690         * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
18691         char * to __builtin_ia32_storedquqi256_mask.
18692         (_mm_mask_storeu_epi8): Likewise.
18693         (_mm256_mask_loadu_epi16): Pass const short * to
18694         __builtin_ia32_loaddquhi256_mask.
18695         (_mm256_maskz_loadu_epi16): Likewise.
18696         (_mm_mask_loadu_epi16): Pass const short * to
18697         __builtin_ia32_loaddquhi128_mask.
18698         (_mm_maskz_loadu_epi16): Likewise.
18699         (_mm256_mask_loadu_epi8): Pass const char * to
18700         __builtin_ia32_loaddquqi256_mask.
18701         (_mm256_maskz_loadu_epi8): Likewise.
18702         (_mm_mask_loadu_epi8): Pass const char * to
18703         __builtin_ia32_loaddquqi128_mask.
18704         (_mm_maskz_loadu_epi8): Likewise.
18705         (_mm256_mask_storeu_epi16): Pass short * to.
18706         __builtin_ia32_storedquhi256_mask.
18707         (_mm_mask_storeu_epi16): Pass short * to.
18708         __builtin_ia32_storedquhi128_mask.
18709         * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
18710         const double * to __builtin_ia32_loadupd256_mask.
18711         (_mm256_maskz_loadu_pd): Likewise.
18712         (_mm_mask_loadu_pd): Pass onst double * to
18713         __builtin_ia32_loadupd128_mask.
18714         (_mm_maskz_loadu_pd): Likewise.
18715         (_mm256_mask_storeu_pd): Pass double * to
18716         __builtin_ia32_storeupd256_mask.
18717         (_mm_mask_storeu_pd): Pass double * to
18718         __builtin_ia32_storeupd128_mask.
18719         (_mm256_mask_loadu_ps): Pass const float * to
18720         __builtin_ia32_loadups256_mask.
18721         (_mm256_maskz_loadu_ps): Likewise.
18722         (_mm_mask_loadu_ps): Pass const float * to
18723         __builtin_ia32_loadups128_mask.
18724         (_mm_maskz_loadu_ps): Likewise.
18725         (_mm256_mask_storeu_ps): Pass float * to
18726         __builtin_ia32_storeups256_mask.
18727         (_mm_mask_storeu_ps): ass float * to
18728         __builtin_ia32_storeups128_mask.
18729         (_mm256_mask_loadu_epi64): Pass const long long * to
18730         __builtin_ia32_loaddqudi256_mask.
18731         (_mm256_maskz_loadu_epi64): Likewise.
18732         (_mm_mask_loadu_epi64): Pass const long long * to
18733         __builtin_ia32_loaddqudi128_mask.
18734         (_mm_maskz_loadu_epi64): Likewise.
18735         (_mm256_mask_storeu_epi64): Pass long long * to
18736         __builtin_ia32_storedqudi256_mask.
18737         (_mm_mask_storeu_epi64): Pass long long * to
18738         __builtin_ia32_storedqudi128_mask.
18739         (_mm256_mask_loadu_epi32): Pass const int * to
18740         __builtin_ia32_loaddqusi256_mask.
18741         (_mm256_maskz_loadu_epi32): Likewise.
18742         (_mm_mask_loadu_epi32): Pass const int * to
18743         __builtin_ia32_loaddqusi128_mask.
18744         (_mm_maskz_loadu_epi32): Likewise.
18745         (_mm256_mask_storeu_epi32): Pass int * to
18746         __builtin_ia32_storedqusi256_mask.
18747         (_mm_mask_storeu_epi32): Pass int * to
18748         __builtin_ia32_storedqusi128_mask.
18749         * config/i386/i386-builtin-types.def (PCSHORT): New.
18750         (PINT64): Likewise.
18751         (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
18752         (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
18753         (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
18754         (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
18755         (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
18756         (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
18757         (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
18758         (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
18759         (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
18760         (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
18761         (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
18762         (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
18763         (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
18764         (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
18765         (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
18766         (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
18767         (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
18768         (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
18769         (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
18770         (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
18771         (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
18772         (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
18773         (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
18774         (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
18775         (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
18776         (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
18777         (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
18778         (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
18779         (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
18780         (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
18781         (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
18782         (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
18783         (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
18784         (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
18785         (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
18786         (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
18787         (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
18788         (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
18789         (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
18790         (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
18791         (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
18792         (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
18793         (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
18794         (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
18795         (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
18796         (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
18797         (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
18798         (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
18799         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
18800         use UNSPEC_STOREU.
18801         (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
18802         (ix86_avx256_split_vector_move_misalign): Don't use unaligned
18803         load nor store.
18804         (ix86_expand_vector_move_misalign): Likewise.
18805         (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
18806         to scalar function prototype for unaligned load/store builtins.
18807         (ix86_expand_special_args_builtin): Updated.
18808         * config/i386/sse.md (UNSPEC_LOADU): Removed.
18809         (UNSPEC_STOREU): Likewise.
18810         (VI_ULOADSTORE_BW_AVX512VL): Likewise.
18811         (VI_ULOADSTORE_F_AVX512VL): Likewise.
18812         (ssescalarsize): Handle V4TI, V2TI and V1TI.
18813         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
18814         (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
18815         (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
18816         (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
18817         (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
18818         (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
18819         (sse2_avx_avx512f>_storedqu<mode>): Likewise.
18820         (<avx512>_storedqu<mode>_mask): Likewise.
18821         (*sse4_2_pcmpestr_unaligned): Likewise.
18822         (*sse4_2_pcmpistr_unaligned): Likewise.
18823         (*mov<mode>_internal): Renamed to ...
18824         (mov<mode>_internal): This.  Remove check of AVX and IAMCU on
18825         misaligned operand.  Replace vmovdqu64 with vmovdqu<ssescalarsize>.
18826         (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
18827         (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
18829 2016-04-19  Richard Biener  <rguenther@suse.de>
18831         PR tree-optimization/70171
18832         * tree-ssa-phiprop.c: Include stor-layout.h.
18833         (phiprop_insert_phi): Handle the aggregate copy case.
18834         (propagate_with_phi): Likewise.
18836 2016-04-19  Uros Bizjak  <ubizjak@gmail.com>
18838         * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
18839         instead of simplify_gen_subreg (... , 0).
18840         (ix86_delegitimize_address): Ditto.
18841         (ix86_split_divmod): Ditto.
18842         (ix86_split_copysign_const): Ditto.
18843         (ix86_split_copysign_var): Ditto.
18844         (ix86_expand_args_builtin): Ditto.
18845         (ix86_expand_round_builtin): Ditto.
18846         (ix86_expand_special_args_builtin): Ditto.
18847         * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
18848         (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
18849         (udivmodqi4): Ditto.
18850         (absneg splitters): Ditto.
18851         (*jcc_bt<mode>_1): Ditto.
18853 2016-04-19  Richard Biener  <rguenther@suse.de>
18855         PR tree-optimization/70724
18856         * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
18857         restoring out from ...
18858         (free_scc_vn): ... here.
18859         * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
18860         * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
18861         tail merging.
18862         (pass_fre::execute): Restore SSA info.
18864 2016-04-19  Richard Biener  <rguenther@suse.de>
18866         * gimple-walk.h (struct walk_stmt_info): Add stmt member.
18867         * gimple-walk.c (walk_gimple_op): Initialize it.
18868         (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
18869         * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
18870         remapping SSA names of defs.
18871         (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
18872         adjustment.
18874 2016-04-18  Vladimir Makarov  <vmakarov@redhat.com>
18876         PR middle-end/70689
18877         * lra-constraints.c (equiv_substition_p): New.
18878         (process_alt_operands): Use it.
18879         (swap_operands): Swap it.
18880         (curr_insn_transform): Update it.
18882 2016-04-18  Michael Matz  <matz@suse.de>
18884         * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
18885         (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
18886         * tree-core.h (tree_type_common.align): Use bit-field.
18887         (tree_type_common.spare): New.
18888         (tree_decl_common.off_align): Make smaller.
18889         (tree_decl_common.align): Use bit-field.
18891         * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
18892         * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
18893         (scan_sharing_clauses): Ditto.
18894         (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
18895         (omp_finish_file): Ditto.
18896         * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
18897         (layout_decl): Ditto.
18898         (relayout_decl): Ditto.
18899         (finalize_record_size): Use SET_TYPE_ALIGN.
18900         (finalize_type_size): Ditto.
18901         (finish_builtin_struct): Ditto.
18902         (layout_type): Ditto.
18903         (initialize_sizetypes): Ditto.
18904         * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
18905         * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
18906         (lookup_field_for_decl): Use SET_DECL_ALIGN.
18907         (get_chain_field): Ditto.
18908         (get_trampoline_type): Ditto.
18909         (get_nl_goto_field): Ditto.
18910         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
18911         SET_DECL_ALIGN.
18912         (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
18913         * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
18914         * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
18915         (build_qualified_type): Use SET_TYPE_ALIGN.
18916         (build_aligned_type, build_range_type_1): Ditto.
18917         (build_atomic_base): Ditto.
18918         (build_common_tree_nodes): Ditto.
18919         * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
18920         (expand_one_stack_var_at): Ditto.
18921         * coverage.c (build_var): Use SET_DECL_ALIGN.
18922         * except.c (init_eh): Ditto.
18923         * function.c (assign_parm_setup_block): Ditto.
18924         * symtab.c (increase_alignment_1): Ditto.
18925         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
18926         * tree-vect-stmts.c (ensure_base_align): Ditto.
18927         * varasm.c (align_variable): Ditto.
18928         (assemble_variable): Ditto.
18929         (build_constant_desc): Ditto.
18930         (output_constant_def_contents): Ditto.
18932         * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
18933         * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
18934         * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
18935         * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
18936         * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
18938 2016-04-18  H.J. Lu  <hongjiu.lu@intel.com>
18940         PR target/70708
18941         * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
18942         replace %vmovsd with "%vmovq".
18943         (vec_concatv2df): Likewise.
18945 2016-04-18  Uros Bizjak  <ubizjak@gmail.com>
18947         * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
18948         (*vec_extractv2si_0): Ditto.
18949         * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
18950         (zero_extended_scalar_load_operand splitters): Ditto.
18951         (vec_extract splitters): Ditto.
18952         (*vec_extractv4si_0_zext): Ditto.
18953         (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
18954         and lowpart_subreg.
18955         (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
18956         (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
18957         (*sse4_1_extractps): Use lowpart_subreg.
18958         * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
18960 2016-04-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18962         * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
18963         gld requirements.
18964         (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
18965         Mention Solaris 11 packaging changes.
18966         Update gas and gld requirements.
18967         Remove reference to pre-Solaris 10 bug.
18968         (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
18969         systems and bugs.
18970         (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
18971         with cc.
18973 2016-04-17  Jan Hubicka  <jh@suse.cz>
18975         * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
18976         max_loop_iterations_int.
18978 2016-04-18  Richard Biener  <rguenther@suse.de>
18980         PR tree-optimization/43434
18981         * tree-ssa-structalias.c (struct vls_data): New.
18982         (visit_loadstore): Handle all pointer-based accesses.
18983         (compute_dependence_clique): Compute a bitmap of restrict tags
18984         assigned bases and pass it to visit_loadstore.
18986 2016-04-18  Matthew Wahab  <matthew.wahab@arm.com>
18988         PR target/70711
18989         * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
18990         armv8.1-a and armv8.1-a+crc.
18992 2016-04-18  Richard Biener  <rguenther@suse.de>
18994         PR tree-optimization/70701
18995         * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
18996         references after translating through a memcpy.
18998 2016-04-18  Richard Biener  <rguenther@suse.de>
19000         * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
19001         (compute_antic): ... here.  For partial antic use regular
19002         postorder and scrap iteration.
19003         (compute_partial_antic_aux): Remove unused return value.
19004         (init_pre): Do not allocate postorder.
19005         (fini_pre): Do not free postorder.
19007 2016-04-18  Richard Biener  <rguenther@suse.de>
19009         PR middle-end/37870
19010         * expmed.c (extract_bit_field_1): Remove broken case
19011         using a wider MODE_INT mode.
19013 2016-04-18  Segher Boessenkool  <segher@kernel.crashing.org>
19015         * has-brig.c (lendian16): Don't try to use __builtin_bswap16
19016         unless compiling with at least GCC-4.8.
19018 2016-04-17  Jan Hubicka  <jh@suse.cz>
19020         PR bootstrap/70706
19021         * graphite.c (graphite_finalize): Update call to
19022         tree_estimate_probability.
19023         * predict.h (tree_estimate_probability): Update prototype.
19025 2016-04-17  Jan Hubicka  <jh@suse.cz>
19027         * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
19028         (tree_estimate_probability): Likewise.
19029         (pass_profile::execute): Update.
19030         (report_predictor_hitrates): New function.
19031         * profile.c (compute_branch_probabilities): Use it.
19032         * predict.h (report_predictor_hitrates): Declare.
19034 2016-04-17  Jan Hubicka  <jh@suse.cz>
19036         PR ipa/70018
19037         * cgraph.h (cgraph_node::set_const_flag,
19038         cgraph_node::set_pure_flag): Update prototype to return bool;
19039         update comment.
19040         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
19041         of interposable symbol are interposable, too.
19042         (cgraph_set_const_flag_1): Rename to ...
19043         (set_const_flag_1): ... this one; change to self recursive function
19044         instead of call_for_symbol_thunks_and_aliases. Handle correctly
19045         clearnig the flag in all variants and also virtual thunks of const
19046         functions are pure; track if any change was done.
19047         (cgraph_node::set_const_flag): Update.
19048         (struct set_pure_flag_info): New struct.
19049         (cgraph_set_pure_flag_1): Rename to ...
19050         (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
19051         rather than pointer encoded flags; track if any changes was done;
19052         handle correctly clearning flag and setting flag of aliases already
19053         declared const.
19054         (cgraph_node::set_pure_flag): Update.
19055         (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
19057 2016-04-17  Tom de Vries  <tom@codesourcery.com>
19059         PR other/70433
19060         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
19061         backslash in label.
19063 2016-04-17  Tom de Vries  <tom@codesourcery.com>
19065         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
19066         '{}<> ' as escape-for-record.
19068 2016-04-17  Tom de Vries  <tom@codesourcery.com>
19070         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
19071         structure.
19073 2016-04-17  Tom de Vries  <tom@codesourcery.com>
19075         PR other/70185
19076         * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
19077         * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
19078         * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
19079         * passes.c (finish_optimization_passes): Only call
19080         finish_graph_dump_file if dfi->graph_dump_initialized.
19081         (execute_function_dump, pass_init_dump_file): Use
19082         dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
19084 2016-04-17  Tom de Vries  <tom@codesourcery.com>
19086         PR tree-optimization/70256
19087         * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
19088         (debug_varmap): New function.
19090 2016-04-17  Tom de Vries  <tom@codesourcery.com>
19092         PR other/70183
19093         * passes.c (pass_manager::register_pass): Propagate pflags.
19095 2016-04-17  Tom de Vries  <tom@codesourcery.com>
19097         PR other/68875
19098         * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
19099         * passes.c (pass_manager::pass_manager): Declare and init p_start in
19100         INSERT_PASSES_AFTER.  Add pass parameter to TERMINATE_PASS_LIST, and
19101         check if it's equal to p_start.
19102         * passes.def: Add arguments to TERMINATE_PASS_LISTs.
19104 2016-04-15  Jan Hubicka  <jh@suse.cz>
19106         PR ipa/70018
19107         * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
19108         function does not bind to current def.
19109         * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
19110         handle conservatively calls to functions that does not need to bind
19111         to current def.
19112         (check_call): Update call of worse_state.
19113         (ignore_edge_for_nothrow): Update.
19114         (ignore_edge_for_pure_const): Likewise.
19115         (propagate_pure_const): Update calls to worse_state.
19116         (skip_function_for_local_pure_const): Reformat comments.
19118 2016-04-15  Jan Hubicka  <jh@suse.cz>
19120         PR ipa/70018
19121         * cgraph.c (cgraph_node::get_availability): Add REF parameter.
19122         (cgraph_node::function_symbol): Likewise.
19123         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
19124         * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
19125         (symtab_node::ultimate_alias_target): Add REF parameter.
19126         (symtab_node::binds_to_current_def_p): Declare.
19127         (symtab_node;:ultimate_alias_target_1): Add REF parameter.
19128         (cgraph_node::function_symbol): Likewise.
19129         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
19130         (cgraph_node::get_availability): Likewise.
19131         (cgraph_edge::binds_to_current_def_p): New inline function.
19132         (varpool_node::get_availability): Add REF parameter.
19133         (varpool_node::ultimate_alias_target): Likewise.
19134         * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
19135         (symtab_node::binds_to_current_def_p): Likewise.
19136         * varpool.c (varpool_node::get_availability): Likewise.
19138 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
19140         PR target/70662
19141         * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
19142         Fix mode size check.
19144 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
19146         * BASE-VER: Set to 7.0.0.
19148 2016-04-15  Alexander Monakov  <amonakov@ispras.ru>
19150         * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
19152 2016-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19154         * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
19155         architecture revisions.
19157 2016-04-15  Bernd Schmidt  <bschmidt@redhat.com>
19159         * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
19160         * config/i386/i386.c (ix86_using_red_zone): No longer static.
19161         * config/i386/i386.md (stack decrement to push peepholes): Guard
19162         with !x86_using_red_zone ().
19164 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
19166         PR c++/70675
19167         * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
19168         to dump_generic_node.
19169         (NIY): Pass also flags to do_niy.
19171 2016-04-15  Thomas Schwinge  <thomas@codesourcery.com>
19173         * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
19174         (simd_clone_vector_of_formal_parm_types)
19175         (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
19176         (simd_clone_mangle, simd_clone_create)
19177         (simd_clone_adjust_return_type, create_tmp_simd_array)
19178         (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
19179         (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
19180         (ipa_simd_modify_function_body, simd_clone_linear_addend)
19181         (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
19182         (pass_data_omp_simd_clone, class pass_omp_simd_clone)
19183         (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
19184         * omp-simd-clone.c: ... this new file.
19185         (simd_clone_vector_of_formal_parm_types): Make it static.
19186         * Makefile.in (OBJS): Add omp-simd-clone.o.
19188 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
19190         PR target/70662
19191         * config/i386/sse.md: Use proper memory operand modifiers.
19194 2016-04-15  Richard Biener  <rguenther@suse.de>
19195         Alan Modra  <amodra@gmail.com>
19197         PR tree-optimization/70130
19198         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
19199         when alignment stays not the same and no not use the realign
19200         scheme then.
19202 2016-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
19204         PR target/70669
19205         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
19206         direct move handlers for KFmode. Change TFmode handlers test from
19207         FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
19209 2016-04-14  Jakub Jelinek  <jakub@redhat.com>
19211         PR c++/70594
19212         * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
19213         * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
19214         (inlined_polymorphic_ctor_dtor_block_p): Use it.
19215         * tree-ssa-live.c (remove_unused_scope_block_p): When
19216         in_ctor_dtor_block, avoid discarding not just BLOCKs with
19217         BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
19218         block_ultimate_origin is FUNCTION_DECL.
19219         (remove_unused_locals): If current_function_decl is
19220         polymorphic_ctor_dtor_p, pass initial true to
19221         remove_unused_scope_block_p' is_ctor_dtor_block.
19223 2016-04-14  Martin Sebor  <msebor@redhat.com>
19225         PR c++/69517
19226         PR c++/70019
19227         PR c++/70588
19228         * doc/extend.texi (Variable Length): Revert.
19230 2016-04-14  Marek Polacek  <polacek@redhat.com>
19231             Jan Hubicka  <hubicka@ucw.cz>
19233         PR c++/70029
19234         * tree.c (verify_type): Disable the canonical type of main variant
19235         check.
19237 2016-04-14  Jason Merrill  <jason@redhat.com>
19239         * cfgexpand.c, expr.c: Revert previous change.
19241 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
19243         PR middle-end/70643
19244         * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
19245         when building a mem ref for the incoming reduction variable.
19247 2016-04-14  Richard Biener  <rguenther@suse.de>
19249         PR tree-optimization/70614
19250         * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
19251         loop if the evolution dropped to chrec_dont_know.
19252         (interpret_condition_phi): Likewise.
19254 2016-04-14  Richard Biener  <rguenther@suse.de>
19256         PR tree-optimization/70623
19257         * tree-ssa-pre.c (changed_blocks): Make global ...
19258         (compute_antic): ... local here.  Move and fix worklist
19259         handling here.  Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
19260         (compute_antic_aux): Add dumping for MAX assumed succs.  Remove
19261         worklist handling, dump when ANTIC_IN changed.
19262         (compute_partial_antic_aux): Remove worklist handling.
19263         (init_pre): Do not compute post dominators.  Add a comment about
19264         the CFG order chosen.
19265         (fini_pre): Do not free post dominators.
19267 2016-04-13  Martin Sebor  <msebor@redhat.com>
19269         PR c++/69517
19270         PR c++/70019
19271         PR c++/70588
19272         * doc/extend.texi (Variable Length): Document C++ specifics.
19274 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
19276         PR c++/70641
19277         * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
19278         on all recursive call stmts.  Return TODO_cleanup_cfg if any dead
19279         eh edges have been purged.
19281         PR c++/70594
19282         * tree-sra.c (create_access_replacement,
19283         get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
19284         gets fancy name.
19285         * tree-pretty-print.c (dump_fancy_name): New function.
19286         (dump_decl_name, dump_generic_node): Use it.
19288 2016-04-13  Jason Merrill  <jason@redhat.com>
19290         * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
19291         * expr.c (expand_expr_real_1): Likewise.
19293 2016-04-13  Ilya Enkovich  <ilya.enkovich@intel.com>
19295         * config/i386/i386.md (kunpckhi): Swap operands.
19296         (kunpcksi): Likewise.
19297         (kunpckdi): Likewise.
19298         * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
19299         (vec_pack_trunc_<mode>): Likewise.
19301 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
19303         PR debug/70628
19304         * explow.c (convert_memory_address_addr_space_1): Formatting fix.
19306         PR middle-end/70633
19307         * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
19308         gimplification turns some element into non-constant.
19310         PR debug/70628
19311         * rtl.h (convert_memory_address_addr_space_1): New prototype.
19312         * explow.c (convert_memory_address_addr_space_1): No longer static,
19313         add NO_EMIT argument and don't call convert_modes if true, pass
19314         it down recursively, remove break after return.
19315         (convert_memory_address_addr_space): Adjust caller.
19316         * simplify-rtx.c (simplify_unary_operation_1): Call
19317         convert_memory_address_addr_space_1 instead of convert_memory_address,
19318         if it returns NULL, don't simplify.
19320 2016-04-12  Eric Botcazou  <ebotcazou@adacore.com>
19322         PR target/70630
19323         * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
19325 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
19327         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
19328         Bump the upper SIMDLEN limits, so that if the return type or
19329         characteristic type if the return type is void can be passed in
19330         all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
19331         allowed.
19333 2016-04-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
19335         PR target/70640
19336         * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
19337         Do not use "=" constraint on an input constraint.
19338         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
19339         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
19340         (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
19341         generates (neg (abs ...)) instead of (abs ...).
19343 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
19345         PR rtl-optimization/70596
19346         * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
19347         just invalidate LRA data and reset them.  Adjust dump wording.
19349 2016-04-12  Martin Liska  <mliska@suse.cz>
19351         Revert
19352         2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
19354         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
19355         estimates here.
19356         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
19357         max_loop_iterations_int.
19358         (tree_unswitch_outer_loop): Likewise.
19359         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
19360         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
19362 2016-04-12  Tom de Vries  <tom@codesourcery.com>
19364         PR tree-optimization/68756
19365         * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
19366         instead of new_name.
19368 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
19370         PR tree-optimization/70602
19371         * tree-sra.c (generate_subtree_copies): Don't write anything into
19372         constant pool decls.
19374         * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
19375         regardless whether there are depend clauses or not.
19377 2016-04-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
19379         PR target/70381
19380         * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
19381         target attribute and pragma from changing the -mfloat128
19382         and -mfloat128-hardware options.
19384         * doc/extend.texi (Additional Floating Types): Document PowerPC
19385         __float128 restrictions.
19387 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
19389         PR target/70133
19390         * config/aarch64/driver-aarch64.c
19391         (aarch64_get_extension_string_for_isa_flags): New.
19392         (arch_extension): Rename to...
19393         (aarch64_arch_extension): ...This.
19394         (ext_to_feat_string): Rename to...
19395         (aarch64_extensions): ...This.
19396         (aarch64_core_data): Keep track of architecture extension flags.
19397         (cpu_data): Rename to...
19398         (aarch64_cpu_data): ...This.
19399         (aarch64_arch_driver_info): Keep track of architecture extension
19400         flags.
19401         (get_arch_name_from_id): Rename to...
19402         (get_arch_from_id): ...This, change return type.
19403         (host_detect_local_cpu): Update and reformat for renames, handle
19404         extensions through common infrastructure.
19406 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
19408         PR target/70133
19409         * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
19410         track of a canonical flag name.
19411         (all_extensions): Likewise.
19412         (arch_to_arch_name): Also track extension flags enabled by the arch.
19413         (all_architectures): Likewise.
19414         (aarch64_parse_extension): Move to here.
19415         (aarch64_get_extension_string_for_isa_flags): Take a new argument,
19416         rework.
19417         (aarch64_rewrite_selected_cpu): Update for above change.
19418         * config/aarch64/aarch64-option-extensions.def: Rework the way flags
19419         are handled, such that the single explicit value enabled by an
19420         extension is kept seperate from the implicit values it also enables.
19421         * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
19422         to here.
19423         (aarch64_parse_extension): New.
19424         * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
19425         here to config/aarch64/aarch64-protos.h.
19426         (aarch64_parse_extension): Move from here to
19427         common/config/aarch64/aarch64-common.c.
19428         (aarch64_option_print): Update.
19429         (aarch64_declare_function_name): Likewise.
19430         (aarch64_start_file): Likewise.
19431         * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
19432         the canonical flag for extensions.
19433         * config.gcc (aarch64*-*-*): Extend regex for capturing extension
19434         flags.
19436 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
19438         * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
19439         AARCH64_FL_CRC.
19441 2016-04-09  Tom de Vries  <tom@codesourcery.com>
19443         PR tree-optimization/68953
19444         * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
19445         first to last subscript.
19447 2016-04-09  Jakub Jelinek  <jakub@redhat.com>
19449         PR tree-optimization/70586
19450         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
19451         for any calls.
19453 2016-04-08  Cesar Philippidis  <cesar@codesourcery.com>
19455         PR lto/70289
19456         PR ipa/70348
19457         PR tree-optimization/70373
19458         PR middle-end/70533
19459         PR middle-end/70534
19460         PR middle-end/70535
19461         * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
19462         clauses for acc parallel reductions as necessary.  Error on those
19463         that are private.
19464         * omp-low.c (scan_sharing_clauses): Don't install variables which
19465         are used in acc parallel reductions.
19466         (lower_rec_input_clauses): Remove dead code.
19467         (lower_oacc_reductions): Add support for reference reductions.
19468         (lower_reduction_clauses): Remove dead code.
19469         (lower_omp_target): Don't remap variables appearing in acc parallel
19470         reductions.
19471         * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
19473 2016-04-08  Jakub Jelinek  <jakub@redhat.com>
19475         PR middle-end/70593
19476         * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
19477         with multiple SSA_NAME defs, force the outputs other than first
19478         to be live before calling live_track_process_def on each output.
19480         PR rtl-optimization/70574
19481         * fwprop.c (forward_propagate_and_simplify): Don't add
19482         REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
19483         (try_fwprop_subst): Don't add REG_EQUAL note if there are any
19484         paradoxical subregs within *loc.
19486 2016-04-08  Thomas Schwinge  <thomas@codesourcery.com>
19488         * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
19489         -ftree-parallelize-loops={0,1}.
19490         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
19491         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
19492         * config/ia64/hpux.h (LIB_SPEC): Likewise.
19493         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
19494         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
19496 2016-04-08  Maxim Ostapenko  <m.ostapenko@samsung.com>
19498         PR sanitizer/70541
19499         * asan.c (instrument_derefs): If we get unknown location, extract it
19500         with EXPR_LOCATION.
19501         (maybe_instrument_call): Instrument gimple_call's arguments if needed.
19503 2016-04-08  Tom de Vries  <tom@codesourcery.com>
19505         * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
19506         implicit firstprivate clause.
19508 2016-04-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19510         PR target/70566
19511         * config/arm/thumb2.md (tst + branch-> lsls + branch
19512         peephole below *orsi_not_shiftsi_si): Require that condition
19513         register is dead after the peephole.
19514         (second peephole after the above): Likewise.
19516 2016-04-08  Alan Modra  <amodra@gmail.com>
19518         PR target/70117
19519         * builtins.c (fold_builtin_classify): For IBM extended precision,
19520         look at just the high-order double to test for NaN.
19521         (fold_builtin_interclass_mathfn): Similarly for Inf.  For isnormal
19522         test just the high double for Inf but both doubles for subnormal
19523         limit.
19525 2016-04-07  Jakub Jelinek  <jakub@redhat.com>
19527         * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
19528         * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
19529         node->simdclone->mask_mode != VOIDmode masks.
19530         (simd_clone_adjust_argument_types): Likewise.  Move sc var definition
19531         earlier, use it instead of node->simdclone.
19532         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
19533         Set clonei->mask_mode.
19535 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
19537         PR c/70436
19538         * parser.c (cp_parser_iteration_statement): New parameter IF_P.
19539         Pass it through to cp_parser_already_scoped_statement.
19540         (cp_parser_already_scoped_statement): New parameter IF_P.  Pass
19541         it through to cp_parser_statement.
19542         (cp_parser_statement): Pass IF_P through to
19543         cp_parser_iteration_statement.
19544         (cp_parser_pragma): Adjust call to
19545         cp_parser_iteration_statement.
19547 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
19549         PR c/70436
19550         * gimplify.c (gimplify_omp_ordered): Add explicit braces to
19551         resolve a future -Wparentheses warning.
19552         * omp-low.c (scan_sharing_clauses): Likewise.
19553         * tree-parloops.c (eliminate_local_variables): Likewise.
19555 2016-04-06  Vladimir Makarov  <vmakarov@redhat.com>
19557         PR rtl-optimization/70398
19558         * lra-constraints.c (process_address_1): Check zero scale and code
19559         for reloading with zero scale.
19561 2016-04-06  Uros Bizjak  <ubizjak@gmail.com>
19563         * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
19564         (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
19566 2016-04-06  Jakub Jelinek  <jakub@redhat.com>
19568         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
19569         Add support for AVX512F clones, include them by default for
19570         exported OpenMP declare simd functions.  For AVX2 allow simdlen 32
19571         and use it if charasteric type is 8-bit, for AVX512F allow simdlen
19572         up to 128.
19574         PR middle-end/70550
19575         * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
19576         * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
19577         firstprivate clauses.
19578         * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
19579         OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
19580         (lower_omp_target): Set TREE_NO_WARNING for
19581         non-addressable possibly uninitialized vars which are copied into
19582         addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
19584 2016-04-05  John David Anglin  <danglin@gcc.gnu.org>
19586         * config/pa/predicates.md (integer_store_memory_operand): Accept
19587         REG+D operands with a large offset when reload_in_progress is true.
19588         (floating_point_store_memory_operand): Likewise.
19590 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
19592         PR c++/70336
19593         * match.pd (nested int casts): Limit to GIMPLE.
19595 2016-04-05  Jan Hubicka  <hubicka@ucw.cz>
19597         PR ipa/66223
19598         * ipa-devirt.c (maybe_record_node): Fix comment; use
19599         SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
19601 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
19603         PR rtl-optimization/70542
19604         * ree.c (add_removable_extension): For VECTOR_MODE_P punt
19605         if there are any uses other than insn or debug insns.
19607 2016-04-05  Marc Glisse  <marc.glisse@inria.fr>
19608             Jakub Jelinek  <jakub@redhat.com>
19610         PR tree-optimization/70509
19611         * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
19612         Shift HOST_WIDE_INT_1U instead of 1.
19614 2016-04-05  Zdenek Sojka  <zsojka@seznam.cz>
19616         PR tree-optimization/70509
19617         * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
19618         of the vector base type for index.
19620 2016-04-05  Uros Bizjak  <ubizjak@gmail.com>
19622         PR target/70510
19623         * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
19625 2016-04-05  Richard Biener  <rguenther@suse.de>
19627         PR tree-optimization/70526
19628         * tree-sra.c (build_ref_for_offset): Use prev_base to
19629         extract the alias pointer type.
19631 2016-04-05  Richard Biener  <rguenther@suse.de>
19633         * dse.c (struct store_info): Remove alias_set member.
19634         (struct read_info_type): Likewise.
19635         (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
19636         spill_deleted, clear_alias_set_lookup): Remove.
19637         (get_group_info): Remove dead base == NULL_RTX case.
19638         (dse_step0): Remove initialization of removed variables.
19639         (delete_dead_store_insn): Reomve alias set dumping.
19640         (free_read_records): Remove alias_set handling.
19641         (canon_address): Remove alias_set_out parameter.
19642         (record_store): Remove spill_alias_set, it's always zero.
19643         (check_mem_read_rtx): Likewise.
19644         (dse_step2): Rename from ...
19645         (dse_step2_nospill): ... this.  Adjust.
19646         (scan_stores): Rename from ...
19647         (scan_stores_nospill): ... this.
19648         (scan_reads): Rename from ...
19649         (scan_reads_nospill): ... this.
19650         (scan_stores_spill, scan_reads_spill): Remove.
19651         (dse_step3_scan): Remove for_spills argument which is always false.
19652         (dse_step3): Likewise.
19653         (dse_step5): Rename from ...
19654         (dse_step5_nospill): ... this.  Remove alias_set handling.
19655         (rest_of_handle_dse): Adjust.
19657 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
19659         PR target/70525
19660         * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
19661         Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
19662         V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
19663         (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
19665 2016-04-05  Richard Biener  <rguenther@suse.de>
19667         PR middle-end/70499
19668         * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
19669         non-register type temporaries into SSA.
19671 2016-04-04  Jan Hubicka  <hubicka@ucw.cz>
19673         PR ipa/66223
19674         * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
19675         calls when sanitizing.
19676         (possible_polymorphic_call_target_p): Fix formatting.
19678 2016-04-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19679             Jakub Jelinek  <jakub@redhat.com>
19681         PR middle-end/70457
19682         * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
19683         to ensure a call statement is compatible with a built-in's
19684         prototype.
19685         * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
19686         Likewise.
19688 2016-04-04  Richard Biener  <rguenther@suse.de>
19690         PR rtl-optimization/70484
19691         * rtl.h (canon_output_dependence): Declare.
19692         * alias.c (canon_output_dependence): New function.
19693         * dse.c (record_store): Use canon_output_dependence rather
19694         than canon_true_dependence.
19696 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
19698         PR ipa/68881
19699         * cgraph.h (symtab_node::copy_visibility_from): New function.
19700         * symtab.c (symtab_node::copy_visibility_from): New function.
19701         * ipa-visibility.c (optimize_weakref): New function.
19702         (function_and_variable_visibility): Use it.
19704 2016-04-04  Martin Liska  <mliska@suse.cz>
19706         PR hsa/70402
19707         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
19708         value that is really in range handled by SBR instruction.
19709         * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
19710         * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
19711         * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
19713 2016-04-03  Oleg Endo  <olegendo@gcc.gnu.org>
19715         PR target/70416
19716         PR target/67391
19717         * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
19718         set, but not for SP_REG operands.
19720 2016-04-02  Martin Sebor  <msebor@redhat.com>
19722         PR c++/67376
19723         * fold-const.c (maybe_nonzero_address): New function.
19724         (fold_comparison): Call it.  Fold equality and relational
19725         expressions involving null pointers.
19726         (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
19728 2016-03-31  Evandro Menezes  <e.menezes@samsung.com>
19730         Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
19731         the "Y" constraint (scalar FP 0.0 immediate).
19733         * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
19734         Add the "const_double" to the list of operand constraints.
19736 2016-04-01  Jakub Jelinek  <jakub@redhat.com>
19738         PR rtl-optimization/70467
19739         * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
19740         If low word of the last operand is 0, just emit addition/subtraction
19741         for the high word.
19743 2016-04-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19745         PR target/70404
19746         * config/s390/s390.c (s390_expand_insv): Check for everything
19747         constant instead of just VOIDmode stuff.
19749 2016-04-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19751         PR target/70496
19752         * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
19754 2016-04-01  Nathan Sidwell  <nathan@acm.org>
19756         * tree.def (TRY_CATCH_EXPR): Correct documentation.
19758 2016-03-31  Vladimir Makarov  <vmakarov@redhat.com>
19760         PR rtl-optimization/70461
19761         * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
19762         is necessary.
19764 2016-03-31  Martin Liska  <mliska@suse.cz>
19766         PR hsa/70399
19767         * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
19768         a tree value or an immediate integer value to a buffer
19769         that is eventually copied to a BRIG section.
19770         (emit_immediate_operand): Call the function here.
19771         * hsa-dump.c (dump_hsa_immed): Remove checking assert.
19772         * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
19773         of class' fields that are removed.
19774         (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
19775         * hsa.h (class hsa_op_immed): Remove m_brig_repr and
19776         m_brig_repr_size fields.
19778 2016-03-31  Martin Liska  <mliska@suse.cz>
19780         PR hsa/70391
19781         * hsa-gen.c (hsa_function_representation::update_dominance): New
19782         function.
19783         (convert_addr_to_flat_segment): Likewise.
19784         (gen_hsa_memory_set): New alignment argument.
19785         (gen_hsa_ctor_assignment): Likewise.
19786         (gen_hsa_insns_for_single_assignment): Provide alignment
19787         to gen_hsa_ctor_assignment.
19788         (gen_hsa_insns_for_direct_call): Add new argument.
19789         (expand_lhs_of_string_op): New function.
19790         (expand_string_operation_builtin): Likewise.
19791         (expand_memory_copy): New function.
19792         (expand_memory_set): New function.
19793         (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
19794         (convert_switch_statements): Change signature.
19795         (generate_hsa): Use a return value of the function.
19796         (pass_gen_hsail::execute): Do not call
19797         convert_switch_statements here.
19798         * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
19799         * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
19800         (hsa_function_representation::update_dominance): New function.
19802 2016-03-31  Martin Liska  <mliska@suse.cz>
19804         PR hsa/70391
19805         * hsa-brig.c (emit_directive_variable): Emit alignment
19806         according to hsa_symbol::m_align.
19807         * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
19808         (dump_hsa_symbol): Dump alignment of HSA symbols.
19809         * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
19810         (gen_hsa_addr_with_align): New function.
19811         (hsa_bitmemref_alignment): Use newly added function.
19812         (gen_hsa_insns_for_load): Likewise.
19813         (gen_hsa_insns_for_store): Likewise.
19814         (gen_hsa_memory_copy): New argument added.
19815         (gen_hsa_insns_for_single_assignment): Respect
19816         alignment for assignments processed via gen_hsa_memory_copy.
19817         (gen_hsa_insns_for_direct_call): Likewise.
19818         (gen_hsa_insns_for_return): Likewise.
19819         (gen_function_def_parameters): Set default alignment.
19820         * hsa.c (hsa_object_alignment): New function.
19821         (hsa_byte_alignment): Pasted function.
19822         * hsa.h (hsa_symbol::m_align): New field.
19824 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
19826         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
19827         scratch field for goto case.
19829 2016-03-31  James Greenhalgh  <james.greenhalgh@arm.com>
19831         * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
19833 2016-03-31  Ilya Enkovich  <enkovich.gnu@gmail.com>
19835         PR target/70442
19836         * config/i386/i386.c (scalar_chain::convert_op): Fix description.
19837         (scalar_chain::convert_insn): Call convert_op for reg
19838         moves to handle undefined registers.
19840 2016-03-31  Nathan Sidwell  <nathan@acm.org>
19842         PR c++/70393
19843         * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
19844         Assert we don't want to move backwards.
19846 2016-03-31  Kirill Yukhin  <kirill.yukhin@intel.com>
19848         PR target/70453
19849         * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
19851 2016-03-31  Jakub Jelinek  <jakub@redhat.com>
19853         PR rtl-optimization/70460
19854         * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
19855         with operand from REG_LABEL_OPERAND, instead substitute
19856         SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
19857         Don't do anything for REG_NON_LOCAL_GOTO jumps.
19859 2016-03-31  Martin Liska  <mliska@suse.cz>
19861         * passes.c (execute_one_pass): Do not call
19862         todo_after for a discarded function.
19864 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
19866         * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
19867         (no_cost, infinite_cost): Initialize the new field.
19868         (get_computation_cost_at): Record setup cost.
19869         (determine_use_iv_cost_address): Skip cost computation for sub
19870         uses if we can estimate it without losing accuracy.
19872 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
19874         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
19875         estimates here.
19876         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
19877         max_loop_iterations_int.
19878         (tree_unswitch_outer_loop): Likewise.
19879         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
19880         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
19882 2016-03-30  Richard Biener  <rguenther@suse.de>
19884         PR middle-end/70450
19885         * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
19887 2016-03-30  Jakub Jelinek  <jakub@redhat.com>
19889         PR target/70421
19890         * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
19891         in gen_blendm expander.
19893 2016-03-30  Nick Clifton  <nickc@redhat.com>
19895         PR target/62254
19896         * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
19897         case where we are already provided with an SImode SUBREG.
19899 2016-03-30  H.J. Lu  <hongjiu.lu@intel.com>
19901         PR target/70439
19902         * config/i386/i386.c (ix86_expand_epilogue): Properly check
19903         conflict between DRAP register and __builtin_eh_return.
19905 2016-03-30  Michael Matz  <matz@suse.de>
19906             Richard Biener  <rguenther@suse.de>
19908         PR ipa/12392
19909         * ipa-polymorphic-call.c (struct type_change_info): Change
19910         speculative to an unsigned allowing to limit the work we do.
19911         (csftc_abort_walking_p): New inline function..
19912         (check_stmt_for_type_change): Limit the number of may-defs
19913         skipped for speculative devirtualization to
19914         max-speculative-devirt-maydefs.
19915         * params.def (max-speculative-devirt-maydefs): New param.
19916         * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
19918 2016-03-30  Mike Stump  <mrs@gcc.gnu.org>
19920         PR target/63890
19921         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
19922         and TARGET_MACHO.
19924 2016-03-30  Patrick Palka  <ppalka@gcc.gnu.org>
19926         PR tree-optimization/59124
19927         * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
19928         where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
19930 2016-03-29  Jeff Law  <law@redhat.com>
19932         * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
19934 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
19936         * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
19937         to HOST_WIDE_INT.
19939 2016-03-29  Thomas Schwinge  <thomas@codesourcery.com>
19941         * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
19942         * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
19943         gcrt0.o if linking dynamically.
19945 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
19947         PR ipa/70283
19948         * ipa-devirt.c (methods_equal_p): New function.
19949         (compare_virtual_tables): Use it.
19950         * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
19951         * cgraphclones.c (clone_function_name_1): Use
19952         symbol_table::symbol_suffix_separator.
19953         * coverage.c (build_var): Likewise.
19954         * symtab.c (symbol_table::symbol_suffix_separator): New.
19956 2016-03-29  Jakub Jelinek  <jakub@redhat.com>
19958         PR rtl-optimization/70429
19959         * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
19960         (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
19961         mode != result_mode.
19963         PR c++/70353
19964         * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
19966         PR tree-optimization/70405
19967         * ssa-iterators.h (num_imm_uses): Add missing braces.
19969 2016-03-29  Vladimir Makarov  <vmakarov@redhat.com>
19971         PR rtl-optimization/68695
19972         * ira-color.c (allocno_copy_cost_saving): New.
19973         (improve_allocation): Use it.
19975 2016-03-29  Richard Henderson  <rth@redhat.com>
19977         PR middle-end/70355
19978         * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
19980 2016-03-29  Richard Biener  <rguenther@suse.de>
19982         PR middle-end/70424
19983         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
19984         use alignment returned by get_pointer_alignment_1 if it is
19985         bigger than BITS_PER_UNIT.
19986         * builtins.c (get_pointer_alignment_1): Do not return true
19987         for alignment extracted from SSA info.
19989 2016-03-28  James Bowman  <james.bowman@ftdichip.com>
19991         * config/ft32/ft32.opt (mnodiv): New.
19992         * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
19993         * doc/invoke.texi (FT32 Options -mnodiv): New.
19995 2016-03-28  Kirill Yukhin  <kirill.yukhin@intel.com>
19997         PR target/70406
19998         * config/i386/i386.md (define_split, andn): Fix modes.
20000 2016-03-26  Richard Biener  <rguenther@suse.de>
20001             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
20003         PR ipa/70366
20004         * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
20005         instead of
20006         TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
20007         as 2nd argument to cl_optimization_restore().
20009 2016-03-25  Richard Henderson  <rth@redhat.com>
20011         PR target/70120
20012         * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
20013         * config/aarch64/aarch64-protos.h: Declare it.
20014         * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
20016 2016-03-25  Alan Modra  <amodra@gmail.com>
20018         PR target/70052
20019         * config/rs6000/constraints.md (j): Simplify.
20020         * config/rs6000/predicates.md (easy_fp_constant): Exclude
20021         decimal float 0.D.
20022         * config/rs6000/rs6000.md (zero_fp): New mode_attr.
20023         (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
20024          mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
20025         in all constraint alternatives.
20026         (movtd_64bit_nodm): Delete "j" constraint alternative.
20028 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
20030         * tree-ssa-propagate.c: Enhance docs for
20031         SSA_PROP_NOT_INTERESTING.
20033 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
20035         * doc/extend.texi: Fix typo in documentation to pure attribute.
20037 2016-03-24  John David Anglin  <danglin@gcc.gnu.org>
20039         PR target/70319
20040         * config/pa/pa.md (bswapdi2): Use a scratch register.
20042 2016-03-24  Richard Henderson  <rth@redhat.com>
20044         PR middle-end/69845
20045         * fold-const.c (extract_muldiv_1): Correct test for multiplication
20046         overflow.
20048 2016-03-24  Uros Bizjak  <ubizjak@gmail.com>
20050         * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
20051         using ix86_expand_binary_operator instead of gen_andsi3.
20053 2016-03-24  Richard Biener  <rguenther@suse.de>
20055         PR tree-optimization/70396
20056         * tree-vect-stmts.c (vectorizable_comparison): Use
20057         get_vectype_for_scalar_type.
20059 2016-03-24  Richard Biener  <rguenther@suse.de>
20061         PR middle-end/70370
20062         * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
20063         with register bases.
20065 2016-03-24  Richard Biener  <rguenther@suse.de>
20067         PR tree-optimization/70372
20068         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
20069         build_all_ones_cst to also handle vector types correctly.
20071 2016-03-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
20073         PR target/70381
20074         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
20075         -mfloat128 here.
20077 2016-03-23  Marek Polacek  <polacek@redhat.com>
20079         PR c++/69884
20080         * doc/invoke.texi: Document -Wignored-attributes.
20082 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
20084         PR tree-optimization/69042
20085         * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
20086         parameter from 30 to 40.
20088 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
20090         PR tree-optimization/69042
20091         * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
20092         for use with constant offset stripped in base.
20094 2016-03-23  Richard Biener  <rguenther@suse.de>
20096         PR middle-end/70251
20097         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
20098         mode compatibility check.
20099         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
20101 2016-03-23  Jeff Law  <law@redhat.com>
20103         PR tree-optimization/64058
20104         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
20105         CONFLICT_COUNT.
20106         (struct ssa_conflicts): Move up earlier in the file.
20107         (conflicts_, var_map_): New static variables.
20108         (initialize_conflict_count): New function to initialize the
20109         CONFLICT_COUNT field for each conflict pair.
20110         (compare_pairs): Lazily initialize the conflict count and use it
20111         as the first tie-breaker.
20112         (sort_coalesce_list): Add new arguments conflicts, map.  Initialize
20113         and wipe conflicts_ and map_ around the call to qsort.  Remove
20114         special case for 2 coalesce pairs.
20115         * bitmap.c (bitmap_count_unique_bits): New function.
20116         (bitmap_count_bits_in_word): New function, extracted from
20117         bitmap_count_bits.
20118         (bitmap_count_bits): Use bitmap_count_bits_in_word.
20119         * bitmap.h (bitmap_count_unique_bits): Declare it.
20121 2016-03-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
20123         PR target/69917
20124         * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
20125         transparent alias chain for decl assembler name.
20126         * config/sol2.c (solaris_assemble_visibility): Likewise.
20128 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20130         * config/arm/arm1020e.md (1020call_op): Reduce reservation
20131         duration.
20132         (v10_fdivs): Likewise.
20133         (v10_fdivd): Likewise.
20135 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20137         PR driver/70132
20138         * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
20139         to not call fclose twice on file.
20141 2016-03-23  Jakub Jelinek  <jakub@redhat.com>
20143         PR tree-optimization/70354
20144         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
20145         oprnd0 is wider than oprnd1 and there is a cast from the wider
20146         type to oprnd1, mask it with the mask of the narrower type.
20148         PR target/70321
20149         * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
20150         Optimize TARGET_STV splitters, if high or low word of last argument
20151         is 0 or -1.
20153 2016-03-22  Jeff Law  <law@redhat.com>
20155         PR target/70232
20156         tree-ssa-threadbackward.c
20157         (fsm_find_control_statement_thread_paths): Correctly distinguish
20158         between old style jump threads vs FSM jump threads.
20160 2016-03-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
20162         PR target/70302
20163         * config/i386/i386.c (scalar_chain::convert_op): Support
20164         uninitialized register usage case.
20166 2016-03-22  Richard Biener  <rguenther@suse.de>
20168         PR middle-end/70251
20169         * genmatch.c (gen_transform): Adjust last parameter to a three-state
20170         int...
20171         (capture::gen_transform): ... to change behavior when substituting
20172         a condition into cond or not-cond expr context.
20173         (dt_simplify::gen_1): Adjust.
20174         * gimple-match-head.c: Include gimplify.h for unshare_expr.
20175         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
20176         last change and instead change to
20177         A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
20178         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
20180 2016-03-22  Anthony Green  <green@moxielogic.com>
20182         * config/moxie/moxiebox.h (CC1_SPEC): Define.  Fix endianness
20183         issue for moxiebox targets.
20184         (CC1PLUS_SPEC): Ditto.
20186 2016-03-22  Richard Biener  <rguenther@suse.de>
20188         PR middle-end/70333
20189         * fold-const.c (extract_muldiv_1): Properly perform multiplication
20190         in the wide type.
20192 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
20194         * config/i386/i386.c (def_builtin): Remove duplicated functionality.
20196 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
20198         PR target/70325
20199         * config/i386/i386.c (def_builtin): Handle
20200         OPTION_MASK_ISA_AVX512VL to be and-ed with other
20201         bits.
20202         (const struct builtin_description bdesc_special_args[]):
20203         Remove duplicate ISA bits.
20205 2016-03-22  Jakub Jelinek  <jakub@redhat.com>
20207         PR target/70329
20208         * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
20209         d.perm[i] for i >= d.nelt.  If not full_interleave, compute d.perm[i]
20210         in a way that works also for AVX512BW.
20212         PR target/70300
20213         * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
20214         instead of source if operands[1] is xmm16 and above and
20215         !TARGET_AVX512VL.  Use avx512f_vec_dupv16sf_1 instead of
20216         vec_interleave_lowv4sf if we need to unpack xmm16 and above.
20218         PR c++/70295
20219         * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
20220         on assign if (*from_p) is a comparison, set it to
20221         TREE_NO_WARNING (*from_p).
20223 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
20225         PR middle-end/70326
20226         * lra.c (restore_scratches): Ignore deleted insns.
20228 2016-03-21  Marc Glisse  <marc.glisse@inria.fr>
20229             Jakub Jelinek  <jakub@redhat.com>
20231         PR tree-optimization/70317
20232         * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
20233         to HONOR_NANS.
20235 2016-03-21  Uros Bizjak  <ubizjak@gmail.com>
20237         PR target/70327
20238         * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
20239         of ix86_expand_move.
20240         (movoi): Ditto.
20241         (movti): Use general_operand for operand 1 predicate.
20243 2016-03-21  Martin Liska  <mliska@suse.cz>
20245         * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
20246         insns.
20247         (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
20249 2016-03-21  Martin Liska  <mliska@suse.cz>
20251         PR ipa/70306
20252         * ipa-icf.c (sem_function::parse): Skip static
20253         constructors and destructors.
20255 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
20257         PR target/70296
20258         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
20259         function-like macro, peek following token(s) if it is followed
20260         by CPP_OPEN_PAREN token with optional padding in between, and
20261         if not, don't treat it like a macro.
20263 2016-03-21  Thomas Schwinge  <thomas@codesourcery.com>
20264             Alexander Monakov  <amonakov@ispras.ru>
20266         * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
20267         for the stabs debug format.
20269 2016-03-21  Richard Biener  <rguenther@suse.de>
20271         PR tree-optimization/70310
20272         * tree-vect-generic.c (expand_vector_condition): Fold the built
20273         condition.
20275 2016-03-21  Kirill Yukhin  <kirill.yukhin@intel.com>
20277         PR target/70293
20278         * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
20279         Block third alternative for AVX-512VL target,
20281 2016-03-21  Martin Liska  <mliska@suse.cz>
20283         PR hsa/70234
20284         * hsa-brig.c (emit_function_directives): Mark unemitted
20285         global variables for emission.
20286         * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
20287         (get_symbol_for_decl): Likewise.
20288         * hsa.h (struct hsa_symbol): New flag.
20290 2016-03-21  Richard Biener  <rguenther@suse.de>
20292         PR tree-optimization/70288
20293         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
20294         we do not estimate unsimplified all-constant conditionals or
20295         switches as optimized away.
20297 2016-03-21  Andrey Belevantsev  <abel@ispras.ru>
20299         PR rtl-optimization/69102
20300         * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
20301         when we have a readonly dependency context.
20303 2016-03-18  Jeff Law  <law@redhat.com>
20305         PR rtl-optimization/70263
20306         * ira.c (memref_used_between_p): Assert we found END in the insn chain.
20307         (update_equiv_regs): When trying to move a store to after the insn
20308         that sets the source of the store, make sure the store occurs after
20309         the insn that sets the source of the store.  When successful note
20310         the REG_EQUIV note created in the dump file.
20312 2016-03-16  David Wohlferd  <dw@LimeGreenSocks.com>
20313             Bernd Schmidt  <bschmidt@redhat.com>
20315         * doc/extend.texi: Document more potential problems with basic asms.
20317 2016-03-18  Bernd Schmidt  <bschmidt@redhat.com>
20319         PR rtl-optimization/70278
20320         * lra-constraints.c (split_reg): Handle the case where biggest_mode is
20321         VOIDmode.
20323 2016-03-18  Jason Merrill  <jason@redhat.com>
20325         * calls.c (load_register_parameters): Fix zero size sibcall logic.
20327 2016-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
20329         * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
20330         values to 128b regs.
20332 2016-03-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
20334         PR tree-optimization/70252
20335         * tree-vect-stmts.c (supportable_widening_operation): Check resulting
20336         boolean vector has a proper number of elements.
20337         (supportable_narrowing_operation): Likewise.
20339 2016-03-18  Tom de Vries  <tom@codesourcery.com>
20341         PR ipa/70269
20342         * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
20344 2016-03-18  Jakub Jelinek  <jakub@redhat.com>
20346         * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
20347         instead of replace_rtx for DEBUG_INSNs.
20349 2016-03-18  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
20351         * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
20352         load type reservations.
20354 2016-03-17  John David Anglin  <danglin@gcc.gnu.org>
20356         PR target/70188
20357         * config/pa/constraints.md: Revert 2015-02-13 change.  Use
20358         define_constraint for "Q" and "T" constraints.
20360 2016-03-17  Evandro Menezes  <e.menezes@samsung.com>
20362         Tweak the pipeline model for Exynos M1
20364         * config/aarch64/aarch64.c (exynosm1_tunings):  Enable weak prefetching
20365         model.
20367 2016-03-17  David Malcolm  <dmalcolm@redhat.com>
20369         PR c/70264
20370         * diagnostic-show-locus.c (compatible_locations_p): Handle the case
20371         where one or both locations aren't within a line_map.
20373 2016-03-17  H.J. Lu  <hongjiu.lu@intel.com>
20375         PR driver/70192
20376         * opts.c (finish_options): Don't set flag_pie to the default if
20377         -fpic, -fPIC, -fno-pic or -fno-PIC is used.  Set flag_pic to 0
20378         if it is -1.
20380 2016-03-17  Joern Rennecke  <joern.rennecke@embecosm.com>
20382         * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
20383         true as ALL_REGS argument to replace_rtx.
20385 2016-03-17  Richard Biener  <rguenther@suse.de>
20387         PR debug/70271
20388         * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
20389         last.
20391 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
20393         PR target/70245
20394         * rtl.h (replace_rtx): Add ALL_REGS argument.
20395         * rtlanal.c (replace_rtx): Likewise.  If true, use REGNO
20396         equality and assert mode is the same, instead of just rtx pointer
20397         equality.
20398         * config/i386/i386.md (mov + arithmetics with load peephole): Pass
20399         true as ALL_REGS argument to replace_rtx.
20401 2016-03-17  Ilya Enkovich  <enkovich.gnu@gmail.com>
20403         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
20404         for boolean vector with vector mode only.
20405         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
20407 2016-03-17  Nick Clifton  <nickc@redhat.com>
20409         PR target/70162
20410         * config/rx/rx.c (rx_print_integer): Print negative constants in
20411         decimal.
20413 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
20415         PR target/70261
20416         * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
20418 2016-03-16  Richard Henderson  <rth@redhat.com>
20419             Richard Biener  <rguenth@suse.de>
20421         PR middle-end/70240
20422         PR middle-end/68215
20423         PR tree-opt/68714
20424         * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
20425         first operand as is_gimple_condexpr.
20427         PR middle-end/70240
20428         PR middle-end/68215
20429         Revert r231575
20430         2015-12-11  Eric Botcazou  <ebotcazou@adacore.com>
20431         * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
20432         Do not gimplify the result.
20433         (do_unop): Adjust call to tree_vec_extract.
20434         (do_binop): Likewise.
20435         (do_compare): Likewise.
20436         (do_plus_minus): Likewise.
20437         (do_negate): Likewise.
20438         (expand_vector_condition): Likewise.
20439         (do_cond): Likewise.
20441 2016-03-16  Richard Henderson  <rth@redhat.com>
20443         PR target/70048
20444         * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
20445         (aarch64_classify_address): Use it.
20446         (aarch64_legitimize_address): Force all subexpressions of PLUS
20447         into registers.  Simplify as (sfp+const)+reg or (reg+reg)+const.
20449 2016-03-16  Jakub Jelinek  <jakub@redhat.com>
20450             Richard Biener  <rguenth@suse.de>
20452         PR target/70245
20453         * rtlanal.c (replace_rtx): For REG, if from is a REG,
20454         return to even if only REGNO is equal, and assert
20455         mode is the same.
20457 2016-03-11  Jeff Law  <law@redhat.com>
20459         PR rtl-optimization/70224
20460         * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
20462 2016-03-16  Richard Henderson  <rth@redhat.com>
20464         PR middle-end/70199
20465         * function.h (struct function): Add has_forced_label_in_static.
20466         * gimplify.c (force_labels_r): Set it.
20467         * lto-streamer-in.c (input_struct_function_base): Read it.
20468         * lto-streamer-out.c (output_struct_function_base): Write it.
20469         * tree-inline.c (has_label_address_in_static_1): Remove.
20470         (copy_forbidden): Remove fndecl parameter; test
20471         has_forced_label_in_static.
20472         (inline_forbidden_p): Update call to copy_forbidden.
20473         (tree_versionable_function_p): Likewise.
20474         * ipa-chkp.c (chkp_instrumentable_p): Likewise.
20475         (chkp_versioning): Likewise.
20476         * tree-inline.h (copy_forbidden): Update decl.
20478 2016-03-16  Marek Polacek  <polacek@redhat.com>
20480         PR c/70093
20481         * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
20482         function being thunked if the result type doesn't have fixed size.
20483         * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
20484         doesn't have fixed size.
20486 2016-03-16  Bin Cheng  <bin.cheng@arm.com>
20488         * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
20489         reporting malformed loop nest.
20491 2016-03-16  Tom de Vries  <tom@codesourcery.com>
20493         PR lto/70187
20494         * ipa-devirt.c (possible_polymorphic_call_targets): Move
20495         nodes.length () == 1 test to before first nodes[0] access.
20497 2016-03-16  Tom de Vries  <tom@codesourcery.com>
20499         PR tree-optimization/68715
20500         * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
20501         single_pred_p test.
20503 2016-03-16  Tom de Vries  <tom@codesourcery.com>
20505         PR tree-optimization/68809
20506         * graphite-scop-detection.c (same_close_phi_node): Test if result types
20507         are the same.
20509 2016-03-16  Carlos O'Donell  <carlos@redhat.com>
20510             Sandra Loosemore  <sandra@codesourcery.com>
20512         * doc/extend.texi (Common Function Attributes): Describe ifunc impact
20513         on leaf attribute. Mention ELF interposition problems.
20515 2016-03-16  Alan Modra  <amodra@gmail.com>
20517         PR rtl-optimization/69195
20518         PR rtl-optimization/47992
20519         * ira.c (indirect_jump_optimize): Ignore artificial defs.
20520         Add comments.
20522 2016-03-15  Eric Botcazou  <ebotcazou@adacore.com>
20524         PR bootstrap/69513
20525         * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
20527 2016-03-15  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
20529         * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
20531 2016-03-15  Jakub Jelinek  <jakub@redhat.com>
20533         PR rtl-optimization/70222
20534         * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
20535         optimization if mode is different from result_mode, queue up masking
20536         of the result in outer_op.  Formatting fix.
20538         PR middle-end/70239
20539         * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
20540         of safe_grow.
20542 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
20544         PR rtl-optimization/69032
20545         * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
20546         looping backwards over basic block insns.
20548 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
20550         PR target/66660
20551         * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
20552         to non-speculative when propagating trap bits.
20554 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
20556         PR rtl-optimization/63384
20557         * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
20558         DEBUG_INSN_P insns.
20560 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
20562         PR target/64411
20563         * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
20564         factored out from ...
20565         (sched_analyze_insn): ... here.
20566         * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
20567         * sel-sched-ir.c (setup_id_implicit_regs): New function, use
20568         get_implicit_reg_pending_clobbers in it.
20569         (setup_id_reg_sets): Use setup_id_implicit_regs.
20570         (deps_init_id): Ditto.
20572 2016-03-15  Tom de Vries  <tom@codesourcery.com>
20574         PR ipa/70161
20575         * cgraph.c (cgraph_node::get_body): Save, reset and restore
20576         dump_file_name.
20577         * passes.c (execute_one_ipa_transform_pass): Add missing argument to
20578         execute_function_dump.
20579         (execute_one_pass): Don't dump function if it will be dumped after ipa
20580         transform.
20582 2016-03-15  Segher Boessenkool  <segher@kernel.crashing.org>
20584         * genrecog.c (match_pattern_2): If pred is NULL don't call
20585         safe_predicate_mode on it.
20587 2016-03-14  Jakub Jelinek  <jakub@redhat.com>
20589         PR middle-end/70219
20590         * lra-constraints.c (delete_move_and_clobber): Change assertion
20591         to also allow dregno == 0.
20593 2016-03-14  Richard Henderson  <rth@redhat.com>
20595         PR tree-opt/68714
20596         * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
20597         (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
20598         (reassociate_bb): Use optimize_vec_cond_expr; avoid
20599         optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
20600         on vectors.
20602 2016-03-14  Bernd Schmidt  <bschmidt@redhat.com>
20604         PR target/70083
20605         * lra-lives.c (process_bb_lives): Also update biggest mode for hard
20606         regs.
20607         (lra_create_live_ranges_1): initialize hard register biggest_mode to
20608         VOIDmode.
20609         * lra-constraints.c (split_reg): For hard regs, try to find the
20610         biggest single-register mode used in the function.
20612 2016-03-14  Richard Biener  <rguenther@suse.de>
20614         PR tree-optimization/56365
20615         * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
20616         constants to compare against.
20618 2016-03-14  Segher Boessenkool  <segher@kernel.crashing.org>
20620         PR target/70098
20621         * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
20622         *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
20623         (define_split for the GPR case): Use int_reg_operand instead of
20624         gpc_reg_operand for the output.
20626 2016-03-14  Tom de Vries  <tom@codesourcery.com>
20628         PR tree-optimization/70045
20629         * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
20630         create_empty_if_region_on_edge argument.
20632 2016-03-13  Eric Botcazou  <ebotcazou@adacore.com>
20634         * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
20635         (STACK_CHECK_PROTECT): Likewise.
20636         * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
20637         (STACK_CHECK_PROTECT): Likewise.
20638         * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
20639         (STACK_CHECK_PROTECT): Likewise.
20640         * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
20641         * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
20642         (STACK_CHECK_PROTECT): Likewise.
20644 2016-03-12  Andrey Belevantsev  <abel@ispras.ru>
20646         PR rtl-optimization/69307
20647         * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
20648         registers in modes that span more than one register.
20650 2016-03-12  Vladimir Makarov  <vmakarov@redhat.com>
20652         PR target/69614
20653         * lra-constraints.c (delete_move_and_clobber): New.
20654         (remove_inheritance_pseudos): Use it.
20656 2016-03-12  Eric Botcazou  <ebotcazou@adacore.com>
20658         PR ada/70017
20659         * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
20660         the libcall is LCT_THROW.
20661         * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
20662         for the checking routine.
20664 2016-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
20666         PR target/70131
20667         * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
20668         optimization if we have direct move.
20669         (roundu32<mode>2_fprs): Likewise.
20671 2016-03-11  Bernd Schmidt  <bschmidt@redhat.com>
20673         PR target/70123
20674         * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
20675         be rematerialized.
20676         (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
20677         Arguments swapped.  All callers changed.  Take reg_renumber into
20678         account, and Calculate and compare register ranges for hard regs.
20680 2016-03-11  Jeff Law  <law@redhat.com>
20682         PR tree-optimization/70190
20683         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
20684         Handle cases where we can not extract the taken edge, even though we
20685         found a constant value.
20687         PR tree-optimization/64058
20688         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
20689         (num_coalesce_pairs): Move up earlier in file.
20690         (find_coalesce_pair): Initialize the INDEX field for each pair
20691         discovered.
20692         (compare_pairs): No longer sort on the elements in each pair.
20693         Instead break ties with the index of the coalesce pair.
20695 2016-03-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20697         PR target/70002
20698         * config/aarch64/aarch64-protos.h
20699         (aarch64_save_restore_target_globals): New prototype.
20700         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
20701         Call the above when popping pragma.
20702         * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
20703         New function.
20704         (aarch64_set_current_function): Rewrite using the above.
20706 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
20708         PR tree-optimization/70177
20709         * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
20710         (extract_ops_from_tree): ... this.  In the 2 argument
20711         overload remove _1 suffix.
20712         * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
20713         (extract_ops_from_tree): ... this.
20714         * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
20715         Adjust callers.
20716         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
20717         * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
20718         extract_ops_from_tree instead of 2 operand one.
20720 2016-03-11  Alan Lawrence  <alan.lawrence@arm.com>
20722         PR tree-optimization/70013
20723         * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
20724         for constant-pool entries.
20726 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
20728         PR rtl-optimization/70174
20729         * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
20730         followed by gen_lowpart on force_reg instead of just gen_lowpart.
20732         PR tree-optimization/70169
20733         * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
20734         LABEL_DECL like VAR_DECL.  Emit nothing instead of gcc_unreachable
20735         for unknown codes.
20737 2016-03-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
20738             Jakub Jelinek  <jakub@redhat.com>
20740         PR target/70160
20741         * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
20742         of uninitialized values.
20744 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20746         * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
20747         define_expand.
20748         ("*trunctddd2"): New pattern definition.
20749         ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
20750         TD->DD truncation.
20752 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20754         * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
20755         definitions for BFP and DFP rounding modes.
20756         ("fixuns_truncdddi2", "fixuns_trunctddi2")
20757         ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
20758         ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
20759         ("fix_trunctf<mode>2"): Use the new constants instead of magic
20760         numbers.
20762 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20764         * config/s390/constraints.md: Adjust comment.
20765         ("Y"): Adjust comment.  Rename s390_decompose_shift_count to
20766         s390_decompose_addrstyle_without_index.
20767         * config/s390/predicates.md (shift_count_or_setmem_operand):
20768         Rename to setmem_operand.
20769         * config/s390/s390-protos.h
20770         (s390_decompose_shift_count): Rename to
20771         s390_decompose_addrstyle_without_index.
20772         * config/s390/s390.c (s390_decompose_shift_count)
20773         (s390_mem_constraint, print_shift_count_operand)
20774         (print_operand_address, print_operand): Rename
20775         s390_decompose_shift_count to
20776         s390_decompose_addrstyle_without_index and rename
20777         print_shift_count_operand to print_addrstyle_operand troughout the
20778         file.
20779         * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
20780         ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
20781         Rename shift_count_or_setmem_operand to setmem_operand.
20782         * config/s390/vx-builtins.md ("vec_insert<mode>")
20783         ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
20784         nonmemory_operand.
20786 2016-03-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
20788         PR target/70168
20789         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
20790         Handle overlapping retval and newval.
20792 2016-03-10  Nick Clifton  <nickc@redhat.com>
20794         PR target/7044
20795         * config/aarch64/aarch64.c
20796         (aarch64_override_options_after_change_1): When forcing
20797         flag_omit_frame_pointer to be true, use a special value that can
20798         be detected if this function is called again, thus preventing
20799         flag_omit_leaf_frame_pointer from being forced to be false.
20801 2016-03-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20803         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
20804         Set x_flag_omit_leaf_frame_pointer when handling
20805         -momit-leaf-frame-pointer.
20807 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
20809         PR lto/69589
20810         * cgraph.c (cgraph_node::dump): Dump split_part and
20811         indirect_call_target.
20812         * cgraph.h (cgraph_node): Add indirect_call_target flag.
20813         * ipa.c (has_addr_references_p): Cleanup.
20814         (is_indirect_call_target_p): New.
20815         (walk_polymorphic_call_targets): Do not mark virtuals that may be
20816         called indirectly as local.
20817         (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
20819 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
20821         PR ipa/69630
20822         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
20823         on cxa_pure_virtual.
20825 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
20827         PR lto/69589
20828         * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
20830 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
20832         PR lto/69589
20833         * tree.c (need_assembler_name_p): Only record main variant type names.
20835 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
20837         PR target/70113.
20838         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
20839         Always define to 0 or 1.
20840         (TARGET_FIX_ERR_A53_843419): New macro.
20841         * config/aarch64/aarch64-elf-raw.h
20842         (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
20843         * config/aarch64/aarch64-linux.h: Likewise.
20844         * config/aarch64/aarch64.c
20845         (aarch64_override_options_after_change_1): Do not default
20846         aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
20847         843419 is on.
20848         (aarch64_attributes): Handle fix-cortex-a53-843419.
20849         (aarch64_can_inline_p): Likewise.
20850         * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
20852 2016-03-10  Alan Lawrence  <alan.lawrence@arm.com>
20853             Jakub Jelinek  <jakub@redhat.com>
20855         * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
20856         * tree.c (array_at_struct_end_p): Do not limit to size of decl for
20857         DECL_COMMONS if flag_unconstrained_commons is set.
20858         * tree-dfa.c (get_ref_base_and_extent): Likewise.
20859         * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
20860         (funconstrained-commons): Document.
20862 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
20864         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
20865         aarch64-fusion-pairs.def and aarch64-tuning-flags.def
20867 2016-03-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
20869         * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
20870         has a proper number of elements.
20872 2016-03-10  Alan Modra  <amodra@gmail.com>
20874         PR rtl-optimization/69195
20875         PR rtl-optimization/47992
20876         * ira.c (recorded_label_ref): Delete.
20877         (update_equiv_regs): Return void.
20878         (indirect_jump_optimize): New function.
20879         (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
20880         before regstat_compute_ri.  Don't rebuild_jump_labels here.
20881         Delete update_regstat.
20883 2016-03-10  Richard Biener  <rguenther@suse.de>
20885         PR tree-optimization/70128
20886         * tree-ssa-structalias.c (set_uids_in_ptset): Set
20887         vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
20889 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
20891         PR tree-optimization/70152
20892         * tree-sra.c (replace_removed_params_ssa_names): Copy over
20893         SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
20895         PR target/70086
20896         * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
20897         instead of gen_sse2_loadlpd.
20898         * config/i386/sse.md (*vec_concatv2df): Rename to...
20899         (vec_concatv2df): ... this.
20901         PR tree-optimization/70127
20902         * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
20904 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
20906         PR c/68473
20907         PR c++/70105
20908         * diagnostic-show-locus.c (compatible_locations_p): New function.
20909         (layout::layout): Sanitize ranges using compatible_locations_p.
20911 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
20913         PR c/68473
20914         PR c++/70105
20915         * diagnostic-show-locus.c (layout_range::layout_range): Replace
20916         location_range param with three const expanded_locations * and a
20917         bool.
20918         (layout::layout): Replace call to
20919         rich_location::lazily_expand_location with get_expanded_location.
20920         Extract the range and perform location expansion here, passing
20921         the results to the layout_range ctor.
20922         * diagnostic.c (source_range::debug): Delete.
20923         * diagnostic.h (diagnostic_expand_location): Reimplement in terms
20924         of rich_location::get_expanded_location.
20925         * gcc-rich-location.c (get_range_for_expr): Delete.
20926         (gcc_rich_location::add_expr): Reimplement to avoid the
20927         rich_location::add_range overload that took a location_range,
20928         passing a location_t instead.
20930 2016-03-09  Richard Biener  <rguenther@suse.de>
20931         Jakub Jelinek  <jakub@redhat.com>
20933         PR tree-optimization/70138
20934         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
20935         Also skip vect_double_reduction_def.
20937 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
20939         PR target/70049
20940         * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
20941         if the operand is "m".
20943 2016-03-09  Nathan Sidwell  <nathan@acm.org>
20945         * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
20947 2016-03-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
20949         * config/i386/i386.c (processor_target_table): Fix cost table
20950         intialization order for znver1.
20952 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
20954         * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
20955         - becuase -> because.
20956         * ipa-reference.c (ignore_module_statics): Likewise.
20957         * cgraph.c (cgraph_node::get_body): Likewise.
20958         * ipa-inline.c (early_inliner): Likewise.
20959         * ipa-devirt.c (types_same_for_odr): Likewise.
20960         * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
20961         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
20963 2016-03-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20965         * tree-ssa-math-opts.c: Fix typo in comment.
20967 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
20969         PR target/70110
20970         * config/i386/i386.c (scalar_chain::make_vector_copies,
20971         scalar_chain::convert_reg): Call end_sequence in between
20972         get_insns and emit_conversion_insns rather than after both
20973         calls.
20975 2016-03-07  Uros Bizjak  <ubizjak@gmail.com>
20977         PR target/70064
20978         * config/i386/i386.h (machine_function): Add
20979         pc_thunk_call_expanded flag.
20980         (ix86_pc_thunk_call_expanded): New define.
20981         * config/i386/i386.md (set_got, set_got_labelled): New expanders.
20982         (*set_got): Rename insn pattern from set_got.
20983         (*set_got_labelled): Rename inst pattern from set_got_labelled.
20984         * config/i386/i386.c (ix86_compute_frame_layout): Use
20985         ix86_pc_thunk_call_expanded to prevent red-zone.
20987 2016-03-07  Martin Jambor  <mjambor@suse.cz>
20989         * hsa.h (hsa_get_ctor_statements): Declare.
20990         (hsa_get_dtor_statements): Likewise.
20991         (hsa_get_kernel_dispatch_type): Likewise.
20992         * hsa.c (hsa_get_ctor_statements): New function.
20993         (hsa_get_dtor_statements): Likewise.
20994         (hsa_get_kernel_dispatch_type): Likewise.
20995         * hsa-brig.c (hsa_cdtor_statements): Removed.
20996         (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
20997         hsa_get_dtor_statements.
20998         * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
20999         (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
21001 2016-03-07  Andre Vieira  <andre.simoesdiasvieira@arm.com>
21003         * config/arm/arm-cores.def (cortex-r8): New.
21004         * config/arm/arm-tables.opt (cortex-r8): Regenerate.
21005         * config/arm/arm-tune.md: Likewise.
21006         * doc/invoke.texi: Add cortex-r8 to list of cpu values.
21008 2016-03-07  Martin Sebor  <msebor@redhat.com>
21010         PR rtl-optimization/19705
21011         * doc/invoke.texi (Options That Control Optimization): Clarify
21012         -fno-branch-count-reg.
21014 2016-02-26  Richard Biener  <rguenther@suse.de>
21015             Jeff Law  <law@redhat.com>
21017         PR tree-optimization/69740
21018         * cfghooks.c (remove_edge): Request loop fixups if we delete
21019         an edge that might turn an irreducible loop into a natural
21020         loop.
21021         * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
21022         Move after definition of loops_state_clear.
21024 2016-03-07  Bin Cheng  <bin.cheng@arm.com>
21026         PR rtl-optimization/69052
21027         * rtlanal.c (commutative_operand_precedence): Set higher precedence
21028         to CONST_WIDE_INT.
21030 2016-03-07  Tom de Vries  <tom@codesourcery.com>
21032         PR tree-optimization/70116
21033         * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
21034         is_tm_ending stmts and ubsan/asan internal functions.
21035         (find_duplicate): Use it.  Don't test is_tm_ending here.
21037 2016-03-07  Richard Biener  <rguenther@suse.de>
21039         PR tree-optimization/70115
21040         * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
21041         (propagate_constants_for_unrolling): Use replace_uses_by.
21043 2016-03-07  Nathan Sidwell  <nathan@codesourcery.com>
21045         PR middle-end/69916
21046         * omp-low.c (struct oacc_loop): Add ifns.
21047         (new_oacc_loop_raw): Initialize it.
21048         (finish_oacc_loop): Clear mask & flags if no ifns.
21049         (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
21050         (oacc_loop_xform_loop): Add ifns arg & adjust.
21051         (oacc_loop_process): Adjust oacc_loop_xform_loop call.
21053 2016-03-07  Richard Henderson  <rth@redhat.com>
21055         PR rtl-opt/70061
21056         * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
21057         (insert_value_copy_on_edge): Likewise.
21059 2016-03-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21061         * config/arm/arm_neon.h: Show error if using with soft-float ABI.
21063 2016-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21065         PR target/62281
21066         * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
21068 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
21070         * config/i386/i386.c (znver1_cost): Fix Multiply cost.
21072 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
21074         Fix sseimul type attribute.
21075         * config/i386/znver1.md
21076         (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
21077         znver1_sseimul_avx256_load) : Fix the type attribute.
21078         (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
21079         pipe usage and latency.
21081 2016-03-05  Jakub Jelinek  <jakub@redhat.com>
21083         PR c++/70084
21084         * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
21085         of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
21086         to the right type.
21088 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
21090         PR c/69973
21091         * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
21093         PR rtl-optimization/69941
21094         * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
21095         the reg share its mode.
21097 2016-03-04  Jeff Law  <law@redhat.com>
21099         PR tree-optimization/69196
21100         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
21101         If the both SSA_NAMEs are anonymous, then consider them unassociated
21102         and include the PHI in the statement count.
21104 2016-03-05  Tom de Vries  <tom@codesourcery.com>
21106         * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
21107         construct in oacc routine.  Check for oacc region in oacc routine.
21109 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
21111         PR target/70062
21112         * config/i386/i386.c (decide_alg): Add RECUR argument.  Revert
21113         2016-02-22 changes, instead don't recurse if RECUR is already true.
21114         Don't change *dynamic_check if RECUR.  Adjust recursive caller
21115         to pass true to the new argument.
21116         (ix86_expand_set_or_movmem): Adjust decide_alg caller.
21118         PR target/70059
21119         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
21120         <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
21121         fixes.
21122         (vec_set_hi_<mode><mask_name>): Likewise.  Swap VEC_CONCAT operands.
21124 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
21126         PR rtl-optimization/57676
21127         * lra-assigns.c (lra_assign): Guard test for maximum iterations
21128         with flag_checking.
21130 2016-03-04  Ilya Enkovich  <enkovich.gnu@gmail.com>
21132         * tree-vect-patterns.c (search_type_for_mask): Handle
21133         comparison of booleans.
21135 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
21137         * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
21138         Fix @xref usage.
21140         PR debug/69947
21141         * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
21142         all other ops that have dw_val_class_die_ref operands,
21143         and DW_OP_GNU_entry_value.
21145 2016-03-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21147         PR rtl-optimization/69904
21148         * config/arm/arm.c (arm_cannot_copy_insn_p):
21149         Return true for load-exclusive instructions.
21151 2016-03-03  Jakub Jelinek  <jakub@redhat.com>
21153         PR target/70021
21154         * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
21155         argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
21156         the pattern no matter if it is used just by non-pattern, pattern
21157         or mix thereof.
21158         (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
21159         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
21160         oprnd1 def_stmt is in pattern, don't look through it.
21162 2016-03-03  Marek Polacek  <polacek@redhat.com>
21164         PR middle-end/70050
21165         * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
21167 2016-03-03  Martin Liska  <mliska@suse.cz>
21169         PR tree-optimization/70043
21170         * tree-vect-loop.c (optimize_mask_stores): Move iterator to
21171         previous statement if we see a debug statement.
21173 2016-03-03  Richard Biener  <rguenther@suse.de>
21175         PR tree-optimization/55936
21176         * tree-vrp.c (compare_name_with_value): Add use_equiv_p
21177         parameter and guard unsafe equivalence use.
21178         (vrp_evaluate_conditional_warnv_with_ops): Always use
21179         safe equivalences but not via the quadratic compare_names
21180         helper.
21182 2016-03-03  Michael Collison  <michael.collison@linaro.org>
21184         PR target/70014
21185         * config/arm/arm.md (*subsi3_carryin_const): Change predicate
21186         for operand 1 to s_register_operand. Change predicate for operand
21187         2 to arm_not_immediate_operand.
21189 2016-03-02  H.J. Lu  <hongjiu.lu@intel.com>
21191         * doc/tm.texi: Regenerated.
21193 2016-03-02  Richard Henderson  <rth@redhat.com>
21195         PR rtl-opt/67145
21196         * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
21197         simplification when all args are positive non-fixed registers.
21199 2016-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
21201         * target.def (lra_p): Specify that new ports should use LRA.
21203 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
21205         PR libgomp/69555
21206         * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
21207         gimplify_type_sizes the type they refer to.
21208         (omp_notice_variable): Handle reference vars to VLAs.
21209         * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
21210         reference to VLA decls in the second pass instead of first pass.
21212 2016-03-02  Tom de Vries  <tom@codesourcery.com>
21214         PR tree-optimization/68659
21215         * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
21216         new_expr == NULL_TREE.
21217         (get_new_name): Handle ADDR_EXPR.
21219 2016-03-02  Bin Cheng  <bin.cheng@arm.com>
21221         PR rtl-optimization/69052
21222         * loop-invariant.c (canonicalize_address): New function.
21223         (inv_can_prop_to_addr_use): Check validity of address expression
21224         which is canonicalized by above function.
21226 2016-03-02  Alan Modra  <amodra@gmail.com>
21228         PR ipa/69990
21229         * ipa-icf.c (sem_variable::merge): Do not merge an alias with
21230         larger alignment.
21232 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
21234         PR target/70028
21235         * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
21236         (*movhi_internal): Put mask moves from and to memory separately
21237         from moves from/to GPRs.
21239 2016-03-02  Richard Biener  <rguenther@suse.de>
21241         * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
21242         GENERIC expressions in GIMPLE.
21244 2016-03-02  Richard Biener  <rguenther@suse.de>
21246         * config/i386/i386.c (type_natural_mode): Fix typo.
21248 2016-03-02  Nick Clifton  <nickc@redhat.com>
21250         * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
21252 2016-03-02  Richard Biener  <rguenther@suse.de>
21253             Uros Bizjak  <ubizjak@gmail.com>
21255         PR target/67278
21256         * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
21258 2016-03-02  Richard Biener  <rguenther@suse.de>
21260         PR middle-end/67278
21261         * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
21263 2016-03-02  Marek Polacek  <polacek@redhat.com>
21265         PR c/67854
21266         * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
21267         "is promoted to" warning.
21269 2016-03-01  DJ Delorie  <dj@redhat.com>
21271         * config.gcc: Deprecate mep-*.
21273 2016-03-01  Vladimir Makarov  <vmakarov@redhat.com>
21275         PR middle-end/70025
21276         * lra-constraints.c (regno_val_use_in): New.
21277         (match_reload): Use it instead of regno_use_in.
21279 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
21281         PR rtl-optimization/70007
21282         * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
21283         references present in REG_EQUAL notes attached to non-SET patterns.
21285 2016-03-01  Jeff Law  <law@redhat.com>
21287         PR tree-optimization/69196
21288         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
21289         Appropriately clamp the number of statements to copy when the
21290         thread path does not traverse a loop backedge.
21292         PR tree-optimization/69196
21293         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
21294         Do count some PHIs in the thread path against the insn count.  Decrease
21295         final statement count by one as the control statement in the last
21296         block will get removed.  Remove special cased code for handling PHIs
21297         in the last block.
21299 2016-03-01  Uros Bizjak  <ubizjak@gmail.com>
21301         PR target/70027
21302         * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
21303         asm dialect alternatives to explicit GOTPCREL calls.
21305 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
21307         PR ada/70017
21308         * ira.c (do_reload): Issue warning for generic stack checking here...
21309         * reload1.c (reload): ...instead of here and streamline it.
21311 2016-03-01  Nick Clifton  <nickc@redhat.com>
21313         * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
21315 2016-03-01  Richard Biener  <rguenther@suse.de>
21317         PR tree-optimization/69983
21318         * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
21319         types and fall back to operand_equal_p.
21321 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21323         Revert
21324         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21326         * config/s390/constraints.md ("jm8"): New constraint.
21327         * config/s390/predicates.md ("const_int_8bitset_operand"): New
21328         predicate.
21329         * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
21330         into ...
21331         ("*setmem_long<setmem_and>"): New pattern.
21332         ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
21333         into ...
21334         ("*setmem_long_31z<setmem_and>"): New pattern.
21335         * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
21336         New substitution rules with the required attributes.
21339 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21341         Revert
21342         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21344         * gensupport.c (process_substs_on_one_elem): Split loop to
21345         complete mark_operands_used_in_match_dup on all expressions in the
21346         vector first.
21347         (adjust_operands_numbers): Inline into process_substs_on_one_elem
21348         and remove function.
21350 2016-03-01  Richard Biener  <rguenther@suse.de>
21352         PR middle-end/70022
21353         * fold-const.c (fold_indirect_ref_1): Fix range checking for
21354         vector BIT_FIELD_REF extract.
21356 2016-03-01  Richard Biener  <rguenther@suse.de>
21358         PR tree-optimization/69994
21359         * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
21361 2016-03-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
21363         PR tree-optimization/69956
21364         * tree-vect-stmts.c (supportable_widening_operation): Support
21365         multi-step conversion of boolean vectors.
21366         (supportable_narrowing_operation): Likewise.
21368 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21370         * config/s390/s390.c (s390_decompose_address): Don't accept SImode
21371         anymore.
21373 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21375         * config/s390/subst.md (DSI_VI): New mode iterator.
21376         ("addr_style_op_subst"): Use DSI_VI instead of DSI.
21377         * config/s390/vector.md ("vec_set<mode>"): Move expander before
21378         the insn definition.
21379         ("*vec_set<mode>"): Change predicate and add alternative to
21380         support only either register or const_int operands as element
21381         selector.
21382         ("*vec_set<mode>_plus"): New pattern to support reg + const_int
21383         operands.
21384         ("vec_extract<mode>"): New expander.
21385         ("*vec_extract<mode>"): New insn definition supporting reg and
21386         const_int element selectors.
21387         ("*vec_extract<mode>_plus"): New insn definition supporting
21388         reg+const_int element selectors.
21389         ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
21390         following expander+insn definition.
21391         ("<vec_shifts_name><mode>3"): New expander.
21392         ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
21394 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21396         * config/s390/s390.md ("*tabort_1"): Change predicate to
21397         nonmemory_operand.  Add a second alternative to cover
21398         register as well as const int operands.
21399         ("*tabort_1_plus"): New pattern definition.
21401 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21403         * config/s390/s390.md ("*ashrdi3_cc_31")
21404         ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
21405         ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
21406         Merge insn definitions into ...
21407         ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
21408         New pattern definition.
21409         ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
21410         ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
21411         ("*ashr<mode>3_and"): Merge insn definitions into ...
21412         ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
21413         New pattern definition.
21414         * config/s390/subst.md ("addr_style_op_cc_subst")
21415         ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
21416         substitutions patterns plus attributes.
21417         Add ashiftrt to SUBST iterator.
21419 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21421         * config/s390/s390.md ("<shift><mode>3"): Change predicate of
21422         op2 to nonmemory_operand.
21423         ("*<shift>di3_31", "*<shift>di3_31_and"):
21424         Merge into single pattern definition ...
21425         ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
21426         ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
21427         pattern definition ...
21428         ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
21429         * config/s390/subst.md: Add ashift and lshiftrt to SUBST
21430         iterator.
21432 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21434         * config/s390/predicates.md (const_int_6bitset_operand): New
21435         predicate.
21436         * config/s390/s390.md: Include subst.md.
21437         ("rotl<mode>3"): New expander.
21438         ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
21439         ...
21440         ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
21441         * config/s390/subst.md: New file.
21443 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21445         * config/s390/s390.md ("op_type", "atype", "length" attributes):
21446         Remove RRR type.  It doesn't really exist.
21447         ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
21448         attributes.
21449         ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
21450         ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
21451         ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
21452         ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
21453         ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
21454         ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
21455         `enabled' attribute.
21457 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21459         * gensupport.c (process_substs_on_one_elem): Split loop to
21460         complete mark_operands_used_in_match_dup on all expressions in the
21461         vector first.
21462         (adjust_operands_numbers): Inline into process_substs_on_one_elem
21463         and remove function.
21465 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
21467         PR target/69706
21468         * config/sparc/sparc.c (NWORDS_UP): Rename to...
21469         (CEIL_NWORDS): ...this.  Use CEIL macro.
21470         (compute_fp_layout): Adjust to above renaming.
21471         (function_arg_union_value): Likewise.
21472         (sparc_arg_partial_bytes): Likewise.
21473         (sparc_function_arg_advance): Likewise.
21475 2016-02-29  Jeff Law  <law@redhat.com>
21477         PR tree-optimization/70005
21478         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
21479         where an object with a boolean range is compared against a value
21480         outside [0..1].
21482         PR tree-optimization/69999
21483         * gimple-ssa-split-paths.c (split_paths): When duplicating a block
21484         with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
21485         loop cleanups.
21487 2016-02-29  Richard Biener  <rguenther@suse.de>
21489         PR tree-optimization/69994
21490         * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
21491         (get_unary_op): Look through nop conversions.
21492         (ops_equal_values_p): New function, look for equality diregarding
21493         nop conversions.
21494         (eliminate_plus_minus_pair): Use ops_equal_values_p
21495         (repropagate_negates): Do not use get_unary_op here.
21497 2016-02-29  Martin Liska  <mliska@suse.cz>
21499         * system.h: Poison ENABLE_CHECKING macro.
21501 2016-02-29  Martin Liska  <mliska@suse.cz>
21503         * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
21504         is presented in dump flags.
21505         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
21506         (hsa_regalloc): Likewise.
21508 2016-02-19  Richard Biener  <rguenther@suse.de>
21510         PR tree-optimization/69980
21511         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
21512         permutation of those we need to keep.
21514 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
21516         PR target/69706
21517         * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
21518         (NWORDS_UP): ...this
21519         (init_cumulative_args): Minor tweaks.
21520         (sparc_promote_function_mode): Likewise.
21521         (scan_record_type): Delete.
21522         (traverse_record_type): New function template.
21523         (classify_data_t): New structure type.
21524         (classify_registers): New inline function.
21525         (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
21526         exhausted.  Instantiate traverse_record_type on classify_registers and
21527         deal with the case of a structure passed in slot #15 with no FP field
21528         in the first word.
21529         (assign_data_t): New structure type.
21530         (compute_int_layout): New static function.
21531         (compute_fp_layout): Likewise.
21532         (count_registers): New inline function.
21533         (assign_int_registers): New static function.
21534         (assign_fp_registers): Likewise.
21535         (assign_registers): New inline function.
21536         (function_arg_record_value_1): Delete.
21537         (function_arg_record_value_2): Likewise.
21538         (function_arg_record_value_3): Likewise.
21539         (function_arg_record_value): Adjust to above changes.  Instantiate
21540         traverse_record_type on count_registers to first count the number of
21541         registers to be used and then on assign_registers to assign them.
21542         (function_arg_union_value): Adjust to above renaming.
21543         (sparc_function_arg_1); Minor tweaks.  Remove commented out code.
21544         (sparc_arg_partial_bytes): Adjust to above renaming.  Deal with the
21545         case of a structure passed in slot #15
21546         (sparc_function_arg_advance): Likewise.
21547         (function_arg_padding): Minor tweak.
21549 2016-02-29  Richard Biener  <rguenther@suse.de>
21551         PR tree-optimization/69720
21552         * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
21553         the adjustment_def path for possibly vectorized defs.
21554         (vect_create_epilog_for_reduction): Handle vectorized initial
21555         defs properly.
21557 2016-02-28  Eric Botcazou  <ebotcazou@adacore.com>
21559         * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
21561 2016-02-27  Jeff Law  <law@redhat.com>
21563         Revert
21564         2016-02-26  Richard Biener  <rguenther@suse.de>
21565                     Jeff Law  <law@redhat.com>
21567         PR tree-optimization/69740
21568         * cfghooks.c (remove_edge): Request loop fixups if we delete
21569         an edge that might turn an irreducible loop into a natural
21570         loop.
21572 2016-02-27  Jakub Jelinek  <jakub@redhat.com>
21574         PR rtl-optimization/69896
21575         * tree-vect-generic.c (get_compute_type): Avoid single element
21576         vector types.
21578 2016-02-26  Evandro Menezes  <e.menezes@samsung.com>
21580         Rename the AArch64 tuning option and related functions to enable the
21581         Newton series for the reciprocal square root to reflect its
21582         approximative characteristic.
21584         * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
21585         function to "aarch64_emit_approx_rsqrt".
21586         * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
21587         AARCH64_EXTRA_TUNE_APPROX_RSQRT.
21588         * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
21589         (xgene1_tunings): Likewise.
21590         (use_rsqrt_p): Likewise.
21591         (aarch64_emit_swrsqrt): Use new function name.
21592         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
21593         * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
21594         text explaining this option.
21595         * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
21597 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
21599         PR target/69969
21600         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
21601         complain about -mallow-movmisalign without -mvsx if
21602         TARGET_ALLOW_MOVMISALIGN was not set explicitly.
21604 2016-02-26  Joel Sherrill  <joel@rtems.org>
21606         * config.gcc: Add x86_64-*-rtems*.
21607         * config/i386/rtems-64.h: New file.
21609 2016-02-26  Joel Sherrill  <joel@rtems.org>
21611         * config.gcc: Add aarch64-*-rtems*.
21612         * config/aarch64/rtems.h: New file.
21614 2016-02-26  Segher Boessenkool  <segher@kernel.crashing.org>
21616         PR target/69946
21617         * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
21618         shift amount using %h.  Add comment.
21620 2016-02-26  Richard Biener  <rguenther@suse.de>
21621             Jeff Law  <law@redhat.com>
21623         PR tree-optimization/69740
21624         * cfghooks.c (remove_edge): Request loop fixups if we delete
21625         an edge that might turn an irreducible loop into a natural
21626         loop.
21628 2016-02-26  Martin Jambor  <mjambor@suse.cz>
21630         PR middle-end/69920
21631         * tree-sra.c (sra_modify_assign): Do not remove loads of
21632         uninitialized aggregates to SSA_NAMEs.
21634 2016-02-26  Richard Henderson  <rth@redhat.com>
21636         PR target/69709
21637         * config/s390/s390.md (risbg and risbgn splitters): Allocate new
21638         pseudo in case the target rtx matches the source of the left
21639         shift.
21641 2016-02-26  Martin Jambor  <mjambor@suse.cz>
21643         PR hsa/69568
21644         * hsa.h (hsa_type_packed_p): Declare.
21645         * hsa.c (hsa_type_packed_p): New function.
21646         * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
21647         loads.
21648         (gen_hsa_insns_for_store): Use hsa_type_packed_p.
21649         * hsa-brig.c (emit_basic_insn): Likewise.
21651 2016-02-26  Martin Jambor  <mjambor@suse.cz>
21653         pr hsa/69674
21654         * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
21655         pointers.
21656         (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
21658 2016-02-26  Martin Jambor  <mjambor@suse.cz>
21660         * hsa.h (is_a_helper): New overload for hsa_op_immed for
21661         hsa_op_with_type operands.
21662         (hsa_unsigned_type_for_type): Declare.
21663         * hsa.c (hsa_unsigned_type_for_type): New function.
21664         * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
21665         (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
21666         the finalizer.  Do not emit extra move.
21668 2016-02-26  Martin Jambor  <mjambor@suse.cz>
21670         * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
21671         atomic operations in private segment.
21673 2016-02-26  Martin Jambor  <mjambor@suse.cz>
21675         * omp-low.c (grid_find_ungridifiable_statement): Store problematic
21676         statements to wi->info.  Also disallow omp simd constructs.
21677         (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
21678         for not gridifying.  Dump special string for omp_for.
21680 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21682         PR target/69245
21683         * config/aarch64/aarch64.c (aarch64_set_current_function):
21684         Save/restore target globals when switching to
21685         target_option_default_node.
21687 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21689         PR target/69613
21690         * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
21691         Return 0 if !SHIFT_COUNT_TRUNCATED.
21693 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
21694             Eric Botcazou  <ebotcazou@adacore.com>
21696         PR rtl-optimization/69891
21697         * dse.c (scan_insn): If we can't figure out memset arguments
21698         or they are non-constant, call clear_rhs_from_active_local_stores.
21700 2016-02-26  Martin Liska  <mliska@suse.cz>
21702         * doc/extend.texi: Mention clog10, clog10f an clog10l
21703         in Builtins section.
21705 2016-02-26  Martin Liska  <mliska@suse.cz>
21707         * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
21708         CHECKING_P.
21709         (resolve_args_picking_1): Likewise.
21710         * dwarf2out.h (struct GTY): Likewise.
21712 2016-02-26  Martin Liska  <mliska@suse.cz>
21714         * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
21715         with flag_checking.
21716         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
21718 2016-02-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
21719             Martin Liska  <mliska@suse.cz>
21721         * doc/install.texi: Mention --enable-valgrind-annotations.
21723 2016-02-26  Richard Biener  <rguenther@suse.de>
21725         PR tree-optimization/69551
21726         * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
21727         looking through aliases adjust DECL_PT_UID to refer to the
21728         ultimate alias target.
21730 2016-02-25  Martin Liska  <mliska@suse.cz>
21732         PR middle-end/69919
21733         * alloc-pool.c (after_memory_report): New variable.
21734         * alloc-pool.h (base_pool_allocator ::release): Do not use
21735         the infrastructure if after_memory_report.
21736         * toplev.c (toplev::main): Mark after memory report.
21738 2016-02-25  Richard Biener  <rguenther@suse.de>
21740         PR tree-optimization/48795
21741         * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
21743 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
21745         PR driver/68463
21746         * config/gnu-user.h (CRTOFFLOADBEGIN): Define.  Add crtoffloadbegin.o if
21747         offloading is enabled and -fopenacc or -fopenmp is specified.
21748         (CRTOFFLOADEND): Likewise.
21749         (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
21750         (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
21751         * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
21752         (offload_objects_file_name): New static var.
21753         (tool_cleanup): Remove offload_objects_file_name file.
21754         (find_offloadbeginend): Replace with ...
21755         (find_crtoffloadtable): ... this.
21756         (run_gcc): Remove offload_argc and offload_argv.
21757         Get offload_objects_file_name from -foffload-objects=... option.
21758         Read names of object files with offload from this file, pass them to
21759         compile_images_for_offload_targets.  Don't call find_offloadbeginend and
21760         don't pass offloadbegin and offloadend to the linker.  Don't pass
21761         offload non-LTO files to the linker, because now they're not claimed.
21763 2016-02-25  Jan Hubicka  <hubicka@ucw.cz>
21765         PR ipa/69630
21766         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
21767         on builtin_unreachable.
21769 2016-02-25  Jakub Jelinek  <jakub@redhat.com>
21771         PR rtl-optimization/69896
21772         * regcprop.c: Include cfgrtl.h.
21773         (copyprop_hardreg_forward_1): If noop_p insn uses narrower
21774         than remembered mode, either delete it (if noop_move_p), or
21775         treat like copy_p but not noop_p instruction.
21777 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
21779         PR debug/69705
21780         * dwarf2out.c (gen_variable_die): Work around buggy LTO
21781         - allow NULL decl for Fortran DW_TAG_common_block variables.
21783 2016-02-24  Jason Merrill  <jason@redhat.com>
21785         * common.opt (flifetime-dse): Add -flifetime-dse=1.
21787 2016-02-24  Richard Biener  <rguenther@suse.de>
21788             Jakub Jelinek  <jakub@redhat.com>
21790         PR middle-end/69760
21791         * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
21792         conditionally executed ops to well-defined overflow behavior.
21794 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
21796         PR middle-end/69915
21797         * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
21798         elements.
21800 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21802         PR rtl-optimization/69886
21803         * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
21804         argument.  Use it when checking validity of set instructions.
21805         (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
21806         (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
21807         callsite.
21808         * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
21809         * store-motion.c (find_moveable_store): Update
21810         can_assign_to_reg_without_clobbers_p callsite.
21812 2016-02-24  Richard Biener  <rguenther@suse.de>
21814         PR middle-end/68963
21815         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
21816         bogus check.
21817         (record_nonwrapping_iv): Do not fall back to the low/high bound
21818         for non-constant IV bases if the stmt is not always executed.
21820 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21822         * config/arm/arm-cores.def (cortex-a32): New entry.
21823         * config/arm/arm-tables.opt: Regenerate.
21824         * config/arm/arm-tune.md: Regenerate.
21825         * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
21826         * config/arm/t-aprofile: Handle mcpu=cortex-a32.
21827         * doc/invoke.texi (ARM Options): Document cortex-a32 as value
21828         for -mcpu and -mtune.
21830 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21832         PR target/69875
21833         * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
21834         * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
21835         * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
21836         (atomic_loaddi_1): Delete.
21837         (atomic_loaddi): Rewrite expander using the above changes.
21839 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
21841         PR c/69918
21842         * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
21843         2 to 3.
21845 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
21846             Richard Biener  <rguenth@suse.de>
21848         PR middle-end/69909
21849         * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
21850         set_mem_attributes if tem is SSA_NAME which got expanded
21851         as a MEM.
21853 2016-02-24  Richard Biener  <rguenther@suse.de>
21855         PR tree-optimization/69907
21856         * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
21857         end of permutations for BB vectorization.
21859 2016-02-24  Christian Bruel  <christian.bruel@st.com>
21861         * config/arm/arm-c.c (arm_option_override): Initialize
21862         target_option_current_node.
21863         * config/arm/arm.c (arm_pragma_target_parse): Replace
21864         build_target_option_node call by target_option_current_node.
21865         Set target_option_current_node.
21866         Fix comments.
21868 2016-02-23  David Edelsohn  <dje.gcc@gmail.com>
21870         PR target/69810
21871         * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
21872         define_insn_and_split to define_insn.
21873         (zero_extendqi<mode>2_dot2): Same.
21874         (extendqi<mode>2_dot): Same.
21875         (extendqi<mode>2_dot2): Same.
21877 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
21879         * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
21880         and add bypass for AES{D,E} and AESMC pairs.
21881         * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
21882         and AESMC pairs.
21884 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
21886         * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
21887         series for reciprocal square root in Exynos M1.
21889 2016-02-23  Martin Sebor  <msebor@redhat.com>
21891         PR c/69759
21892         * doc/extend.texi (Other Builtins): Document __builtin_alloca and
21893         __builtin_alloca_with_align.
21895 2016-02-23  Richard Henderson  <rth@redhat.com>
21897         * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
21898         (ix86_register_pragmas): Remove __seg_tls.
21899         * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
21900         * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
21901         (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
21902         (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
21903         (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
21904         * doc/extend.texi (__seg_tls): Remove item.
21906 2016-02-23  Richard Biener  <rguenther@suse.de>
21908         * alloc-pool.h (struct allocation_object): Make id member
21909         conditional on CHECKING_P again.
21910         (get_instance): Adjust.
21911         (base_pool_allocator): Likewise.
21913 2016-02-23  Thomas Schwinge  <thomas@codesourcery.com>
21915         * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
21916         (parallelize_loops): In OpenACC kernels mode, set n_threads to
21917         zero.
21918         (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
21919         flag_openacc.
21920         * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
21922 2016-02-23  Richard Biener  <rguenther@suse.de>
21924         * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
21925         * bitmap.h (struct bitmap_usage): Likewise.
21926         (bitmap_move): Declare.
21927         * bitmap.c (register_overhead): Take size_t argument.
21928         (bitmap_move): New function.
21929         * df-problems.c (df_rd_transfer_function): Use bitmap_move
21930         to properly account overhead.
21931         * tree.c (free_node): Use tree_size.
21933 2016-02-23  Jakub Jelinek  <jakub@redhat.com>
21935         PR c++/69902
21936         * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
21937         when inverting comparison.
21939         PR c/69900
21940         * common.opt (Wunreachable-code): Add Warning flag.
21942 2016-02-23  Mark Wielaard  <mjw@redhat.com>
21943             Jakub Jelinek  <jakub@redhat.com>
21945         PR c/69911
21946         * cgraphunit.c (check_global_declaration): Check main_input_filename
21947         and DECL_SOURCE_FILE are not NULL.
21949 2016-02-23  Martin Jambor  <mjambor@suse.cz>
21951         PR tree-optimization/69666
21952         * tree-sra.c (sra_modify_assign): Do not attempt to create
21953         default_def replacements for unscalarizable regions.
21955 2016-02-20  Mark Wielaard  <mjw@redhat.com>
21957         PR c/28901
21958         * cgraphunit.c (check_global_declaration): Check level of
21959         warn_unused_const_variable and main_input_filename.
21960         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
21961         (-Wunused-variable): For C implies -Wunused-const-variable=1.
21962         (-Wunused-const-variable): Explain levels 1 and 2.
21964 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
21966         PR target/69888
21967         * config/i386/i386.c (decide_alg): Ensure we don't recurse with
21968         identical arguments.  Formatting and spelling fixes.
21970         PR target/69885
21971         * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
21972         be specified.
21974         PR target/69894
21975         PR target/69895
21976         * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
21977         and m68k-devices.def.
21978         * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
21979         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
21981 2016-02-22  Cesar Philippidis  <cesar@codesourcery.com>
21983         * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
21984         and HImode registers.
21986 2016-02-22  Richard Biener  <rguenther@suse.de>
21988         PR tree-optimization/69882
21989         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
21990         preserve permutations present because of gaps.
21991         (vect_supported_load_permutation_p): Always continue checking
21992         permutations after vect_attempt_slp_rearrange_stmts.
21994 2016-02-22  Bin Cheng  <bin.cheng@arm.com>
21996         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
21997         min_profitable_estimate, rather than min_profitable_iters.
21999 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
22001         PR target/69885
22002         * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
22003         SImode for last match_operand.
22005 2016-02-22  Martin Liska  <mliska@suse.cz>
22007         * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
22008         return bitsize - 1 as the return value.
22010 2016-02-22  Oleg Endo  <olegendo@gcc.gnu.org>
22012         PR target/69806
22013         PR target/54089
22014         * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
22015         Handle negative shift counts.
22016         * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
22017         force_reg on the shift constant.
22018         (lshrsi3): Likewise.  Expand into lshrsi3_n* instead of lshrsi3_d.
22019         (lshrsi3_d): Handle negative shift counts.
22021 2016-02-22  Richard Biener  <rguenther@suse.de>
22022             Tom de Vries  <tom@codesourcery.com>
22024         * graph.c: Include dumpfile.h.
22025         (print_graph_cfg): Split into three overloads.
22026         * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
22028 2016-02-22  Tom de Vries  <tom@codesourcery.com>
22030         * gdbhooks.py (class DumpFn): Add and instantiate, adding command
22031         dump-fn.
22033 2016-02-22  Richard Biener  <rguenther@suse.de>
22035         PR ipa/37448
22036         * ipa-inline-transform.c (inline_call): When not updating
22037         overall summaries adjust self size by the growth estimate.
22038         * ipa-inline.c (inline_to_all_callers_1): Add to the callers
22039         hash-set, do not update overall summaries here.  Renamed from ...
22040         (inline_to_all_callers): ... this which is now wrapping the
22041         above and performing delayed overall summary update.
22042         (early_inline_small_functions): Delay updating of the overall
22043         summary.
22045 2016-02-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
22047         * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
22048         variable.
22050 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
22052         PR driver/69805
22053         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
22054         :%* in %:gt() argument.
22055         (greater_than_spec_func): Adjust for expecting only numbers,
22056         if there are more than two numbers, compare the last two.
22058 2016-02-19  Jonathan Wakely  <jwakely@redhat.com>
22060         * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
22061         -Wnarrowing with -std.
22063 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
22065         PR c++/69851
22066         * expr.c (store_field): Don't use bit-field path if exp is
22067         COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
22068         different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
22069         and the assignment can be performed by bitwise copy.  Formatting
22070         fix.
22072         PR middle-end/69838
22073         * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
22074         call copy_reg_eh_region_note_forward on before and/or after sequences
22075         and remove note from insn if it no longer can throw.
22077         PR target/69820
22078         * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
22079         if TARGET_AVX512BW.
22081 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
22083         * config/s390/vector.md: Add missing commutative operand markers
22084         to the patterns which qualify for one.
22085         * config/s390/vx-builtins.md: Likewise.
22087 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
22089         * config/s390/vector.md (VI, VI_QHS): Add single element vector
22090         types to mode iterators.
22091         (vec_double): ... and mode attribute.
22092         * config/s390/vx-builtins.md (non_vec_int): Likewise.
22094 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
22096         * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
22097         Change the predicate of op2 from nonimmediate to general and let
22098         reload fix it if necessary.
22100 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
22102         * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
22104 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
22106         * config/s390/s390.c (s390_expand_vcond): Use the compare operand
22107         mode.
22109 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
22111         * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
22112         * config/s390/s390.c (s390_expand_vec_movstr): New function.
22113         * config/s390/s390.md ("movstr<P:mode>"): Call
22114         s390_expand_vec_movstr.
22116 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
22118         * config/s390/s390.md: Add missing output modifier for operand 1
22119         to print it as address properly.
22121 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
22123         * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
22124         * config/s390/2964.md: New file.
22125         * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
22126         of insn grouping attributes depending on the CPU level.
22127         (s390_get_unit_mask): New function.
22128         (s390_sched_score): Remove the OOO from the scheduling macros.
22129         Add loop to calculate a score for the instruction mix.
22130         (s390_sched_reorder): Likewise plus improve debug output.
22131         (s390_sched_variable_issue): Rename macros as above.  Calculate
22132         the unit distances after actually scheduling an insn.  Improve
22133         debug output.
22134         (s390_sched_init): Clear last_scheduled_unit_distance array.
22135         * config/s390/s390.md: Include 2964.md.
22137 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
22139         PR target/69671
22140         * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
22141         *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
22142         *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
22143         *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
22144         *avx512f_<code>v8div16qi2_mask_1): New insns.
22146 2016-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
22148         PR target/68404
22149         * config/rs6000/predicates.md (fusion_gpr_addis): Revert
22150         2016-02-09 change.
22152         * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
22153         earlyclobber from target.  Use wF constraint for fused memory
22154         address.
22155         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
22157 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
22158             Martin Liska  <mliska@suse.cz>
22160         PR sanitizer/69863
22161         * cfgexpand.c (asan_sanitize_stack_p): New function.
22162         (partition_stack_vars): Use the function.
22163         (expand_stack_vars): Likewise.
22164         (defer_stack_allocation): Likewise.
22165         (expand_used_vars): Likewise.
22167 2016-02-18  Richard Biener  <rguenther@suse.de>
22169         PR middle-end/69553
22170         * fold-const.c (operand_equal_p): Properly compare offsets for
22171         IMAGPART_EXPR and ARRAY_REF.
22173 2016-02-18  Nick Clifton  <nickc@redhat.com>
22175         PR target/62254
22176         PR target/69610
22177         * config/arm/arm.c (arm_option_override_internal): Disable
22178         interworking if the target does not support thumb instructions.
22179         (arm_reload_in_hi): Handle the case where a register to register
22180         move needs reloading because there is no simple pattern to handle
22181         it.
22182         (arm_reload_out_hi): Likewise.
22184 2016-02-18  Richard Biener  <rguenther@suse.de>
22186         PR middle-end/69854
22187         * match.pd: Don't use fold_binary or fold_unary for folding
22188         constants.
22190 2016-02-17  Jakub Jelinek  <jakub@redhat.com>
22192         PR c++/69850
22193         * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
22194         on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
22195         * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
22196         warn on gimple_no_warning_p statements.
22198 2016-02-17  Jonathan Wakely  <jwakely@redhat.com>
22200         * doc/extend.texi (C++ Attributes): Correct description of
22201         warn_unused type attribute.
22203 2016-02-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22205         * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
22206         correct instruction.
22208 2016-02-17  Richard Biener  <rguenther@suse.de>
22210         PR rtl-optimization/69609
22211         * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
22212         (find_traces_1_round): When ending a trace update cached priority
22213         of successors.
22214         (bb_to_key): Use cached priority when available.
22215         (copy_bb): Initialize cached priority.
22216         (reorder_basic_blocks_software_trace_cache): Likewise.
22218 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22220         PR target/69161
22221         * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
22222         New predicate.
22223         (aarch64_comparison_operator): Break overly long line into two.
22224         (aarch64_comparison_operation): Likewise.
22225         * config/aarch64/aarch64.md (cstorecc4): Use
22226         aarch64_comparison_operator_mode instead of
22227         aarch64_comparison_operator.
22228         (cstore<mode>4): Likewise.
22229         (aarch64_cstore<mode>): Likewise.
22230         (*cstoresi_insn_uxtw): Likewise.
22231         (cstore<mode>_neg): Likewise.
22232         (*cstoresi_neg_uxtw): Likewise.
22234 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22236         PR target/69161
22237         * config/arm/predicates.md (arm_comparison_operator_mode):
22238         New predicate.
22239         * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
22240         instead of arm_comparison_operator.
22241         (*mov_negscc): Likewise.
22242         (*mov_notscc): Likewise.
22243         * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
22244         (*thumb2_mov_negscc): Likewise.
22245         (*thumb2_mov_negscc_strict_it): Likewise.
22246         (*thumb2_mov_notscc): Likewise.
22247         (*thumb2_mov_notscc_strict_it): Likewise.
22249 2016-02-17  Wilco Dijkstra  <wdijkstr@arm.com>
22251         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
22252         Add missing return.
22254 2016-02-17  Eric Botcazou  <ebotcazou@adacore.com>
22256         * config/visium/visium.c (machine_libfunc_index): New enum.
22257         (machine_libfuncs): New structure.
22258         (visium_libfuncs): New static variable.
22259         (TARGET_INIT_LIBFUNCS): Define to...
22260         (visium_init_libfuncs): ...this.  New function.
22261         (expand_block_move_4): Use the appropriate libfunc.
22262         (expand_block_move_2): Likewise.
22263         (expand_block_move_1): Likewise.
22264         (expand_block_set_4): Likewise.
22265         (expand_block_set_2): Likewise.
22266         (expand_block_set_1): Likewise.
22267         (visium_trampoline_init): Likewise.
22269 2016-02-17  Nick Clifton  <nickc@redhat.com>
22271         * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
22272         TI's devices.csv file as of March 2016.
22274 2016-02-16  Kelvin Nilsen  <kelvin@gcc.gnu.org>
22276         PR Target/48344
22277         * opts-global.c (handle_common_deferred_options): Introduce and
22278         initialize two global variables to remember command-line options
22279         specifying a stack-limiting register.
22280         * opts.h: Add extern declarations of the two new global variables.
22281         * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
22282         variable based on the values of the two new global variables.
22284 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
22286         PR c/69835
22287         * common.opt (Wnonnull-compare): New warning.
22288         * doc/invoke.texi (-Wnonnull): Remove text about comparison
22289         of arguments against NULL.
22290         (-Wnonnull-compare): Document.
22291         * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
22292         * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
22293         * passes.def (pass_warn_nonnull_compare): Add.
22294         * gimple-ssa-nonnull-compare.c: New file.
22296 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
22298         * config/aarch64/aarch64.c (cortexa57_tunings): Remove
22299         AARCH64_EXTRA_TUNE_RECIP_SQRT.
22301 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
22303         * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
22304         reciprocal sqrt for -mlow-precision-recip-sqrt.
22306 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
22307             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22309         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
22310         always use lane loads to construct non-constant vectors.
22312 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
22314         * config/aarch64/aarch64.md
22315         (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
22316         constraints for operand 3.
22317         (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
22319 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
22320             Richard Biener  <rguenther@suse.de>
22322         PR tree-optimization/69820
22323         * tree-vect-patterns.c (type_conversion_p): Return false if
22324         *orig_type is unsigned single precision or boolean.
22325         (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
22326         Formatting fix.
22328 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
22330         PR rtl-optimization/69764
22331         PR rtl-optimization/69771
22332         * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
22333         op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
22335 2016-02-16  Richard Biener  <rguenther@suse.de>
22337         PR tree-optimization/69776
22338         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
22339         sets from caller.
22340         (indirect_refs_may_alias_p): Likewise.
22341         (refs_may_alias_p_1): Pass alias sets as from ao_ref.
22342         * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
22343         according to tbaa_p.
22344         * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
22345         (optimize_stmt): For redundant store discovery do not allow tbaa.
22347 2016-02-16  Bernd Schmidt  <bschmidt@redhat.com>
22349         PR tree-optimization/69714
22350         * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
22351         Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
22353 2016-02-16  Claudiu Zissulescu  <claziss@synopsys.com>
22355         * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
22356         * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
22357         (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
22358         * config/arc/arc.c (arc_init): Check FPU options.
22359         (get_arc_condition_code): Handle new CC_FPU* modes.
22360         (arc_select_cc_mode): Likewise.
22361         (arc_conditional_register_usage): Allow 64 bit datum into even-odd
22362         register pair only. Allow access for ARCv2 accumulator.
22363         (gen_compare_reg): Whenever we have FPU support use FPU compare
22364         instructions.
22365         (arc_reorg): Don't generate brcc insns when FPU compare
22366         instructions are involved.
22367         * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
22368         (TARGET_OPTFPE): Add condition when ARC EM can use optimized
22369         floating point emulation.
22370         (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
22371         (REVERSE_CONDITION): Add new CC_FPU* modes.
22372         (TARGET_FP_SP_BASE): Define.
22373         (TARGET_FP_DP_BASE): Likewise.
22374         (TARGET_FP_SP_FUSED): Likewise.
22375         (TARGET_FP_DP_FUSED): Likewise.
22376         (TARGET_FP_SP_CONV): Likewise.
22377         (TARGET_FP_DP_CONV): Likewise.
22378         (TARGET_FP_SP_SQRT): Likewise.
22379         (TARGET_FP_DP_SQRT): Likewise.
22380         (TARGET_FP_DP_AX): Likewise.
22381         * config/arc/arc.md (ARCV2_ACC): New constant.
22382         (type): New fpu type attribute.
22383         (SDF): Conditional iterator.
22384         (cstore<mode>, cbranch<mode>): Change expand condition.
22385         (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
22386         handles FPU/FPX cases as well.
22387         * config/arc/arc.opt (mfpu): New option.
22388         * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
22389         Renamed.
22390         (adddf3, muldf3, subdf3): Removed.
22391         * config/arc/predicates.md (proper_comparison_operator): Recognize
22392         CC_FPU* modes.
22393         * config/arc/fpu.md: New file.
22394         * doc/invoke.texi (ARC Options): Document mfpu option.
22396 2016-02-16  Richard Biener  <rguenther@suse.de>
22398         PR rtl-optimization/69291
22399         * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
22400         noce_operand_ok check.
22402 2016-02-16  Tom de Vries  <tom@codesourcery.com>
22404         PR lto/67709
22405         * omp-low.c (simd_clone_create): Remove call to
22406         symtab->call_cgraph_insertion_hooks.
22408 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
22410         PR tree-optimization/69802
22411         * tree-ssa-reassoc.c (update_range_test): If op is
22412         SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
22413         op == 1 test of precision 1 integral op, otherwise handle
22414         that case as op itself.  Fix up formatting.
22415         (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
22416         up formatting.
22418 2016-02-16  Richard Biener  <rguenther@suse.de>
22420         PR tree-optimization/69586
22421         * tree-vrp.c (register_edge_assert_for_2): Handle all integral
22422         types for conversion sources.
22424 2016-02-16  Richard Biener  <rguenther@suse.de>
22426         PR middle-end/69801
22427         * fold-const.c (operand_equal_p): For COND_EXPR zero operand
22428         mask OEP_ADDRESS_OF.
22430 2016-02-16  Alan Modra  <amodra@gmail.com>
22432         PR target/68973
22433         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
22434         (p8_mtvsrd_df, p8_mtvsrd_sf): New.
22435         (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
22436         (p8_mtvsrwz): New.
22437         (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
22438         (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
22439         (p8_fmrgow_<mode>): Likewise.
22440         (reload_vsx_from_gpr<mode>): Make clobber IF.  Adjust for above
22441         changes.
22442         (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
22443         (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
22444         to use movdi_internal64.  Remove op0_di.
22445         * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
22447 2016-02-15  Evandro Menezes  <e.menezes@samsung.com>
22449         Add support for the FCCMP insn types
22451         * config/aarch64/aarch64.md (fccmp): Change insn type.
22452         (fccmpe): Likewise.
22453         * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
22454         * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
22455         * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
22456         * config/arm/xgene1.md (xgene1_fcmp): Likewise.
22457         * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
22458         * config/arm/types.md (fccmps): Add new insn type.
22459         (fccmpd): Likewise.
22461 2016-02-15  Bernd Edlinger  <bernd.edlinger@hotmail.de>
22463         * alias.c (get_alias_set): Fix a typo in comment.
22465 2016-02-15  Richard Biener  <rguenther@suse.de>
22467         PR tree-optimization/69595
22468         * match.pd: Complete range test simplification to true.
22470 2016-02-15  Bernd Schmidt  <bschmidt@redhat.com>
22472         PR rtl-optimization/69648
22473         * lra-constraints.c (update_ebb_live_info): Don't remove sets of
22474         pic_offset_table_rtx.
22476         PR rtl-optimization/69752
22477         * ira.c (update_equiv_regs): When looking for more than a single SET,
22478         also take other side effects into account.
22480 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
22482         * config/s390/s390.c (s390_function_profiler): Add a new sequence
22483         for z900+ CPUs in 31-bit mode.
22485 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
22487         * common/config/s390/s390-common.c (s390_supports_split_stack):
22488         New function.
22489         (TARGET_SUPPORTS_SPLIT_STACK): New macro.
22490         * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
22491         * config/s390/s390.c (struct machine_function): New field
22492         split_stack_varargs_pointer.
22493         (s390_register_info): Mark r12 as clobbered if it'll be used as temp
22494         in s390_emit_prologue.
22495         (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
22496         vararg pointer.
22497         (morestack_ref): New global.
22498         (SPLIT_STACK_AVAILABLE): New macro.
22499         (s390_expand_split_stack_prologue): New function.
22500         (s390_live_on_entry): New function.
22501         (s390_va_start): Use split-stack vararg pointer if appropriate.
22502         (s390_asm_file_end): Emit the split-stack note sections.
22503         (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
22504         * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
22505         (UNSPECV_SPLIT_STACK_CALL): New unspec.
22506         (UNSPECV_SPLIT_STACK_DATA): New unspec.
22507         (split_stack_prologue): New expand.
22508         (split_stack_space_check): New expand.
22509         (split_stack_data): New insn.
22510         (split_stack_call): New expand.
22511         (split_stack_call_*): New insn.
22512         (split_stack_cond_call): New expand.
22513         (split_stack_cond_call_*): New insn.
22515 2016-02-15  Richard Biener  <rguenther@suse.de>
22517         PR tree-optimization/69783
22518         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
22519         Add trivially correct cases.
22521 2016-02-15  Tom de Vries  <tom@codesourcery.com>
22523         PR lto/69655
22524         * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
22525         do_force_output.
22526         * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
22528 2016-02-15  Richard Biener  <rguenther@suse.de>
22530         PR tree-optimization/69776
22531         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
22532         * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
22533         indicate whether we can use TBAA to disambiguate against stores.
22534         Use alias-set zero if not.
22535         (visit_reference_op_store): Do not use TBAA when looking up
22536         redundant stores.
22537         * tree-ssa-pre.c (compute_avail): Use TBAA here.
22538         (eliminate_dom_walker::before_dom_children): But not when looking
22539         up redundant stores.
22541 2016-02-14  John David Anglin  <danglin@gcc.gnu.org>
22543         * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
22545 2016-02-14  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
22547         *  config/i386/znver1.md
22548         (znver1_pop, znver1_pop_mem,
22549         znver1_load_imov_double_store,
22550         znver1_load_imov_direct_store,
22551         znver1_load_imov_direct_load,
22552         znver1_load_imov_double_load): Add new.
22553         (znver1_insn, znver1_insn_load): Add icmov type.
22554         (znver1_sseavx_fma,
22555         znver1_sseavx_fma_load,
22556         znver1_avx256_fma,
22557         znver1_avx256_fma_load): Fix pipe usage.
22559 2016-02-14  Alan Modra  <amodra@gmail.com>
22561         PR target/68973
22562         * reload.c (find_reloads_address_1): For pre/post-inc/dec
22563         with an invalid hard reg, reload just the reg not the entire
22564         pre/post-inc/dec address expression.
22566 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
22568         PR target/67260
22569         * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
22570         fixed R1_REG scratch reg.
22571         (sibcall_value_pcrel_fdpic): Likewise.
22573 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
22575         PR target/67636
22576         PR target/64345
22577         * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
22579 2016-02-12  Walter Lee  <walt@tilera.com>
22581         * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
22582         * config/tilegx/t-tilegx: Likewise.
22584 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
22586         PR other/69554
22587         * diagnostic-show-locus.c (struct line_span): New struct.
22588         (layout::get_first_line): Delete.
22589         (layout::get_last_line): Delete.
22590         (layout::get_num_line_spans): New member function.
22591         (layout::get_line_span): Likewise.
22592         (layout::print_heading_for_line_span_index_p): Likewise.
22593         (layout::get_expanded_location): Likewise.
22594         (layout::calculate_line_spans): Likewise.
22595         (layout::m_first_line): Delete.
22596         (layout::m_last_line): Delete.
22597         (layout::m_line_spans): New field.
22598         (layout::layout): Update comment.  Replace m_first_line and
22599         m_last_line with m_line_spans, replacing their initialization
22600         with a call to calculate_line_spans.
22601         (diagnostic_show_locus): When printing source lines and
22602         annotations, rather than looping over a single span
22603         of lines, instead loop over each line_span within
22604         the layout, with an inner loop over the lines within them.
22605         Call the context's start_span callback when changing line spans.
22606         * diagnostic.c (diagnostic_initialize): Initialize start_span.
22607         (diagnostic_build_prefix): Break out the building of the location
22608         part of the string into...
22609         (diagnostic_get_location_text): ...this new function, rewriting
22610         it from nested ternary expressions to a sequence of "if"
22611         statements.
22612         (default_diagnostic_start_span_fn): New function.
22613         * diagnostic.h (diagnostic_start_span_fn): New typedef.
22614         (diagnostic_context::start_span): New field.
22615         (default_diagnostic_start_span_fn): New prototype.
22617 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
22619         PR driver/69779
22620         * gcc.c (driver::finalize): Fix cleanup of "specs".
22622 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
22624         PR driver/69265
22625         PR driver/69453
22626         * gcc.c (driver::driver): Initialize m_option_suggestions.
22627         (driver::~driver): Clean up m_option_suggestions.
22628         (suggest_option): Convert to...
22629         (driver::suggest_option): ...this, and split out into
22630         driver::build_option_suggestions and find_closest_string.
22631         (driver::build_option_suggestions): New function, from
22632         first half of suggest_option.  Special-case
22633         OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
22634         the sanitizer_opts array.  For options of enum types, add the
22635         various enum values to the candidate strings.
22636         (driver::handle_unrecognized_options): Remove "const".
22637         * gcc.h (driver::handle_unrecognized_options): Likewise.
22638         (driver::build_option_suggestions): New decl.
22639         (driver::suggest_option): New decl.
22640         (driver::m_option_suggestions): New field.
22641         * opts-common.c (add_misspelling_candidates): New function.
22642         * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
22643         and make non-static.
22644         * opts.h (sanitizer_opts): New array decl.
22645         (add_misspelling_candidates): New function decl.
22646         * spellcheck.c (find_closest_string): New function.
22647         * spellcheck.h (find_closest_string): New function decl.
22649 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
22651         PR rtl-optimization/69764
22652         PR rtl-optimization/69771
22653         * optabs.c (expand_binop_directly): For shift_optab_p, force
22654         convert_modes with VOIDmode if xop1 has VOIDmode.
22656 2016-02-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
22658         PR target/69729
22659         * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
22660         to correctly determine instrumentation thunks.
22662 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
22664         PR ipa/69241
22665         * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
22666         type by reference, force lhs on the call.
22668         PR ipa/68672
22669         * ipa-split.c (split_function): Don't compute/use main_part_return_p.
22670         Compute retval and retbnd early in all cases if split_part_return_p
22671         and return_bb is not EXIT.  Remove all clobber stmts and reset
22672         all debug stmts that refer to SSA_NAMEs defined in split part,
22673         except if it is retval, in that case replace the old retval with the
22674         lhs of the call to the split part.
22676 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
22678         revert:
22679         2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
22681         PR middle-end/66726
22682         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
22683         whose result is used in PHI.
22684         (maybe_optimize_range_tests): Likewise.
22685         (final_range_test_p): Likweise.
22687 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
22689         PR middle-end/66726
22690         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
22691         whose result is used in PHI.
22692         (maybe_optimize_range_tests): Likewise.
22693         (final_range_test_p): Likweise.
22695 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
22697         * cgraph.c: Spelling fixes - behaviour -> behavior and
22698         neighbour -> neighbor.
22699         * target.def: Likewise.
22700         * sel-sched.c: Likewise.
22701         * config/mips/mips.c: Likewise.
22702         * config/arc/arc.md: Likewise.
22703         * config/arm/cortex-a57.md: Likewise.
22704         * config/arm/arm.c: Likewise.
22705         * config/arm/neon.md: Likewise.
22706         * config/arm/arm-c.c: Likewise.
22707         * config/vms/vms-c.c: Likewise.
22708         * config/s390/s390.c: Likewise.
22709         * config/i386/znver1.md: Likewise.
22710         * config/i386/i386.c: Likewise.
22711         * config/ia64/hpux-unix2003.h: Likewise.
22712         * config/msp430/msp430.md: Likewise.
22713         * config/rx/rx.c: Likewise.
22714         * config/rx/rx.md: Likewise.
22715         * config/aarch64/aarch64-simd.md: Likewise.
22716         * config/aarch64/aarch64.c: Likewise.
22717         * config/nvptx/nvptx.c: Likewise.
22718         * config/bfin/bfin.c: Likewise.
22719         * config/cris/cris.opt: Likewise.
22720         * config/rs6000/rs6000.c: Likewise.
22721         * target.h: Likewise.
22722         * spellcheck.c: Likewise.
22723         * ira-build.c: Likewise.
22724         * tree-inline.c: Likewise.
22725         * builtins.c: Likewise.
22726         * lra-constraints.c: Likewise.
22727         * explow.c: Likewise.
22728         * hwint.h: Likewise.
22729         * targhooks.c: Likewise.
22730         * tree-vect-data-refs.c: Likewise.
22731         * expr.c: Likewise.
22732         * doc/tm.texi: Likewise.
22733         * doc/extend.texi: Likewise.
22734         * doc/install.texi: Likewise.
22735         * doc/md.texi: Likewise.
22736         * tree-ssa-tail-merge.c: Likewise.
22737         * sched-int.h: Likewise.
22738         * match.pd: Likewise.
22739         * sched-ebb.c: Likewise.
22740         * target.def (omit_struct_return_reg): Likewise.
22741         * gimple-ssa-isolate-paths.c: Likewise.
22742         (find_implicit_erroneous_behaviour): Renamed to...
22743         (find_implicit_erroneous_behavior): ... this.
22744         (find_explicit_erroneous_behaviour): Renamed to...
22745         (find_explicit_erroneous_behavior): ... this.
22746         (gimple_ssa_isolate_erroneous_paths): Adjust caller.
22748 2016-02-11  Segher Boessenkool  <segher@kernel.crashing.org>
22750         PR rtl-optimization/64682
22751         PR rtl-optimization/69567
22752         PR rtl-optimization/69737
22753         * combine.c (distribute_notes) <REG_DEAD>: If the register is set
22754         in I2 as well, just lose it.
22756 2016-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22758         * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
22759         New variable.
22760         (aarch64_last_printed_tune_string): Likewise.
22761         (aarch64_declare_function_name): Only output .arch assembler
22762         directive if it will be different from the previously output
22763         directive.  Same for .tune comment but only if -dA is set.
22764         (aarch64_start_file): New function.
22765         (TARGET_ASM_FILE_START): Define.
22767 2016-02-11  David Malcolm  <dmalcolm@redhat.com>
22769         PR plugins/69758
22770         * Makefile.in (PLUGIN_HEADERS): Add params.list.
22772 2016-02-11  Jakub Jelinek  <jakub@redhat.com>
22774         PR target/65313
22775         * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
22776         -Wmaybe-uninitialized warning.
22778 2016-02-11  Oleg Endo  <olegendo@gcc.gnu.org>
22780         PR target/69713
22781         * config/sh/sh.md (casesi_worker_0): Add T_REG use.
22783 2016-02-11  Richard Biener  <rguenther@suse.de>
22785         PR rtl-optimization/69291
22786         * ifcvt.c (noce_try_store_flag_constants): Do not allow
22787         subexpressions affected by changing the result.
22789 2016-02-10  Vladimir Makarov  <vmakarov@redhat.com>
22791         PR target/69148
22792         * lra-constraints.c (curr_insn_transform): Find in/out operands
22793         for secondary memory moves.  Update dups.
22795 2016-02-10  Yuri Rumyantsev  <ysrumyan@gmail.com>
22797         PR tree-optimization/69652
22798         * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
22799         to nested loop, did source re-formatting, skip debug statements,
22800         add check on statement with volatile operand, remove dead scalar
22801         statements.
22803 2016-02-10  Jakub Jelinek  <jakub@redhat.com>
22804             Patrick Palka  <ppalka@gcc.gnu.org>
22806         PR ipa/69241
22807         PR c++/69649
22808         * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
22809         calls if the return type is TREE_ADDRESSABLE.
22810         * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
22811         * ipa-split.c (split_function): Fix doubled "we" in comment.
22812         Use void return type for the split part even if
22813         !split_point->split_part_set_retval.
22815 2016-02-10  Bin Cheng  <bin.cheng@arm.com>
22817         PR tree-optimization/68021
22818         * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
22819         when computing the value of biv cand by itself.
22821 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
22823         * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
22824         (cortexa57_tunings): Likewise.
22825         (cortexa72_tunings): Likewise.
22826         (arch_macro_fusion_pair_p): Add support for AES fusion.
22827         * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
22828         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
22829         Allow virtual registers before reload so early scheduling works.
22830         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
22831         correct latency and pipeline.
22832         (cortex_a57_crypto_complex): Likewise.
22833         (cortex_a57_crypto_xor): Likewise.
22834         (define_bypass): Add AES bypass.
22836 2016-02-10  Richard Biener  <rguenther@suse.de>
22838         PR tree-optimization/69726
22839         * passes.def: Add DCE pass before late uninit.
22840         * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
22841         really fixup if-conversions job.
22843 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
22845         * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
22846         (arm_cortex_a57_tune): Likewise.
22847         (aarch_macro_fusion_pair_p): Add support for AES fusion.
22848         * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
22850 2016-02-10  Eric Botcazou  <ebotcazou@adacore.com>
22852         * timevar.def (TV_PHASE_DBGINFO): Delete.
22853         (TV_PHASE_CHECK_DBGINFO): Likewise.
22854         * varpool.c (varpool_node::assemble_decl): Do not change timevar.
22856 2016-02-10  Richard Biener  <rguenther@suse.de>
22858         PR tree-optimization/69719
22859         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
22860         Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
22862 2016-02-09  Andrew Pinski  <apinski@cavium.com>
22864         PR tree-opt/69282
22865         * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
22866         get_vcond_mask_icode returns false.
22868 2016-02-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
22870         PR target/68404
22871         * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
22872         an ADDIS that adds a pointer to a large constant that sets the
22873         upper16 bits with a load operation.
22875 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
22877         PR target/68532
22878         * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
22879         order.
22880         * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
22881         endian.
22882         (vzipq_s16): Likewise.
22883         (vzipq_s32): Likewise.
22884         (vzipq_f32): Likewise.
22885         (vzipq_u8): Likewise.
22886         (vzipq_u16): Likewise.
22887         (vzipq_u32): Likewise.
22888         (vzipq_p8): Likewise.
22889         (vzipq_p16): Likewise.
22891 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
22893         PR target/68532
22894         * config/arm/arm.c (neon_endian_lane_map): New function.
22895         (neon_vector_pair_endian_lane_map): New function.
22896         (arm_evpc_neon_vuzp): Allow for big endian lane order.
22897         * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
22898         endian.
22899         (vuzpq_s16): Likewise.
22900         (vuzpq_s32): Likewise.
22901         (vuzpq_f32): Likewise.
22902         (vuzpq_u8): Likewise.
22903         (vuzpq_u16): Likewise.
22904         (vuzpq_u32): Likewise.
22905         (vuzpq_p8): Likewise.
22906         (vuzpq_p16): Likewise.
22908 2016-02-11  Alexandre Oliva  <aoliva@redhat.com>
22910         PR target/69634
22911         * regstat.c (regstat_bb_compute_calls_crossed): Disregard
22912         debug insns.
22914 2016-02-09  Uros Bizjak  <ubizjak@gmail.com>
22916         * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
22917         truncate const_int operand 1 to QImode.
22919 2016-02-09  Eric Botcazou  <ebotcazou@adacore.com>
22921         * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
22922         corresponding to an abnormal edge.
22924 2016-02-09  Tom de Vries  <tom@codesourcery.com>
22926         PR tree-optimization/69599
22927         * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
22928         function.
22929         (find_func_aliases_for_builtin_call, find_func_clobbers)
22930         (ipa_pta_execute):  Handle case that foo and foo._0 are not in same lto
22931         partition.
22933 2016-02-09  Richard Biener  <rguenther@suse.de>
22935         PR tree-optimization/69715
22936         * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
22937         LHS on calls as non-rewritable.
22939 2016-02-09  Tom de Vries  <tom@codesourcery.com>
22941         PR lto/69707
22942         * lto-wrapper.c (append_diag_options): New function.
22943         (compile_offload_image): Call append_diag_options.
22945 2016-02-08  Sandra Loosemore  <sandra@codesourcery.com>
22947         PR other/69722
22948         * doc/extend.texi (Flag Output Operands): Correct sectioning.
22949         Minor copy-edit to fix verb tenses.
22951 2016-02-08  Jakub Jelinek  <jakub@redhat.com>
22953         PR tree-optimization/69209
22954         * ipa-split.c (split_function): If split part is not
22955         returning retval, retval has gimple type but is not
22956         gimple value, force it into a SSA_NAME first.
22958 2016-02-08  Nicklas Bo Jensen  <nbjensen@gmail.com>
22960         * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
22961         outdated section.
22963 2016-02-08  Jason Merrill  <jason@redhat.com>
22965         PR c++/69631
22966         * convert.c (convert_to_integer_1): Check dofold on truncation
22967         distribution.
22968         (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
22969         (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
22970         Rename from *_nofold.
22971         * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
22972         (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
22974 2016-02-08  Bernd Schmidt  <bschmidt@redhat.com>
22976         PR target/60410
22977         * tree.c (build_common_tree_nodes): Remove short_double argument.
22978         All callers changed.
22979         * tree.h (build_common_tree_nodes): Adjust declaration.
22980         * doc/invoke.texi (-fshort-double): Remove documentation.
22981         * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
22982         MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
22983         * lto-wrapper.c (merge_and_complain, append_compiler_options)
22984         (append_linker_options): Don't handle OPT_fshort_double.
22986         PR rtl-optimization/68730
22987         * lra-remat.c (insn_to_cand_activation): New static variable.
22988         (lra_remat): Allocate and free it.
22989         (create_cand): New arg activation. Initialize a field in
22990         insn_to_cand_activation if it is nonnull.
22991         (create_cands): Pass the activation insn to create_cand when making
22992         a candidate involving an output reload.  Reorganize code a little.
22993         (do_remat): Keep track of active status of candidates in a separate
22994         bitmap.
22996 2016-02-08  Richard Biener  <rguenther@suse.de>
22998         PR tree-optimization/69719
22999         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
23000         Properly use absolute of the difference of the two offsets to
23001         compare or adjust the segment length.
23003 2016-02-08  Richard Biener  <rguenther@suse.de>
23004             Jeff Law  <law@redhat.com>
23006         PR target/68273
23007         * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
23008         types for anonymous SSA names.
23010 2016-02-08   Richard Biener  <rguenther@suse.de>
23012         PR rtl-optimization/69274
23013         * ira.c (ira_setup_alts): Do not change recog_data.operand order.
23015 2016-02-08  Jeff Law  <law@redhat.com>
23017         PR tree-optimization/65917
23018         * tree-ssa-dom.c (record_temporary_equivalences): Record both
23019         equivalences from if (x == y) style conditionals.
23020         (loop_depth_of_name): Remove.
23021         (record_equality): Remove loop depth check.
23022         * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
23023         (const_and_copies::record_const_or_copy_raw): New member function.
23024         * tree-ssa-scopedtables.c
23025         (const_and_copies::record_const_or_copy_raw): New, factored out of
23026         (const_and_copies::record_const_or_copy): Call new member function.
23028 2016-02-05  Jeff Law  <law@redhat.com>
23030         PR tree-optimization/68541
23031         * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
23032         (count_stmts_in_block): New function.
23033         (poor_ifcvt_candidate_code): Likewise.
23034         (is_feasible_trace): Add some heuristics to determine when path
23035         splitting is profitable.
23036         (find_block_to_duplicate_for_splitting_paths): Make sure the graph
23037         is a diamond with a single exit.
23039 2016-02-05  Martin Sebor  <msebor@redhat.com>
23041         PR c++/69662
23042         * doc/invoke.texi: Update -Wplacement-new to take an optional
23043         argument.
23045 2016-02-06  Richard Henderson  <rth@redhat.com>
23047         PR c/69643
23048         * tree.c (tree_nop_conversion_p): Do not strip casts into or
23049         out of non-standard address spaces.
23051 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
23053         PR rtl-optimization/69691
23054         * lra-eliminations.c (move_plus_up): Don't add the addend twice.
23056 2016-02-05  Pat Haugen  <pthaugen@us.ibm.com>
23058         * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
23059         * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
23060         (*ieee128_mfvsrd_64bit): Likewise.
23061         (*ieee128_mfvsrd_32bit): Likewise.
23063 2016-02-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
23065         PR target/69369
23066         Revert r232560:
23067         2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
23069         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
23070         instrumented_version.
23072 2016-01-05  Jeremy Bennett  <jeremy.bennett@embecosm.com>
23074         * doc/invoke.texi (Optimize Options): In table of --param options
23075         rename second occurrence of tracer-min-branch-ratio to
23076         tracer-min-branch-probability, rename
23077         tracer-min-branch-ratio-feedback to
23078         tracer-min-branch-probability-feedback and clarify description,
23079         rename sched-spec-state-edge-prob-cutoff to
23080         sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
23081         to selsched-insns-to-rename, rename lto-minpartition to
23082         lto-min-partition, delete reorder-blocks-duplicate and
23083         reorder-blocks-duplicate-feedback.
23085 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23087         * config/s390/s390.c (s390_register_info_set_ranges): Remove
23088         superfluous loops.
23090 2016-02-05  Dominik Vogt  <vogt@linux.vnet.ibm.com>
23092         * doc/extend.texi: S/390: Correct some typos.
23094 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23096         * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
23098 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23100         PR target/69625
23101         * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
23102         (s390_register_info_gprtofpr): Use new macros above.
23103         (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
23104         its name.
23105         (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
23106         its name.  Adjust restore and save gpr ranges.
23107         (s390_register_info_set_ranges): New function.
23108         (s390_register_info): Use new macros above.  Call
23109         s390_register_info_set_ranges.
23110         (s390_optimize_register_info): Likewise.
23111         (s390_hard_regno_rename_ok): Use new macros.
23112         (s390_hard_regno_scratch_ok): Likewise.
23113         (s390_emit_epilogue): Likewise.
23114         (s390_can_use_return_insn): Likewise.
23115         (s390_optimize_prologue): Likewise.
23116         * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
23118 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
23120         PR bootstrap/69677
23121         * config/i386/i386.c (convert_scalars_to_vector): Readd stack
23122         alignment fixes.
23123         (ix86_option_override_internal): Disable TARGET_STV even for
23124         -m{incoming,preferred}-stack-boundary=3.
23126 2016-02-03  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23128         * config.gcc: Mark deprecated rtems targets as obsolete.
23130 2016-02-04  Segher Boessenkool  <segher@kernel.crashing.org>
23132         PR rtl-optimization/64682
23133         PR rtl-optimization/69567
23134         * combine.c (distribute_notes) <REG_DEAD>: Place the death note
23135         before I2 only if the register is both used and set in I2.
23137 2016-02-04  DJ Delorie  <dj@redhat.com>
23139         * config/msp430/msp430.c (msp430_start_function): Add function type.
23141 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
23143         PR fortran/69368
23144         * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
23146 2016-02-04  Uros Bizjak  <ubizjak@gmail.com>
23148         PR rtl-optimization/69577
23149         Revert:
23150         2015-10-29  Richard Henderson  <rth@redhat.com>
23152         PR target/68124
23153         PR rtl-opt/67609
23154         * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
23155         sse check to the exact conditions of PR 67609.
23157 2016-02-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
23159         PR target/69667
23160         * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
23161         instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
23162         not allowed into the traditional Altivec registers.
23163         (movtd_64bit_nodm): Likewise.
23164         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
23166 2016-02-04  David Malcolm  <dmalcolm@redhat.com>
23168         * config/aarch64/cortex-a57-fma-steering.c
23169         (aarch64_register_fma_steering): Remove "static" from arguments
23170         to register_pass.
23172 2016-02-04  Wilco Dijkstra  <wdijkstr@arm.com>
23174         PR target/69619
23175         * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
23176         twice when complex.
23178 2016-02-04  Mike Frysinger  <vapier@gentoo.org>
23180         * doc/invoke.texi: Delete -mno-fma4.
23182 2016-02-04  Richard Sandiford  <richard.sandiford@arm.com>
23184         PR rtl-optimization/69577
23185         * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
23186         (find_subregs_of_mode): Update accordingly.  Iterate over partial
23187         definitions.
23189 2016-02-04  Alan Lawrence  <alan.lawrence@arm.com>
23191         * config/arm/arm-protos.h (neon_reinterpret): Remove.
23192         * config/arm/arm.c (neon_reinterpret): Remove.
23193         * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
23194         vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
23195         vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
23196         vreinterpretti): Remove.
23197         * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
23198         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
23199         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
23200         neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
23201         neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
23202         neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
23203         * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
23204         vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
23205         vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
23206         vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
23207         vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
23208         vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
23209         vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
23210         vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
23211         vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
23212         vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
23213         vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
23214         vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
23215         vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
23216         vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
23217         vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
23218         vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
23219         vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
23220         vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
23221         vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
23222         vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
23223         vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
23224         vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
23225         vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
23226         vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
23227         vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
23228         vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
23229         vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
23230         vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
23231         vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
23232         vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
23233         vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
23234         vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
23235         vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
23236         vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
23237         vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
23238         vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
23239         vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
23240         vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
23241         vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
23242         vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
23243         vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
23244         vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
23245         vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
23246         vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
23247         vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
23248         vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
23249         vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
23250         vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
23251         vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
23252         vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
23253         vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
23254         vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
23255         vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
23256         vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
23257         vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
23258         vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
23259         vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
23260         vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
23261         vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
23262         vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
23263         vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
23264         vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
23265         vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
23266         vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
23267         vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
23268         vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
23269         vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
23270         vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
23271         vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
23272         vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
23273         vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
23274         vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
23275         vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
23276         vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
23277         vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
23278         vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
23279         vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
23280         vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
23281         vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
23282         vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
23283         vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
23284         vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
23285         vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
23286         vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
23287         vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
23288         vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
23289         vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
23290         vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
23291         vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
23292         vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
23293         vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
23294         vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
23295         vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
23296         vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
23297         vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
23298         vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
23299         vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
23301 2016-02-04  Martin Liska  <mliska@suse.cz>
23303         PR sanitizer/69276
23304         * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
23305         that are gimple_store_p.
23306         (maybe_instrument_call): Likewise.
23308 2016-02-04  Bin Cheng  <bin.cheng@arm.com>
23310         * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
23311         register scaling out of memory reference and comment why.
23313 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23315         PR target/65932
23316         PR target/67714
23317         * cse.c (cse_insn): Pass NULL to fold_rtx when initially
23318         folding the source of a SET.
23320 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23322         PR target/65932
23323         PR target/67714
23324         * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
23325         the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
23327 2016-02-04  Jim Wilson  <jim.wilson@linaro.org>
23329         PR target/65932
23330         PR target/67714
23331         * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
23332         HImode.
23334 2016-02-04  Christian Bruel  <christian.bruel@st.com>
23336         * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
23337         * config/arm/arm.c (arm_set_current_function): Likewise.
23339 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
23340             Ilya Enkovich  <enkovich.gnu@gmail.com>
23341             H.J. Lu  <hongjiu.lu@intel.com>
23343         PR target/69454
23344         * config/i386/i386.c (convert_scalars_to_vector): Remove
23345         stack alignment fixes.
23346         (ix86_option_override_internal): Disable TARGET_STV if stack
23347         might not be aligned enough.
23348         (ix86_minimum_alignment): Assert that TARGET_STV is false.
23350 2016-02-04  Victoria Stepanyan  <victoria.stepanyan@amd.com>
23352         * config/i386/x86-tune.def: Disable default prefetching
23353         for -march=znver1.
23355 2016-02-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
23356             Vladimir Makarov  <vmakarov@redhat.com>
23358         PR target/69461
23359         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
23360         in validating fused toc addresses.
23362 2016-02-03  Jakub Jelinek  <jakub@redhat.com>
23364         PR c/69627
23365         * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
23366         range->m_caret fields if range->m_show_caret_p is false.
23368         PR target/69644
23369         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
23370         Force oldval into register if it does not satisfy reg_or_short_operand
23371         predicate.  Fix up formatting.
23373 2016-02-03  Vladimir Makarov  <vmakarov@redhat.com>
23374             Alexandre Oliva  <aoliva@redhat.com>
23376         PR target/69461
23377         * lra-constraints.c (simplify_operand_subreg): Check additionally
23378         address validity after potential reloading.
23379         (process_address_1): Check insns validity.  In case of failure do
23380         nothing.
23382 2016-02-03  Kirill Yukhin  <kirill.yukhin@intel.com>
23384         PR target/69118
23385         * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
23386         Fix target.
23388 2016-02-02  Jakub Jelinek  <jakub@redhat.com>
23390         * wide-int.cc (canonize_uhwi): New function.
23391         (wi::divmod_internal): Use it.
23393 2016-02-02  James Norris  <jnorris@codesourcery.com>
23395         * gimplify.c (omp_notice_variable): Add usage check.
23397 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
23399         * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
23400         like LE, GE, LT, GT when emitting relational operator.
23402 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
23404         * ira-costs.c (find_costs_and_classes): Add extra argument.
23405         * target.def (ira_change_pseudo_allocno_class): Add parameter.
23406         * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
23407         * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
23408         * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
23409         Add best_class parameter, and return it if not ALL_REGS.
23410         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
23411         Add parameter.
23412         * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
23413         Update target hook.
23415 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
23417         * config/aarch64/aarch64.c
23418         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
23419         (aarch64_ira_change_pseudo_allocno_class): New function.
23421 2016-02-02  Uros Bizjak  <ubizjak@gmail.com>
23423         PR target/67032
23424         * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
23426 2016-02-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
23428         * config/avr/avr.c (avr_option_override): Set
23429         PARAM_ALLOW_STORE_DATA_RACES to 1.
23431 2016-02-02  Richard Biener  <rguenther@suse.de>
23433         PR tree-optimization/69595
23434         * match.pd: Add range test simplifications to true/false.
23436 2016-02-02  Thomas Schwinge  <thomas@codesourcery.com>
23438         * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
23439         * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
23440         instead.
23442 2016-02-02  Richard Biener  <rguenther@suse.de>
23444         PR tree-optimization/69606
23445         * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
23446         info on the result before moving a stmt.
23448 2016-02-02  Yuri Rumyantsev  <ysrumyan@gmail.com>
23450         PR middle-end/68542
23451         * config/i386/i386.c (ix86_expand_branch): Add support for conditional
23452         branch with vector comparison.
23453         * config/i386/sse.md (VI48_AVX): New mode iterator.
23454         (define_expand "cbranch<mode>4): Add support for conditional branch
23455         with vector comparison.
23456         * tree-vect-loop.c (optimize_mask_stores): New function.
23457         * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
23458         has_mask_store field of vect_info.
23459         * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
23460         vectorized loops having masked stores after vec_info destroy.
23461         * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
23462         correspondent macros.
23463         (optimize_mask_stores): Add prototype.
23465 2016-02-02  Alan Modra  <amodra@gmail.com>
23467         PR target/69548
23468         * config/rs6000/predicates.md (quad_int_reg_operand): Don't
23469         allow subregs.
23471 2016-02-02  Alan Modra  <amodra@gmail.com>
23473         PR target/68662
23474         * config/rs6000/rs6000.c (need_toc_init): New var, set it
23475         whenever toc_label_name used.
23476         (rs6000_file_start): Don't set up toc section here,
23477         (rs6000_output_function_epilogue): do so here instead,
23478         (rs6000_xcoff_file_start): and here.
23479         * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
23480         (load_toc_aix_di): Likewise.
23482 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
23484         PR rtl-optimization/69592
23485         * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
23486         (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
23487         (num_sign_bit_copies_binary_arith_p): New inline function.
23488         (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
23490 2016-02-01  Jeff Law  <law@redhat.com>
23492         PR tree-optimization/69580
23493         * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
23494         * tree-ssa-threadbackward.c
23495         (fsm_find_control_statement_thread_paths): Do not try to walk
23496         through large PHI nodes.
23498 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
23500         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
23501         when count is incremented above limit, don't analyze further
23502         insns afterwards.
23504         * omp-low.c (oacc_parse_default_dims): Avoid
23505         -Wsign-compare warning, make sure value fits into int
23506         rather than just unsigned int.
23508 2016-02-01  Bin Cheng  <bin.cheng@arm.com>
23510         PR tree-optimization/67921
23511         * fold-const.c (split_tree): New parameters.  Convert pointer
23512         type variable part to proper type before negating.
23513         (fold_binary_loc): Pass new arguments to split_tree.
23515 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
23517         * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
23518         (nvptx_goacc_validate_dims): Extend to handle global defaults.
23519         * target.def (OACC_VALIDATE_DIMS): Extend documentation.
23520         * doc/tm.texti: Rebuilt.
23521         * doc/invoke.texi (fopenacc-dim): Document.
23522         * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
23523         (append_compiler_options): Likewise.
23524         * omp-low.c (oacc_default_dims, oacc_min_dims): New.
23525         (oacc_parse_default_dims): New.
23526         (oacc_validate_dims): Add USED arg.  Select non-unity default when
23527         possible.
23528         (oacc_loop_fixed_partitions): Return mask of used partitions.
23529         (oacc_loop_auto_partitions): Emit dump info.
23530         (oacc_loop_partition): Return mask of used partitions.
23531         (execute_oacc_device_lower): Parse default dimension arg.  Adjust
23532         loop partitioning and validation calls.
23534 2016-02-01  Richard Biener  <rguenther@suse.de>
23536         PR middle-end/69556
23537         * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
23539 2016-02-01  Richard Biener  <rguenther@suse.de>
23541         PR tree-optimization/69574
23542         * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
23543         of asserting return chrec_dont_know.
23545 2016-02-01  Martin Liska  <mliska@suse.cz>
23547         * mem-stats-traits.h: Add copyright header.
23548         * mem-stats.h: Likewise.
23550 2016-02-01  Richard Biener  <rguenther@suse.de>
23552         PR tree-optimization/69579
23553         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
23554         Do not propagate through abnormal PHI results.
23556 2016-02-01  Eric Botcazou  <ebotcazou@adacore.com>
23558         * postreload.c (reload_cse_simplify): Remove dead code.
23560 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
23562         PR rtl-optimization/69570
23563         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
23564         if there is more than one set, not if there is a single set.
23566 2016-02-01  Richard Henderson  <rth@redhat.com>
23568         PR rtl-opt/69535
23569         * combine.c (make_compound_operation): When looking through a
23570         subreg, make sure to re-extend to the width of the outer mode.
23572 2016-01-30  Jakub Jelinek  <jakub@redhat.com>
23574         PR tree-optimization/69546
23575         * wide-int.cc (wi::divmod_internal): For unsigned division
23576         where both operands fit into uhwi, if o1 is 1 and o0 has
23577         msb set, if divident_prec is larger than bits per hwi,
23578         clear another quotient word and return 2 instead of 1.
23579         Similarly for remainder with msb in HWI set, if dividend_prec
23580         is larger than bits per hwi.
23582 2016-01-29  Martin Jambor  <mjambor@suse.cz>
23584         * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
23585         Use short lowercase names.
23586         (get_memory_order): Mask with MEMMODEL_BASE_MASK.  Support
23587         MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
23588         acq_rel one.  Protect warning agains segfaults if
23589         get_memory_order_name returns NULL.
23590         (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
23591         with release semantics.  Do not warn if get_memory_order already did.
23592         (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
23593         semantics.  Fix check for relaxed or acquire semantics.  Do not warn
23594         if get_memory_order already did.
23596 2016-01-29  Sebastian Pop  <s.pop@samsung.com>
23598         * doc/install.texi: Document that isl-0.16 is supported.
23600 2016-01-29  Vladimir Makarov  <vmakarov@redhat.com>
23602         PR target/69299
23603         * config/i386/constraints.md (Bm): Describe as special memory
23604         constraint.
23605         * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
23606         * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
23607         * genpreds.c (struct constraint_data): Add is_special_memory.
23608         (have_special_memory_constraints, special_memory_start): New
23609         static vars.
23610         (special_memory_end): Ditto.
23611         (add_constraint): Add new arg is_special_memory.  Add code to
23612         process its true value.  Update have_special_memory_constraints.
23613         (process_define_constraint): Pass the new arg.
23614         (process_define_register_constraint): Ditto.
23615         (choose_enum_order): Process special memory.
23616         (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
23617         function insn_extra_special_memory_constraint.
23618         (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
23619         * gensupport.c (process_rtx): Process
23620         DEFINE_SPECIAL_MEMORY_CONSTRAINT.
23621         * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
23622         * ira-lives.c (single_reg_class): Use
23623         insn_extra_special_memory_constraint.
23624         * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
23625         * lra-constraints.c (process_alt_operands): Ditto.
23626         (curr_insn_transform): Use insn_extra_special_memory_constraint.
23627         * recog.c (asm_operand_ok, preprocess_constraints): Process
23628         CT_SPECIAL_MEMORY.
23629         * reload.c (find_reloads): Ditto.
23630         * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
23631         * stmt.c (parse_input_constraint): Use
23632         insn_extra_special_memory_constraint.
23634 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
23636         PR target/69530
23637         * lra-splill.c (lra_final_code_change): Revert r229087 by
23638         removing all sub-registers.
23640 2016-01-29  Steve Ellcey  <sellcey@imgtec.com>
23642         PR target/65604
23643         * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
23645 2016-01-29  Jakub Jelinek  <jakub@redhat.com>
23647         PR target/69551
23648         * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
23649         SSE1, copy target into the temporary reg first before recursing
23650         on it.
23652 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
23654         * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
23655         with vm.
23657 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
23659         * ginclude/stdarg.h: Test __cplusplus instead of
23660         __GXX_EXPERIMENTAL_CXX0X__.
23662 2016-01-29  Richard Biener  <rguenther@suse.de>
23664         PR tree-optimization/69547
23665         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
23666         Do not mark clobbers necessary.
23667         (mark_all_reaching_defs_necessary_1): Likewise.
23669 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
23671         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
23672         declaration name with %qs and print it in both error messages.
23673         Also fix indentation.
23675 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
23677         PR other/69006
23678         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
23679         trailing blank line from error message.
23681 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
23683         PR c++/69462
23684         * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
23685         for C++-11.
23687 2016-01-29  Richard Biener  <rguenther@suse.de>
23689         PR middle-end/69537
23690         * match.pd: Allow all integral types when simplifying a
23691         widening or sign-changing conversion.
23693 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
23695         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
23696         back to setting codegen_error to fail codegen.
23698 2016-01-28  Uros Bizjak  <ubizjak@gmail.com>
23700         PR target/69459
23701         * config/i386/constraints.md (C): Only accept constant zero operand.
23702         (BC): New constraint.
23703         * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
23704         instead of C constraint.
23705         * doc/md.texi (Machine Constraints): Update description
23706         of C constraint.
23708 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
23710         PR target/68400
23711         * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
23713 2016-01-28  Jakub Jelinek  <jakub@redhat.com>
23715         PR middle-end/69542
23716         * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
23717         non-debug insns.
23719 2016-01-28  Pat Haugen  <pthaugen@us.ibm.com>
23721         * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
23722         branches if using guessed profile.
23724 2016-01-28  H.J. Lu  <hongjiu.lu@intel.com>
23726         * graphite-optimize-isl.c (optimize_isl): Fix dump.
23728 2016-01-28  Richard Henderson  <rth@redhat.com>
23730         PR target/69305
23731         * config/aarch64/aarch64-modes.def (CC_Cmode): New
23732         * config/aarch64/aarch64-protos.h: Update.
23733         * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
23734         (aarch64_select_cc_mode): Add check for use of CC_Cmode.
23735         (aarch64_get_condition_code_1): Handle CC_Cmode.
23736         * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
23737         (*add<mode>3_compareC_cconly_imm): New.
23738         (*add<mode>3_compareC_cconly): New.
23739         (*add<mode>3_compareC_imm): New.
23740         (add<mode>3_compareC): New.
23741         (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
23742         to be first.  Use aarch64_carry_operation.
23743         (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
23744         (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
23745         (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
23746         (subti3): Use subdi3_compare1.
23747         (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
23748         (sub<mode>3_compare1): New.
23749         (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
23750         (*sub<mode>3_carryin): Use aarch64_borrow_operation.
23751         (*subsi3_carryin_uxtw): Likewise.
23752         (*ngc<mode>, *ngcsi_uxtw): Likewise.
23753         (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
23754         * config/aarch64/iterators.md (DWI): New.
23755         * config/aarch64/predicates.md (aarch64_carry_operation): New.
23756         (aarch64_borrow_operation): New.
23758 2016-01-28  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
23760         * graphite-optimize-isl.c (optimize_isl): Print a different debug
23761         message when isl does not return a valid schedule.
23763 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
23765         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
23766         Remove comments from class declarations: they are already in the code
23767         close by the defs.
23769 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
23771         * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
23772         codegen_error_p.
23773         (ternary_op_to_tree): Same.
23774         (unary_op_to_tree): Same.
23775         (nary_op_to_tree): Same.
23776         (gcc_expression_from_isl_expr_op): Same.
23777         (gcc_expression_from_isl_expression): Same.
23778         (graphite_create_new_loop): Same.
23779         (graphite_create_new_loop_guard): Same.
23780         (build_iv_mapping): Same.
23781         (graphite_create_new_guard): Same.
23782         (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
23783         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
23785 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
23787         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
23788         instead of setting codegen_error to fail codegen.
23790 2016-01-28  Jason Merrill  <jason@redhat.com>
23792         * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
23794 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
23796         * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
23797         Remove CONST_INT_P check in CCMP cost calculation.
23799 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
23801         * config/aarch64/aarch64.c (generic_vector_cost):
23802         Set vec_permute_cost.
23803         (cortexa57_vector_cost): Likewise.
23804         (exynosm1_vector_cost): Likewise.
23805         (xgene1_vector_cost): Likewise.
23806         (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
23807         * config/aarch64/aarch64-protos.h (cpu_vector_cost):
23808         Add vec_permute_cost entry.
23810 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
23812         * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
23813         immediate as %1.
23814         (add<mode>3_compare0): Likewise.
23815         (addsi3_compare0_uxtw): Likewise.
23816         (add<mode>3nr_compare0): Likewise.
23817         (compare_neg<mode>): Likewise.
23818         (<optab><mode>3): Likewise.
23820 2016-01-28  Ilya Enkovich  <enkovich.gnu@gmail.com>
23822         * tree-vect-stmts.c (vectorizable_comparison): Add
23823         NULL check for vectype.
23825 2016-01-28  Richard Biener  <rguenther@suse.de>
23827         PR tree-optimization/69466
23828         * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
23829         Account for PHIs we couldn't duplicate.
23831 2016-01-28  Martin Liska  <mliska@suse.cz>
23833         PR pch/68758
23834         * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
23835         instead of ENABLE_VALGRIND_CHECKING.
23837 2016-01-27  Richard Henderson  <rth@redhat.com>
23839         PR rtl-opt/69447
23840         * lra-remat.c (subreg_regs): New.
23841         (dump_candidates_and_remat_bb_data): Dump it.
23842         (operand_to_remat): Reject if operand in subreg_regs.
23843         (set_bb_regs): Collect subreg_regs.
23844         (lra_remat): Init and free subreg_regs.  Compute
23845         calculate_local_reg_remat_bb_data before create_cands.
23847 2016-01-27  H.J. Lu  <hongjiu.lu@intel.com>
23849         PR target/68986
23850         * config/i386/i386.c (ix86_update_stack_boundary): Don't
23851         change stack_alignment_needed for __tls_get_addr call.
23853 2016-01-27  Segher Boessenkool  <segher@kernel.crashing.org>
23855         * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
23857 2016-01-27  Jeff Law  <law@redhat.com>
23859         PR tree-optimization/68398
23860         PR tree-optimization/69196
23861         * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
23862         (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
23863         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
23864         Only count PHIs in the last block in the path.  The others will
23865         const/copy propagate away.  Add heuristic to allow more irreducible
23866         subloops to be created when it is likely profitable to do so.
23868         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
23869         Fix typo in comment.  Use gsi_after_labels and remove the GIMPLE_LABEL
23870         check from within the loop.  Use gsi_next_nondebug rather than gsi_next.
23872 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
23874         PR lto/69254
23875         * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
23876         END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
23877         * asan.c (DEF_BUILTIN_STUB): Temporarily define.
23878         * tree-streamer-in.c: Include asan.h.
23879         (streamer_get_builtin_tree): For builtins in sanitizer
23880         range call initialize_sanitizer_builtins and retry.
23882 2016-01-27  Ian Lance Taylor  <iant@google.com>
23884         * common.opt (fkeep-gc-roots-live): New undocumented option.
23885         * tree-ssa-loop-ivopts.c (add_candidate_1): If
23886         -fkeep-gc-roots-live, skip pointers.
23887         (add_iv_candidate_for_biv): Handle add_candidate_1 returning
23888         NULL.
23890 2016-01-27  Uros Bizjak  <ubizjak@gmail.com>
23892         PR target/69512
23893         * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
23894         (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
23896 2016-01-27  Thomas Klausner  <wiz@NetBSD.org>
23898         PR target/68380
23899         * configure.ac: NetBSD provides SSP in its C library.
23900         * configure: Updated.
23902 2016-01-27  Richard Biener  <rguenther@suse.de>
23904         PR tree-optimization/69166
23905         * tree-vect-loop.c (vect_is_simple_reduction): Always check
23906         reduction code for commutativity / associativity.
23908 2016-01-27  Martin Jambor  <mjambor@suse.cz>
23910         PR tree-optimization/69355
23911         * tree-sra.c (analyze_access_subtree): Correct hole detection when
23912         total_scalarization fails.
23914 2016-01-27  David Edelsohn  <dje.gcc@gmail.com>
23916         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
23917         power9.
23919 2016-01-27  Christian Bruel  <christian.bruel@st.com>
23921         PR target/69245
23922         * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
23923         Move arm_reset_previous_fndecl and set_target_option_current_node in
23924         the conditional part.  Call save_restore_target_globals.
23925         * config/arm/arm.c (arm_set_current_function):
23926         Refactor to better support #pragma target and attribute mix.
23927         Call save_restore_target_globals.
23928         * config/arm/arm-protos.h (save_restore_target_globals): New function.
23930 2016-01-27  Martin Liska  <mliska@suse.cz>
23932         * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
23933         reference for an HSA kernel and its host function.
23935 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
23937         PR tree-optimization/69399
23938         * wide-int.h (wi::lrshift): For larger precisions, only
23939         use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
23941 2016-01-27  Claudiu Zissulescu  <claziss@synopsys.com>
23943         * config/arc/predicates.md (proper_comparison_operator): Reject
23944         constant-constant comparison.
23946 2016-01-26  Tom de Vries  <tom@codesourcery.com>
23948         PR tree-optimization/69110
23949         * tree-data-ref.c (initialize_data_dependence_relation): Handle
23950         DR_NUM_DIMENSIONS == 0.
23952 2016-01-26  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
23953             Sebastian Pop  <s.pop@samsung.com>
23955         * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
23956         isl_ast_op_cond and isl_ast_op_select.
23957         (gcc_expression_from_isl_expr_op): Same.
23959 2016-01-26  Jason Merrill  <jason@redhat.com>
23961         PR c++/68782
23962         * tree.c (recompute_constructor_flags): Split out from
23963         build_constructor.
23964         (verify_constructor_flags): New.
23965         * tree.h: Declare them.
23967 2016-01-26  Iain Buclaw  <ibuclaw@gdcproject.org>
23969         PR rtl-optimization/69217
23970         * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
23971         are no TYPE_FIELDS set for the record type.
23973 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
23975         PR target/68662
23976         * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
23977         toc_label_name unconditionally.
23978         (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
23979         SYMBOL_REF string.  Use toc_label_name instead of constructing
23980         LCTOC1.
23981         (rs6000_elf_declare_function_name): Use toc_label_name instead of
23982         constructing LCTOC1.
23984 2016-01-26  Martin Sebor  <msebor@redhat.com>
23986         PR other/69477
23987         * doc/extend.texi (Common Type Attributes): Move text that talks about
23988         attribute packed from attribute aligned to the section discussing
23989         the former attribute for clarity.
23991 2016-01-26  Richard Henderson  <rth@redhat.com>
23993         PR middle-end/60908
23994         * trans-mem.c (tm_region_init): Mark entry block as visited.
23996 2016-01-26  David Malcolm  <dmalcolm@redhat.com>
23998         PR other/69006
23999         * diagnostic-show-locus.c (layout::print_source_line): Replace
24000         call to pp_newline with call to layout::print_newline.
24001         (layout::print_annotation_line): Likewise.
24002         (layout::move_to_column): Likewise.
24003         (layout::print_any_fixits): After printing any fixits, print a
24004         trailing newline, if necessary.
24005         (layout::print_newline): New method, resetting any colorization
24006         before a newline.
24007         (diagnostic_show_locus): Move the pp_newline to before the
24008         early bailout.  Remove dummy block enclosing the layout instance.
24009         * diagnostic.c (default_diagnostic_finalizer): Replace invocation
24010         of pp_newline_and_flush with pp_flush.
24011         (diagnostic_append_note): Delete use of pp_newline.
24012         (diagnostic_append_note_at_rich_loc): Delete.
24013         * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
24014         * pretty-print.h (output_buffer_append_r): Reset buff->line_length
24015         when newline characters are added to the buffer.
24017 2016-01-26  Michael Matz  <matz@suse.de>
24019         * configure.ac (ac_cv_std_swap_in_utility): New test.
24020         * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
24021         * configure: Regenerate.
24022         * config.in: Regenerate.
24024 2016-01-26  Claudiu Zissulescu  <claziss@synopsys.com>
24026         * config/arc/arc.md (cstoresi4): Force operand into register.
24027         (arcset<code>): Fix predicate.
24028         (arcsetltu): Likewise.
24029         (arcsetgeu): Likewise.
24030         (arcsethi): Likewise.
24031         (arcsetls): Likewise.
24033 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
24035         PR tree-optimization/69483
24036         * gimple-fold.c (canonicalize_constructor_val): Return NULL
24037         if base has error_mark_node type.
24039 2016-01-26  Christophe Lyon  <christophe.lyon@linaro.org>
24041         PR target/68620
24042         * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
24043         * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
24044         New helper macros.
24045         (vget_lane_f16): Handle big-endian.
24046         (vgetq_lane_f16): Likewise.
24047         (vset_lane_f16): Likewise.
24048         (vsetq_lane_f16): Likewise.
24049         * config/arm/iterators.md (VQXMOV): Add V8HF.
24050         (VDQ): Add V4HF and V8HF.
24051         (V_reg): Handle V4HF and V8HF.
24052         (Is_float_mode): Likewise.
24053         * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
24054         neon_vdup_nv8hf): New patterns.
24055         (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
24056         Use VD_LANE iterator.
24057         (neon_vld1_dup<mode>): Use VQ2 iterator.
24059 2016-01-26  Nathan Sidwell  <nathan@acm.org>
24061         * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
24062         (set_oacc_fn_attrib): Add IS_KERNEL arg.
24063         * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
24064         (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
24065         (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
24066         (oacc_validate_dims): Add LEVEL arg, don't return level.
24067         (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
24068         oacc_validate_dims.
24069         (execute_oacc_device_lower): Adjust, add more dump output.
24070         * tree-ssa-loop.c (gate_oacc_kernels): Use
24071         oacc_fn_attrib_kernels_p.
24072         * tree-parloops.c (create_parallel_loop): Adjust
24073         set_oacc_fn_attrib call.
24075 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
24077         PR lto/69254
24078         * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
24079         (append_compiler_options): Handle -fcilkplus.
24080         (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
24082 2016-01-26  Nick Clifton  <nickc@redhat.com>
24084         PR target/66655
24085         * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
24086         been marked as DECL_ONE_ONLY but we do not the means to make it
24087         so, then do not allow it to bind locally.
24089 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
24091         PR lto/69254
24092         * opts.h (parse_sanitizer_options): New prototype.
24093         * opts.c (sanitizer_opts): New array.
24094         (parse_sanitizer_options): New function.
24095         (common_handle_option): Use parse_sanitizer_options.
24097 2016-01-26  H.J. Lu  <hongjiu.lu@intel.com>
24099         PR target/68986
24100         * config/i386/i386.c (ix86_compute_frame_layout): Move stack
24101         alignment adjustment to ...
24102         (ix86_update_stack_boundary): Here.  Don't over-align stack for
24103         __tls_get_addr.
24104         (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
24105         if __tls_get_addr is called.
24107 2016-01-26  Christian Bruel  <christian.bruel@st.com>
24109         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
24111 2016-01-26  Eric Botcazou  <ebotcazou@adacore.com>
24113         * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
24115 2016-01-26  Richard Biener  <rguenther@suse.de>
24117         PR middle-end/69467
24118         * match.pd: Guard X * CST CMP 0 pattern with single_use.
24120 2016-01-26  Richard Biener  <rguenther@suse.de>
24122         PR tree-optimization/69452
24123         * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
24124         (move_computations_dom_walker::before_dom_children): Rename
24125         to ...
24126         (move_computations_worker): This.
24127         (move_computations): Perform an RPO rather than a DOM walk.
24129 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
24131         PR target/69442
24132         * combine.c (combine_instructions): For REG_EQUAL note with
24133         SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
24134         to the underlying register.
24135         * doc/rtl.texi (REG_EQUAL): Document the behavior of
24136         REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
24138 2016-01-26  Roger Ferrer Ibáñez  <rofirrim@gmail.com>
24140         PR target/67896
24141         * config/aarch64/aarch64-builtins.c
24142         (aarch64_init_simd_builtin_types): Do not set structural
24143         equality to __Poly{8,16,64,128}_t types.
24145 2016-01-26  Richard Sandiford  <richard.sandiford@arm.com>
24147         PR tree-optimization/69400
24148         * wide-int.cc (wi_pack): Take the precision as argument and
24149         perform canonicalization here rather than in the callers.
24150         Use the main loop to handle all full-width HWIs.  Add a
24151         zero HWI if in_len isn't a full result.
24152         (wi::divmod_internal): Update accordingly.
24153         (wi::mul_internal): Likewise.  Simplify.
24155 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
24156             Sebastian Pop  <s.pop@samsung.com>
24158         * graphite-poly.c (apply_poly_transforms): Simplify.
24159         (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
24160         (print_isl_map): Same.
24161         (print_isl_union_map): Same.
24162         (print_isl_schedule): New.
24163         (debug_isl_schedule): New.
24164         * graphite-dependences.c (scop_get_reads): Do not call
24165         isl_union_map_add_map that is undocumented isl functionality.
24166         (scop_get_must_writes): Same.
24167         (scop_get_may_writes): Same.
24168         (scop_get_original_schedule): Remove.
24169         (scop_get_dependences): Do not call isl_union_map_compute_flow that
24170         is deprecated in isl 0.15.  Instead, use isl_union_access_* interface.
24171         (compute_deps): Remove.
24172         * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
24173         (debug_schedule_ast): New.
24174         (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
24175         set_separate_option.
24176         (graphite_regenerate_ast_isl): Add dump.
24177         (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
24178         from scop->transformed_schedule.
24179         (graphite_regenerate_ast_isl): Add more dump.
24180         * graphite-optimize-isl.c (optimize_isl): Set
24181         scop->transformed_schedule.  Check whether schedules are equal.
24182         (apply_poly_transforms): Move here.
24183         * graphite-poly.c (apply_poly_transforms): ... from here.
24184         (free_poly_bb): Static.
24185         (free_scop): Static.
24186         (pbb_number_of_iterations_at_time): Remove.
24187         (print_isl_ast): New.
24188         (debug_isl_ast): New.
24189         (debug_scop_pbb): New.
24190         * graphite-scop-detection.c (print_edge): Move.
24191         (print_sese): Move.
24192         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
24193         (build_scop_scattering): Remove.
24194         (create_pw_aff_from_tree): Assert instead of bailing out.
24195         (add_condition_to_pbb): Remove unused code, do not fail.
24196         (add_conditions_to_domain): Same.
24197         (add_conditions_to_constraints): Remove.
24198         (build_scop_context): New.
24199         (add_iter_domain_dimension): New.
24200         (build_iteration_domains): Initialize pbb->iterators.
24201         Call add_conditions_to_domain.
24202         (nested_in): New.
24203         (loop_at): New.
24204         (index_outermost_in_loop): New.
24205         (index_pbb_in_loop): New.
24206         (outermost_pbb_in): New.
24207         (add_in_sequence): New.
24208         (add_outer_projection): New.
24209         (outer_projection_mupa): New.
24210         (add_loop_schedule): New.
24211         (build_schedule_pbb): New.
24212         (build_schedule_loop): New.
24213         (embed_in_surrounding_loops): New.
24214         (build_schedule_loop_nest): New.
24215         (build_original_schedule): New.
24216         (build_poly_scop): Call build_original_schedule.
24217         * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
24218         (free_poly_dr): Remove.
24219         (struct poly_bb): Add iterators.  Remove schedule, transformed, saved.
24220         (free_poly_bb): Remove.
24221         (debug_loop_vec): Remove.
24222         (print_isl_ast): Declare.
24223         (debug_isl_ast): Declare.
24224         (scop_do_interchange): Remove.
24225         (scop_do_strip_mine): Remove.
24226         (scop_do_block): Remove.
24227         (flatten_all_loops): Remove.
24228         (optimize_isl): Remove.
24229         (pbb_number_of_iterations_at_time): Remove.
24230         (debug_scop_pbb): Declare.
24231         (print_schedule_ast): Declare.
24232         (debug_schedule_ast): Declare.
24233         (struct scop): Remove schedule.  Add original_schedule,
24234         transformed_schedule.
24235         (free_gimple_poly_bb): Remove.
24236         (print_generated_program): Remove.
24237         (debug_generated_program): Remove.
24238         (unify_scattering_dimensions): Remove.
24239         * sese.c (print_edge): ... here.
24240         (print_sese): ... here.
24241         (debug_edge): ... here.
24242         (debug_sese): ... here.
24243         * sese.h (print_edge): Declare.
24244         (print_sese): Declare.
24245         (dump_edge): Declare.
24246         (dump_sese): Declare.
24248 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
24249             Sebastian Pop  <s.pop@samsung.com>
24251         * Makefile.in: Set ISLVER in site.exp.
24253 2016-01-25  Jakub Jelinek  <jakub@redhat.com>
24255         * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
24256         DECL_VALUE_EXPR of new_var even for the non-array case.  Look
24257         through DECL_VALUE_EXPR for expansion.
24259 2016-01-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
24261         * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
24262         the frame info after reload completed.
24264 2016-01-25  Jeff Law  <law@redhat.com>
24266         PR tree-optimization/69196
24267         PR tree-optimization/68398
24268         * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
24269         tree-ssa-threadupdate.c.
24270         (determine_bb_domination_status): Prototype
24271         * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
24272         (determine_bb_domination_status): No longer static.
24273         (valid_jump_thread_path): Remove code to detect characteristics
24274         of the jump thread path not associated with correctness.
24275         * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
24276         Correct test for thread path length.  Count PHIs for real operands as
24277         statements that need to be copied.  Do not count ASSERT_EXPRs.
24278         Look at all the blocks in the thread path.  Compute and selectively
24279         filter thread paths based on threading through the latch, threading
24280         a multiway branch or crossing a multiway branch.
24282 2016-01-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24284         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled):  Add
24285         decl with __attribute__ ((unused)) annotation.
24287 2016-01-25  Ilya Enkovich  <enkovich.gnu@gmail.com>
24289         PR target/69421
24290         * tree-vect-stmts.c (vectorizable_condition): Check vectype
24291         of operands is compatible with a statement vectype.
24293 2016-01-25  Eric Botcazou  <ebotcazou@adacore.com>
24295         * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
24296         improve wording for mixed storage order support.
24298 2016-01-25  Bilyan Borisov  <bilyan.borisov@arm.com>
24300         * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
24301         (vcvt_u64_f64): Likewise.
24302         (vcvta_s64_f64): Likewise.
24303         (vcvta_u64_f64): Likewise.
24304         (vcvtm_s64_f64): Likewise.
24305         (vcvtm_u64_f64): Likewise.
24306         (vcvtn_s64_f64): Likewise.
24307         (vcvtn_u64_f64): Likewise.
24308         (vcvtp_s64_f64): Likewise.
24309         (vcvtp_u64_f64): Likewise.
24311 2016-01-25  Claudiu Zissulescu  <claziss@synopsys.com>
24313         * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
24314         (arc_init): Check validity mll64 option.
24315         (arc_save_restore): Use double load/store instruction.
24316         (arc_expand_movmem): Likewise.
24317         (arc_split_move): Don't split if we have double load/store
24318         instructions. Returns a boolean.
24319         (arc_process_double_reg_moves): Change function to return boolean
24320         instead of a sequence of instructions.
24321         (arc_dwarf_register_span): New function.
24322         * config/arc/arc-protos.h (arc_split_move): Change prototype.
24323         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
24324         * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
24325         (*movdf_insn): Likewise.
24326         * config/arc/arc.opt (mll64): New option.
24327         * config/arc/predicates.md (even_register_operand): New predicate.
24328         * doc/invoke.texi (ARC Options): Add mll64 documentation.
24330 2016-01-25  Richard Biener  <rguenther@suse.de>
24332         PR lto/69393
24333         * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
24334         * tree-streamer-out.c (pack_ts_base_value_fields): Stream
24335         DECL_NAMELESS.
24336         * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
24338 2016-01-25  Richard Biener  <rguenther@suse.de>
24340         PR tree-optimization/69376
24341         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
24342         flag.
24343         (VN_INFO_ANTI_RANGE_P): New inline.
24344         (VN_INFO_RANGE_TYPE): Likewise.
24345         * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
24346         SSA_NAME_ANTI_RANGE_P.
24347         (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
24348         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
24349         Properly query VN_INFO_RANGE_TYPE.
24351 2016-01-25  Nick Clifton  <nickc@redhat.com>
24353         PR target/66655
24354         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
24356 2016-01-23  Tom de Vries  <tom@codesourcery.com>
24358         PR tree-optimization/69426
24359         * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
24360         removed clobber.
24362 2016-01-23  Jakub Jelinek  <jakub@redhat.com>
24364         * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
24365         "the the" with "the" in the comments.
24366         * ipa-devirt.c (build_type_inheritance_graph,
24367         update_type_inheritance_graph): Likewise.
24368         * tree.c (build_function_type_list_1): Likewise.
24369         * cfgloopmanip.c (scale_loop_profile): Likewise.
24370         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
24371         * gimple-ssa-split-paths.c
24372         (find_block_to_duplicate_for_splitting_paths): Likewise.
24373         * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
24374         * expr.c (convert_move): Likewise.
24375         * var-tracking.c (vt_stack_adjustments): Likewise.
24376         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
24377         * tree-vrp.c (test_for_singularity): Likewise.
24379         * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
24380         directly instead of building a temporary tree.
24382         PR bootstrap/69434
24383         * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
24384         remove <algorithm> include.
24386 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
24388         PR target/69432
24389         * config/i386/i386.c: Include dojump.h.
24390         (expand_small_movmem_or_setmem,
24391         expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
24392         fixes.
24393         (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
24394         if dynamic_check != -1.
24396 2016-01-21  Jeff Law  <law@redhat.com>
24398         PR middle-end/69347
24399         * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
24400         record_temporary_equivalences.  Rewritten to avoid unnecessary calls
24401         into dominated_by_p.
24402         (cprop_into_successor_phis): Avoid unnecessary tests.
24404 2016-01-22  Richard Henderson  <rth@redhat.com>
24406         PR target/69416
24407         * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
24408         (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
24410 2016-01-22  Michael Matz  <matz@suse.de>
24412         * system.h (string, algorithm): Include only conditionally.
24413         (new): Include always under C++.
24414         * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
24415         * final.c (toplevel): Ditto.
24416         * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
24417         * genconditions.c (write_header): Make gencondmd.c define
24418         INCLUDE_STRING.
24419         * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
24421         * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
24422         * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
24424 2016-01-22  Christian Bruel  <christian.bruel@st.com>
24426         PR target/68674
24427         * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
24429 2016-01-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24431         PR target/69403
24432         * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
24433         define_insn_and_split.  Ensure operands[1] and operands[0] do not
24434         get assigned the same register.
24436 2016-01-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
24438         * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
24440 2016-01-22  Christian Bruel  <christian.bruel@st.com>
24442         * config/arm/arm-c.c (arm_pragma_target_parse):
24443         Remove warn_builtin_macro_redefined overwrite.
24445 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
24447         * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
24448         flag_non_call_exceptions compatibility.
24450 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
24452         PR debug/66668
24453         * dwarf2out.c (add_child_die_after): New function.
24454         (dwarf_qual_info_t): New type.
24455         (dwarf_qual_info): New variable.
24456         (qualified_die_p): New function.
24457         (modified_type_die): For -fdebug-types-section, ensure
24458         canonical order of qualifiers.  Put qualified DIEs adjacent
24459         to the corresponding non-qualified type DIE and search there
24460         for existing qualified DIEs.
24462 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
24464         * doc/extend.texi (scalar_storage_order type attribute): Document
24465         restriction on type punning and aliasing, and remove future tense.
24467 2016-01-21  Roman Zhuykov  <zhroma@ispras.ru>
24469         PR target/69252
24470         * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
24471         first stage.
24473 2016-01-21  Jeff Law  <law@redhat.com>
24475         PR middle-end/69347
24476         * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
24477         useless call to record_temporary_equivalences.
24478         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
24479         allocate 10 slots in the bb_path vector and let it grow as needed.
24480         (fsm_find_control_statement_thread_paths): Similarly for the next_path
24481         vector.
24483 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
24485         * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
24486         Detangle.
24487         * configure: Regenerate.
24489 2016-01-21  Pat Haugen  <pthaugen@us.ibm.com>
24491         * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
24492         * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
24494 2016-01-21  Bernd Schmidt  <bschmidt@redhat.com>
24496         PR middle-end/66178
24497         * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
24498         drop EXPAND_INITIALIZER.
24499         * rtl.h (contains_symbolic_reference_p): Declare.
24500         * rtlanal.c (contains_symbolic_reference_p): New function.
24501         * simplify-rtx.c (simplify_binary_operation_1): Don't turn
24502         a subtraction into a NOT if symbolic constants are involved.
24504 2016-01-21  Anton Blanchard  <anton@samba.org>
24505             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24507         PR target/63354
24508         * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
24509         #define.
24510         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
24511         function.
24513 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
24515         * config/microblaze/microblaze.c
24516         (get_branch_target): New.
24517         (insert_wic_for_ilb_runout): New.
24518         (insert_wic): New.
24519         (microblaze_machine_dependent_reorg): New.
24520         (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
24521         * config/microblaze/microblaze.md
24522         (UNSPEC_IPREFETCH): Define.
24523         (iprefetch): New pattern
24524         * config/microblaze/microblaze.opt
24525         (mxl-prefetch): New flag.
24527 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
24529         * config/microblaze/microblaze.h
24530         (FIXED_REGISTERS): Update in macro.
24531         (CALL_USED_REGISTERS): Update in macro.
24533 2016-01-21  Yuri Rumyantsev  <ysrumyan@gmail.com>
24535         PR rtl-optimization/68920
24536         * ifcvt.c (cond_move_process_if_block): Limit number of conditional
24537         moves.
24539 2016-01-21  Vladimir Makarov  <vmakarov@redhat.com>
24541         PR rtl-optimization/68990
24542         * lra-coalesce.c (lra_coalesce): Invalidate value for the result
24543         pseudo instead of inheritance ones.
24545 2016-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
24546             Nick Clifton  <nickc@redhat.com>
24548         PR target/69129
24549         PR target/69012
24550         * config/mips/mips.c (mips_compute_frame_info): Initialise
24551         args_size and hard_frame_pointer_offset fields of the frame
24552         structure before calling mips_global_pointer.
24554 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
24556         * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
24557         label reference.
24558         * configure: Regenerate.
24560 2016-01-21  Richard Biener  <rguenther@suse.de>
24562         * graphite-optimize-isl.c (get_schedule_map): Fix typo.
24564 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
24566         * config/s390/s390.c (s390_asm_declare_function_size): Add code
24567         to actually emit the .size directive.
24569 2016-01-21   Stefan Sørensen  <stefan.sorensen@spectralink.com>
24570              Jakub Jelinek  <jakub@redhat.com>
24572         PR target/69187
24573         PR target/65624
24574         * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
24575         args array size by one to avoid buffer overflow.
24577 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
24579         * config/s390/s390.md (pool_section_start): Use switch_to_section
24580         to select proper read-only data section instead of hardcoding
24581         .rodata.
24582         (pool_section_end): Use switch_to_section to match the above.
24584 2016-01-21  Richard Biener  <rguenther@suse.de>
24586         PR tree-optimization/69378
24587         * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
24588         (set_ssa_val_to): Use it for dominance checks taking into
24589         account not executable edges.
24591 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
24593         PR c++/69355
24594         * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
24595         for bitsize instead of GET_MODE_PRECISION (mode).
24597 2016-01-20  Martin Sebor  <msebor@redhat.com>
24599         PR c/52291
24600         * extend.texi (__sync Builtins): Clarify the semantics of
24601         __sync_fetch_and_OP built-ins on pointers.
24602         (__atomic Builtins): Same.
24604 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
24605             Sebastian Pop  <s.pop@samsung.com>
24607         * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
24608         (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
24609         (is_valid_rename): Same.
24610         (translate_isl_ast_to_gimple::get_rename): Same.
24611         (translate_isl_ast_to_gimple::rename_all_uses): Same.
24612         (translate_isl_ast_to_gimple::rename_uses): Same.
24613         (get_new_name): Check for close_phi nodes.
24614         (copy_loop_phi_args): Use phi_node_kind.
24615         (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
24616         (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
24618 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
24619             Sebastian Pop  <s.pop@samsung.com>
24621         Revert commit r229783.
24622         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
24623         Remove use of parameter_rename_map.
24624         (copy_def): Remove.
24625         (copy_internal_parameters): Remove.
24626         (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
24627         * sese.c (new_sese_info): Do not initialize parameter_rename_map.
24628         (free_sese_info): Do not free parameter_rename_map.
24629         (set_rename): Do not use parameter_rename_map.
24630         (rename_uses): Update call to set_rename.
24631         (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
24632         * sese.h (parameter_rename_map_t): Remove.
24633         (struct sese_info_t): Remove field parameter_rename_map.
24635 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
24636             Sebastian Pop  <s.pop@samsung.com>
24638         * graphite-isl-ast-to-gimple.c: Fix comment.
24639         * graphite-scop-detection.c (defined_in_loop_p): New.
24640         (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
24641         names defined in loop.
24643 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
24644             Sebastian Pop  <s.pop@samsung.com>
24646         * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
24647         Discard unstructured if-then-else regions.
24649 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
24650             Sebastian Pop  <s.pop@samsung.com>
24652         * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
24653         (cleanup_loop_iter_dom): Remove.
24654         (build_loop_iteration_domains): Remove.
24655         (build_scop_context): Remove.
24656         (build_scop_iteration_domain): Remove.
24657         (add_loop_constraints): New.
24658         (build_iteration_domains): New.
24659         (build_poly_scop): Call build_iteration_domains.
24661 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
24662             Sebastian Pop  <s.pop@samsung.com>
24664         * graphite-scop-detection.c
24665         (scop_detection::harmful_loop_in_region): Free dom and loops.
24666         (scop_detection::loop_body_is_valid_scop): Free bbs.
24668 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
24669             Sebastian Pop  <s.pop@samsung.com>
24671         * graphite-scop-detection.c (record_loop_in_sese): New.
24672         (gather_bbs::before_dom_children): Call record_loop_in_sese.
24673         (build_scops): Remove call to build_sese_loop_nests.
24674         * sese.c (sese_record_loop): Remove.
24675         (build_sese_loop_nests): Remove.
24676         (new_sese_info): Remove region->loops.
24677         (free_sese_info): Same.
24678         * sese.h (sese_contains_loop): Same.
24679         (build_sese_loop_nests): Remove.
24680         (sese_contains_loop): Remove.
24682 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
24683             Sebastian Pop  <s.pop@samsung.com>
24685         * graphite-scop-detection.c (loop_is_valid_scop): Renamed
24686         loop_is_valid_in_scop.
24687         (scop_detection::harmful_stmt_in_region): Renamed
24688         harmful_loop_in_region.
24689         Call loop_is_valid_in_scop.
24691 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
24692             Sebastian Pop  <s.pop@samsung.com>
24694         * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
24695         isl_ast_node_mark.
24697 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
24698             Sebastian Pop  <s.pop@samsung.com>
24700         * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
24701         * graphite.h (struct poly_bb): Remove field is_reduction.
24702         (PBB_IS_REDUCTION): Remove.
24704 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
24705             Sebastian Pop  <s.pop@samsung.com>
24707         * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
24708         (add_pdr_constraints): Same.
24709         (scop_get_reads): Same.
24710         (scop_get_must_writes): Same.
24711         (scop_get_may_writes): Same.
24712         (scop_get_original_schedule): Same.
24713         (extend_schedule): Same.
24714         (apply_schedule_on_deps): Same.
24715         (carries_deps): Same.
24716         (compute_deps): Same.
24717         (scop_get_dependences): Same.
24718         * graphite-isl-ast-to-gimple.c
24719         (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
24720         * graphite-optimize-isl.c (get_schedule_for_band): Same.
24721         (get_schedule_for_band_list): Same.
24722         (get_schedule_map): Same.
24723         (apply_schedule_map_to_scop): Same.
24724         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
24725         (build_loop_iteration_domains): Same.
24726         (add_condition_to_pbb): Same.
24727         (add_param_constraints): Same.
24728         (pdr_add_memory_accesses): Same.
24729         (pdr_add_data_dimensions): Same.
24731 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
24733         * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
24734         requirements.
24736 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
24738         * common.opt (feliminate-dwarf2-dups): Replace references to
24739         "DWARF 2" with just "DWARF".
24740         * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
24741         * doc/extend.texi: Likewise.
24742         * doc/cpp.texi: Likewise.
24743         * doc/invoke.texi: Likewise.
24744         (Option Summary): Add -gdwarf to list of Debugging Options.
24745         (Debugging Options): Document -gdwarf.
24746         * doc/contrib.texi: Spell "DWARF" like that.
24748 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
24750         * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
24751         warning.  Fix up formatting.
24753         PR middle-end/67653
24754         * gimplify.c (gimplify_asm_expr): Warn if it is too late to
24755         attempt to mark memory input operand addressable and
24756         call prepare_gimple_addressable in that case.  Don't adjust
24757         input_location for diagnostics, use error_at instead.
24759 2016-01-20  Peter Bergner  <bergner@vnet.ibm.com>
24761         * config/rs6000/ppc-auxv.h: New file.
24762         * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
24763         (cpu_is): Likewise.
24764         (cpu_supports): Likewise.
24765         * config/rs6000/rs6000.c: include "ppc-auxv.h".
24766         (cpu_is_info): New variable.
24767         (cpu_supports_info): Likewise.
24768         (tcb_verification_symbol): Likewise.
24769         (cpu_builtin_p): Likewise.
24770         (cpu_expand_builtin): New function.
24771         (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
24772         (rs6000_init_builtins): Likewise.
24773         (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
24774         * config/rs6000/rs6000.h (TLS_REGNUM): New define.
24775         * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
24776         * configure: Regenerate.
24777         * config.in: Likewise.
24778         * doc/extend.texi (PowerPC Built-in Functions): Document
24779         __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
24781 2016-01-20  David Edelsohn  <dje.gcc@gmail.com>
24783         PR target/68609
24784         * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
24785         domain check.
24786         * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
24787         for V4SFmode.
24789 2016-01-20  Richard Henderson  <rth@redhat.com>
24791         PR bootstrap/69343
24792         PR bootstrap/69339
24793         PR tree-opt/68964
24794         Revert:
24795         * tree.c (tm_define_builtin): New.
24796         (find_tm_vector_type): New.
24797         (build_tm_vector_builtins): New.
24798         (build_common_builtin_nodes): Call it.
24800 2016-01-20  Christophe Lyon  <christophe.lyon@linaro.org>
24802         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
24803         (arm_fp_ok): Likewise.
24804         (arm_fp): Likewise.
24805         (arm_crypto): Likewise.
24807 2016-01-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
24808             Richard Biener  <rguenther@suse.de>
24810         PR tree-optimization/69328
24811         * tree-vect-stmts.c (vect_is_simple_cond): Check compared
24812         vectors have same number of elements.
24813         (vectorizable_condition): Fix masked version recognition.
24815 2016-01-20  Richard Biener  <rguenther@suse.de>
24817         PR tree-optimization/69345
24818         * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
24819         (VN_INFO_PTR_INFO): Likewise.
24820         * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
24821         info when it is equal between non-dominating SSA names.
24822         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
24823         Make sure to look at original SSA infos.
24825 2016-01-20  Jeff Law  <law@redhat.com>
24827         PR target/25114
24828         * config/m68k/predicates.md (pow2_m1_operand): New predicate
24829         extracted from ...
24830         (reg_or_pow2_m1_operand): Call pow2_m1_operand.
24831         (pc_or_label_operand): New predicate.
24832         * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
24833         tests for small integers that are 2^n - 1.
24835 2016-01-20  Jonathan Wakely  <jwakely@redhat.com>
24837         * doc/invoke.texi (Options Summary): Add '.' after @xref.
24839 2016-01-19  Jeff Law  <law@redhat.com>
24841         PR middle-end/69347
24842         * tree-ssa-threadbackwards.c
24843         (fsm_find_control_statement_thread_paths): Do not try to lookup
24844         FSM paths for SSA_NAMEs appearing in abnormal PHIs.
24846 2016-01-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
24848         * doc/lto.texi: Remove text that says only Gold has linker plugin
24849         support.
24851 2016-01-19  Eric Botcazou  <ebotcazou@adacore.com>
24853         * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
24854         (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
24855         the DIE accordingly.
24856         (modified_type_die): Add REVERSE parameter and pass it recursively,
24857         as well as to base_type_die.  Adjust presence check accordingly.
24858         (base_type_for_mode): Adjust call to modified_type_die.
24859         (add_type_attribute): Add REVERSE parameter and pass it to
24860         modified_type_die.
24861         (generic_parameter_die): Adjust call to add_type_attribute.
24862         (add_scalar_info): Likewise.
24863         (add_subscript_info): Likewise.
24864         (gen_array_type_die): Likewise.
24865         (gen_descr_array_type_die): Likewise.
24866         (gen_entry_point_die): Likewise.
24867         (gen_enumeration_type_die): Likewise.
24868         (gen_formal_parameter_die): Likewise.
24869         (gen_subprogram_die): Likewise.
24870         (gen_variable_die ): Likewise.
24871         (gen_const_die): Likewise.
24872         (gen_field_die): Likewise.
24873         (gen_pointer_type_die): Likewise.
24874         (gen_reference_type_die): Likewise.
24875         (gen_ptr_to_mbr_type_die): Likewise.
24876         (gen_inheritance_die): Likewise.
24877         (gen_subroutine_type_die): Likewise.
24878         (gen_typedef_die): Likewise.
24879         (force_type_die): Adjust call to modified_type_die.
24881 2016-01-19  Sandra Loosemore  <sandra@codesourcery.com>
24883         * doc/standards.texi: Copy-editing for grammar, markup, and sentence
24884         flow throughout the file.  Fix broken link to Objective-C 2.0
24885         documentation.
24886         * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
24887         errors.
24889 2016-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
24891         * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
24893 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
24895         PR ipa/66223
24896         * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
24897         (maybe_record_node): Record cxa_pure_virtual as the only possible
24898         target if there are not ohter candidates.
24899         (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
24901 2016-01-19  Richard Biener  <rguenther@suse.de>
24903         * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
24904         (get_memory_order): Likewise.
24906 2016-01-19  Kirill Yukhin  <kirill.yukhin@intel.com>
24908         * tree-vect-stmts.c (vectorizable_store): Check
24909         rhs vectype.
24911 2016-01-19  David Malcolm  <dmalcolm@redhat.com>
24913         PR jit/68446
24914         * gcc.c (driver::decode_argv): Add call to
24915         init_opts_obstack before init_options_struct.
24916         * opts.c (init_opts_obstack): Remove idempotency.
24917         (init_options_struct): Replace call to init_opts_obstack
24918         with a gcc_assert to verify that it has already been called.
24919         * toplev.c (toplev::main): Add call to init_opts_obstack before
24920         calls to init_options_struct.
24921         (toplev::finalize): Move cleanup of opts_obstack next to
24922         cleanup of save_decoded_options, clearing the latter, and
24923         save_decoded_options_count.
24925 2016-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24927         PR target/69135
24928         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
24929         attribute to unconditional.  Remove %? from output template.
24931 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
24932             Jiong Wang  <jiong.wang@arm.com>
24934         * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
24935         generated from different expand order.
24937 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
24939         * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
24940         Add support for CCMP costing.
24942 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
24944         * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
24945         * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
24946         (fccmpe<mode>): Likewise.
24947         (fcmp): Rename to fcmp and globalize pattern.
24948         (fcmpe): Likewise.
24949         * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
24950         (aarch64_gen_ccmp_next): Add FP support.
24952 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
24954         * target.def (gen_ccmp_first): Update documentation.
24955         (gen_ccmp_next): Likewise.
24956         * doc/tm.texi (gen_ccmp_first): Update documentation.
24957         (gen_ccmp_next): Likewise.
24958         * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
24959         expand_ccmp_expr_1.  Improve comments.
24960         * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
24961         (ccmp_ior<mode>): Remove pattern.
24962         (cmp<mode>): Remove expand.
24963         (cmp): Globalize pattern.
24964         (cstorecc4): Use cc_register.
24965         (mov<mode>cc): Remove ccmp_cc_register check.
24966         * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
24967         Simplify after removal of CC_DNE/* modes.
24968         (aarch64_ccmp_mode_to_code): Remove.
24969         (aarch64_print_operand): Remove 'K' case.  Merge 'm' and 'M' cases.
24970         In 'k' case use integer as condition.
24971         (aarch64_nzcv_codes): Remove inverted cases.
24972         (aarch64_code_to_ccmode): Remove.
24973         (aarch64_gen_ccmp_first): Use cmp pattern directly.  Return the correct
24974         comparison with CC register to be used in folowing CCMP/branch/CSEL.
24975         (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
24976         pattern.  Return the comparison with CC register.  Invert conditions
24977         when bitcode is OR.
24978         * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
24979         * config/aarch64/predicates.md (ccmp_cc_register): Remove.
24981 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
24983         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
24984         instrumented_version.
24986 2016-01-19  Richard Biener  <rguenther@suse.de>
24988         PR tree-optimization/69336
24989         * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
24990         handled components with get_ref_base_and_extent.
24991         (equal_mem_array_ref_p): Adjust.
24993 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
24995         PR debug/65779
24996         * shrink-wrap.c: Include valtrack.h.
24997         (move_insn_for_shrink_wrap): Add DEBUG argument.  If
24998         MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
24999         in between insn and where it will be moved to.  Call
25000         dead_debug_insert_temp.
25001         (prepare_shrink_wrap): Adjust caller.  Call dead_debug_local_init
25002         first and dead_debug_local_finish at the end.
25003         For uses and defs bitmap, handle all regs in between REGNO and
25004         END_REGNO, not just the first one.
25006 2016-01-19  Richard Biener  <rguenther@suse.de>
25008         PR tree-optimization/69352
25009         * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
25010         (equal_mem_array_ref_p): Constrain size and max size properly.
25011         Compare the reverse flag.
25013 2016-01-19  Bernd Schmidt  <bschmidt@redhat.com>
25015         * ira.c (ira): Update regstat data if we deleted insns.
25017 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
25019         PR rtl-optimization/68955
25020         PR rtl-optimization/64557
25021         * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
25022         here.  Fix up formatting.
25023         * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
25025 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
25027         PR lto/69133
25028         * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
25029         assume that the node has body.
25030         * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
25031         check.
25033 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
25035         * lto-streamer-out.c (lto_output): Do not stream instrumentation
25036         thunks.
25038 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
25040         * symtab.c (symtab_node::asm_name): Do not call printable name directly.
25041         (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
25043 2016-01-19  Martin Jambor  <mjambor@suse.cz>
25044             Martin Liska  <mliska@suse.cz>
25045             Michael Matz  <matz@suse.de>
25047         * Makefile.in (OBJS): Add new source files.
25048         (GTFILES): Add hsa.c.
25049         * common.opt (disable_hsa): New variable.
25050         (-Whsa): New warning.
25051         * config.in (ENABLE_HSA): New.
25052         * configure.ac: Treat hsa differently from other accelerators.
25053         (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
25054         $enable_offloading.
25055         (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
25056         * doc/install.texi (Configuration): Document --with-hsa-runtime,
25057         --with-hsa-runtime-include, --with-hsa-runtime-lib and
25058         --with-hsa-kmt-lib.
25059         * doc/invoke.texi (-Whsa): Document.
25060         (hsa-gen-debug-stores): Likewise.
25061         * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
25062         to invoke offload compiler for hsa acclerator.
25063         * opts.c (common_handle_option): Determine whether HSA offloading
25064         should be performed.
25065         * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
25066         * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
25067         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
25068         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
25069         * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
25070         * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
25071         GF_OMP_FOR_KIND_GRID_LOOP.
25072         (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
25073         (pp_gimple_stmt_1): Likewise.
25074         * gimple-walk.c (walk_gimple_stmt): Likewise.
25075         * gimple.c (gimple_build_omp_grid_body): New function.
25076         (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
25077         * gimple.def (GIMPLE_OMP_GRID_BODY): New.
25078         * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
25079         GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
25080         GF_OMP_TEAMS_GRID_PHONY.
25081         (gimple_statement_omp_single_layout): Updated comments.
25082         (gimple_build_omp_grid_body): New function.
25083         (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
25084         (gimple_omp_for_grid_phony): New function.
25085         (gimple_omp_for_set_grid_phony): Likewise.
25086         (gimple_omp_parallel_grid_phony): Likewise.
25087         (gimple_omp_parallel_set_grid_phony): Likewise.
25088         (gimple_omp_teams_grid_phony): Likewise.
25089         (gimple_omp_teams_set_grid_phony): Likewise.
25090         (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
25091         * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
25092         (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
25093         (BUILT_IN_GOMP_TARGET): Updated type.
25094         * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
25095         (adjust_for_condition): New function.
25096         (get_omp_for_step_from_incr): Likewise.
25097         (extract_omp_for_data): Moved parts to adjust_for_condition and
25098         get_omp_for_step_from_incr.
25099         (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
25100         (fixup_child_record_type): Bail out if receiver_decl is NULL.
25101         (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
25102         (scan_omp_parallel): Do not create child functions for phony
25103         constructs.
25104         (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
25105         (scan_omp_1_op): Checking assert we are not remapping to
25106         ERROR_MARK.  Also also handle GIMPLE_OMP_GRID_BODY.
25107         (parallel_needs_hsa_kernel_p): New function.
25108         (expand_parallel_call): Register apprpriate parallel child
25109         functions as HSA kernels.
25110         (grid_launch_attributes_trees): New type.
25111         (grid_attr_trees): New variable.
25112         (grid_create_kernel_launch_attr_types): New function.
25113         (grid_insert_store_range_dim): Likewise.
25114         (grid_get_kernel_launch_attributes): Likewise.
25115         (get_target_argument_identifier_1): Likewise.
25116         (get_target_argument_identifier): Likewise.
25117         (get_target_argument_value): Likewise.
25118         (push_target_argument_according_to_value): Likewise.
25119         (get_target_arguments): Likewise.
25120         (expand_omp_target): Call get_target_arguments instead of looking
25121         up for teams and thread limit.
25122         (grid_expand_omp_for_loop): New function.
25123         (grid_arg_decl_map): New type.
25124         (grid_remap_kernel_arg_accesses): New function.
25125         (grid_expand_target_kernel_body): New function.
25126         (expand_omp): Call it.
25127         (lower_omp_for): Do not emit phony constructs.
25128         (lower_omp_taskreg): Do not emit phony constructs but create for them
25129         a temporary variable receiver_decl.
25130         (lower_omp_taskreg): Do not emit phony constructs.
25131         (lower_omp_teams): Likewise.
25132         (lower_omp_grid_body): New function.
25133         (lower_omp_1): Call it.
25134         (grid_reg_assignment_to_local_var_p): New function.
25135         (grid_seq_only_contains_local_assignments): Likewise.
25136         (grid_find_single_omp_among_assignments_1): Likewise.
25137         (grid_find_single_omp_among_assignments): Likewise.
25138         (grid_find_ungridifiable_statement): Likewise.
25139         (grid_target_follows_gridifiable_pattern): Likewise.
25140         (grid_remap_prebody_decls): Likewise.
25141         (grid_copy_leading_local_assignments): Likewise.
25142         (grid_process_kernel_body_copy): Likewise.
25143         (grid_attempt_target_gridification): Likewise.
25144         (grid_gridify_all_targets_stmt): Likewise.
25145         (grid_gridify_all_targets): Likewise.
25146         (execute_lower_omp): Call grid_gridify_all_targets.
25147         (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
25148         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
25149         (tree_omp_clause): Added union field dimension.
25150         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
25151         * tree.c (omp_clause_num_ops): Added number of arguments of
25152         OMP_CLAUSE__GRIDDIM_.
25153         (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
25154         (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
25155         * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
25156         (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
25157         (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
25158         (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
25159         * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
25160         * tree-pass.h (make_pass_gen_hsail): Declare.
25161         (make_pass_ipa_hsa): Likewise.
25162         * ipa-hsa.c: New file.
25163         * lto-section-in.c (lto_section_name): Add hsa section name.
25164         * lto-streamer.h (lto_section_type): Add hsa section.
25165         * timevar.def (TV_IPA_HSA): New.
25166         * hsa-brig-format.h: New file.
25167         * hsa-brig.c: New file.
25168         * hsa-dump.c: Likewise.
25169         * hsa-gen.c: Likewise.
25170         * hsa.c: Likewise.
25171         * hsa.h: Likewise.
25172         * toplev.c (compile_file): Call hsa_output_brig.
25173         * hsa-regalloc.c: New file.
25175 2016-01-18  Jeff Law  <law@redhat.com>
25177         PR tree-optimization/69320
25178         * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
25179         ranged object, do nothing if the RHS constant is not [0..1].
25180         (optimize_stmt): Comparing a boolean ranged object against a
25181         constant outside [0..1] results in a compile-time constant.
25183         * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
25184         test.
25186 2016-01-18  Sandra Loosemore  <sandra@codesourcery.com>
25188         * doc/invoke.texi (Invoking GCC): Add new section to menu.
25189         (Option Summary): Update to reflect new section and moved options.
25190         (C++ Dialect Options): Move -fstats to new section.
25191         (Debugging Options): Move all dump, statistics, and other GCC
25192         developer options to new section.  Rewrite section introduction
25193         and re-order remaining options to put the more basic ones first.
25194         (Optimization Options): Move -fira-verbose and -flto-report* to
25195         new section.
25196         (Developer Options): New section incorporating moved options.
25197         * doc/cppopts.texi (-dM): Update cross-reference.
25199 2016-01-18  Richard Henderson  <rth@redhat.com>
25201         PR target/69176
25202         * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
25203         operands to pseudo only if CSE is expected.  Split long immediate
25204         operands only after reload, and for the stack pointer.
25205         (*add<GPI>3_pluslong): Remove.
25206         (*addsi3_aarch64, *adddi3_aarch64): Merge into...
25207         (*add<GPI>3_aarch64): ... here.  Add r/rk/Upl alternative.
25208         (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
25209         (*add<GPI>3 peepholes): New.
25210         (*add<GPI>3 splitters): New.
25211         * config/aarch64/constraints.md (Upl): New.
25212         * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
25214 2016-01-18  Richard Biener  <rguenther@suse.de>
25216         PR tree-optimization/69297
25217         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
25218         stmt at most once.
25219         (vect_bb_vectorization_profitable_p): Clear visited flag again.
25221 2016-01-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
25223         PR middle-end/68542
25224         * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
25225         of mixind vector and scalar types.
25226         (fold_relational_const): Add handling of vector
25227         comparison with boolean result.
25228         * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
25229         comparison of vector operands with boolean result for EQ/NE only.
25230         (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
25231         (verify_gimple_cond): Likewise.
25232         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
25233         valid type of VAL.
25235 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
25237         * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
25238         !TARGET_OCTEON.
25240 2016-01-18  Richard Biener  <rguenther@suse.de>
25242         PR middle-end/69308
25243         * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
25245 2016-01-18  Tom de Vries  <tom@codesourcery.com>
25247         * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
25249 2016-01-18  Tom de Vries  <tom@codesourcery.com>
25251         * omp-low.c (set_oacc_fn_attrib): Make extern.
25252         * omp-low.h (set_oacc_fn_attrib): Declare.
25253         * tree-parloops.c (struct reduction_info): Add reduc_addr field.
25254         (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
25255         (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
25256         Add and handle function parameter oacc_kernels_p.
25257         (find_reduc_addr, get_omp_data_i_param): New function.
25258         (ref_conflicts_with_region, oacc_entry_exit_ok_1)
25259         (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
25260         (parallelize_loops): Add and handle function parameter oacc_kernels_p.
25261         Calculate dominance info.  Skip loops that are not in a kernels region
25262         in oacc_kernels_p mode.  Skip inner loops of parallelized loops.
25263         (pass_parallelize_loops::execute): Call parallelize_loops with
25264         oacc_kernels_p argument.
25265         (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
25266         New member function.
25267         (pass_parallelize_loops::bool oacc_kernels_p): New member var.
25268         * passes.def: Add argument to pass_parallelize_loops instantation.
25270 2016-01-18  Tom de Vries  <tom@codesourcery.com>
25272         * tree-parloops.c (pass_parallelize_loops::execute): Allow
25273         pass_parallelize_loops to be run outside the loop pipeline.
25275 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
25277         * tree-scalar-evolution.c (follow_copies_to_constant): New.
25278         (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
25280 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
25282         PR target/63679
25283         * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
25284         using get_ref_base_and_extent.
25285         (equal_mem_array_ref_p): New.
25286         (hashable_expr_equal_p): Add call to previous.
25288 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
25290         PR target/63679
25291         * tree-sra.c (disqualified_constants, constant_decl_p): New.
25292         (sra_initialize): Allocate disqualified_constants.
25293         (sra_deinitialize): Free disqualified_constants.
25294         (disqualify_candidate): Update disqualified_constants when appropriate.
25295         (create_access): Scan for constant-pool entries as we go along.
25296         (scalarizable_type_p): Add check against type_contains_placeholder_p.
25297         (maybe_add_sra_candidate): Allow constant-pool entries.
25298         (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
25299         (initialize_constant_pool_replacements): New.
25300         (sra_modify_assign): Avoid mangling assignments created by previous,
25301         and don't generate writes into constant pool.
25302         (sra_modify_function_body): Call initialize_constant_pool_replacements.
25304 2016-01-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
25306         * config/i386/i386.c (scalar_to_vector_candidate_p): Support
25307         andnot instruction.
25308         (scalar_chain::convert_op): Likewise.
25309         * config/i386/i386.md (*andndi3_doubleword): New.
25311 2016-01-18  Richard Biener  <rguenther@suse.de>
25313         PR tree-optimization/69170
25314         * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
25315         building a vector from scalar results of a pattern stmt.
25317 2016-01-18  Jakub Jelinek  <jakub@redhat.com>
25319         * haifa-sched.c (autopref_multipass_init): Work around
25320         -Wmaybe-uninitialized warning.
25322 2016-01-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
25324         * config/arm/arm.c (thumb1_reorg): Check that the comparison is
25325         against the constant 0.
25327 2016-01-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25329         PR tree-optimization/68799
25330         * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
25331         look up phi candidates in the statement-candidate map.
25332         (phi_add_costs): Likewise.
25333         (record_phi_increments): Likewise.
25334         (phi_incr_cost): Likewise.
25335         (ncd_with_phi): Likewise.
25336         (all_phi_incrs_profitable): Likewise.
25338 2016-01-17  Jakub Jelinek  <jakub@redhat.com>
25340         * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
25341         -Wmaybe-uninitialized warning.
25343 2016-01-16  Sandra Loosemore  <sandra@codesourcery.com>
25345         * doc/invoke.texi (Invoking GCC): Add new section to menu.
25346         (Option Summary): Update to reflect new section and moved options.
25347         (C++ Dialect Options): Move -fvtable-verify and related options.
25348         (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
25349         and profiling-related options.
25350         (Optimization Options): Move profile generation options and
25351         -fstack-protector and related options.
25352         (Instrumentation Options): New section incorporating moved options.
25353         (Code Generation Options): Move -finstrument-functions and
25354         related options, -fstack-check, -fstack-limit*, and -fbounds-check.
25356 2016-01-16  Tom de Vries  <tom@codesourcery.com>
25358         * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
25360 2016-01-16  Tom de Vries  <tom@codesourcery.com>
25362         * omp-low.c (expand_omp_atomic_fetch_op):  Release defs of update stmt.
25364 2016-01-16  Richard Sandiford  <richard.sandiford@arm.com>
25366         * hash-table.h (hash_table::empty): Turn into an inline wrapper
25367         that checks whether the table is already empty.  Rename the
25368         original implementation to...
25369         (hash_table::empty_slot): ...this new private function.
25371 2016-01-15  David Malcolm  <dmalcolm@redhat.com>
25373         PR diagnostic/68899
25374         * diagnostic-show-locus.c (layout::print_source_line): Move x
25375         offset of line until after call to
25376         get_line_width_without_trailing_whitespace.
25378 2016-01-15  Jeff Law  <law@redhat.com>
25380         PR tree-optimization/69270
25381         * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
25382         tree-ssa-dom.c.  Improve test for [0..1] ranve from VRP.
25383         * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
25384         * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
25385         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
25386         ssa_name_has_boolean_range and constant_boolean_node.
25388 2016-01-15  Vladimir Makarov  <vmakarov@redhat.com>
25390         PR rtl-optimization/69030
25391         * lra-spills.c (remove_pseudos): Check nrefs and make the function
25392         returning bool.
25393         (spill_pseudos): Delete debug insn for dead pseudo.
25394         (lra_spill): Initiate spill_hard_reg and slots memory separately.
25396 2016-01-15  Jiong Wang  <jiong.wang@arm.com>
25398         * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
25399         New.
25400         (TYPES_UNOPUS): Likewise.
25401         * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
25402         builtin type, from UNOP to UNOPUS.
25403         (lbtruncuv4sf): Likewise.
25404         (lbtruncuv2df): Likewise.
25405         (lrounduv2sf): Likewise.
25406         (lrounduv4sf): Likewise.
25407         (lrounduv2df): Likewise.
25408         (lroundusf): Likewise.
25409         (lroundusf): Likewise.
25410         (lceiluv2sf): Likewise.
25411         (lceiluv4sf): Likewise.
25412         (lceiluv2df): Likewise.
25413         (lceilusf): Likewise.
25414         (lceiludf): Likewise.
25415         (lflooruv2sf): Likewise.
25416         (lflooruv4sf): Likewise.
25417         (lflooruv2df): Likewise.
25418         (lfloorusf): Likewise.
25419         (lfloorudf): Likewise.
25420         (lfrintnuv2sf): Likewise.
25421         (lfrintnuv4sf): Likewise.
25422         (lfrintnuv2df): Likewise.
25423         (lfrintnusf): Likewise.
25424         (lfrintnudf): Likewise.
25425         * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
25426         conversion.
25427         (vcvtq_u32_f32): Likewise.
25428         (vcvtq_u64_f64): Likewise.
25429         (vcvta_u32_f32): Likewise.
25430         (vcvtaq_u32_f32): Likewise.
25431         (vcvtaq_u64_f64): Likewise.
25432         (vcvtm_u32_f32): Likewise.
25433         (vcvtmq_u32_f32): Likewise.
25434         (vcvtmq_u64_f64): Likewise.
25435         (vcvtn_u32_f32): Likwise.
25436         (vcvtnq_u32_f32): Likewise.
25437         (vcvtnq_u64_f64): Likewise.
25438         (vcvtp_u32_f32): Likewise.
25439         (vcvtpq_u32_f32): Likewise.
25440         (vcvtpq_u64_f64): Likewise.
25441         (vcvtmd_u64_f64): Likewise.
25442         (vcvtms_u32_f32): Likewise.
25443         (vcvtad_u64_f64): Likewise.
25444         (vcvtas_u32_f32): Likewise.
25445         (vcvtnd_u64_f64): Likewise.
25446         (vcvtns_u32_f32): Likewise.
25447         (vcvtpd_u64_f64): Likewise.
25448         (vcvtps_u32_f32): Likewise.
25450 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25452         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
25453         CSEL of zero_extended registers.
25455 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25457         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
25458         Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
25460 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25462         * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
25463         false when argument string is not found in the attributes table
25464         at all.
25466 2016-01-15  David Edelsohn  <dje.gcc@gmail.com>
25468         PR target/68609
25469         * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
25470         (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
25471         * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
25472         precision estimate.
25474 2016-01-15  Richard Biener  <rguenther@suse.de>
25476         PR tree-optimization/66856
25477         * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
25478         * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
25479         (vect_create_new_slp_node): Increment stmt reference count.
25480         (vect_get_and_check_slp_defs): Make sure stmts are nor already in
25481         an SLP tree before swapping operands.
25482         (vect_build_slp_tree): Likewise.
25483         (destroy_bb_vec_info): Free stmt info after SLP instances.
25484         * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
25485         * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
25486         (STMT_VINFO_NUM_SLP_USES): New macro.
25488 2016-01-15  Richard Biener  <rguenther@suse.de>
25490         PR debug/69137
25491         * dwarf2out.c (add_linkage_name_raw): New function split out from ...
25492         (add_linkage_name): ... here.
25493         (gen_typedef_die): Use add_linkage_name_raw instead of
25494         add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
25495         if necessary.
25497 2016-01-15  Cesar Philippidis  <cesar@codesourcery.com>
25499         * gimplify.c (oacc_default_clause): Decode reference and pointer
25500         types for both kernels and parallel regions.
25502 2016-01-15  Richard Sandiford  <richard.sandiford@arm.com>
25504         PR middle-end/69246
25505         * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
25507 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
25509         * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
25510         (convert_scalars_to_vector): Likewise.
25512 2016-01-15  Jonathan Wakely  <jwakely@redhat.com>
25514         * doc/extend.texi (Type Traits): Fix grammar.
25516 2016-01-15  Martin Jambor  <mjambor@suse.cz>
25518         * tree-inline.c (remap_decl): Use existing dclarations if
25519         remapping a type and prevent_decl_creation_for_types.
25520         (replace_locals_stmt): Do an initial remapping of non-VLA typed
25521         decls first.  Do real remapping with
25522         prevent_decl_creation_for_types set.
25523         * tree-inline.h (copy_body_data): New field
25524         prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
25525         padding.
25527 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
25529         * config/s390/s390.opt (mmvcle): More verbose help text.
25531 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
25533         * config/s390/s390.opt: Add period to -mzvector option text.
25535 2016-01-15  Richard Biener  <rguenther@suse.de>
25537         PR tree-optimization/68961
25538         * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
25539         of invariants in stores again.
25541 2016-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
25543         * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
25545 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
25547         * config/i386/i386.c (ix86_expand_branch): Don't split
25548         DI mode xor instruction to SI mode.
25550 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
25552         PR ipa/68148
25553         * ipa-icf.c (sem_function::merge): Virtual functions may become
25554         reachable even if they address is not taken and there are no
25555         idrect calls.
25557 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
25559         * lto-streamer-out.c (subtract_estimated_size): New function.
25560         (get_symbol_initial_value): Use it.
25562 2016-01-15  Christian Bruel  <christian.bruel@st.com>
25564         PR target/65837
25565         * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
25566         (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
25567         (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
25568         use add_builtin_function_ext_scope instead of add_builtin_function.
25569         (neon_set_p, neon_crypto_set_p): Remove.
25570         (arm_init_builtins): Always call arm_init_neon_builtins and
25571         arm_init_crypto_builtins.
25572         (arm_expand_builtin): Check that builtins are allowed for the arch.
25573         * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
25574         * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
25575         arm_init_neon_builtins call.
25577 2016-01-15  Richard Biener  <rguenther@suse.de>
25579         PR tree-optimization/69117
25580         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
25581         * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
25582         of the leader conservatively.
25583         (free_scc_vn): Restore original SSA name infos.
25585 2016-01-14  Jeff Law  <law@redhat.com>
25587         PR tree-optimization/69270
25588         * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
25589         single bit of precision, verify it's also unsigned.
25590         (record_edge_info): Use constant_boolean_node rather than fold_convert
25591         to convert boolean_true/boolean_false to the right type.
25593 2016-01-14  Richard Henderson  <rth@redhat.com>
25595         PR rtl-opt/69014
25596         * loop-doloop.c (record_reg_sets): New.
25597         (doloop_optimize): Reject the transform if the sequence
25598         clobbers registers live at the end of the loop block.
25599         (doloop_optimize_loops): Enable df_live if needed.
25601 2016-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
25603         * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
25604         * config/rs6000/rs6000.c: Likewise.
25605         * config/rs6000/rs6000.h: Likewise.
25606         * config/rs6000/rs6000.md: Likewise.
25607         * doc/extend.texi: Likewsie.
25609 2016-01-14  Jeff Law  <law@redhat.com>
25611         * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
25612         typo.
25614 2016-01-14  Richard Henderson  <rth@redhat.com>
25616         PR c/69272
25617         PR tree-opt/68964
25618         * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
25619         * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
25620         instead of builtin_decl_declared_p to test for declaration.
25622 2016-01-14  Nicklas Bo Jensen  <nbjensen@gmail.com>
25624         * doc/loop.texi (Loop Analysis and Representation): Document
25625         loop_depth function.
25627 2016-01-14  Tom de Vries  <tom@codesourcery.com>
25629         PR tree-optimization/68773
25630         * omp-low.c (expand_omp_target): Don't set force_output.
25631         * varpool.c (varpool_node::get_create): Same.
25632         * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
25633         offload_funcs with force_output.
25635 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
25637         PR debug/69244
25638         * lra-eliminations.c (move_plus_up): Don't change anything if either
25639         the outer or inner subreg mode is not MODE_INT.
25640         * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
25641         integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
25643 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
25645         * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
25646         reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
25647         reduc_uplus_@var{m}): Remove.
25648         * expr.c (expand_expr_real_2): Remove expansion path for
25649         reduc_[us](min|max|plus) optabs.
25650         * optabs-tree.c (scalar_reduc_to_vector): Remove.
25651         * optabs-tree.h (scalar_reduc_to_vector): Remove.
25652         * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
25653         reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
25654         * tree-vect-loop.c (vectorizable_reduction): Remove test for
25655         reduc_[us](min|max|plus) optabs.
25657 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
25659         * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
25660         (reduc_plus_scal_v2sf): New.
25661         (reduc_smax_v2sf): Rename to...
25662         (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
25663         (reduc_smin_v2sf): Rename to...
25664         (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
25666 2016-01-14  Jan Hubicka  <hubicka@ucw.cz>
25668         * alias.c (compare_base_symbol_refs): New function.
25669         (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
25670         it.
25672 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
25674         PR middle-end/68146
25675         PR tree-optimization/69155
25676         * tree-complex.c: Include cfganal.h.
25677         (phis_to_revisit): New variable.
25678         (extract_component): Add phiarg_p argument.  Assert that returned
25679         SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
25680         (update_phi_components): Partly rewrite to use loop over real/imag
25681         components instead of code duplication.  If extract_component returns
25682         SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
25683         create_tmp_reg into the PHI node instead, and mention the phi triplet
25684         in phis_to_revisit.
25685         (tree_lower_complex): Walk bbs in rpo order.  Adjust phis recorded
25686         in phis_to_revisit at the end.
25688 2016-01-14  Richard Biener  <rguenther@suse.de>
25690         PR tree-optimization/68060
25691         * tree-vect-loop.c (vect_is_simple_reduction): Check the
25692         outer loop reduction is only used in the inner loop before
25693         detecting a double reduction.
25695 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
25697         PR target/68269
25698         * combine.c (expand_field_assignment): Punt if compute_mode is
25699         unsupported scalar mode.
25701 2016-01-14  Richard Biener  <rguenther@suse.de>
25703         PR tree-optimization/66856
25704         * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
25705         SLP node only if it built successfully.
25706         (vect_analyze_slp_instance): Adjust.
25708 2016-01-14  Jeff Law  <law@redhat.com>
25710         PR tree-optimization/69270
25711         * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
25712         (record_edge_info): Use it.  Convert boolean_{true,false}_node
25713         to the type of op0.
25715 2016-01-13  Jan Hubicka  <hubicka@ucw.cz>
25717         PR ipa/66487
25718         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
25719         use block_ultimate_origin
25720         (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
25722 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
25724         * doc/invoke.texi (Submodel Options): Rename section to
25725         "Machine-Dependent Options" to better reflect its content.
25726         Rewrite introductory text to remove archaic CPU names.
25727         Update references.
25729 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
25731         * doc/invoke.texi (Code Gen Options): Move section up in file,
25732         before target-specific options.  Update menu and option summary
25733         to reflect the new section ordering.
25735 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
25737         * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
25738         (C++ Dialect Options): Add cross-reference to -std option.
25739         * doc/standards.texi (C++ Language): Document C++14 support.
25741 2016-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
25743         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
25744         for pack/unpack functions for __ibm128.
25745         (PACK_IF): Likewise.
25746         (UNPACK_IF): Likewise.
25748         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
25749         support for __ibm128 pack/unpack functions.
25750         (rs6000_invalid_builtin): Likewise.
25751         (rs6000_init_builtins): Likewise.
25752         (rs6000_opt_masks): Likewise.
25754         * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
25755         (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
25756         functions
25757         (RS6000_BTM_COMMON): Likewise.
25759         * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
25760         (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
25761         disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
25762         128-bit floating point.  Add support for the double values to be
25763         in Altivec registers for TF/IF packing and unpacking, but restrict
25764         TD packing sub-fields to be FPR registers.  Don't allow overlapped
25765         register support for packing.  Allow pack inputs to be memory
25766         locations.  Don't build generator functions for unpack<mode>_dm
25767         and unpack<mode>_nodm.
25768         (unpack<mode>_dm): Likewise.
25769         (unpack<mode>_nodm): Likewise.
25770         (pack<mode>): Likewise.
25772         * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
25773         built-in functions to pack/unpack explicit __ibm128 values.
25774         (__builtin_unpack_ibm128): Likewise.
25776         * doc/extend.texi (PowerPC Built-in Functions): Document
25777         __builtin_pack_ibm128 and __builtin_unpack_ibm128.
25779 2016-01-13  Bernd Schmidt  <bschmidt@redhat.com>
25781         PR c/66208
25782         * c-common.c (check_function_nonnull): Remove unnecessary declaration.
25783         Add new arg loc and pass it down as context.
25784         (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
25785         to the location to use for the warning.
25786         (check_function_arguments): New arg loc.  All callers changed.  Pass
25787         it to check_function_nonnull.
25788         * c-common.h (check_function_arguments): Adjust declaration.
25790 2016-01-13  Jakub Jelinek  <jakub@redhat.com>
25792         PR tree-optimization/69156
25793         * gimple.c (validate_type): Removed.
25794         (gimple_builtin_call_types_compatible_p): Use
25795         useless_type_conversion_p instead of validate_type.
25796         * value-prof.c (gimple_stringop_fixed_value): Fold
25797         icall_size to correct type.
25799 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
25801         * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
25802         effects.
25804 2016-01-13  Richard Henderson  <rth@redhat.com>
25806         PR tree-opt/68964
25807         * target.def (builtin_tm_load, builtin_tm_store): Remove.
25808         * config/i386/i386.c (ix86_builtin_tm_load): Remove.
25809         (ix86_builtin_tm_store): Remove.
25810         (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
25811         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
25812         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
25813         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
25814         * doc/tm.texi: Rebuild.
25816         * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
25817         (BUILT_IN_TM_MEMCPY_RTWN): New.
25818         * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
25819         fallback from vector to integer helpers.
25820         (build_tm_load): Handle vector types directly, instead of
25821         via target hook.
25822         (build_tm_store): Likewise.
25823         (expand_assign_tm): Prepare for register types not handled by
25824         the above.  Copy them to memory and use memcpy.
25825         * tree.c (tm_define_builtin): New.
25826         (find_tm_vector_type): New.
25827         (build_tm_vector_builtins): New.
25828         (build_common_builtin_nodes): Call it.
25830 2016-01-13  Uros Bizjak  <ubizjak@gmail.com>
25832         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
25833         TARGET_SSE_MATH without TARGET_SSE2.  Rewrite.
25835 2016-01-13  Tom de Vries  <tom@codesourcery.com>
25837         PR tree-optimization/69169
25838         * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
25839         handled_struct_type param.
25840         (create_variable_info_for, intra_create_variable_infos): Call
25841         create_variable_info_for_1 with extra arg.
25843 2016-01-13  Yvan Roux  <yvan.roux@linaro.org>
25845         * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
25846         and "armv8.1-a+crc" entries.
25848 2016-01-13  Alexander Fomin  <alexander.fomin@intel.com>
25850         PR target/69228
25851         * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
25852         Change first operand predicate from register_or_constm1_operand
25853         to register_operand.
25854         (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
25855         (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
25856         (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
25857         (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
25858         (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
25859         (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
25860         (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
25861         * config/i386/i386.c (ix86_expand_builtin): Remove first operand
25862         comparison with constm1_rtx from vec_prefetch_gen part.
25864 2016-01-13  Richard Biener  <rguenther@suse.de>
25866         PR tree-optimization/69013
25867         * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
25868         Exchange assert for a test.
25870 2016-01-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25872         PR target/69247
25873         * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
25875 2016-01-13  Richard Biener  <rguenther@suse.de>
25877         PR tree-optimization/69242
25878         * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
25879         assert with a check.
25881 2016-01-13  Richard Biener  <rguenther@suse.de>
25883         PR tree-optimization/69186
25884         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
25885         Properly guard vect_update_misalignment_for_peel call.
25887 2016-01-12  Jeff Law  <law@redhat.com>
25889         PR tree-optimization/pr67755
25890         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
25891         "need_profile_correction".
25892         (thread_block_1): Initialize new field to false by default.  If we
25893         have multiple thread paths through a common joiner to different
25894         final targets, then set new field to true.
25895         (compute_path_counts): Only do count adjustment when it's really
25896         needed.
25898 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
25900         * doc/invoke.texi (Spec Files): Move section down in file, past
25901         all command-line option descriptions.
25903 2016-01-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25905         PR middle-end/54809
25906         * doc/gty.texi: Remove documentation of mark_hook.
25907         * gengtype.c (struct write_types_data): Remove code to support
25908         mark_hook attribute.
25909         (walk_type): Likewise.
25910         (write_func_for_structure): Likewise.
25912 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
25914         * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
25915         Directory Options, and -specs= to Overall Options.
25916         (Overall Options): Adjust similarly.  Reorder to group related
25917         options together.  Make -specs= cross-reference the spec file details.
25918         (Directory Options): Adjust similarly.
25920 2016-01-12  Jeff Law  <law@redhat.com>
25922         * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
25924 2016-01-12  Olivier Hainque  <hainque@adacore.com>
25926         * gcc.c (spec_undefvar_allowed): New global.
25927         (process_command): Set to true when running for --version or --help,
25928         alone or together.
25929         (getenv_spec_function): When the variable is not defined, use the
25930         variable name as the variable value if we're allowed not to issue
25931         a fatal error.
25933 2016-01-12  Bin Cheng  <bin.cheng@arm.com>
25935         PR tree-optimization/68911
25936         * tree-vrp.c (adjust_range_with_scev): Check overflow in range
25937         information computed for expression "init + nit * step".
25939 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
25941         * doc/invoke.texi (Invoking GCC): Copy-edit.  Incorporate information
25942         about name of GCC executable.  Remove deleted node from menu.
25943         (Directory Options) <-B>: Remove cross-reference to deleted node.
25944         (Target Options): Delete section.
25946 2016-01-12  Christian Bruel  <christian.bruel@st.com>
25948         PR target/69180
25949         * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
25950         for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
25952 2016-01-12  Jakub Jelinek  <jakub@redhat.com>
25954         PR target/69198
25955         * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
25956         aligned_mem is properly set for AVX512-VL floating point masked
25957         stores.
25959         PR target/69175
25960         * ifcvt.c (cond_exec_process_if_block): When removing the last
25961         insn from then_bb, remove also any possible barriers that follow it.
25963 2016-01-12  H.J. Lu  <hongjiu.lu@intel.com>
25965         PR target/68456
25966         PR target/69226
25967         * config/i386/iamcu.h (SIZE_TYPE): New macro.
25968         (PTRDIFF_TYPE): Likewise.
25969         (WCHAR_TYPE): Likewise.
25970         (WCHAR_TYPE_SIZE): Likewise.
25971         (STDINT_LONG32): Likewise.
25973 2016-01-12  Richard Biener  <rguenther@suse.de>
25975         PR tree-optimization/69053
25976         * tree-vect-loop.c (get_initial_def_for_reduction): Properly
25977         convert initial value for cond reductions.
25979 2016-01-12  Richard Biener  <rguenther@suse.de>
25981         PR tree-optimization/69007
25982         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
25983         widen_sum after dot_prod and sad.
25985 2016-01-12  Richard Biener  <rguenther@suse.de>
25987         PR tree-optimization/69168
25988         * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
25989         pattern stmt SLP type.
25990         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
25991         end up unused so cope with that case.
25993 2016-01-12  Richard Biener  <rguenther@suse.de>
25995         PR tree-optimization/69157
25996         * tree-vect-stmts.c (vectorizable_mask_load_store): Check
25997         stmts def type only during analyze phase.
25998         (vectorizable_call): Likewise.
25999         (vectorizable_simd_clone_call): Likewise.
26000         (vectorizable_conversion): Likewise.
26001         (vectorizable_assignment): Likewise.
26002         (vectorizable_shift): Likewise.
26003         (vectorizable_operation): Likewise.
26004         (vectorizable_store): Likewise.
26005         (vectorizable_load): Likewise.
26007 2016-01-12  Richard Biener  <rguenther@suse.de>
26009         PR tree-optimization/69174
26010         * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
26011         space.
26012         (vectorizable_load): Properly compute the number of loads needed
26013         for permuted strided SLP loads and do not spuriously assign
26014         to SLP_TREE_VEC_STMTS.
26016 2016-01-12  Andris Pavenis  <andris.pavenis@iki.fi>
26018         * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
26019         (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
26020         (MD_EXEC_PREFIX): Remove.
26021         (MD_STARTFILE_PREFIX) Removee.
26022         (FILE_NAME_ABSOLUTE_P): Remove.
26023         (CPP_SPEC): Do not read macros from sys/version.h.
26024         (LINK_COMMAND_SPEC): Remove.
26025         (LOCAL_INCLUDE_DIR): Remove.
26026         (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
26027         (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
26028         (POST_LINK_SPEC): Define to invoke stubify after linker
26029         (LIBSTDCXX): Remove define
26030         (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
26031         (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
26032         (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
26033         (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
26034         (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
26035         (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
26036         (i386_djgpp_asm_named_section): Add propotype of new procedure
26038         * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
26039         (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
26040         (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
26041         in config/i386/djgpp.h).
26042         (STANDARD_STARTFILE_PREFIX_2): Define identical to
26043         STANDARD_STARTFILE_PREFIX_1.
26044         (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
26045         (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
26046         installation errors.
26047         (MAX_OFILE_ALIGNMENT): Define to 128.
26048         (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
26050         * config/i386/djgpp.c: New file. Add implementation of
26051         i386_djgpp_asm_named_section.
26053         * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
26055         * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
26056         Add rule for building djgpp.o.
26058 2016-01-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26060         * config/rs6000/rs6000.c (v2df_reduction_p): New function.
26061         (rtx_is_swappable_p): Reductions are swappable.
26062         (insn_is_swappable_p): V2DF reductions are swappable.
26064 2016-01-11  John David Anglin  <danglin@gcc.gnu.org>
26066         * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
26067         reloads for other unsupported memory operands.
26069 2016-01-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
26070             Jim Wilson  <jim.wilson@linaro.org>
26072         PR target/69194
26073         * config/arm/arm-builtins.c (arm_expand_neon_args): Call
26074         copy_to_mode_reg instead of force_reg.
26076 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
26078         PR target/69225
26079         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
26080         TARGET_80387 is true.
26082 2016-01-11  Jakub Jelinek  <jakub@redhat.com>
26084         PR target/69071
26085         * lra-eliminations.c (move_plus_up): Only move plus up
26086         if subreg of the constant can be simplified into constant
26087         and use the simplified subreg of the constant instead of
26088         the original constant.
26090         * fold-const.c (fold_convertible_p): Don't return true
26091         for conversion of VECTOR_TYPE to same sized integral type.
26092         (fold_convert_loc): Fix up formatting.  Fold conversion of
26093         VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
26094         instead of NOP_EXPR.
26096         PR tree-optimization/69214
26097         * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
26098         innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
26099         Formatting fix.
26101         PR tree-optimization/69207
26102         * tree-vect-slp.c (vect_get_constant_vectors): For
26103         VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
26104         fold_convertible_p to vector_type's element type, and always
26105         use VCE for non-VECTOR_BOOLEAN_TYPE_P.
26107 2016-01-11  Richard Biener  <rguenther@suse.de>
26109         PR tree-optimization/69173
26110         * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
26111         fixup the cycle if all stmts are in a pattern.
26113 2016-01-11  Uros Bizjak  <ubizjak@gmail.com>
26115         PR middle-end/68999
26116         * alias.c (base_alias_check): Move check for addresses with
26117         alignment ANDs before the call for compare_base_decls.
26118         (memrefs_conflict_p): Return -1 for different decls
26119         that went through alignment adjustments.
26121 2016-01-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26123         PR rtl-optimization/68796
26124         * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
26125         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
26126         and QImode comparisons against zero with CC_NZmode.
26127         * config/aarch64/iterators.md (short_mask): New mode_attr.
26129 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
26131         * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
26132         (<avx512>_store<mode>_mask): Likewise.
26134 2016-01-11  Bernd Schmidt  <bschmidt@redhat.com>
26135             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26137         PR rtl-optimization/68841
26138         * ifcvt.c (struct noce_if_info): Add orig_x field.
26139         (bbs_ok_for_cmove_arith): Add to_rename parameter.
26140         Don't record conflicts on to_rename if it's present.
26141         Allow memory destinations in sets.
26142         (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
26143         blocks, passing orig_x to the checks.
26144         (noce_process_if_block): Set if_info->orig_x appropriately.
26146 2016-01-11  Tom de Vries  <tom@codesourcery.com>
26148         PR tree-optimization/69069
26149         * tree-parloops.c (create_parallel_loop): Add missing phi args.
26151 2016-01-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
26153         PR rtl-optimization/68920
26154         * config/i386/i386.c (ix86_option_override_internal): Restrict number
26155         of conditional moves for  RTL if-conversion to 1 for
26156         TARGET_ONE_IF_CONV_INSN.
26157         * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
26158         * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
26159         * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
26160         parameter to restirct number of conditional moves for
26161         RTL if-conversion.
26162         * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
26163         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
26164         conditionl moves.
26166 2016-01-11  Alexandre Oliva  <aoliva@redhat.com>
26168         PR bootstrap/69123
26169         * var-tracking.c (drop_overlapping_mem_locs): Operate on all
26170         onepart vars.  Fix typo in comment.  Fix reversed condition in
26171         unshare test.
26172         (dataflow_set_remove_mem_locs): Operate on all onepart vars.
26174         PR bootstrap/69123
26175         * var-tracking.c (dump_onepart_variable_differences): New.
26176         (dataflow_set_different): If a detailed dump is requested,
26177         delay early returns and dump differences between onepart
26178         variables present before and after, and added variables.
26180 2016-01-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
26182         PR target/69010
26183         * expr.c (expand_expr_real_1): For boolean vector constants
26184         with a scalar mode use const_scalar_mask_from_tree.
26185         (const_scalar_mask_from_tree): New.
26186         * optabs.c (expand_vec_cond_mask_expr): Use mask mode
26187         assigned to a mask type to handle constants.
26189 2016-01-11  Martin Jambor  <mjambor@suse.cz>
26191         PR ipa/69044
26192         * ipa-cp.c (estimate_local_effects): Do not clone for removal of
26193         useless parameters if we cannot change function signature.
26195 2016-01-11  Martin Jambor  <mjambor@suse.cz>
26197         PR ipa/66616
26198         * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
26199         flag.
26201 2016-01-11  Tom de Vries  <tom@codesourcery.com>
26203         PR tree-optimization/69109
26204         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
26205         latch with phi.
26207 2016-01-11  Tom de Vries  <tom@codesourcery.com>
26209         PR tree-optimization/69108
26210         * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
26211         res is not used in a phi.
26213 2016-01-11  Yury Gribov  <y.gribov@samsung.com>
26215         PR 67425
26216         * common.opt (frandom-seed): Fix parameter name.
26217         * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
26219 2016-01-11  Tom de Vries  <tom@codesourcery.com>
26221         PR tree-optimization/69058
26222         * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
26223         not supported.
26225 2016-01-11  Andrew Burgess  <andrew.burgess@embecosm.com>
26227         * config/arc/arc.opt (mdiv-rem): Add period to the end.
26228         (mcode-density): Likewise.
26230 2016-01-10  Tom de Vries  <tom@codesourcery.com>
26232         PR tree-optimization/69062
26233         * tree-parloops.c (loop_has_phi_with_address_arg): New function.
26234         (parallelize_loops): Don't paralelize loop that has phi with address
26235         arg.
26237 2016-01-10  Tom de Vries  <tom@codesourcery.com>
26239         PR tree-optimization/69039
26240         * tree-parloops.c (try_create_reduction_list): Only allow single exit
26241         phi for reduction.
26243 2016-01-09  John David Anglin  <danglin@gcc.gnu.org>
26245         PR middle-end/68743
26246         * match.pd: Require target has function_c99_misc before doing
26247         truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
26249 2016-01-09  Gerald Pfeifer  <gerald@pfeifer.com>
26251         * configure.ac (isl_options_set_schedule_serialize_sccs): Also
26252         use GMPINC.
26253         * configure: Regenerate.
26255 2016-01-09  Jakub Jelinek  <jakub@redhat.com>
26257         PR middle-end/50865
26258         PR tree-optimization/69097
26259         * fold-const.h (expr_not_equal_to): New prototype.
26260         * fold-const.c: Include stringpool.h and tree-ssanames.h.
26261         (expr_not_equal_to): New function.
26262         * match.pd (X % -Y is the same as X % Y): Don't optimize
26263         unless X is known not to be equal to minimum or Y is known
26264         not to be equal to -1.
26265         * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
26266         fold TRUNC_MOD_EXPR if the second argument is not a power of two.
26267         (simplify_stmt_using_ranges): Adjust caller.
26268         (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
26269         substitute_and_fold.
26271 2016-01-09  Jan Hubicka  <hubicka@ucw.cz>
26273         * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
26274         w/o DECL_NAME.
26276 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
26278         PR tree-optimization/69167
26279         * gimple-fold.c (replace_stmt_with_simplification): Also punt if
26280         new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
26281         ops[0] comparison.
26282         * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
26284 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
26285             Richard Biener  <rguenther@suse.de>
26287         PR tree-optimization/68707
26288         * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
26289         instances that can be handled via vect_load_lanes.
26291 2016-01-08  Uros Bizjak  <ubizjak@gmail.com>
26293         * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
26294         if we can't determine address equivalence.
26295         * alias.c (compare_base_decl): Update for changed return value of
26296         symtab_node::equal_address_to.
26298 2016-01-08  Jason Merrill  <jason@redhat.com>
26300         PR c++/68983
26301         PR c++/67557
26302         * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
26303         * expr.c (store_field): Not here.
26304         * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
26305         call with TREE_ADDRESSABLE type.
26306         * tree-cfg.c (verify_gimple_call): Adjust.
26308 2016-01-08  Olivier Hainque  <hainque@adacore.com>
26310         * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
26311         libc_internal.
26313 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
26315         * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
26316         (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
26317         (reduc_smin_v2sf): Rename to...
26318         (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
26319         (reduc_splus_v2sf): Rename to...
26320         (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
26322 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
26324         PR tree-optimization/69162
26325         * gimplify.c (gimplify_va_arg_expr): Encode original type of
26326         valist argument in another argument.
26327         (gimplify_modify_expr): Adjust for the above change.  Cleanup.
26328         * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
26329         to determine the va_list type, build a MEM_REF instead of
26330         build_fold_indirect_ref.
26332         PR tree-optimization/69172
26333         * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
26334         gimple_build.
26336 2016-01-08  Thomas Preud'homme  <thomas.preudhomme@arm.com>
26338         PR tree-optimization/67781
26339         * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
26340         and cmpnop in two steps: first the ones not accessed in original
26341         gimple expression in a endian independent way and then the ones not
26342         accessed in the final result in an endian-specific way.
26344 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
26346         PR tree-optimization/69083
26347         * tree-vect-slp.c (vect_get_constant_vectors): For
26348         VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
26349         element type.  If op is fold_convertible_p to vector_type's element
26350         type, use NOP_EXPR instead of VCE.
26352 2016-01-08  Segher Boessenkool  <segher@kernel.crashing.org>
26354         PR rtl-optimization/67778
26355         PR rtl-optimization/68634
26356         PR rtl-optimization/68909
26357         * shrink-wrap.c (try_shrink_wrapping): Add comment.  Don't pop
26358         block from the stack until done with it.  Remove a superfluous
26359         bitmap set.  Remove a superfluous bitmap test.
26361 2016-01-07  Martin Sebor  <msebor@redhat.com>
26363         PR c/68966
26364         * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
26365         constraint on the type of arguments.
26367 2016-01-07  Andreas Tobler  <andreast@gcc.gnu.org>
26369         * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
26370         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
26371         unaligned_access on the gcc_options set.
26372         * config/arm/arm.c (arm_option_override_internal): Use
26373         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
26375 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
26377         PR target/69140
26378         * config/i386/i386.c (ix86_frame_pointer_required): Enable
26379         frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
26381 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
26383         Revert
26384         2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
26386         PR target/69140
26387         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
26388         depending on frame_pointer_needed before remaining integer and SSE
26389         registers are saved.
26391 2016-01-07  Sandra Loosemore  <sandra@codesourcery.com>
26393         PR 1078
26394         * doc/extend.texi (Nvidia PDX Function Attributes): New section.
26396 2016-01-07  H.J. Lu  <hongjiu.lu@intel.com>
26398         PR target/69171
26399         * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
26400         Use the "xBm" constraint.
26401         (float<sseintvecmodelower><mode>2<mask_name><round_name):
26402         Likewise.
26403         (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
26404         (sse_cvtsi2ssq<round_name>): Likewise.
26405         (sse_cvtss2si<round_name>): Likewise.
26406         (sse_cvtss2siq<round_name>): Likewise.
26407         (sse2_cvtsi2sdq<round_name>): Likewise.
26408         (sse2_cvtsd2si<round_name>): Likewise.
26409         (sse2_cvtsd2siq<round_name>): Likewise.
26410         * config/i386/subst.md (round_nimm_scalar_predicate): New
26411         predicate.
26413 2015-12-15  Bernd Schmidt  <bschmidt@redhat.com>
26415         PR middle-end/67639
26416         * varasm.c (make_decl_rtl): Mark invalid register vars as
26417         DECL_EXTERNAL.
26419         PR rtl-optimization/66206
26420         * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
26421         All callers changed.
26423 2016-01-07  Jakub Jelinek  <jakub@redhat.com>
26425         PR tree-optimization/69141
26426         * tree-ssa-pre.c: Include langhooks.h.
26427         (eliminate_dom_walker::before_dom_children): Use
26428         lang_hooks.decl_printable_name instead of
26429         cgraph_node::get ()->name ().
26431         PR middle-end/68960
26432         * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
26433         it and DECL_ALIGN too.
26435 2016-01-06  Robert Suchanek  <robert.suchanek@imgtec.com>
26437         * config/mips/mips-ftypes.def: Sort to lexicographical order.
26439 2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
26441         PR target/69140
26442         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
26443         depending on frame_pointer_needed before remaining integer and SSE
26444         registers are saved.
26446 2015-01-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26448         * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
26449         mode iterator with VSX_M2.
26450         (*p9_vecstore_<mode>): Likewise.
26451         (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
26452         (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
26453         (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
26454         (define_split for VSX_LE128 stores): Likewise.
26455         (define_peephole2 for TImode LE swaps): Likewise.
26456         (define_split for VSX_LE128 post-reload stores): Likewise.
26458 2016-01-06  Marek Polacek  <polacek@redhat.com>
26460         PR sanitizer/69099
26461         * convert.c (convert_to_integer_1): Adjust call to
26462         ubsan_instrument_float_cast.  Use NULL_TREE instead of NULL.
26463         * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter.  Use
26464         EXPR instead of ARG.
26465         * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
26467 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
26469         PR 1078
26470         * doc/extend.texi (RL78 Variable Attributes): New section.
26472 2016-01-05  Marek Polacek  <polacek@redhat.com>
26474         PR c/69104
26475         * builtins.c (get_memmodel): Use expansion point location rather than
26476         the input location.  Call warning_at rather than warning.
26477         (expand_builtin_atomic_compare_exchange): Likewise.
26478         (expand_builtin_atomic_load): Likewise.
26479         (expand_builtin_atomic_store): Likewise.
26480         (expand_builtin_atomic_clear): Likewise.
26482 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
26484         PR target/68991
26485         * config/i386/i386.c (ix86_expand_vector_logical_operator):
26486         Replace nonimmediate_operand with vector_operand.
26487         * config/i386/predicates.md (vector_operand): New predicate.
26488         (general_vector_operand): Replace nonimmediate_operand with
26489         vector_operand.
26490         * config/i386/sse.md: Replace nonimmediate_operand with
26491         vector_operand and m constraint with Bm constraint on SSE
26492         patterns with 16-byte memory operand.
26493         * config/i386/subst.md (round_nimm_predicate): Replace
26494         nonimmediate_operand with vector_operand.
26495         (round_saeonly_nimm_predicate): Likewise.
26496         (round_saeonly_nimm_scalar_predicate): New.
26498 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
26500         PR target/68991
26501         * config/i386/constraints.md (Bm): New constraint.
26502         * config/i386/predicates.md (vector_memory_operand): New
26503         predicate.
26504         * config/i386/sse.md: Replace xm with xBm in plusminus and
26505         any_logic patterns.
26507 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
26509         PR 1078
26510         * doc/extend.texi (V850 Function Attributes): New section.
26511         (V850 Variable Attributes): New section.
26513 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
26515         PR 1078
26516         * doc/extend.texi (MicroBlaze Function Attributes): Document
26517         interrupt_handler and fast_interrupt attributes.
26519 2016-01-05  Sergei Trofimovich  <siarheit@google.com>
26521         PR other/60465
26522         * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
26523         for local symbolic operands.
26524         * config/ia64/predicates.md (local_symbolic_operand64): New
26525         predicate.
26527 2016-01-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26529         PR rtl-optimization/68651
26530         * combine.c (combine_simplify_rtx): Canonicalize x + x into
26531         x << 1.
26533 2016-01-05  Nathan Sidwell  <nathan@acm.org>
26535         * alias.c (compare_base_decls): Use symtab_node::get.
26537 2016-01-05  Nick Clifton  <nickc@redhat.com>
26539         PR target/68770
26540         * ira-costs.c (copy_cost): Initialise the t_icode field of the
26541         secondary_reload_info structure.
26543         PR target/66655
26544         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
26545         decls if weak support is available.
26547 2016-01-04  Martin Sebor  <msebor@redhat.com>
26549         * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
26551 2016-01-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
26553         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
26554         OPTION_MASK_P9_DFORM.
26556         * config/rs6000/constraints.md (wo constraint): New constraint for
26557         ISA 3.0 (power9).
26559         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
26560         for wo constraint.
26561         (rs6000_init_hard_regno_mode_ok): Likewise.
26563         * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
26564         wo constraint.
26566         * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
26567         expanders not to have constraints.  Add support for ISA 3.0 xxperm
26568         instruction.  Add support for fusing xxlor with xxperm.
26569         (altivec_vperm_<mode>_internal): Likewise.
26570         (altivec_vperm_v8hiv16qi): Likewise.
26571         (altivec_vperm_<mode>v16q): Likewise.
26572         (altivec_vperm_<mode>_uns): Likewise.
26573         (vperm_v8hiv4si): Likewise.
26574         (vperm_v16qiv8hi): Likewise.
26576         * doc/md.texi (RS/6000 constraints): Document wo constraint.
26578 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
26580         Update copyright years.
26582         * gcc.c (process_command): Update copyright notice dates.
26583         * gcov-dump.c (print_version): Ditto.
26584         * gcov.c (print_version): Ditto.
26585         * gcov-tool.c (print_version): Ditto.
26586         * gengtype.c (create_file): Ditto.
26587         * doc/cpp.texi: Bump @copying's copyright year.
26588         * doc/cppinternals.texi: Ditto.
26589         * doc/gcc.texi: Ditto.
26590         * doc/gccint.texi: Ditto.
26591         * doc/gcov.texi: Ditto.
26592         * doc/install.texi: Ditto.
26593         * doc/invoke.texi: Ditto.
26595 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
26597         * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
26598         modes larger than TImode as TImode if NEON is not enabled.
26600 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
26602         PR target/69100
26603         * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
26604         mode for %f0-%f31 only if TARGET_FPU.
26606 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
26608         PR target/69072
26609         * config/sparc/sparc.c (scan_record_type): Take into account subfields
26610         to compute the PACKED_P predicate.
26611         (function_arg_record_value): Minor tweaks.
26613 2016-01-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
26615         * doc/install.texi (--with-multilib-list): Describe the meaning of the
26616         option for arm*-*-* targets.
26618 2016-01-03  Sandra Loosemore  <sandra@codesourcery.com>
26620         * doc/extend.texi (Common Function Attributes): Move docs for
26621         MSP430-specific attributes to....
26622         (MSP430 Function Attributes): ...here.  Delete the redundant
26623         entries and copy-edit the remaining text.
26624         (MSP430 Variable Attributes): Use uniform format for index
26625         entries and add a cross-reference to the corresponding function
26626         attribute docs.
26628 2016-01-03  Vladimír Čunát  <vcunat@gmail.com>
26630         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
26631         -finite-math typo.
26632         (x86 Options): Likewise.
26634 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
26636         PR 1078
26638         * extend.texi (Common Function Attributes) <no_stack_limit>: New.
26639         * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
26640         to corresponding attribute.
26642 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
26644         * doc/extend.texi (Common Function Attributes) <noplt>: Move
26645         to correct alphabetization of table.  Copy-edit and correct
26646         markup.
26647         <stack_protect>: Likewise.
26648         <target_clones>: Likewise.
26649         <simd>: Likewise.
26650         * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
26651         Correct punctuation.
26652         (Code Gen Options) <-fno-plt>: Copy-edit.
26654 2016-01-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
26656         PR target/68917
26657         * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
26658         SI values.  Explicitly convert SI to DI and vice-versa.
26660 2016-01-01  Jakub Jelinek  <jakub@redhat.com>
26662         PR tree-optimization/69070
26663         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
26664         REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
26666         PR sanitizer/69055
26667         * ubsan.c (ubsan_instrument_float_cast): Call
26668         initialize_sanitizer_builtins.
26670         PR target/69015
26671         * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
26673 Copyright (C) 2016 Free Software Foundation, Inc.
26675 Copying and distribution of this file, with or without modification,
26676 are permitted in any medium without royalty provided the copyright
26677 notice and this notice are preserved.